1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9140],{5213:t=>{!function(e){t.exports?t.exports=e():window.intlTelInput=e()}(()=>(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n={};((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(n,{Iti:()=>X,default:()=>Z});var l=[];for(let t of[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]])l.push({name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,
1nodeById:{},nationalPrefix:t[4]||null,normalisedName:"",initials:"",dialCodePlus:""});var r={OPEN_COUNTRY_DROPDOWN:"open:countrydropdown",CLOSE_COUNTRY_DROPDOWN:"close:countrydropdown",COUNTRY_CHANGE:"countrychange",INPUT:"input"},o={HIDE:"iti__hide",V_HIDE:"iti__v-hide",ARROW_UP:"iti__arrow--up",GLOBE:"iti__globe",FLAG:"iti__flag",COUNTRY_ITEM:"iti__country",HIGHLIGHT:"iti__highlight"},u={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",SPACE:" ",ENTER:"Enter",ESC:"Escape",TAB:"Tab"},a={PASTE:"insertFromPaste",DELETE_FWD:"deleteContentForward"},h={ALPHA_UNICODE:/\p{L}/u,NON_PLUS_NUMERIC:/[^+0-9]/,NON_PLUS_NUMERIC_GLOBAL:/[^+0-9]/g,HIDDEN_SEARCH_CHAR:/^[a-zA-ZÃ-ÿа-ÑÐ-Я ]$/},d={HIDDEN_SEARCH_RESET_MS:1e3},c={UNKNOWN_NUMBER_TYPE:-99,UNKNOWN_VALIDATION_ERROR:-99},p={SANE_SELECTED_WITH_DIAL_WIDTH:78,SANE_SELECTED_NO_DIAL_WIDTH:42,INPUT_PADDING_EXTRA_LEFT:6},C={NANP:"1"},m={DIAL_CODE:"44",MOBILE_PREFIX:"7",MOBILE_CORE_LENGTH:10},y={ISO2:"us"},_={AGGRESSIVE:"aggressive",POLITE:"polite"},g={AUTO:"auto"},f={COUNTRY_CODE:"countryCode",DIAL_CODE:"dialCode"},I={EXPANDED:"aria-expanded",LABEL:"aria-label",SELECTED:"aria-selected",ACTIVE_DESCENDANT:"aria-activedescendant",HASPOPUP:"aria-haspopup",CONTROLS:"aria-controls",HIDDEN:"aria-hidden",AUTOCOMPLETE:"aria-autocomplete",MODAL:"aria-modal"},b={selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",searchEmptyState:"No results found",searchSummaryAria:t=>0===t?"No results found":1===t?"1 result found":`${t} results found`},D=t=>"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(t).matches,N={allowDropdown:!0,allowNumberExtensions:!1,allowPhonewords:!1,autoPlaceholder:_.POLITE,containerClass:"",countryNameLocale:"en",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:(()=>{if("undefined"!=typeof navigator&&"undefined"!=typeof window){let t=D("(max-width: 500px)"),e=D("(max-height: 600px)"),i=D("(pointer: coarse)");return t||i&&e}return!1})(),allowedNumberTypes:["MOBILE","FIXED_LINE"]},E=t=>{t.useFullscreenPopup&&(t.fixDropdownWidth=!1),1===t.onlyCountries.length&&(t.initialCountry=t.onlyCountries[0]),t.separateDialCode&&(t.nationalMode=!1),!t.allowDropdown||t.showFlags||t.separateDialCode||(t.nationalMode=!1),t.useFullscreenPopup&&!t.dropdownContainer&&(t.dropdownContainer=document.body),t.i18n={...b,...t.i18n}},L=t=>t.replace(/\D/g,""),w=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),A=()=>"undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),T=(t,e)=>{let i=w(e),s=[],n=[],l=[],r=[],o=[],u=[];for(let e of t)e.iso2===i?s.push(e):e.normalisedName.startsWith(i)?n.push(e):e.normalisedName.includes(i)?l.push(e):i===e.dialCode||i===e.dialCodePlus?r.push(e):e.dialCodePlus.includes(i)?o.push(e):e.initials.includes(i)&&u.push(e);let a=(t,e)=>t.priority-e.priority;return[...s.sort(a),...n.sort(a),...l.sort(a),...r.sort(a),...o.sort(a),...u.sort(a)]},v=(t,e)=>{let i=e.toLowerCase();for(let e of t)if(e.name.toLowerCase().startsWith(i))return e;return null},O=t=>Object.keys(t).filter(e=>!!t[e]).join(" "),P=(t,e,i)=>{let s=document.createElement(t);return e&&Object.entries(e).forEach(([t,e])=>s.setAttribute(t,e)),i&&i.appendChild(s),s},S=()=>` 2 <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${I.HIDDEN}="true"> 3 <circle cx="11" cy="11" r="7" /> 4 <line x1="21" y1="21" x2="16.65" y2="16.65" /> 5 </svg>`,R=t=>{let e=`iti-${t}-clear-mask`;return` 6 <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${I.HIDDEN}="true" focusable="false"> 7 <mask id="${e}" maskUnits="userSpaceOnUse"> 8 <rect width="16" height="16" fill="white" /> 9 <path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" /> 10 </mask> 11 <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${e})" /> 12 </svg>`},x=()=>`
13 <svg width="256" height="256" viewBox="0 0 512 512" class="iti__globe-svg"> 14 <path d="M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"/> 15 <path d="m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"/> 16 </svg>`,k=class{constructor(t,e,i){this.highlightedItem=null,this.selectedItem=null,t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.options=e,this.id=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.separateDialCode&&(this.originalPaddingLeft=this.telInput.style.paddingLeft)}generateMarkup(t){this.countries=t,this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","tel"),this.telInput.hasAttribute("inputmode")||this.telInput.setAttribute("inputmode","tel");let e=this._createWrapperAndInsert();this._maybeBuildCountryContainer(e),e.appendChild(this.telInput),this._maybeUpdateInputPaddingAndReveal(),this._maybeBuildHiddenInputs(e)}_createWrapperAndInsert(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.options,n=P("div",{class:O({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i})});return this.isRTL&&n.setAttribute("dir","ltr"),this.telInput.before(n),n}_maybeBuildCountryContainer(t){let{allowDropdown:e,separateDialCode:i,showFlags:s}=this.options;if(e||s||i){this.countryContainer=P("div",{class:`iti__country-container ${o.V_HIDE}`},t),e?(this.selectedCountry=P("button",{type:"button",class:"iti__selected-country",[I.EXPANDED]:"false",[I.LABEL]:this.options.i18n.noCountrySelected,[I.HASPOPUP]:"dialog",[I.CONTROLS]:`iti-${this.id}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=P("div",{class:"iti__selected-country"},this.countryContainer);let s=P("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=P("div",{class:o.FLAG},s),e&&(this.dropdownArrow=P("div",{class:"iti__arrow",[I.HIDDEN]:"true"},s)),i&&(this.selectedDialCode=P("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this._buildDropdownContent()}}_buildDropdownContent(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:n,containerClass:l}=this.options;if(this.dropdownContent=P("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content ${o.HIDE} ${t?"":"iti--flexible-dropdown-width"}`,role:"dialog",[I.MODAL]:"true"}),this.isRTL&&this.dropdownContent.setAttribute("dir","rtl"),i&&this._buildSearchUI(),this.countryList=P("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox",[I.LABEL]:s.countryListAriaLabel},this.dropdownContent),this._appendListItems(),i&&this.updateSearchResultsA11yText(),n){let t=O({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[l]:!!l});this.dropdown=P("div",{class:t}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}_buildSearchUI(){let{i18n:t}=this.options,e=P("div",{class:"iti__search-input-wrapper"},this.dropdownContent);this.searchIcon=P("span",{class:"iti__search-icon",[I.HIDDEN]:"true"},e),this.searchIcon.innerHTML=S(),this.searchInput=P("input",{id:`iti-${this.id}__search-input`,type:"search",class:"iti__search-input",placeholder:t.searchPlaceholder,role:"combobox",[I.EXPANDED]:"true",[I.LABEL]:t.searchPlaceholder,[I.CONTROLS]:`iti-${this.id}__country-listbox`,[I.AUTOCOMPLETE]:"list",autocomplete:"off"},e),this.searchClearButton=P("button",{type:"button",class:`iti__search-clear ${o.HI
16DE}`,[I.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},e),this.searchClearButton.innerHTML=R(this.id),this.searchResultsA11yText=P("span",{class:"iti__a11y-text"},this.dropdownContent),this.searchNoResults=P("div",{class:`iti__no-results ${o.HIDE}`,[I.HIDDEN]:"true"},this.dropdownContent),this.searchNoResults.textContent=t.searchEmptyState}_maybeUpdateInputPaddingAndReveal(){this.countryContainer&&(this.updateInputPadding(),this.countryContainer.classList.remove(o.V_HIDE))}_maybeBuildHiddenInputs(t){let{hiddenInput:e}=this.options;if(e){let i=e(this.telInput.getAttribute("name")||"");if(i.phone){let e=this.telInput.form?.querySelector(`input[name="${i.phone}"]`);e?this.hiddenInput=e:(this.hiddenInput=P("input",{type:"hidden",name:i.phone}),t.appendChild(this.hiddenInput))}if(i.country){let e=this.telInput.form?.querySelector(`input[name="${i.country}"]`);e?this.hiddenInputCountry=e:(this.hiddenInputCountry=P("input",{type:"hidden",name:i.country}),t.appendChild(this.hiddenInputCountry))}}}_appendListItems(){let t=document.createDocumentFragment();for(let e=0;e<this.countries.length;e++){let i=this.countries[e],s=O({[o.COUNTRY_ITEM]:!0}),n=P("li",{id:`iti-${this.id}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[I.SELECTED]:"false"});n.dataset.dialCode=i.dialCode,n.dataset.countryCode=i.iso2,i.nodeById[this.id]=n,this.options.showFlags&&P("div",{class:`${o.FLAG} iti__${i.iso2}`},n),P("span",{class:"iti__country-name"},n).textContent=i.name;let l=P("span",{class:"iti__dial-code"},n);this.isRTL&&l.setAttribute("dir","ltr"),l.textContent=`+${i.dialCode}`,t.appendChild(n)}this.countryList.appendChild(t)}updateInputPadding(){if(this.selectedCountry){let t=this.options.separateDialCode?p.SANE_SELECTED_WITH_DIAL_WIDTH:p.SANE_SELECTED_NO_DIAL_WIDTH,e=(this.selectedCountry.offsetWidth||this._getHiddenSelectedCountryWidth()||t)+p.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${e}px`}}_getHiddenSelectedCountryWidth(){if(this.telInput.parentNode){let t;try{t=window.top.document.body}catch(e){t=document.body}let e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let n=s.offsetWidth;return t.removeChild(e),n}return 0}updateSearchResultsA11yText(){let{i18n:t}=this.options,e=this.countryList.childElementCount;this.searchResultsA11yText.textContent=t.searchSummaryAria(e)}scrollTo(t){let e=this.countryList,i=document.documentElement.scrollTop,s=e.offsetHeight,n=e.getBoundingClientRect().top+i,l=t.offsetHeight,r=t.getBoundingClientRect().top+i,o=r-n+e.scrollTop;r<n?e.scrollTop=o:r+l>n+s&&(e.scrollTop=o-(s-l))}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(o.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem&&(this.highlightedItem.classList.add(o.HIGHLIGHT),this.options.countrySearch)){let t=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(I.ACTIVE_DESCENDANT,t)}e&&this.highlightedItem.focus()}updateSelectedItem(t){if(this.selectedItem&&this.selectedItem.dataset.countryCode!==t&&(this.selectedItem.setAttribute(I.SELECTED,"false"),this.selectedItem=null),t&&!this.selectedItem){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);e&&(e.setAttribute(I.SELECTED,"true"),this.selectedItem=e)}}filterCountries(t){this.countryList.innerHTML="";let e=!0;for(let i of t){let t=i.nodeById[this.id];t&&(this.countryList.appendChild(t),e&&(this.highlightListItem(t,!1),e=!1))}e?(this.highlightListItem(null,!1),this.searchNoResults&&this.searchNoResults.classList.remove(o.HIDE)):this.searchNoResults&&this.searchNoResults.classList.add(o.HIDE),this.countryList.scrollTop=0,this.updateSearchResultsA11yText()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.options.separateDialCode&&(this.telInput.style.paddingLeft=this.originalPaddingLeft);let t=this.telInput.parentNode;for(let e of(t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.selectedDialCode=null,this.dropdownArrow=null,this.dropdownContent=null,this.searchInput=null,this.searchIcon=null,this.searchClearButton=null,this.searchNoResults=null,this.searchResultsA11yText=null,this.countryList=null,this.dropdown=null,this.hiddenInput=null,this.hiddenInputCountry=null,this.highlightedItem=null,this.selectedItem=null,this.countries))delete e.nodeById[this.id];this.countries=null}},U=t=>{let{onlyCountries:e,excludeCountries:i}=t;if(e.length){let t=e.map(t=>t.toLowerCase());return l.filter(e=>t.includes(e.iso2))}if(i.length){let t=i.map(t=>t.toLowerCase());return l.filter(e=>!t.includes(e.iso2))}return l},H=(t,e)=>{let i,{countryNameLocale:s,i18n:n}=e;try{i="undefined"!=typeof Intl&&"function"==typeof Intl.DisplayNames?new Intl.DisplayNames(s,{type:"region"}):null}catch(t){console.error(t),i=null}for(let e of t)e.name=n[e.iso2]||i?.of(e.iso2.toUpperCase())||""},W=t=>{let e=new Set,i=0,s={},n=(t,e)=>{if(!t||!e)return;e.length>i&&(i=e.length),s.hasOwnProperty(e)||(s[e]=[]);let n=s[e];n.includes(t)||n.push(t)};for(let i of[...t].sort((t,e)=>t.priority-e.priority)){e.has(i.dialCode)||e.add(i.dialCode);for(let t=1;t<i.dialCode.length;t++){let e=i.dialCode.substring(0,t);n(i.iso2,e)}
16if(n(i.iso2,i.dialCode),i.areaCodes){let t=s[i.dialCode][0];for(let e of i.areaCodes){for(let s=1;s<e.length;s++){let l=e.substring(0,s),r=i.dialCode+l;n(t,r),n(i.iso2,r)}n(i.iso2,i.dialCode+e)}}}return{dialCodes:e,dialCodeMaxLen:i,dialCodeToIso2Map:s}},M=(t,e)=>{e.countryOrder&&(e.countryOrder=e.countryOrder.map(t=>t.toLowerCase())),t.sort((t,i)=>{let{countryOrder:s}=e;if(s){let e=s.indexOf(t.iso2),n=s.indexOf(i.iso2),l=e>-1,r=n>-1;if(l||r)return l&&r?e-n:l?-1:1}return t.name.localeCompare(i.name)})},$=t=>{for(let e of t)e.normalisedName=w(e.name),e.initials=e.normalisedName.split(/[^a-z]/).map(t=>t[0]).join(""),e.dialCodePlus=`+${e.dialCode}`},B=(t,e,i,s)=>{let n=t;if(i&&e){let t=`+${s.dialCode}`,e=" "===n[t.length]||"-"===n[t.length]?t.length+1:t.length;n=n.substring(e)}return n},F=(t,e,i,s,n)=>{let l=i?i.formatNumberAsYouType(t,s.iso2):t,{dialCode:r}=s;return n&&"+"!==e.charAt(0)&&l.includes(`+${r}`)?(l.split(`+${r}`)[1]||"").trim():l},V=(t,e,i,s)=>{if(0===i&&!s)return 0;let n=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&n++,n===t&&!s)return i+1;if(s&&n===t+1)return i}return e.length},j=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],G=t=>{let e=L(t);if(e.startsWith(C.NANP)&&e.length>=4){let t=e.substring(1,4);return j.includes(t)}return!1},z=0,K=new Set(l.map(t=>t.iso2)),Y=t=>K.has(t),X=class{constructor(t,e={}){this.id=z++,this.options={...N,...e},E(this.options),this.ui=new k(t,this.options,this.id),this.isAndroid=A(),this.promise=this._createInitPromises(),this.countries=U(this.options);let{dialCodes:i,dialCodeMaxLen:s,dialCodeToIso2Map:n}=W(this.countries);this.dialCodes=i,this.dialCodeMaxLen=s,this.dialCodeToIso2Map=n,this.countryByIso2=new Map(this.countries.map(t=>[t.iso2,t])),this._init()}_updateNumeralSet(t){/[\u0660-\u0669]/.test(t)?this.userNumeralSet="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.userNumeralSet="persian":this.userNumeralSet="ascii"}_mapAsciiToUserNumerals(t){if(this.userNumeralSet||this._updateNumeralSet(this.ui.telInput.value),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776;return t.replace(/[0-9]/g,t=>String.fromCharCode(e+Number(t)))}_normaliseNumerals(t){if(!t)return"";if(this._updateNumeralSet(t),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776,i="arabic-indic"===this.userNumeralSet?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,t=>String.fromCharCode(48+(t.charCodeAt(0)-e)))}_getTelInputValue(){let t=this.ui.telInput.value.trim();return this._normaliseNumerals(t)}_setTelInputValue(t){this.ui.telInput.value=this._mapAsciiToUserNumerals(t)}_createInitPromises(){return Promise.all([new Promise((t,e)=>{this.resolveAutoCountryPromise=t,this.rejectAutoCountryPromise=e}),new Promise((t,e)=>{this.resolveUtilsScriptPromise=t,this.rejectUtilsScriptPromise=e})])}_init(){this.selectedCountryData={},this.abortController=new AbortController,this._processCountryData(),this.ui.generateMarkup(this.countries),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){H(this.countries,this.options),M(this.countries,this.options),$(this.countries)}_setInitialState(t=!1){let e=this.ui.telInput.getAttribute("value"),i=this._normaliseNumerals(e),s=this._getTelInputValue(),n=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,l=this._getDialCode(n),r=G(n),{initialCountry:o,geoIpLookup:u}=this.options,a=o===g.AUTO&&u;if(l&&!r)this._updateCountryFromNumber(n);else if(!a||t){let t=o?o.toLowerCase():"";Y(t)?this._setCountry(t):l&&r?this._setCountry(y.ISO2):this._setCountry("")}n&&this._updateValFromNumber(n)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.ui.hiddenInput||this.ui.hiddenInputCountry)&&this.ui.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){this.ui.telInput.form?.addEventListener("submit",()=>{this.ui.hiddenInput&&(this.ui.hiddenInput.value=this.getNumber()),this.ui.hiddenInputCountry&&(this.ui.hiddenInputCountry.value=this.selectedCountryData.iso2||"")},{signal:this.abortController.signal})}_initDropdownListeners(){let t=this.abortController.signal,e=this.ui.telInput.closest("label");e&&e.addEventListener("click",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)?this.ui.telInput.focus():t.preventDefault()},{signal:t}),this.ui.selectedCountry.addEventListener("click",()=>{!this.ui.dropdownContent.classList.contains(o.HIDE)||this.ui.telInput.disabled||this.ui.telInput.readOnly||this._openDropdown()},{signal:t}),this.ui.countryContainer.addEventListener("keydown",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)&&[u.ARROW_UP,u.ARROW_DOWN,u.SPACE,u.ENTER].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._openDropdown()),t.key===u.TAB&&this._closeDropdown()},{signal:t})}_initRequests(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;if(t&&!Q.utils){let e=()=>{Q.attachUtils(t)?.catch(()=>{})};Q.documentReady()?e():window.addEventListener("load",()=>{e()},{signal:this.abortController.signal})}else this.resolveUtilsScriptPromise();e===g.AUTO&&i&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}_loadAutoCountry(){Q.autoCountry?this.handleAutoCountry():Q.startedLoadingAutoCountry||(Q.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();Y(e)?(Q.autoCountry=e,setTimeout(()=>q("handleAutoCountry"))):(this._setInitialState(!0),q("rejectAutoCountryPromise"))},()=>{this._setInitialState(!0),q("rejectAutoCountryPromise")}))}_openDropdownWithPlus(){this._openDropdown(),this.ui.searchInput.value="+",this._filterCountriesByQuery("")}_initTelInputListeners(){this._bindInputListener(),this._maybeBindKeydownListener(),this._maybeBindPasteListener()}_bindInputListener(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:n}=this.options,l=!1;
16h.ALPHA_UNICODE.test(this._getTelInputValue())&&(l=!0),this.ui.telInput.addEventListener("input",r=>{let o=this._getTelInputValue();if(this.isAndroid&&r?.data==="+"&&i&&s&&n){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t-1),i=o.substring(t);this._setTelInputValue(e+i),this._openDropdownWithPlus();return}this._updateCountryFromNumber(o)&&this._triggerCountryChange();let u=r?.data&&h.NON_PLUS_NUMERIC.test(r.data),d=r?.inputType===a.PASTE&&o;u||d&&!t?l=!0:h.NON_PLUS_NUMERIC.test(o)||(l=!1);let c=r?.detail&&r.detail.isSetNumber,p="ascii"===this.userNumeralSet;if(e&&!l&&!c&&p){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t).replace(h.NON_PLUS_NUMERIC_GLOBAL,"").length,s=r?.inputType===a.DELETE_FWD,n=F(this._getFullNumber(),o,Q.utils,this.selectedCountryData,i),l=V(e,n,t,s);this._setTelInputValue(n),this.ui.telInput.setSelectionRange(l,l)}if(i&&o.startsWith("+")&&this.selectedCountryData.dialCode){let t=B(o,!0,i,this.selectedCountryData);this._setTelInputValue(t)}},{signal:this.abortController.signal})}_maybeBindKeydownListener(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.options;(t||e)&&this.ui.telInput.addEventListener("keydown",n=>{if(n.key&&1===n.key.length&&!n.altKey&&!n.ctrlKey&&!n.metaKey){if(e&&i&&s&&"+"===n.key){n.preventDefault(),this._openDropdownWithPlus();return}if(t){let t=this._getTelInputValue(),i=!t.startsWith("+")&&0===this.ui.telInput.selectionStart&&"+"===n.key,s=this._normaliseNumerals(n.key),l=/^[0-9]$/.test(s),r=this.ui.telInput,o=r.selectionStart,u=r.selectionEnd,a=t.slice(0,o),h=t.slice(u),d=a+n.key+h,c=this._getFullNumber(d),p=Q.utils.getCoreNumber(c,this.selectedCountryData.iso2),C=this.maxCoreNumberLength&&p.length>this.maxCoreNumberLength,m=this._getNewCountryFromNumber(c);(e?l:i||l)&&(!C||null!==m||i)||n.preventDefault()}}},{signal:this.abortController.signal})}_maybeBindPasteListener(){this.options.strictMode&&this.ui.telInput.addEventListener("paste",t=>{t.preventDefault();let e=this.ui.telInput,i=e.selectionStart,s=e.selectionEnd,n=this._getTelInputValue(),l=n.slice(0,i),r=n.slice(s),o=this.selectedCountryData.iso2,u=t.clipboardData.getData("text"),a=this._normaliseNumerals(u),d=0===i&&s>0,c=!n.startsWith("+")||d,p=a.replace(h.NON_PLUS_NUMERIC_GLOBAL,""),C=p.startsWith("+"),m=p.replace(/\+/g,""),y=C&&c?`+${m}`:m,_=l+y+r;if(_.length>5){let t=Q.utils.getCoreNumber(_,o);for(;0===t.length&&_.length>0;)_=_.slice(0,-1),t=Q.utils.getCoreNumber(_,o);if(!t)return;if(this.maxCoreNumberLength&&t.length>this.maxCoreNumberLength)if(e.selectionEnd!==n.length)return;else{let e=t.length-this.maxCoreNumberLength;_=_.slice(0,_.length-e)}}this._setTelInputValue(_);let g=i+y.length;e.setSelectionRange(g,g),e.dispatchEvent(new InputEvent("input",{bubbles:!0}))},{signal:this.abortController.signal})}_cap(t){let e=Number(this.ui.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.ui.telInput.dispatchEvent(i)}_openDropdown(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(this.dropdownAbortController=new AbortController,t&&(this.ui.dropdownContent.style.width=`${this.ui.telInput.offsetWidth}px`),this.ui.dropdownContent.classList.remove(o.HIDE),this.ui.selectedCountry.setAttribute(I.EXPANDED,"true"),this._setDropdownPosition(),e){let t=this.ui.countryList.firstElementChild;t&&(this.ui.highlightListItem(t,!1),this.ui.countryList.scrollTop=0),this.ui.searchInput.focus()}this._bindDropdownListeners(),this.ui.dropdownArrow.classList.add(o.ARROW_UP),this._trigger(r.OPEN_COUNTRY_DROPDOWN)}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.ui.dropdown),!this.options.useFullscreenPopup){let t=this.ui.telInput.getBoundingClientRect(),e=this.ui.telInput.offsetHeight;this.options.dropdownContainer&&(this.ui.dropdown.style.top=`${t.top+e}px`,this.ui.dropdown.style.left=`${t.left}px`,window.addEventListener("scroll",()=>this._closeDropdown(),{signal:this.dropdownAbortController.signal}))}}_bindDropdownListeners(){let t=this.dropdownAbortController.signal;this._bindDropdownMouseoverListener(t),this._bindDropdownCountryClickListener(t),this._bindDropdownClickOffListener(t),this._bindDropdownKeydownListener(t),this.options.countrySearch&&this._bindDropdownSearchListeners(t)}_bindDropdownMouseoverListener(t){this.ui.countryList.addEventListener("mouseover",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this.ui.highlightListItem(e,!1)},{signal:t})}_bindDropdownCountryClickListener(t){this.ui.countryList.addEventListener("click",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this._selectListItem(e)},{signal:t})}_bindDropdownClickOffListener(t){let e=t=>{t.target.closest(`#iti-${this.id}__dropdown-content`)||this._closeDropdown()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}_bindDropdownKeydownListener(t){let e="",i=null;document.addEventListener("keydown",t=>{[u.ARROW_UP,u.ARROW_DOWN,u.ENTER,u.ESC].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key===u.ARROW_UP||t.key===u.ARROW_DOWN?this._handleUpDownKey(t.key):t.key===u.ENTER?this._handleEnterKey():t.key===u.ESC&&(this._closeDropdown(),this.ui.selectedCountry.focus())),!this.options.countrySearch&&h.HIDDEN_SEARCH_CHAR.test(t.key)&&(t.stopPropagation(),i&&clearTimeout(i),e+=t.key.toLowerCase(),this._searchForCountry(e),i=setTimeout(()=>{e=""},d.HIDDEN_SEARCH_RESET_MS))},{signal:t})}_bindDropdownSearchListeners(t){let e=()=>{let t=this.ui.searchInput.value.trim();this._filterCountriesByQuery(t),this.ui.searchInput.value?this.ui.searchClearButton.classList.remove(o.HIDE):this.ui.searchClearButton.classList.add(o.HIDE)},i=null;this.ui.searchInput.addEventListener("input",()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)},{signal:t}),this.ui.searchClearButton.addEventListener("click",()=>{this.ui.searchInput.value="",this.ui.searchInput.focus(),e()},{signal:t})}_searchForCountry(t){let e=v(this.countries,t);if(e){let t=e.nodeById[this.id];this.ui.highlightListItem(t,!1),this.ui.scrollTo(t)}}_filterCountriesByQuery(t){let e;e=""===t?this.countries:T(this.countries,t),this.ui.filterCountries(e)}_handleUpDownKey(t){let e=t===u.ARROW_UP?this.ui.highlightedItem?.previousElementSibling:this.ui.highlightedItem?.nextElementSibling;!e&&this.ui.countryList.childElementCount>1&&(e=t===u.ARROW_UP?this.ui.countryList.lastElementChild:this.ui.countryList.firstElementChild),e&&(this.ui.scrollTo(e),this.ui.highlightListItem(e,!1))}_handleEnterKey(){this.ui.highlightedItem&&this._selectListItem(this.ui.highlightedItem)}_updateValFromNumber(t){let e=t;if(this.options.formatOnDisplay&&Q.utils&&this.selectedCountryData){let t=this.options.nationalMode||!e.startsWith("+")&&!this.options.separateDialCode,{NATIONAL:i,INTERNATIONAL:s}=Q.utils.numberFormat;e=Q.utils.formatNumber(e,this.selectedCountryData.iso2,t?i:s)}e=this._beforeSetNumber(e),this._setTelInputValue(e)}_updateCountryFromNumber(t){let e=this._getNewCountryFromNumber(t);return null!==e&&this._setCountry(e)}_ensureHasDialCode(t){let{dialCode:e,nationalPrefix:i}=this.selectedCountryData;if(t.startsWith("+")||!e)return t;let s=i&&t.startsWith(i)&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${s}`}_getNewCountryFromNumber(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.selectedCountryData.iso2,n=this.selectedCountryData.dialCode;i=this._ensureHasDialCode(i);let l=this._getDialCode(i,!0),r=L(i);if(l){let t=L(l),e=this.dialCodeToIso2Map[t];if(1===e.length)return e[0]===s?null:e[0];if(!s&&this.defaultCountry&&e.includes(this.defaultCountry))return this.defaultCountry;if(n===C.NANP&&G(r))return null;let{areaCodes:i,priority:o}=this.selectedCountryData;if(i){for(let t of i.map(t=>`${n}${t}`))if(r.startsWith(t))return null}let u=i&&0!==o&&r.length>t.length,a=s&&e.includes(s)&&!u,h=s===e[0];if(!a&&!h)return e[0]}else if(i.startsWith("+")&&r.length){let t=this.selectedCountryData.dialCode||"";return t&&t.startsWith(r)?null:""}else if((!i||"+"===i)&&!s)return this.defaultCountry;return null}_setCountry(t){let{separateDialCode:e,showFlags:i,i18n:s,allowDropdown:n}=this.options,l=this.selectedCountryData.iso2||"";if(n&&this.ui.updateSelectedItem(t),this.selectedCountryData=t?this.countryByIso2.get(t):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.ui.selectedCountry){let e,n,l,r=t&&i?`${o.FLAG} iti__${t}`:`${o.FLAG} ${o.GLOBE}`;if(t){let{name:t,dialCode:r}=this.selectedCountryData;n=t,e=s.selectedCountryAriaLabel.replace("${countryName}",t).replace("${dialCode}",`+${r}`),l=i?"":x()}else n=s.noCountrySelected,e=s.noCountrySelected,l=x();this.ui.selectedCountryInner.className=r,this.ui.selectedCountry.setAttribute("title",n),this.ui.selectedCountry.setAttribute(I.LABEL,e),this.ui.selectedCountryInner.innerHTML=l}if(e){let t=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.ui.selectedDialCode.textContent=t,this.ui.updateInputPadding()}return this._updatePlaceholder(),this._updateMaxLength(),l!==t}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,allowedNumberTypes:i}=this.options,{iso2:s}=this.selectedCountryData;if(t&&Q.utils)if(s){let t=Q.utils.numberType[e],n=Q.utils.getExampleNumber(s,!1,t,!0),l=n;for(;Q.utils.isPossibleNumber(n,s,i);)l=n,n+="0";let r=Q.utils.getCoreNumber(l,s);this.maxCoreNumberLength=r.length,"by"===s&&(this.maxCoreNumberLength=r.length+1)}else this.maxCoreNumberLength=null}_updatePlaceholder(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.options,n=t===_.AGGRESSIVE||!this.ui.hadInitialPlaceholder&&t===_.POLITE;if(Q.utils&&n){let t=Q.utils.numberType[e],n=this.selectedCountryData.iso2?Q.utils.getExampleNumber(this.selectedCountryData.iso2,i,t):"";n=this._beforeSetNumber(n),"function"==typeof s&&(n=s(n,this.selectedCountryData)),this.ui.telInput.setAttribute("placeholder",n)}}_selectListItem(t){let e=t.dataset[f.COUNTRY_CODE],i=this._setCountry(e);this._closeDropdown();let s=t.dataset[f.DIAL_CODE];if(this._updateDialCode(s),this.options.formatOnDisplay){let t=this._getTelInputValue();
16this._updateValFromNumber(t)}this.ui.telInput.focus(),i&&this._triggerCountryChange()}_closeDropdown(){this.ui.dropdownContent.classList.contains(o.HIDE)||(this.ui.dropdownContent.classList.add(o.HIDE),this.ui.selectedCountry.setAttribute(I.EXPANDED,"false"),this.options.countrySearch&&(this.ui.searchInput.removeAttribute(I.ACTIVE_DESCENDANT),this.ui.highlightedItem&&(this.ui.highlightedItem.classList.remove(o.HIGHLIGHT),this.ui.highlightedItem=null)),this.ui.dropdownArrow.classList.remove(o.ARROW_UP),this.dropdownAbortController.abort(),this.dropdownAbortController=null,this.options.dropdownContainer&&this.ui.dropdown.remove(),this._trigger(r.CLOSE_COUNTRY_DROPDOWN))}_updateDialCode(t){let e,i=this._getTelInputValue(),s=`+${t}`;if(i.startsWith("+")){let t=this._getDialCode(i);e=t?i.replace(t,s):s,this._setTelInputValue(e)}}_getDialCode(t,e){let i="";if(t.startsWith("+")){let s="",n=!1;for(let l=0;l<t.length;l++){let r=t.charAt(l);if(/[0-9]/.test(r)){if(s+=r,!this.dialCodeToIso2Map[s])break;if(this.dialCodes.has(s)){if(i=t.substring(0,l+1),n=!0,!e)break}else e&&n&&(i=t.substring(0,l+1));if(s.length===this.dialCodeMaxLen)break}}}return i}_getFullNumber(t){let e,i=t?this._normaliseNumerals(t):this._getTelInputValue(),{dialCode:s}=this.selectedCountryData,n=L(i);return(this.options.separateDialCode&&!i.startsWith("+")&&s&&n?`+${s}`:"")+i}_beforeSetNumber(t){let e=!!this._getDialCode(t),i=B(t,e,this.options.separateDialCode,this.selectedCountryData);return this._cap(i)}_triggerCountryChange(){this._trigger(r.COUNTRY_CHANGE)}handleAutoCountry(){this.options.initialCountry===g.AUTO&&Q.autoCountry&&(this.defaultCountry=Q.autoCountry,this.selectedCountryData.iso2||this.ui.selectedCountryInner.classList.contains(o.GLOBE)||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}handleUtils(){if(Q.utils){let t=this._getTelInputValue();t&&this._updateValFromNumber(t),this.selectedCountryData.iso2&&(this._updatePlaceholder(),this._updateMaxLength())}this.resolveUtilsScriptPromise()}destroy(){this.ui.telInput&&(this.options.allowDropdown&&this._closeDropdown(),this.abortController.abort(),this.abortController=null,this.ui.destroy(),Q.instances instanceof Map?Q.instances.delete(this.id):delete Q.instances[this.id])}getExtension(){return Q.utils?Q.utils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}getNumber(t){if(Q.utils){let{iso2:e}=this.selectedCountryData,i=this._getFullNumber(),s=Q.utils.formatNumber(i,e,t);return this._mapAsciiToUserNumerals(s)}return""}getNumberType(){return Q.utils?Q.utils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):c.UNKNOWN_NUMBER_TYPE}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(Q.utils){let{iso2:t}=this.selectedCountryData;return Q.utils.getValidationError(this._getFullNumber(),t)}return c.UNKNOWN_VALIDATION_ERROR}isValidNumber(){let{dialCode:t,iso2:e}=this.selectedCountryData;if(t===m.DIAL_CODE&&Q.utils){let t=this._getFullNumber(),i=Q.utils.getCoreNumber(t,e);if(i[0]===m.MOBILE_PREFIX&&i.length!==m.MOBILE_CORE_LENGTH)return!1}return this._validateNumber(!1)}isValidNumberPrecise(){return this._validateNumber(!0)}_utilsIsPossibleNumber(t){return Q.utils?Q.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.allowedNumberTypes):null}_validateNumber(t){if(!Q.utils)return null;if(!this.selectedCountryData.iso2)return!1;let{allowNumberExtensions:e,allowPhonewords:i}=this.options,s=this._getFullNumber();if(t?!this._utilsIsValidNumber(s):!this._utilsIsPossibleNumber(s))return!1;if(s.search(h.ALPHA_UNICODE)>-1){let t=this.selectedCountryData.iso2;return Q.utils.getExtension(s,t)?e:i}return!0}_utilsIsValidNumber(t){return Q.utils?Q.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.allowedNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!Y(e))throw Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;if(t&&e!==i||!t&&i){if(this._setCountry(e),this._updateDialCode(this.selectedCountryData.dialCode),this.options.formatOnDisplay){let t=this._getTelInputValue();
16this._updateValFromNumber(t)}this._triggerCountryChange()}}setNumber(t){let e=this._normaliseNumerals(t),i=this._updateCountryFromNumber(e);this._updateValFromNumber(e),i&&this._triggerCountryChange(),this._trigger(r.INPUT,{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},q=(t,...e)=>{Object.values(Q.instances).forEach(i=>{let s=i[t];"function"==typeof s&&s.apply(i,e)})},Q=Object.assign((t,e)=>{let i=new X(t,e);return Q.instances[i.id]=i,t.iti=i,i},{defaults:N,documentReady:()=>"complete"===document.readyState,getCountryData:()=>l,getInstance:t=>{let e=t.dataset.intlTelInputId;return e?Q.instances[e]:null},instances:{},attachUtils:t=>{if(!Q.utils&&!Q.startedLoadingUtilsScript){let e;if("function"!=typeof t)return Promise.reject(TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof t}`));try{e=Promise.resolve(t())}catch(t){return Promise.reject(t)}return Q.startedLoadingUtilsScript=!0,e.then(t=>{let e=t?.default;if(!e||"object"!=typeof e)throw TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return Q.utils=e,q("handleUtils"),!0}).catch(t=>{throw q("rejectUtilsScriptPromise",t),t})}return null},startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"26.1.1"}),Z=Q;return((n,l,r,o)=>{if(l&&"object"==typeof l||"function"==typeof l)for(let r of i(l))s.call(n,r)||void 0===r||t(n,r,{get:()=>l[r],enumerable:!(o=e(l,r))||o.enumerable});return n})(t({},"__esModule",{value:!0}),n)})().default)},40968:(t,e,i)=>{"use strict";i.d(e,{b:()=>o});var s=i(12115),n=i(63655),l=i(95155),r=s.forwardRef((t,e)=>(0,l.jsx)(n.sG.label,{...t,ref:e,onMouseDown:e=>{var i;e.target.closest("button, input, select, textarea")||(null===(i=t.onMouseDown)||void 0===i||i.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));r.displayName="Label";var o=r}
16,76981:(t,e,i)=>{"use strict";i.d(e,{C1:()=>N,bL:()=>b});var s=i(12115),n=i(6101),l=i(46081),r=i(85185),o=i(5845),u=i(45503),a=i(11275),h=i(28905),d=i(63655),c=i(95155),p="Checkbox",[C,m]=(0,l.A)(p),[y,_]=C(p);function g(t){let{__scopeCheckbox:e,checked:i,children:n,defaultChecked:l,disabled:r,form:u,name:a,onCheckedChange:h,required:d,value:C="on",internal_do_not_use_render:m}=t,[_,g]=(0,o.i)({prop:i,defaultProp:null!=l&&l,onChange:h,caller:p}),[f,I]=s.useState(null),[b,D]=s.useState(null),N=s.useRef(!1),E=!f||!!u||!!f.closest("form"),L={checked:_,disabled:r,setChecked:g,control:f,setControl:I,name:a,form:u,value:C,hasConsumerStoppedPropagationRef:N,required:d,defaultChecked:!w(l)&&l,isFormControl:E,bubbleInput:b,setBubbleInput:D};return(0,c.jsx)(y,{scope:e,...L,children:"function"==typeof m?m(L):n})}var f="CheckboxTrigger",I=s.forwardRef((t,e)=>{let{__scopeCheckbox:i,onKeyDown:l,onClick:o,...u}=t,{control:a,value:h,disabled:p,checked:C,required:m,setControl:y,setChecked:g,hasConsumerStoppedPropagationRef:I,isFormControl:b,bubbleInput:D}=_(f,i),N=(0,n.s)(e,y),E=s.useRef(C);return s.useEffect(()=>{let t=null==a?void 0:a.form;if(t){let e=()=>g(E.current);return t.addEventListener("reset",e),()=>t.removeEventListener("reset",e)}},[a,g]),(0,c.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":w(C)?"mixed":C,"aria-required":m,"data-state":A(C),"data-disabled":p?"":void 0,disabled:p,value:h,...u,ref:N,onKeyDown:(0,r.mK)(l,t=>{"Enter"===t.key&&t.preventDefault()}),onClick:(0,r.mK)(o,t=>{g(t=>!!w(t)||!t),D&&b&&(I.current=t.isPropagationStopped(),I.current||t.stopPropagation())})})});I.displayName=f;var b=s.forwardRef((t,e)=>{let{__scopeCheckbox:i,name:s,checked:n,defaultChecked:l,required:r,disabled:o,value:u,onCheckedChange:a,form:h,...d}=t;return(0,c.jsx)(g,{__scopeCheckbox:i,checked:n,defaultChecked:l,disabled:o,required:r,onCheckedChange:a,name:s,form:h,value:u,internal_do_not_use_render:t=>{let{isFormControl:s}=t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(I,{...d,ref:e,__scopeCheckbox:i}),s&&(0,c.jsx)(L,{__scopeCheckbox:i})]})}})});b.displayName=p;var D="CheckboxIndicator",N=s.forwardRef((t,e)=>{let{__scopeCheckbox:i,forceMount:s,...n}=t,l=_(D,i);return(0,c.jsx)(h.C,{present:s||w(l.checked)||!0===l.checked,children:(0,c.jsx)(d.sG.span,{"data-state":A(l.checked),"data-disabled":l.disabled?"":void 0,...n,ref:e,style:{pointerEvents:"none",...t.style}})})});N.displayName=D;var E="CheckboxBubbleInput",L=s.forwardRef((t,e)=>{let{__scopeCheckbox:i,...l}=t,{control:r,hasConsumerStoppedPropagationRef:o,checked:h,defaultChecked:p,required:C,disabled:m,name:y,value:g,form:f,bubbleInput:I,setBubbleInput:b}=_(E,i),D=(0,n.s)(e,b),N=(0,u.Z)(h),L=(0,a.X)(r);s.useEffect(()=>{if(!I)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,e=!o.current;if(N!==h&&t){let i=new Event("click",{bubbles:e});I.indeterminate=w(h),t.call(I,!w(h)&&h),I.dispatchEvent(i)}},[I,N,h,o]);let A=s.useRef(!w(h)&&h);return(0,c.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:A.current,required:C,disabled:m,name:y,value:g,form:f,...l,tabIndex:-1,ref:D,style:{...l.style,...L,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function w(t){return"indeterminate"===t}function A(t){return w(t)?"indeterminate":t?"checked":"unchecked"}L.displayName=E},82805:()=>{}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.