PageSourceSearch

https://www.deeptoplay.com/_next/static/chunks/5307-d74a35042efe8769.js

js deeptoplay.com collected 2026-09-24 13:38:54 UTC 33,658 bytes, 20 lines download raw bytes

vendor: 4,423 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5307],{3916:function(){},66431:function(e,t,n){"use strict";n.d(t,{VM:function(){return m},uZ:function(){return h}});var r=n(2265),a=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&d(e,n,t[n]);if(l)for(var n of l(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>o(e,i(t)),f=(e,t)=>{var n={};for(var r in e)s.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))0>t.indexOf(r)&&u.call(e,r)&&(n[r]=e[r]);return n},m=r.createContext({}),h=r.forwardRef((e,t)=>{let n;var a,o,i,l,s,{value:u,onChange:d,maxLength:h,textAlign:C="left",pattern:b="^\\d+$",inputMode:v="numeric",onComplete:w,pushPasswordManagerStrategy:S="increase-width",containerClassName:k,noScriptCSSFallback:D=y,render:E,children:x}=e,P=f(e,["value","onChange","maxLength","textAlign","pattern","inputMode","onComplete","pushPasswordManagerStrategy","containerClassName","noScriptCSSFallback","render","children"]);let[N,M]=r.useState("string"==typeof P.defaultValue?P.defaultValue:""),A=null!=u?u:N,$=(n=r.useRef(),r.useEffect(()=>{n.current=A}),n.current),I=r.useCallback(e=>{null==d||d(e),M(e)},[d]),R=r.useMemo(()=>b?"string"==typeof b?new RegExp(b):b:null,[b]),_=r.useRef(null),B=r.useRef(null),L=r.useRef({value:A,onChange:I,isIOS:"undefined"!=typeof window&&(null==(o=null==(a=null==window?void 0:window.CSS)?void 0:a.supports)?void 0:o.call(a,"-webkit-touch-callout","none"))}),j=r.useRef({prev:[null==(i=_.current)?void 0:i.selectionStart,null==(l=_.current)?void 0:l.selectionEnd,null==(s=_.current)?void 0:s.selectionDirection]});r.useImperativeHandle(t,()=>_.current,[]),r.useEffect(()=>{let e=_.current,t=B.current;if(!e||!t)return;function n(){if(document.activeElement!==e){W(null),K(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,a=e.maxLength,o=e.value,i=j.current.prev,l=-1,s=-1,u;if(0!==o.length&&null!==t&&null!==n){let e=t===n,r=t===o.length&&o.length<a;if(e&&!r){if(0===t)l=0,s=1,u="forward";else if(t===a)l=t-1,s=t,u="backward";else if(a>1&&o.length>1){let e=0;if(null!==i[0]&&null!==i[1]){u=t<i[1]?"backward":"forward";let n=i[0]===i[1]&&i[0]<a;"backward"!==u||n||(e=-1)}l=e+t,s=e+t+1}}-1!==l&&-1!==s&&l!==s&&_.current.setSelectionRange(l,s,u)}let d=-1!==l?l:t,c=-1!==s?s:n,p=null!=u?u:r;W(d),K(c),j.current.prev=[d,c,p]}if(L.current.value!==e.value&&L.current.onChange(e.value),j.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&O(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";g(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),g(e.sheet,`[data-input-otp]:autofill { ${t} }`),g(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),g(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),g(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let a=new ResizeObserver(r);return a.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),a.disconnect()}},[]);let[T,z]=r.useState(!1),[F,O]=r.useState(!1),[V,W]=r.useState(null),[G,K]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=_.current)||e.dispatchEvent(new Event("input"));let a=null==(t=_.current)?void 0:t.selectionStart,o=null==(n=_.current)?void 0:n.selectionEnd,i=null==(r=_.current)?void 0:r.selectionDirection;null!==a&&null!==o&&(W(a),K(o),j.current.prev=[a,o,i])},0),setTimeout(e,10),setTimeout(e,50)},[A,F]),r.useEffect(()=>
1{void 0!==$&&A!==$&&$.length<h&&A.length===h&&(null==w||w(A))},[h,w,$,A]);let H=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:a}){let o=r.useRef({done:!1,refocused:!1}),[i,l]=r.useState(!1),[s,u]=r.useState(!1),[d,c]=r.useState(!1),p=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&i&&s,[i,s,n]),f=r.useCallback(()=>{let r=e.current,a=t.current;if(!r||!a||d||"none"===n)return;let i=r.getBoundingClientRect().left+r.offsetWidth,s=r.getBoundingClientRect().top+r.offsetHeight/2;if(!(0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(i-18,s)===r)&&(l(!0),c(!0),!o.current.refocused&&document.activeElement===a)){let e=[a.selectionStart,a.selectionEnd];a.blur(),a.focus(),a.setSelectionRange(e[0],e[1]),o.current.refocused=!0}},[e,t,d,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){u(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let a=setInterval(r,1e3);return()=>{clearInterval(a)}},[e,n]),r.useEffect(()=>{let e=a||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(f,0),o=setTimeout(f,2e3),i=setTimeout(f,5e3),l=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(o),clearTimeout(i),clearTimeout(l)}},[t,a,n,f]),{hasPWMBadge:i,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:B,inputRef:_,pushPasswordManagerStrategy:S,isFocused:F}),q=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,h);if(t.length>0&&R&&!R.test(t)){e.preventDefault();return}"string"==typeof $&&t.length<$.length&&document.dispatchEvent(new Event("selectionchange")),I(t)},[h,I,$,R]),U=r.useCallback(()=>{var e;if(_.current){let t=Math.min(_.current.value.length,h-1),n=_.current.value.length;null==(e=_.current)||e.setSelectionRange(t,n),W(t),K(n)}O(!0)},[h]),Z=r.useCallback(e=>{var t,n;let r=_.current;if(!L.current.isIOS||!e.clipboardData||!r)return;let a=e.clipboardData.getData("text/plain");e.preventDefault();let o=null==(t=_.current)?void 0:t.selectionStart,i=null==(n=_.current)?void 0:n.selectionEnd,l=(o!==i?A.slice(0,o)+a+A.slice(i):A.slice(0,o)+a+A.slice(o)).slice(0,h);if(l.length>0&&R&&!R.test(l))return;r.value=l,I(l);let s=Math.min(l.length,h-1),u=l.length;r.setSelectionRange(s,u),W(s),K(u)},[h,I,R,A]),J=r.useMemo(()=>({position:"relative",cursor:P.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[P.disabled]),Q=r.useMemo(()=>({position:"absolute",inset:0,width:H.willPushPWMBadge?`calc(100% + ${H.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:H.willPushPWMBadge?`inset(0 ${H.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:C,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[H.PWM_BADGE_SPACE_WIDTH,H.willPushPWMBadge,C]),Y=r.useMemo(()=>r.createElement("input",p(c({autoComplete:P.autoComplete||"one-time-code"},P),{"data-input-otp":!0,"data-input-otp-mss":V,"data-input-otp-mse":G,inputMode:v,pattern:null==R?void 0:R.source,style:Q,maxLength:h,value:A,ref:_,onPaste:e=>{var t;Z(e),null==(t=P.onPaste)||t.call(P,e)},onChange:q,onMouseOver:e=>{var t;z(!0),null==(t=P.onMouseOver)||t.call(P,e)},onMouseLeave:e=>{var t;z(!1),null==(t=P.onMouseLeave)||t.call(P,e)},onFocus:e=>{var t;U(),null==(t=P.onFocus)||t.call(P,e)},onBlur:e=>{var t;O(!1),null==(t=P.onBlur)||t.call(P,e)}})),[q,U,Z,v,Q,h,G,V,P,null==R?void 0:R.source,A]),X=r.useMemo(()=>({slots:Array.from({length:h}).map((e,t)=>{let n=F&&null!==V&&null!==G&&(V===G&&t===V||t>=V&&t<G),r=void 0!==A[t]?A[t]:null;return{char:r,isActive:n,hasFakeCaret:n&&null===r}}),isFocused:F,isHovering:!P.disabled&&T}),[F,T,h,G,V,P.disabled,A]),ee=r.useMemo(()=>E?E(X):r.createElement(m.Provider,{value:X},x),[x,X,E]);return r.createElement(r.Fragment,null,null!==D&&r.createElement("noscript",null,r.createElement("style",null,D)),r.createElement("div",{ref:B,"data-input-otp-container":!0,style:J,className:k},ee,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Y)))});function g(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}h.displayName="Input";var y=`
2[data-input-otp] {
3  --nojs-bg: white !important;
4  --nojs-fg: black !important;
5
6  background-color: var(--nojs-bg) !important;
7  color: var(--nojs-fg) !important;
8  caret-color: var(--nojs-fg) !important;
9  letter-spacing: .25em !important;
10  text-align: center !important;
11  border: 1px solid var(--nojs-fg) !important;
12  border-radius: 4px !important;
13  width: 100% !important;
14}
15@media (prefers-color-scheme: dark) {
16  [data-input-otp] {
17    --nojs-bg: black !important;
18    --nojs-fg: white !important;
19  }
20}`},97948:function(e,t,n){"use strict";n.d(t,{sb:function(){return U}});var r=n(2265),a=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."}
20,0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["C\xf4te d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["R\xe9union","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["S
20omalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],o=(...e)=>e.filter(e=>!!e).join(" ").trim(),i=(...e)=>o(...e).split(" ").map(e=>`react-international-phone-${e}`).join(" "),l=({addPrefix:e,rawClassNames:t})=>o(i(...e),...t),s=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:a=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),i=e.slice(r),l=o,s=0;for(let e of t.split("")){if(s>=i.length){if(!a&&e!==n){l+=e;continue}break}e===n?(l+=i[s],s+=1):l+=e}return l},u=e=>!!e&&/^\d+$/.test(e),d=e=>e.replace(/\D/g,""),c=(e,t)=>{let n=e.style.display;"block"!==n&&(e.style.display="block");let r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=a.top-r.top,i=r.bottom-a.bottom;o>=0&&i>=0||(Math.abs(o)<Math.abs(i)?e.scrollTop+=o:e.scrollTop-=i),e.style.display=n},p=()=>!(typeof window>"u")&&window.navigator.userAgent.toLowerCase().includes("macintosh"),f=(e,t)=>{let n,r=!t.disableDialCodeAndPrefix&&t.forceDialCode,a=!t.disableDialCodeAndPrefix&&t.insertDialCodeOnEmpty,o=e,i=e=>t.trimNonDigitsEnd?e.trim():e;if(!o)return i(a&&!o.length||r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:o);
20if((o=d(o))===t.dialCode&&!t.disableDialCodeAndPrefix)return i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(o)&&!t.disableDialCodeAndPrefix)return i(r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${o}`);if(!o.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(r)return i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(o.length<t.dialCode.length)return i(`${t.prefix}${o}`)}let{phoneLeftSide:l,phoneRightSide:u}=(n=t.dialCode.length,{phoneLeftSide:o.slice(0,n),phoneRightSide:o.slice(n)});return l=`${t.prefix}${l}${t.charAfterDialCode}`,u=s({value:u,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&0===u.length}),t.disableDialCodeAndPrefix&&(l=""),i(`${l}${u}`)},m=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:a=0,deletion:o})=>{if(r<a)return a;if(!e)return n.length;let i=null;for(let e=r-1;e>=0;e-=1)if(u(t[e])){i=e;break}if(null===i){for(let e=0;e<t.length;e+=1)if(u(n[e]))return e;return t.length}let l=0;for(let e=0;e<i;e+=1)u(t[e])&&(l+=1);let s=0,d=0;for(let e=0;e<n.length&&(s+=1,u(n[e])&&(d+=1),!(d>=l+1));e+=1);if("backward"!==o)for(;!u(n[s])&&s<n.length;)s+=1;return s},h=({phone:e,prefix:t})=>e?`${t}${d(e)}`:"";function g({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:a,prefix:o,charAfterDialCode:i,forceDialCode:l,disableDialCodeAndPrefix:s,defaultMask:u,countryGuessingEnabled:d,disableFormatting:c}){let p=e;s&&(p=p.startsWith(`${o}`)?p:`${o}${t.dialCode}${p}`);let m=d?F({phone:p,countries:a,currentCountryIso2:t?.iso2}):void 0,g=m?.country??t,y=f(p,{prefix:o,mask:L({phone:p,country:g,defaultMask:u,disableFormatting:c}),maskChar:S,dialCode:g.dialCode,trimNonDigitsEnd:r,charAfterDialCode:i,forceDialCode:l,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:s}),C=d&&!m?.fullDialCodeMatch?t:g;return{phone:h({phone:s?`${C.dialCode}${y}`:y,prefix:o}),inputValue:y,country:C}}var y=e=>{if(e?.toLocaleLowerCase().includes("delete"))return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"},C=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:a,charAfterDialCode:o,forceDialCode:i,disableDialCodeAndPrefix:l,countryGuessingEnabled:s,defaultMask:d,disableFormatting:c,countries:p})=>{let f=e.nativeEvent,C=f.inputType,b=y(C),v=!!C?.startsWith("insertFrom"),w="insertText"===C,S=f?.data||void 0,k=e.target.value,D=e.target.selectionStart??0;if(C?.includes("history"))return{inputValue:r,phone:h({phone:r,prefix:a}),cursorPosition:r.length,country:t};if(w&&!u(S)&&k!==a)return{inputValue:r,phone:h({phone:l?`${t.dialCode}${r}`:r,prefix:a}),cursorPosition:D-(S?.length??0),country:t};if(i&&!k.startsWith(`${a}${t.dialCode}`)&&!v){let e=k?r:`${a}${t.dialCode}${o}`;return{inputValue:e,phone:h({phone:e,prefix:a}),cursorPosition:a.length+t.dialCode.length+o.length,country:t}}let{phone:E,inputValue:x,country:P}=g({value:k,country:t,trimNonDigitsEnd:"backward"===b,insertDialCodeOnEmpty:n,countryGuessingEnabled:s,countries:p,prefix:a,charAfterDialCode:o,forceDialCode:i,disableDialCodeAndPrefix:l,disableFormatting:c,defaultMask:d}),N=m({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:k,phoneAfterFormatted:x,leftOffset:i?a.length+t.dialCode.length+o.length:0,deletion:b});return{phone:E,inputValue:x,cursorPosition:N,country:P}},b=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0},v=()=>{let e=(0,r.useRef)(),t=(0,r.useRef)(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},w={size:20,overrideLastItemDebounceMS:-1},S=".",k="us",D="",E="+",x="............",P=" ",N=200,M=!1,A=!1,$=!1,I=!1,R=!1,_=a,B=({defaultCountry:e=k,value:t=D,countries:n=_,prefix:a=E,defaultMask:o=x,charAfterDialCode:i=P,historySaveDebounceMS:l=N,disableCountryGuess:s=M,disableDialCodePrefill:u=A,forceDialCode:d=$,disableDialCodeAndPrefix:c=I,disableFormatting:f=R,onChange:m,inputRef:h})=>{let y={countries:n,prefix:a,charAfterDialCode:i,forceDialCode:!c&&d,disableDialCodeAndPrefix:c,defaultMask:o,countryGuessingEnabled:!s,disableFormatting:f},S=(0,r.useRef)(null),B=h||S,L=e=>{Promise.resolve().then(()=>{typeof window>"u"||B.current!==document?.activeElement||B.current?.setSelectionRange(e,e)})},[{phone:j,inputValue:T,country:F},O,V,W]=function(e,t){let{size:n,overrideLastItemDebounceMS:a,onChange:o}={...w,...t},[i,l]=(0,r.useState)(e),[s,u]=(0,r.useState)([i]),[d,c]=(0,r.useState)(0),p=v();return[i,(e,t)=>{if("object"==typeof e&&"object"==typeof i&&b(e,i)||e===i)return;let r=p.check();if(t?.overrideLastItem!==void 0?t.overrideLastItem:!(!(a>0)||void 0===r||r>a))u(t=>[...t.slice(0,d),e]);else{let t=s.length>=n;u(n=>[...n.slice(t?1:0,d+1),e]),t||c(e=>e+1)}l(e),o?.(e)},()=>{if(d<=0)return{success:!1};let e=s[d-1];return l(e),c(e=>e-1),o?.(e),{success:!0,value:e}},()=>{if(d+1>=s.length)return{success:!1};let e=s[d+1];return l(e),c(e=>e+1),o?.(e),{success:!0,value:e}}]}(()=>{let r=z({value:e,field:"iso2",countries:n});r||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let{phone:a,inputValue:o,country:i}=g({value:t,country:r||z({value:"us",field:"iso2",countries:n}),insertDialCodeOnEmpty:!u,...y});return L(o.length),{phone:a,inputValue:o,country:i.iso2}},{overrideLastItemDebounceMS:l,onChange:({inputValue:e,phone:t,country:n})=>{m&&m({phone:t,inputValue:e,country:G(n)})}}),G=(0,r.useCallback)(e=>z({value:e,field:"iso2",countries:n}),[n]),K=(0,r.useMemo)(()=>G(F),[F,G]);(0,r.useEffect)(()=>{let e=B.current;if(!e)return;let t=e=>
20{if(!e.key)return;let t=e.ctrlKey,n=e.metaKey,r=e.shiftKey;if("z"===e.key.toLowerCase()){if(p()){if(!n)return}else if(!t)return;r?W():V()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[B,V,W]);let[H,q]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!H){q(!0),t!==j&&m?.({inputValue:T,phone:j,country:K});return}if(t===j)return;let{phone:e,inputValue:n,country:r}=g({value:t,country:K,insertDialCodeOnEmpty:!u,...y});O({phone:e,inputValue:n,country:r.iso2})},[t]),{phone:j,inputValue:T,country:K,setCountry:(e,t={focusOnInput:!1})=>{let r=z({value:e,field:"iso2",countries:n});if(!r){console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);return}O({inputValue:c?"":`${a}${r.dialCode}${i}`,phone:`${a}${r.dialCode}`,country:r.iso2}),t.focusOnInput&&Promise.resolve().then(()=>{B.current?.focus()})},handlePhoneValueChange:e=>{e.preventDefault();let{phone:n,inputValue:r,country:a,cursorPosition:o}=C(e,{country:K,phoneBeforeInput:T,insertDialCodeOnEmpty:!1,...y});return O({inputValue:r,phone:n,country:a.iso2}),L(o),t},inputRef:B}},L=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let a=t.format,o=e=>r?e.replace(RegExp(`[^${S}]`,"g"),""):e;if(!a)return o(n);if("string"==typeof a)return o(a);if(!a.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let i=Object.keys(a).find(n=>{if("default"===n)return!1;if(!("/"===n.charAt(0)&&"/"===n.charAt(n.length-1)))return console.error(`[react-international-phone]: format regex "${n}" for ${t.iso2} is not valid`),!1;let r=new RegExp(n.substring(1,n.length-1)),a=e.replace(t.dialCode,"");return r.test(d(a))});return o(i?a[i]:a.default)},j=e=>{let[t,n,r,a,o,i]=e;return{name:t,iso2:n,dialCode:r,format:a,priority:o,areaCodes:i}},T=e=>`Field "${e}" is not supported`,z=({field:e,value:t,countries:n=a})=>{if(["priority"].includes(e))throw Error(T(e));let r=n.find(n=>t===j(n)[e]);if(r)return j(r)},F=({phone:e,countries:t=a,currentCountryIso2:n})=>{let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let o=d(e);if(!o)return r;let i=r,l=({country:e,fullDialCodeMatch:t})=>{let n=e.dialCode===i.country?.dialCode,r=(e.priority??0)<(i.country?.priority??0);(!n||r)&&(i={country:e,fullDialCodeMatch:t})};for(let e of t){let t=j(e),{dialCode:n,areaCodes:r}=t;if(o.startsWith(n)){let e=!i.country||Number(n)>=Number(i.country.dialCode);if(r){let e=o.substring(n.length);for(let n of r)if(e.startsWith(n))return{country:t,fullDialCodeMatch:!0}}(e||n===o||!i.fullDialCodeMatch)&&l({country:t,fullDialCodeMatch:!0})}i.fullDialCodeMatch||o.length<n.length&&n.startsWith(o)&&(!i.country||Number(n)<=Number(i.country.dialCode))&&l({country:t,fullDialCodeMatch:!1})}if(n){let e=z({value:n,field:"iso2",countries:t});if(!e)return i;let r=!!e&&(e=>{if(!e?.areaCodes)return!1;let t=o.substring(e.dialCode.length);return e.areaCodes.some(e=>e.startsWith(t))})(e);i&&i.country?.dialCode===e.dialCode&&i.country!==e&&i.fullDialCodeMatch&&(!e.areaCodes||r)&&(i={country:e,fullDialCodeMatch:!0})}return i},O=(e,t)=>Number(parseInt(e,16)+t).toString(16),V="abcdefghijklmnopqrstuvwxyz".split("").reduce((e,t,n)=>({...e,[t]:O("1f1e6",n)}),{}),W=e=>[V[e[0]],V[e[1]]].join("-"),G=({iso2:e,size:t,src:n,protocol:a="https",disableLazyLoading:o,className:i,style:s,...u})=>e?r.createElement("img",{className:l({addPrefix:["flag-emoji"],rawClassNames:[i]}),src:(()=>{if(n)return n;let t=W(e);return`${a}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${t}.svg`})(),width:t,height:t,draggable:!1,"data-country":e,loading:o?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...u}):r.createElement("img",{className:l({addPrefix:["flag-emoji"],rawClassNames:[i]}),width:t,height:t,...u}),K=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:o=a,preferredCountries:i=[],flags:s,onSelect:u,onClose:d,...p})=>{let f=(0,r.useRef)(null),m=(0,r.useRef)(),h=(0,r.useMemo)(()=>{if(!i||!i.length)return o;let e=[],t=[...o];for(let n of i){let r=t.findIndex(e=>j(e).iso2===n);if(-1!==r){let n=t.splice(r,1)[0];e.push(n)}}return e.concat(t)},[o,i]),g=(0,r.useRef)({updatedAt:void 0,value:""}),y=e=>{let t=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>1e3;g.current={value:t?e:`${g.current.value}${e}`,updatedAt:new Date};let n=h.findIndex(e=>j(e).name.toLowerCase().startsWith(g.current.value));-1!==n&&v(n)},C=(0,r.useCallback)(e=>h.findIndex(t=>j(t).iso2===e),[h]),[b,v]=(0,r.useState)(C(n)),w=()=>{m.current!==n&&v(C(n))},S=(0,r.useCallback)(e=>{v(C(e.iso2)),u?.(e)},[u,C]),k=e=>{let t=h.length-1,n=n=>"prev"===e?n-1:"next"===e?n+1:"last"===e?t:0;v(e=>{let r=n(e);return r<0?0:r>t?t:r})},D=(0,r.useCallback)(()=>
20{if(!f.current||void 0===b)return;let e=j(h[b]).iso2;if(e===m.current)return;let t=f.current.querySelector(`[data-country="${e}"]`);t&&(c(f.current,t),m.current=e)},[b,h]);return(0,r.useEffect)(()=>{D()},[b,D]),(0,r.useEffect)(()=>{f.current&&(e?f.current.focus():w())},[e]),(0,r.useEffect)(()=>{w()},[n]),r.createElement("ul",{ref:f,role:"listbox",className:l({addPrefix:["country-selector-dropdown"],rawClassNames:[p.className]}),style:{display:e?"block":"none",...p.style},onKeyDown:e=>{if(e.stopPropagation(),"Enter"===e.key){e.preventDefault(),S(j(h[b]));return}if("Escape"===e.key){d?.();return}if("ArrowUp"===e.key){e.preventDefault(),k("prev");return}if("ArrowDown"===e.key){e.preventDefault(),k("next");return}if("PageUp"===e.key){e.preventDefault(),k("first");return}if("PageDown"===e.key){e.preventDefault(),k("last");return}" "===e.key&&e.preventDefault(),1!==e.key.length||e.altKey||e.ctrlKey||e.metaKey||y(e.key.toLocaleLowerCase())},onBlur:d,tabIndex:-1,"aria-activedescendant":`react-international-phone__${j(h[b]).iso2}-option`},h.map((e,a)=>{let o=j(e),u=o.iso2===n,d=a===b,c=i.includes(o.iso2),f=a===i.length-1,m=s?.find(e=>e.iso2===o.iso2);return r.createElement(r.Fragment,{key:o.iso2},r.createElement("li",{"data-country":o.iso2,role:"option","aria-selected":u,"aria-label":`${o.name} ${t}${o.dialCode}`,id:`react-international-phone__${o.iso2}-option`,className:l({addPrefix:["country-selector-dropdown__list-item",c&&"country-selector-dropdown__list-item--preferred",u&&"country-selector-dropdown__list-item--selected",d&&"country-selector-dropdown__list-item--focused"],rawClassNames:[p.listItemClassName]}),onClick:()=>S(o),style:p.listItemStyle,title:o.name},r.createElement(G,{iso2:o.iso2,src:m?.src,className:l({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[p.listItemFlagClassName]}),style:p.listItemFlagStyle}),r.createElement("span",{className:l({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[p.listItemCountryNameClassName]}),style:p.listItemCountryNameStyle},o.name),r.createElement("span",{className:l({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[p.listItemDialCodeClassName]}),style:p.listItemDialCodeStyle},t,o.dialCode)),f?r.createElement("hr",{className:l({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[p.preferredListDividerClassName]}),style:p.preferredListDividerStyle}):null)}))},H=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:o,countries:i=a,preferredCountries:s=[],flags:u,renderButtonWrapper:d,...c})=>{let p,f,[m,h]=(0,r.useState)(!1),g=(0,r.useMemo)(()=>{if(e)return z({value:e,field:"iso2",countries:i})},[i,e]),y=(0,r.useRef)(null);return r.createElement("div",{className:l({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:y},(p={title:g?.name,onClick:()=>h(e=>!e),onMouseDown:e=>e.preventDefault(),onKeyDown:e=>{e.key&&["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),h(!0))},disabled:o||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":m},f=r.createElement("div",{className:l({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},r.createElement(G,{iso2:e,src:u?.find(t=>t.iso2===e)?.src,className:l({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!o&&r.createElement("div",{className:l({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",m&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle})),d?d({children:f,rootProps:p}):r.createElement("button",{...p,type:"button",className:l({addPrefix:["country-selector-button",m&&"country-selector-button--active",n&&"country-selector-button--disabled",o&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},f)),r.createElement(K,{show:m,countries:i,preferredCountries:s,flags:u,onSelect:e=>{h(!1),t?.(e)},selectedCountry:e,onClose:()=>{h(!1)},...c.dropdownStyleProps}))},q=({dialCode:e,prefix:t,disabled:n,style:a,className:o})=>r.createElement("div",{className:l({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[o]}),style:a},`${t}${e}
20`),U=(0,r.forwardRef)(({value:e,onChange:t,countries:n=a,preferredCountries:o=[],hideDropdown:i,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:u,flags:d,style:c,className:p,inputStyle:f,inputClassName:m,countrySelectorStyleProps:h,dialCodePreviewStyleProps:g,inputProps:y,placeholder:C,disabled:b,name:v,onFocus:w,onBlur:S,required:k,autoFocus:D,...E},x)=>{let{phone:P,inputValue:N,inputRef:M,country:A,setCountry:$,handlePhoneValueChange:I}=B({value:e,countries:n,...E,onChange:e=>{t?.(e.phone,{country:e.country,inputValue:e.inputValue})}}),R=E.disableDialCodeAndPrefix&&s&&A?.dialCode;return(0,r.useImperativeHandle)(x,()=>M.current?Object.assign(M.current,{setCountry:$,state:{phone:P,inputValue:N,country:A}}):null,[M,$,P,N,A]),r.createElement("div",{ref:x,className:l({addPrefix:["input-container"],rawClassNames:[p]}),style:c},r.createElement(H,{onSelect:e=>$(e.iso2,{focusOnInput:!u}),flags:d,selectedCountry:A.iso2,countries:n,preferredCountries:o,disabled:b,hideDropdown:i,...h}),R&&r.createElement(q,{dialCode:A.dialCode,prefix:E.prefix??"+",disabled:b,...g}),r.createElement("input",{onChange:I,value:N,type:"tel",ref:M,className:l({addPrefix:["input",b&&"input--disabled"],rawClassNames:[m]}),placeholder:C,disabled:b,style:f,name:v,onFocus:w,onBlur:S,autoFocus:D,required:k,...y}))})}}]);

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.