callix-dialer-widget 1.3.19 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,5 +23,5 @@
23
23
  * Callix Client SDK React
24
24
  * @version 0.0.8
25
25
  * @license Proprietary
26
- */var wf=function(){if(gf)return vf;gf=1;var e,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{CallixClientParams:()=>s.CallixClientParams,CallixClientProvider:()=>m,CallixClientSdk:()=>s.CallixClientSdk,useCallOperator:()=>C,useCallOperatorAudioInputMuted:()=>M,useCallOperatorAudioOutputControls:()=>P,useCallOperatorAudioOutputMuted:()=>D,useCallOperatorAudioOutputVolume:()=>k,useCallOperatorBreaks:()=>L,useCallOperatorControls:()=>E,useCallOperatorCurrentCall:()=>T,useCallOperatorCurrentCallControls:()=>I,useCallOperatorCurrentCallInfo:()=>A,useCallOperatorDiscardQualifications:()=>O,useCallOperatorEventListener:()=>R,useCallOperatorState:()=>x,useCallOperatorSuccessQualifications:()=>N,useCallixClient:()=>p}),e=a,vf=((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let d of i(t))!o.call(e,d)&&d!==a&&n(e,d,{get:()=>t[d],enumerable:!(s=r(t,d))||s.enumerable});return e})(n({},"__esModule",{value:!0}),e);var s=df(),d=df(),u=pf(),l=_f(),c=$(),f=(0,u.createScope)(null),h=(0,u.molecule)((e,t)=>{let n=t(f);if(!n)throw new Error("Missing CallixClient parameters. You must wrap your component tree with CallixClientProvider.");return new d.CallixClientSdk(n)});function p(){return(0,l.useMolecule)(h)}function m({children:e,...t}){return(0,c.jsx)(l.ScopeProvider,{scope:f,value:t,children:e})}var v=pf(),g=_f(),y=t,b=t;function _(e){return(0,b.useSyncExternalStore)(e.subscribe.bind(e),e.get.bind(e),e.get.bind(e))}var w=(0,v.molecule)(e=>{let t=e(h).createCallOperator();return(0,v.onMount)(()=>{t.start();let e=()=>{t.stop()};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),(0,v.onUnmount)(()=>{t.stop()}),t});function C(){return(0,g.useMolecule)(w)}function x(){let e=C(),t=_(e.currentStateKeys);for(let n of t){if("startup.error"===n||"manualCall.callFailed"===n)return{state:"error"};if("startup"===n)return{state:"starting"};if("offline"===n||"available.networkDown"===n||"onBreak.networkDown"===n)return{state:"offline"};if("onBreak"===n)return{state:"onBreak",break:e.currentBreak.get()};if("available.callRinging"===n)return{state:"callRinging",call:e.currentCall.get()};if("manualCall.callSetup"===n)return{state:"manualCallSetup",call:e.currentCall.get()};if("manualCall.callRinging"===n)return{state:"manualCallRinging",call:e.currentCall.get()};if("available"===n||"manualCall.idle"===n)return{state:"idle"};if("inCall"===n)return{state:"callInProgress",call:e.currentCall.get()};if("afterCall"===n)return{state:"afterCall"}}}function S(e,t,n){return Object.fromEntries(n.map(n=>[n,(0,y.useCallback)((...r)=>{if(t){if("function"==typeof t[n])return(null==t?void 0:t[n]).apply(t,r);console.warn(`Method ${String(n)} is not a function on obj ${e}.`)}else console.warn(`Obj ${e} is null or undefined, cannot call method ${String(n)}.`)},[t])]))}function E(){return S("callOperator",C(),["becomeAvailable","goOffline","enterOnBreak","makeManualCall","finishAfterCall"])}function T(){return _(C().currentCall)}function A(){return _(C().currentCallInfo)}function N(){return _(C().successQualifications)}function O(){return _(C().discardQualifications)}function I(){return S("currentCall",T(),["answer","reject","hangup","isOnHold","hold","unhold","isMuted","mute","unmute"])}function R(e,t){let n=C(),r=(0,y.useRef)(t);r.current=t,(0,y.useEffect)(()=>{if(n)return n.on(e,(...e)=>{r.current.apply(null,e)})},[e,n])}function P(){return S("audioOutput",C().audioOutput,["setVolume","setMute"])}function k(){let e=C(),{setVolume:t}=P();return[_(e.audioOutput.volume),t]}function D(){let e=C(),{setMute:t}=P();return[_(e.audioOutput.isMuted),t]}function M(){let e=T(),[t,n]=(0,y.useState)((null==e?void 0:e.isMuted())??!1);return[t,(0,y.useCallback)(t=>{e&&(t?e.mute():e.unmute(),n(t))},[e])]}function L(){return _(C().breaks)}return vf}();const Cf={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function xf(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Sf={}.constructor;function Ef(e){return null!=e&&e.constructor===Sf}function Tf(e){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nf(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Of(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Of(e){var t=function(e,t){if("object"!=Tf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Tf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Tf(t)?t:t+""}var If=" ext. ",Rf=/^\d+$/,Pf=function(){return Nf(function e(t){Af(this,e),Uf(t),this.metadata=t,qf.call(this,t)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Rf.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new kf(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new kf(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),kf=function(){return Nf(function e(t,n){Af(this,e),this.globalMetadataObject=n,this.metadata=t,qf.call(this,n.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new Df(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&jf(this.types(),e))return new Lf(jf(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?If:this.metadata[13]||If}}])}(),Df=function(){return Nf(function e(t,n){Af(this,e),this._format=t,this.metadata=n},[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Mf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),Mf=/^\(?\$1\)?$/,Lf=function(){return Nf(function e(t,n){Af(this,e),this.type=t,this.metadata=n},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function jf(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Uf(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Ef(e)||!Ef(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Ef(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Ff(e)+": "+e,"."))}var Ff=function(e){return Tf(e)};function Bf(e,t){if((t=new Pf(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function qf(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===xf(t,"1.2.0")?this.v2=!0:-1===xf(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function Hf(e,t,n){return function(e,t,n,r){t&&(r=new Pf(r.metadata)).selectNumberingPlan(t);var i=r.type(n),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var a=e.length,s=o[0];if(s===a)return"IS_POSSIBLE";if(s>a)return"TOO_SHORT";if(o[o.length-1]<a)return"TOO_LONG";return o.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,void 0,n)}function zf(e,t,n){return"IS_POSSIBLE"===Hf(e,t,n)}function Gf(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Wf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vf(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Vf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Kf=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Yf(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new Pf(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Gf(r,n.nationalNumberPattern())){if(Xf(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?Xf(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i,o=Wf(Kf);!(i=o()).done;){var a=i.value;if(Xf(r,a,n))return a}}}}function Xf(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Gf(e,t.pattern()))}function Jf(e,t,n){var r=new Pf(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return function(e,t,n){var r=new Pf(n);if(r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)}):[]}var Zf="0-90-9٠-٩۰-۹",Qf="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),eh=new RegExp("(["+Zf+"])");function th(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return nh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nh(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rh(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:function(e,t){var n=t.countries,r=t.metadata;r=new Pf(r);for(var i,o=th(n);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(Yf({phone:e,country:a},void 0,r.metadata))return a}}(n,{countries:i,metadata:r.metadata})}function ih(e,t,n){var r=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,s=r.length-1,d=s>0&&r[s];if(t.nationalPrefixTransformRule()&&d)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=r[1]);else{var u=r[0];i=e.slice(u.length),d&&(o=r[1])}if(d){var l=e.indexOf(r[1]);e.slice(0,l)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}(e,n),i=r.carrierCode,o=r.nationalNumber;if(o!==e){if(!function(e,t,n){if(Gf(e,n.nationalNumberPattern())&&!Gf(t,n.nationalNumberPattern()))return!1;return!0}(e,o,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=rh(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!function(e,t,n){switch(Hf(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:i}}function oh(e,t,n,r,i){if(!e)return{};var o;if("+"!==e[0]){var a=function(e,t,n,r){if(t){var i=new Pf(r);i.selectNumberingPlan(t,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(eh);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}(e,n,r,i);if(!a||a===e){if(n||r){var s=function(e,t,n,r,i){var o=n?Bf(n,i):r;if(0===e.indexOf(o)){(i=new Pf(i)).selectNumberingPlan(n,o);var a=e.slice(o.length),s=ih(a,t,i).nationalNumber,d=ih(e,t,i).nationalNumber;if(!Gf(d,i.nationalNumberPattern())&&Gf(s,i.nationalNumberPattern())||"TOO_LONG"===Hf(d,t,i))return{countryCallingCode:o,number:a}}return{number:e}}(e,t,n,r,i),d=s.countryCallingCode,u=s.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:u}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};i=new Pf(i);for(var l=2;l-1<=3&&l<=e.length;){var c=e.slice(1,l);if(i.hasCallingCode(c))return i.selectNumberingPlan(c),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:e.slice(l)};l++}return{}}var ah=/(\$\d)/;function sh(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,o=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(ah,t.nationalPrefixFormattingRule()):t.format());return r?function(e){return e.replace(new RegExp("[".concat(Qf,"]+"),"g")," ").trim()}(o):o}var dh=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var uh=function(e){return"([".concat(Zf,"]{1,").concat(e,"})")};function lh(e){var t="[  \\t,]*",n="[:\\..]?[  \\t,-]*",r="#?",i="[  \\t]*";return";ext="+uh("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+uh("20")+r)+"|"+(t+"(?:[xx##~~]|int|int)"+n+uh("9")+r)+"|"+("[- ]+"+uh("6")+"#")+"|"+(i+"(?:,{2}|;)"+n+uh("15")+r)+"|"+(i+"(?:,)+"+n+uh("9")+r)}var ch="["+Zf+"]{2}",fh="[++]{0,1}(?:["+Qf+"]*["+Zf+"]){3,}["+Qf+Zf+"]*",hh=new RegExp("^[++]{0,1}(?:["+Qf+"]*["+Zf+"]){1,2}$","i"),ph=fh+"(?:"+lh()+")?",$h=new RegExp("^"+ch+"$|^"+ph+"$","i");var mh={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function vh(e,t,n,r){if(n=n?function(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}({},mh,n):mh,r=new Pf(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i,o=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return a?yh(i=gh(a,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return a?(i=gh(a,null,"INTERNATIONAL",r,n),yh(i="+".concat(o," ").concat(i),e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(a);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(o).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n,r,i){var o=Bf(r,i.metadata);if(o===n){var a=gh(e,t,"NATIONAL",i);return"1"===n?n+" "+a:a}var s=function(e,t,n){var r=new Pf(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():dh.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,i.metadata);if(s)return"".concat(s," ").concat(n," ").concat(gh(e,null,"INTERNATIONAL",i))}(a,e.carrierCode,o,n.fromCountry,r);return yh(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function gh(e,t,n,r,i){var o,a,s=(o=r.formats(),a=e,function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(o,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return Gf(a,e.pattern())}));return s?sh(e,s,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix}):e}function yh(e,t,n,r){return t?r(e,t,n):e}function bh(e){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_h(Object(n),!0).forEach(function(t){Ch(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ch(e,t,n){return(t=Sh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xh(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sh(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sh(e){var t=function(e,t){if("object"!=bh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=bh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==bh(t)?t:t+""}var Eh=function(){return xh(function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("First argument is required");if("string"!=typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!n)throw new TypeError("`metadata` argument not passed");if(Ef(n)&&Ef(n.countries)){r=n;var i=t;if(!Ah.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=oh(i,void 0,void 0,void 0,r);if(t=o.countryCallingCode,!(n=o.number))throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw new TypeError("`nationalNumber` argument must be a string");Uf(r);var a=function(e,t){var n,r,i=new Pf(t);Th(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e;return{country:n,countryCallingCode:r}}(t,r),s=a.country,d=a.countryCallingCode;this.country=s,this.countryCallingCode=d,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}},[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Jf(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new Pf(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return zf(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return e=this,t={v2:!0},n=this.getMetadata(),t=t||{},(n=new Pf(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Yf(e,t,n.metadata):Gf(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern());var e,t,n}},{key:"isNonGeographic",value:function(){return new Pf(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Yf(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return vh(this,e,t?wh(wh({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),Th=function(e){return/^[A-Z]{2}$/.test(e)};var Ah=/^\+\d+$/;function Nh(e){return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oh(e,t,n){return t=kh(t),function(e,t){if(t&&("object"==Nh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rh()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Ih(e){var t="function"==typeof Map?new Map:void 0;return Ih=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Rh())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Ph(i,n.prototype),i}(e,arguments,kh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ph(n,e)},Ih(e)}function Rh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Rh=function(){return!!e})()}function Ph(e,t){return(Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kh(e){return(kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dh=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Oh(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(Ih(Error)),Mh=new RegExp("(?:"+lh()+")$","i");var Lh={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function jh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Uh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uh(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fh(e){for(var t,n="",r=jh(e.split(""));!(t=r()).done;){n+=Bh(t.value,n)||""}return n}function Bh(e,t,n){if("+"===e){if(t)return;return"+"}return function(e){return Lh[e]}(e)}var qh="(["+Zf+"]|[\\-\\.\\(\\)]?)",Hh=new RegExp("^\\+"+qh+"*["+Zf+"]"+qh+"*$","g"),zh=new RegExp("^("+("["+Zf+"]+((\\-)*["+Zf+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+Zf+"])*")+"\\.?$","g"),Gh="tel:",Wh=";phone-context=";function Vh(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(Wh);if(t<0)return null;var n=t+15;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(Hh.test(e)||zh.test(e))}(i))throw new Dh("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o,a=e.indexOf(Gh);o=a>=0?a+4:0;var s=e.indexOf(Wh);n+=e.substring(o,s)}var d=n.indexOf(";isub=");if(d>0&&(n=n.substring(0,d)),""!==n)return n}var Kh=new RegExp("[++"+Zf+"]"),Yh=new RegExp("[^"+Zf+"#]+$");function Xh(e,t,n){if(t=t||{},n=new Pf(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Dh("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var r=Vh(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new Dh("TOO_LONG");return}if(!1===t)return e;var r=e.search(Kh);if(r<0)return;return e.slice(r).replace(Yh,"")}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&$h.test(e)}(r))return function(e){return hh.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(Mh);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(Mh),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);if(i.ext)return i;return{number:r}}(e,t.v2,t.extract),i=r.number,o=r.ext,a=r.error;if(!i){if(t.v2){if("TOO_SHORT"===a)throw new Dh("TOO_SHORT");throw new Dh("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var i,o=oh(Fh(e),void 0,t,n,r.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,d=o.number;if(s)r.selectNumberingPlan(s);else{if(!d||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),s=n||Bf(t,r.metadata)}if(!d)return{countryCallingCodeSource:a,countryCallingCode:s};var u=ih(Fh(d),i,r),l=u.nationalNumber,c=u.carrierCode,f=rh(s,{nationalNumber:l,metadata:r});f&&(i=f,"001"===f||r.selectNumberingPlan(i));return{country:i,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:l,carrierCode:c}}(i,t.defaultCountry,t.defaultCallingCode,n),d=s.country,u=s.nationalNumber,l=s.countryCallingCode,c=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Dh("INVALID_COUNTRY");return{}}if(!u||u.length<2){if(t.v2)throw new Dh("TOO_SHORT");return{}}if(u.length>17){if(t.v2)throw new Dh("TOO_LONG");return{}}if(t.v2){var h=new Eh(l,u,n.metadata);return d&&(h.country=d),f&&(h.carrierCode=f),o&&(h.ext=o),h.__countryCallingCodeSource=c,h}var p=!!(t.extended?n.hasSelectedNumberingPlan():d)&&Gf(u,n.nationalNumberPattern());return t.extended?{country:d,countryCallingCode:l,carrierCode:f,valid:p,possible:!!p||!(!0!==t.extended||!n.possibleLengths()||!zf(u,d,n)),phone:u,ext:o}:p?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(d,u,o):{}}function Jh(e){return(Jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(t){ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ep(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Jh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Jh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tp(e){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=tp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ip(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],d=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(d=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(l){u=!0,i=l}finally{try{if(!d&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return op(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?op(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function op(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ap(e){var t,n,r,i=ip(Array.prototype.slice.call(e),4),o=i[0],a=i[1],s=i[2],d=i[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!Ef(a))throw new Error("Invalid second argument: ".concat(a));s?(n=a,r=s):r=a}else d?(n=s,r=d):(n=void 0,r=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach(function(t){rp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:r}}function sp(e){return(sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){lp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=sp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=sp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t,n){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,n)&&(t=up(up({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return Xh(e,Qh(Qh({},t),{},{v2:!0}),n)}(e,t,n)}catch(r){if(!(r instanceof Dh))throw r}}function fp(e){return(fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach(function(t){$p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=fp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=fp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(){var e=ap(arguments),t=e.text,n=e.options,r=e.metadata,i=cp(t,n=pp(pp({},n),{},{extract:!1}),r);return i&&i.isValid()||!1}function vp(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(Cf),e.apply(this,n)}(mp,arguments)}var gp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yp=t.createContext&&t.createContext(gp),bp=["attr","size","title"];function _p(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(this,arguments)}function Cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cp(Object(n),!0).forEach(function(t){Sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sp(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ep(e){return e&&e.map((e,n)=>t.createElement(e.tag,xp({key:n},e.attr),Ep(e.child)))}function Tp(e){return n=>t.createElement(Ap,wp({attr:xp({},e.attr)},n),Ep(e.child))}function Ap(e){var n=n=>{var r,{attr:i,size:o,title:a}=e,s=_p(e,bp),d=o||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",wp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:r,style:xp(xp({color:e.color||n.color},n.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==yp?t.createElement(yp.Consumer,null,e=>n(e)):n(gp)}function Np(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function Op(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(e)}function Ip(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(e)}function Rp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(e)}function Pp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 6 12 12 16 14"},child:[]}]})(e)}function kp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"},child:[]},{tag:"line",attr:{x1:"18",y1:"9",x2:"12",y2:"15"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"18",y2:"15"},child:[]}]})(e)}function Dp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 18v-6a9 9 0 0 1 18 0v6"},child:[]},{tag:"path",attr:{d:"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"},child:[]}]})(e)}function Mp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(e)}function Lp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]},{tag:"path",attr:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"},child:[]},{tag:"path",attr:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function jp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function Up(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function Fp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"10",y1:"15",x2:"10",y2:"9"},child:[]},{tag:"line",attr:{x1:"14",y1:"15",x2:"14",y2:"9"},child:[]}]})(e)}function Bp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(e)}function qp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 2 16 8 22 8"},child:[]},{tag:"line",attr:{x1:"23",y1:"1",x2:"16",y2:"8"},child:[]},{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(e)}function Hp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"},child:[]},{tag:"line",attr:{x1:"23",y1:"1",x2:"1",y2:"23"},child:[]}]})(e)}function zp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(e)}function Gp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function Wp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},child:[]}]})(e)}function Vp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"},child:[]}]})(e)}function Kp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(e)}function Yp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(e)}function Xp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"line",attr:{x1:"23",y1:"9",x2:"17",y2:"15"},child:[]},{tag:"line",attr:{x1:"17",y1:"9",x2:"23",y2:"15"},child:[]}]})(e)}function Jp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(e)}function Zp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}var Qp=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);var e$,t$,n$,r$,i$,o$,a$,s$,d$=(e,t)=>!!~e.indexOf(t),u$=(e,t="-")=>e.join(t),l$=(e,t)=>u$(e.filter(Boolean),t),c$=(e,t=1)=>e.slice(t),f$=e=>e,h$=()=>{},p$=e=>e[0].toUpperCase()+c$(e),$$=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),m$=(e,t)=>{for(;"function"==typeof e;)e=e(t);return e},v$=(e,t)=>{e.size>t&&e.delete(e.keys().next().value)},g$=(e,t)=>!d$("@:&",e[0])&&(d$("rg",(typeof t)[5])||Array.isArray(t)),y$=(e,t,n)=>t?Object.keys(t).reduce((e,r)=>{const i=m$(t[r],n);return g$(r,i)?e[$$(r)]=i:e[r]="@"==r[0]&&d$("figa",r[1])?(e[r]||[]).concat(i):y$(e[r]||{},i,n),e},e):e,b$="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& ")),_$=e=>(Array.isArray(e)||(e=[e]),"@media "+u$(e.map(e=>("string"==typeof e&&(e={min:e}),e.raw||u$(Object.keys(e).map(t=>`(${t}-width:${e[t]})`)," and "))),",")),w$=e=>{for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},C$=(e="")=>(e$.push(e),""),x$=e=>{e$.length=Math.max(e$.lastIndexOf("")+~~e,0)},S$=e=>e&&!d$("!:",e[0]),E$=e=>":"==e[0],T$=(e,t)=>{t$.push({v:e$.filter(E$),d:e,n:t,i:d$(e$,"!"),$:""})},A$=e=>{const t="-"==e[0];t&&(e=c$(e));const n=u$(e$.filter(S$));return T$("&"==e?n:(n&&n+"-")+e,t),""},N$=(e,t)=>{let n="";for(let r,i=!1,o=0;r=e[o++];)if(i||"["==r)n+=r,i="]"!=r;else switch(r){case":":n=n&&C$(":"+(e[o]==r?e[o++]:"")+n);break;case"(":n=n&&C$(n),C$();break;case"!":C$(r);break;case")":case" ":case"\t":case"\n":case"\r":n=n&&A$(n),x$(")"!==r);break;default:n+=r}n&&(t?C$(":"+n):"-"==n.slice(-1)?C$(n.slice(0,-1)):A$(n))},O$=e=>{C$(),I$(e),x$()},I$=e=>{switch(typeof e){case"string":N$(e);break;case"function":T$(e);break;case"object":Array.isArray(e)?e.forEach(O$):e&&Object.keys(e).forEach(t=>{((e,t)=>{if(t){C$();const n=d$("tbu",(typeof t)[1]);N$(e,n),n&&O$(t),x$()}})(t,e[t])})}},R$=new WeakMap,P$=e=>(e$=[],t$=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?(e=>{let t=R$.get(e);if(!t){let n=NaN,r="";t=e.map((t,i)=>{if(n==n||"["!=t.slice(-1)&&!d$(":-(",(e[i+1]||"")[0])||(n=i),i>=n)return o=>{i==n&&(r=""),r+=t,d$("rg",(typeof o)[5])?r+=o:o&&(N$(r),r="",I$(o)),i==e.length-1&&N$(r)};const o=t$=[];N$(t);const a=[...e$];return t$=[],e=>{t$.push(...o),e$=[...a],e&&I$(e)}}),R$.set(e,t)}return t})(e[0]).forEach((t,n)=>t(e[n+1])):I$(e),t$),k$=(e,t)=>("function"==typeof t&&(n$=!1),t),D$=new WeakMap,M$=(e,t)=>{const n=(e=>{n$=!0;const t=JSON.stringify(e,k$);return n$&&t})(t);let r;if(n){var i=D$.get(e);i||D$.set(e,i=new Map),r=i.get(n)}return r||(r=Object.defineProperty((n,r)=>(r=Array.isArray(n)?r:n,m$(e(t,r),r)),"toJSON",{value:()=>n||t}),i&&(i.set(n,r),v$(i,1e4))),r},L$=(e,{css:t})=>t(P$(e)),j$=e=>(t,n,r,i)=>{if(t){const o=n&&e(n);if(o&&o.length>0)return o.reduce((e,n)=>(e[l$([r,n,i])]=t,e),{})}},U$=j$(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]}[e])),F$=e=>{const t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},B$=j$(F$),q$=(e,t)=>e+(":"==t[1]?c$(t,2)+":":c$(t))+":",H$=(e,t=e.d)=>"function"==typeof t?"":e.v.reduce(q$,"")+(e.i?"!":"")+(e.n?"-":"")+t,z$=e=>"cols"==e?"columns":"rows",G$=e=>(t,n,r)=>({[e]:r+((r$=u$(t))&&"-"+r$)}),W$=(e,t)=>(n,r,i)=>(r$=u$(n,t))&&{[e||i]:r$},V$=e=>(t,{theme:n},r)=>(r$=n(e||r,t))&&{[e||r]:r$},K$=(e,t)=>(n,{theme:r},i)=>(r$=r(e||i,n,u$(n,t)))&&{[e||i]:r$},Y$=(e,t)=>(n,r)=>e(n,r,t),X$=G$("display"),J$=G$("position"),Z$=G$("textTransform"),Q$=G$("textDecoration"),em=G$("fontStyle"),tm=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),nm=(e,{theme:t},n)=>(r$=t("inset",e))&&{[n]:r$},rm=(e,t,n,r=n)=>(r$=t(r+"Opacity",c$(e)))&&{[`--tw-${n}-opacity`]:r$},im=(e,t)=>Math.round(parseInt(e,16)*t),om=(e,t,n)=>e&&"#"==e[0]&&(r$=(e.length-1)/3)&&(o$=[17,1,.062272][r$-1])?`rgba(${im(e.substr(1,r$),o$)},${im(e.substr(1+r$,r$),o$)},${im(e.substr(1+2*r$,r$),o$)},${t?`var(--tw-${t}${n?","+n:""})`:n||1})`:e,am=(e,t,n)=>n&&"string"==typeof n?(r$=om(n,t+"-opacity"))&&r$!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,r$]}:{[e]:n}:void 0,sm=e=>(o$=om(e,"","0"))==r$?"transparent":o$,dm=(e,{theme:t},n,r,i,o)=>(r$={x:["right","left"],y:["bottom","top"]}[e[0]])&&(o$=`--tw-${n}-${e[0]}-reverse`)?"reverse"==e[1]?{[o$]:"1"}:{[o$]:"0",[l$([i,r$[0],o])]:(i$=t(r,c$(e)))&&`calc(${i$} * var(${o$}))`,[l$([i,r$[1],o])]:i$&&[i$,`calc(${i$} * calc(1 - var(${o$})))`]}:void 0,um=(e,t)=>t[0]&&{[e]:(d$("wun",(t[0]||"")[3])?"space-":"")+t[0]},lm=e=>t=>d$(["start","end"],t[0])?{[e]:"flex-"+t[0]}:um(e,t),cm=e=>(t,{theme:n})=>{if(r$=n("grid"+p$(e),t,""))return{["grid-"+e]:r$};switch(t[0]){case"span":return t[1]&&{["grid-"+e]:`span ${t[1]} / span ${t[1]}`};case"start":case"end":return(r$=n("grid"+p$(e)+p$(t[0]),c$(t),u$(c$(t))))&&{[`grid-${e}-${t[0]}`]:r$}}},fm=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return W$("borderStyle")(e);case"collapse":case"separate":return W$("borderCollapse")(e);case"opacity":return rm(e,t,n)}return(r$=t(n+"Width",e,""))?{borderWidth:r$}:am("borderColor",n,t(n+"Color",e))},hm=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",pm=(e,t,n)=>e[0]&&(r$=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:"y"!==e[0]&&r$,[`--tw-${n}-y`]:"x"!==e[0]&&r$,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${r$})`,hm()]},$m=e=>(t,n,r)=>r[1]?B$(n.theme(e,t),r[1],e):V$(e)(t,n,r),mm=$m("padding"),vm=$m("margin"),gm=(e,{theme:t},n)=>(r$={w:"width",h:"height"}[e[0]])&&{[r$=`${n}${p$(r$)}`]:t(r$,c$(e))},ym=(e,{theme:t},n)=>{const r=n.split("-"),i="backdrop"==r[0]?r[0]+"-":"";if(i||e.unshift(...r),"filter"==e[0]){const t=["blur","brightness","contrast","grayscale","hue-rotate","invert",i&&"opacity","saturate","sepia",!i&&"drop-shadow"].filter(Boolean);return"none"==e[1]?{[i+"filter"]:"none"}:t.reduce((e,t)=>(e["--tw-"+i+t]="var(--tw-empty,/*!*/ /*!*/)",e),{[i+"filter"]:t.map(e=>`var(--tw-${i}${e})`).join(" ")})}return o$=e.shift(),d$(["hue","drop"],o$)&&(o$+=p$(e.shift())),(r$=t(i?"backdrop"+p$(o$):o$,e))&&{["--tw-"+i+o$]:(Array.isArray(r$)?r$:[r$]).map(e=>`${$$(o$)}(${e})`).join(" ")}},bm={group:(e,{tag:t},n)=>t(u$([n,...e])),hidden:Y$(X$,"none"),inline:X$,block:X$,contents:X$,flow:X$,table:(e,t,n)=>d$(["auto","fixed"],e[0])?{tableLayout:e[0]}:X$(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:u$("col"==e[0]?["column",...c$(e)]:e)};case"nowrap":case"wrap":return{flexWrap:u$(e)};case"grow":case"shrink":return null!=(r$=t.theme("flex"+p$(e[0]),c$(e),e[1]||1))&&{["flex-"+e[0]]:""+r$}}return(r$=t.theme("flex",e,""))?{flex:r$}:X$(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return(r$=t.theme("gridTemplate"+p$(z$(e[0])),c$(e),2==e.length&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:u$(c$(e))))&&{["gridTemplate-"+z$(e[0])]:r$};case"flow":return e.length>1&&{gridAutoFlow:u$("col"==e[1]?["column",...c$(e,2)]:c$(e)," ")}}return X$(e,t,n)},auto:(e,{theme:t})=>d$(["cols","rows"],e[0])&&(r$=t("gridAuto"+p$(z$(e[0])),c$(e),u$(c$(e))))&&{["gridAuto-"+z$(e[0])]:r$},static:J$,fixed:J$,absolute:J$,relative:J$,sticky:J$,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"horizontal",y:"vertical"}[e[0]]||e[0]||"both"}),box:e=>e[0]&&{boxSizing:e[0]+"-box"},appearance:W$(),cursor:K$(),float:W$(),clear:W$(),decoration:W$("boxDecorationBreak"),isolate:{isolation:"isolate"},isolation:W$(),"mix-blend":W$("mixBlendMode"),top:nm,right:nm,bottom:nm,left:nm,inset:(e,{theme:t})=>(r$=F$(e[0]))?B$(t("inset",c$(e)),e[0]):(r$=t("inset",e))&&{top:r$,right:r$,bottom:r$,left:r$},underline:Q$,"line-through":Q$,"no-underline":Y$(Q$,"none"),"text-underline":Y$(Q$,"underline"),"text-no-underline":Y$(Q$,"none"),"text-line-through":Y$(Q$,"line-through"),uppercase:Z$,lowercase:Z$,capitalize:Z$,"normal-case":Y$(Z$,"none"),"text-normal-case":Y$(Z$,"none"),italic:em,"not-italic":Y$(em,"normal"),"font-italic":Y$(em,"italic"),"font-not-italic":Y$(em,"normal"),font:(e,t,n)=>(r$=t.theme("fontFamily",e,""))?{fontFamily:r$}:V$("fontWeight")(e,t,n),items:e=>e[0]&&{alignItems:d$(["start","end"],e[0])?"flex-"+e[0]:u$(e)},"justify-self":W$(),"justify-items":W$(),justify:lm("justifyContent"),content:lm("alignContent"),self:lm("alignSelf"),place:e=>e[0]&&um("place-"+e[0],c$(e)),overscroll:e=>e[0]&&{["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]},col:cm("column"),row:cm("row"),duration:V$("transitionDuration"),delay:V$("transitionDelay"),tracking:V$("letterSpacing"),leading:V$("lineHeight"),z:V$("zIndex"),opacity:V$(),ease:V$("transitionTimingFunction"),p:mm,py:mm,px:mm,pt:mm,pr:mm,pb:mm,pl:mm,m:vm,my:vm,mx:vm,mt:vm,mr:vm,mb:vm,ml:vm,w:V$("width"),h:V$("height"),min:gm,max:gm,fill:V$(),order:V$(),origin:K$("transformOrigin"," "),select:W$("userSelect"),"pointer-events":W$(),align:W$("verticalAlign"),whitespace:W$("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:tm("ordinal"),"slashed-zero":tm("slashed-zero"),"lining-nums":tm("numeric-figure"),"oldstyle-nums":tm("numeric-figure"),"proportional-nums":tm("numeric-spacing"),"tabular-nums":tm("numeric-spacing"),"diagonal-fractions":tm("numeric-fraction"),"stacked-fractions":tm("numeric-fraction"),overflow:(e,t,n)=>d$(["ellipsis","clip"],e[0])?W$("textOverflow")(e):e[1]?{["overflow-"+e[0]]:e[1]}:W$()(e,t,n),transform:e=>"none"==e[0]?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:hm("gpu"==e[0])},rotate:(e,{theme:t})=>(r$=t("rotate",e))&&{"--tw-rotate":r$,transform:[`rotate(${r$})`,hm()]},scale:pm,translate:pm,skew:pm,gap:(e,t,n)=>(r$={x:"column",y:"row"}[e[0]])?{[r$+"Gap"]:t.theme("gap",c$(e))}:V$("gap")(e,t,n),stroke:(e,t,n)=>(r$=t.theme("stroke",e,""))?{stroke:r$}:V$("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(r$=t("outline",e))&&{outline:r$[0],outlineOffset:r$[1]},"break-normal":{wordBreak:"normal",overflowWrap:"normal"},"break-words":{overflowWrap:"break-word"},"break-all":{wordBreak:"break-all"},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return Z$([],r$,e[0]);case"opacity":return rm(e,t,n)}const r=t("fontSize",e,"");return r?"string"==typeof r?{fontSize:r}:{fontSize:r[0],..."string"==typeof r[1]?{lineHeight:r[1]}:r[1]}:am("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return W$("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return W$("backgroundPosition"," ")(e);case"no":return"repeat"==e[1]&&W$("backgroundRepeat")(e);case"repeat":return d$("xy",e[1])?W$("backgroundRepeat")(e):{backgroundRepeat:e[1]||e[0]};case"opacity":return rm(e,t,n,"background");case"clip":case"origin":return e[1]&&{["background-"+e[0]]:e[1]+("text"==e[1]?"":"-box")};case"blend":return W$("background-blend-mode")(c$(e));case"gradient":if("to"==e[1]&&(r$=F$(e[2])))return{backgroundImage:`linear-gradient(to ${u$(r$," ")},var(--tw-gradient-stops))`}}return(r$=t("backgroundPosition",e,""))?{backgroundPosition:r$}:(r$=t("backgroundSize",e,""))?{backgroundSize:r$}:(r$=t("backgroundImage",e,""))?{backgroundImage:r$}:am("backgroundColor","bg",t("backgroundColor",e))},from:(e,{theme:t})=>(r$=t("gradientColorStops",e))&&{"--tw-gradient-from":r$,"--tw-gradient-stops":`var(--tw-gradient-from),var(--tw-gradient-to,${sm(r$)})`},via:(e,{theme:t})=>(r$=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from),${r$},var(--tw-gradient-to,${sm(r$)})`},to:(e,{theme:t})=>(r$=t("gradientColorStops",e))&&{"--tw-gradient-to":r$},border:(e,t,n)=>{var r;const i=null==(r=F$(e[0]))?void 0:r.map(p$);i&&(e=c$(e));let o=fm(e,t,n);return i&&o&&"object"==typeof o&&(o=Object.entries(o).reduce((e,[t,n])=>{if(t.startsWith("border"))for(const r of i)e[t.slice(0,6)+r+t.slice(6)]=n;else e[t]=n;return e},{})),o},divide:(e,t,n)=>(r$=dm(e,t,n,"divideWidth","border","width")||fm(e,t,n))&&{"&>:not([hidden])~:not([hidden])":r$},space:(e,t,n)=>(r$=dm(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":r$},placeholder:(e,{theme:t},n)=>(r$="opacity"==e[0]?rm(e,t,n):am("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":r$},shadow:(e,{theme:t})=>(r$=t("boxShadow",e))&&{":global":{"*":{"--tw-shadow":"0 0 transparent"}},"--tw-shadow":"none"==r$?"0 0 transparent":r$,boxShadow:[r$,"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)"]},animate:(e,{theme:t,tag:n})=>{if(o$=t("animation",e)){const e=o$.split(" ");return(r$=t("keyframes",e[0],i$={}))!==i$?(o$=n(e[0]))&&{animation:o$+" "+u$(c$(e)," "),["@keyframes "+o$]:r$}:{animation:o$}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return rm(e,t,n);case"offset":return(r$=t("ringOffsetWidth",c$(e),""))?{"--tw-ring-offset-width":r$}:{"--tw-ring-offset-color":t("ringOffsetColor",c$(e))}}return(r$=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${r$} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)",":global":{"*":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":t("ringOffsetColor","","#fff"),"--tw-ring-color":om(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5")),"--tw-ring-offset-shadow":"0 0 transparent","--tw-ring-shadow":"0 0 transparent"}}}:{"--tw-ring-opacity":"1","--tw-ring-color":om(t("ringColor",e),"ring-opacity")}},object:(e,t,n)=>d$(["contain","cover","fill","none","scale-down"],u$(e))?{objectFit:u$(e)}:K$("objectPosition"," ")(e,t,n),list:(e,t,n)=>"item"==u$(e)?X$(e,t,n):d$(["inside","outside"],u$(e))?{listStylePosition:e[0]}:K$("listStyleType")(e,t,n),rounded:(e,t,n)=>U$(t.theme("borderRadius",c$(e),""),e[0],"border","radius")||V$("borderRadius")(e,t,n),"transition-none":{transitionProperty:"none"},transition:(e,{theme:t})=>({transitionProperty:t("transitionProperty",e),transitionTimingFunction:t("transitionTimingFunction",""),transitionDuration:t("transitionDuration","")}),container:(e,{theme:t})=>{const{screens:n=t("screens"),center:r,padding:i}=t("container"),o=e=>(r$=i&&("string"==typeof i?i:i[e]||i.DEFAULT))?{paddingRight:r$,paddingLeft:r$}:{};return Object.keys(n).reduce((e,t)=>((o$=n[t])&&"string"==typeof o$&&(e[_$(o$)]={"&":{"max-width":o$,...o(t)}}),e),{width:"100%",...r?{marginRight:"auto",marginLeft:"auto"}:{},...o("xs")})},filter:ym,blur:ym,brightness:ym,contrast:ym,grayscale:ym,"hue-rotate":ym,invert:ym,saturate:ym,sepia:ym,"drop-shadow":ym,backdrop:ym},_m={dark:"@media (prefers-color-scheme:dark)",sticky:"@supports ((position: -webkit-sticky) or (position:sticky))","motion-reduce":"@media (prefers-reduced-motion:reduce)","motion-safe":"@media (prefers-reduced-motion:no-preference)",first:"&:first-child",last:"&:last-child",even:"&:nth-child(2n)",odd:"&:nth-child(odd)",children:"&>*",siblings:"&~*",sibling:"&+*",override:"&&"},wm="__twind",Cm=e=>{let t=self[wm];return t||(t=document.head.appendChild(document.createElement("style")),t.id=wm,e&&(t.nonce=e),t.appendChild(document.createTextNode(""))),t},xm=e=>({unknown(e,t=[],n,r){n||this.report({id:"UNKNOWN_THEME_VALUE",key:e+"."+u$(t)},r)},report:({id:t,...n})=>e(`[${t}] ${JSON.stringify(n)}`)}),Sm=xm(e=>console.warn(e)),Em=xm(e=>{throw new Error(e)}),Tm=xm(h$),Am=(e,t,n)=>`${e}:${t}${n?" !important":""}`,Nm=(e,t,n)=>{let r="";const i=(o=e,Qp.get(o));var o;i&&(r+=`${Am(i,t,n)};`);let a=function(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}(e);return 1&a&&(r+=`-webkit-${Am(e,t,n)};`),2&a&&(r+=`-moz-${Am(e,t,n)};`),4&a&&(r+=`-ms-${Am(e,t,n)};`),a=function(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?"-"===t[3]?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}(e,t),1&a&&(r+=`${Am(e,`-webkit-${t}`,n)};`),2&a&&(r+=`${Am(e,`-moz-${t}`,n)};`),4&a&&(r+=`${Am(e,`-ms-${t}`,n)};`),r+=Am(e,t,n),r},Om=(e,t)=>{const n={};do{for(let t=1;t<e;t++)n[`${t}/${e}`]=Number((t/e*100).toFixed(6))+"%"}while(++e<=t);return n},Im=(e,t,n=0)=>{const r={};for(;n<=e;n=2*n||1)r[n]=n+t;return r},Rm=(e,t="",n=1,r=0,i=1,o={})=>{for(;r<=e;r+=i)o[r]=r/n+t;return o},Pm=e=>t=>t(e),km={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:{px:"1px",0:"0px",...Rm(4,"rem",4,.5,.5),...Rm(12,"rem",4,5),14:"3.5rem",...Rm(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backdropBlur:Pm("blur"),backdropBrightness:Pm("brightness"),backdropContrast:Pm("contrast"),backdropGrayscale:Pm("grayscale"),backdropHueRotate:Pm("hueRotate"),backdropInvert:Pm("invert"),backdropOpacity:Pm("opacity"),backdropSaturate:Pm("saturate"),backdropSepia:Pm("sepia"),backgroundColor:Pm("colors"),backgroundImage:{none:"none"},backgroundOpacity:Pm("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Rm(200,"",100,0,50),...Rm(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:e=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:Pm("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderWidth:{DEFAULT:"1px",...Im(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none"},contrast:{...Rm(200,"",100,0,50),75:"0.75",125:"1.25"},divideColor:Pm("borderColor"),divideOpacity:Pm("borderOpacity"),divideWidth:Pm("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:{current:"currentColor"},grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gridTemplateColumns:{},gridTemplateRows:{},gridAutoColumns:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gap:Pm("spacing"),gradientColorStops:Pm("colors"),height:e=>({auto:"auto",...e("spacing"),...Om(2,6),full:"100%",screen:"100vh"}),inset:e=>({auto:"auto",...e("spacing"),...Om(2,4),full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",...Rm(10,"rem",4,3)},margin:e=>({auto:"auto",...e("spacing")}),maxHeight:e=>({...e("spacing"),full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{...Rm(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0",...Rm(12,"",1,1)},outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:Pm("spacing"),placeholderColor:Pm("colors"),placeholderOpacity:Pm("opacity"),ringColor:e=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:Pm("colors"),ringOffsetWidth:Im(8,"px"),ringOpacity:e=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",...Im(8,"px")},rotate:{...Im(2,"deg"),...Im(12,"deg",3),...Im(180,"deg",45)},saturate:Rm(200,"",100,0,50),scale:{...Rm(150,"",100,0,50),...Rm(110,"",100,90,5),75:"0.75",125:"1.25"},sepia:{0:"0",DEFAULT:"100%"},skew:{...Im(2,"deg"),...Im(12,"deg",3)},space:Pm("spacing"),stroke:{current:"currentColor"},strokeWidth:Rm(2),textColor:Pm("colors"),textOpacity:Pm("opacity"),transitionDuration:e=>({DEFAULT:"150ms",...e("durations")}),transitionDelay:Pm("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>({...e("spacing"),...Om(2,4),full:"100%"}),width:e=>({auto:"auto",...e("spacing"),...Om(2,6),...Om(12,12),screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:{auto:"auto",...Rm(50,"",1,0,10)}},Dm=(e,t={},n=[])=>(Object.keys(e).forEach(r=>{const i=e[r];"DEFAULT"==r&&(t[u$(n)]=i,t[u$(n,".")]=i);const o=[...n,r];t[u$(o)]=i,t[u$(o,".")]=i,i&&"object"==typeof i&&Dm(i,t,o)},t),t),Mm={negative:()=>({}),breakpoints:e=>Object.keys(e).filter(t=>"string"==typeof e[t]).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},Lm=e=>{const t=new Map,n={...km,...e},r=(e,t)=>{const n=e&&e[t],r="function"==typeof n?n(i,Mm):n;return r&&"colors"==t?Dm(r):r},i=(e,i,o)=>{const a=e.split(".");e=a[0],a.length>1&&(o=i,i=u$(c$(a),"."));let s=t.get(e);if(s||(t.set(e,s={...r(n,e)}),Object.assign(s,r(n.extend,e))),null!=i){const t=((e,t)=>(t="["==t[0]&&"]"==t.slice(-1)&&t.slice(1,-1))&&d$(e,"olor")==/^(#|(hsl|rgb)a?\(|[a-z]+$)/.test(t)&&(d$(t,"calc(")?t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "):t))(e,i=(Array.isArray(i)?u$(i):i)||"DEFAULT")||s[i];return null==t?o:Array.isArray(t)&&!d$(["fontSize","outline","dropShadow"],e)?u$(t,","):t}return s};return i},jm=/^:(group(?:(?!-focus).+?)*)-(.+)$/,Um=/^(:not)-(.+)/,Fm=e=>"["==e[1]?c$(e):e,Bm=e=>(31&((s$=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+s$[1]/(s$[2]?15:1)/10:0))<<22,qm=e=>{s$=0;for(let t=e.length;t--;)s$+=d$("-:,",e[t]);return s$},Hm=e=>(15&qm(e))<<18,zm=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],Gm=(e,t)=>(n,r)=>{return n|((s$=e("screens",c$(r),""))?1<<27|Bm(_$(s$)):":dark"==r?1<<30:"@"==(s$=t[r]||r.replace(Um,":$2"))[0]?Hm(s$):(i=r,1<<(~(s$=zm.indexOf(i.replace(jm,":$2").slice(3,8)))?s$:17)));var i},Wm=(e,t)=>t+"{"+e+"}",Vm=(e,t,n)=>{const{theme:r,tag:i}=n,o=(e,t)=>"--"+i(t),a=e=>`${e}`.replace(/--(tw-[\w-]+)\b/g,o);let s;const d=(t,r,i,o,u)=>{if(Array.isArray(o))return void o.forEach(e=>e&&d(t,r,i,e,u));let l="",c=0,f=0;o["@apply"]&&(o=y$(m$(((...e)=>M$(L$,e))(o["@apply"]),n),{...o,"@apply":void 0},n)),Object.keys(o).forEach(h=>{const p=m$(o[h],n);if(g$(h,p)){if(""!==p&&h.length>1){const t=$$(h);f+=1,c=Math.max(c,(e=>"-"==e[0]?0:qm(e)+((s$=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.exec(e))?+!!s$[1]||-!!s$[2]:0)+1)(t)),l=(l&&l+";")+((t,n,r)=>(t=a(t),Array.isArray(n)?u$(n.filter(Boolean).map(n=>e(t,a(n),r)),";"):e(t,a(n),r)))(t,p,u)}}else if(p)if(":global"==h&&(h="@global"),"@"==h[0])if("g"==h[1])d([],"",0,p,u);else if("f"==h[1])d([],h,0,p,u);else if("k"==h[1]){const e=s.length;d([],"",0,p,u);const t=s.splice(e,s.length-e);s.push({r:Wm(u$(t.map(e=>e.r),""),h),p:t.reduce((e,t)=>e+t.p,0)})}else"i"==h[1]?(Array.isArray(p)?p:[p]).forEach(e=>e&&s.push({p:0,r:`${h} ${e};`})):("c"==h[2]&&(h=_$(n.theme("screens",c$(h,8).trim()))),d([...t,h],r,i|Bm(h)|Hm(h),p,u));else d(t,r?r.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,t,n)=>h.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>(d$(n,"&")?n.replace(/&/g,t):(t&&t+" ")+n)+r)+n):h,i,p,u)}),f&&s.push({r:t.reduceRight(Wm,Wm(l,r)),p:256*i+((15&Math.max(0,15-f))<<4|15&(c||15))})},u=Gm(r,t);return(e,t,n,r=0)=>(r<<=28,s=[],d([],t?"."+b$(t):"",n?n.v.reduceRight(u,r):r,e,n&&n.i),s)},Km=(e,t,n,r=t)=>!1===e?n:!0===e?r:e||t,Ym={_:{value:"",writable:!0}},Xm=(e={})=>{const t=Lm(e.theme),n=(e=>("string"==typeof e?{t:Em,a:Sm,i:Tm}[e[1]]:e)||Sm)(e.mode),r=Km(e.hash,!1,!1,w$),i=e.important;let o={v:[]},a=0;const s=[],d={tw:(...e)=>b(e),theme:(e,r,i)=>{var a;const s=null!=(a=t(e,r,i))?a:n.unknown(e,null==r||Array.isArray(r)?r:r.split("."),null!=i,d);return o.n&&s&&d$("rg",(typeof s)[5])?`calc(${s} * -1)`:s},tag:e=>r?r(e):e,css:e=>{a++;const t=s.length;try{("string"==typeof e?P$([e]):e).forEach(y);const n=Object.create(null,Ym);for(let e=t;e<s.length;e++){const t=s[e];if(t)switch(typeof t){case"object":y$(n,t,d);break;case"string":n._+=(n._&&" ")+t}}return n}finally{s.length=t,a--}}},u=((e,t)=>(n,r)=>{if("function"==typeof n.d)return n.d(t);const i=n.d.split(/-(?![^[]*])/g);if(!r&&"tw"==i[0]&&n.$==n.d)return n.$;for(let o=i.length;o;o--){const n=u$(i.slice(0,o));if(Object.prototype.hasOwnProperty.call(e,n)){const a=e[n];return"function"==typeof a?a(c$(i,o),t,n):"string"==typeof a?t[r?"css":"tw"](a):a}}})({...bm,...e.plugins},d),l={..._m,...e.variants},c=((e,t,{theme:n,tag:r})=>{const i=(i,o)=>(a$=n("screens",c$(o),""))?{[_$(a$)]:i}:":dark"==o&&"class"==e?{".dark &":i}:(a$=jm.exec(o))?{[`.${b$(r(a$[1]))}:${a$[2]} &`]:i}:{[t[c$(o)]||"&"+o.replace(Um,(e,t,n)=>t+"("+Fm(":"+n)+")")]:i};return(e,t)=>t.v.reduceRight(i,e)})(e.darkMode||"media",l,d),f=Vm(Km(e.prefix,Nm,Am),l,d),h=e.sheet||("undefined"==typeof window?{target:null,insert:h$}:(({nonce:e,target:t=Cm(e).sheet}={})=>{const n=t.cssRules.length;return{target:t,insert:(e,r)=>t.insertRule(e,n+r)}})(e)),{init:p=e=>e()}=h,$=((e,t,n,r)=>{let i,o;return n((e=[])=>i=e),n((e=new Set)=>o=e),({r:n,p:a})=>{if(!o.has(n)){o.add(n);const d=((e,t)=>{for(var n=0,r=e.length;n<r;){const i=r+n>>1;e[i]<=t?n=i+1:r=i}return r})(i,a);try{e.insert(n,d),i.splice(d,0,a)}catch(s){/:-[mwo]/.test(n)||t.report({id:"INJECT_CSS_ERROR",css:n,error:s},r)}}}})(h,n,p,d);let m;p((e=new Map)=>m=e);const v=new WeakMap,g=(e,t)=>"_"==e?void 0:"function"==typeof t?JSON.stringify(m$(t,d),g):t,y=e=>{!a&&o.v.length&&(e={...e,v:[...o.v,...e.v],$:""}),e.$||(e.$=H$(e,v.get(e.d)));let t=a?null:m.get(e.$);if(null==t){let l=(e=>{const t=o;o=e;try{return m$(u(e),d)}finally{o=t}})(e);if(e.$||(e.$=w$(JSON.stringify(l,g)),v.set(e.d,e.$),e.$=H$(e,e.$)),l&&"object"==typeof l)if(e.v=e.v.map(Fm),i&&(e.i=i),l=c(l,e),a)s.push(l);else{const n="function"==typeof e.d?"string"==typeof l._?1:3:2;t=r||"function"==typeof e.d?(r||w$)(n+e.$):e.$,f(l,t,e,n).forEach($),l._&&(t+=" "+l._)}else"string"==typeof l?t=l:(t=e.$,n.report({id:"UNKNOWN_DIRECTIVE",rule:t},d)),a&&"function"!=typeof e.d&&s.push(t);a||(m.set(e.$,t),v$(m,3e4))}return t},b=e=>u$(P$(e).map(y).filter(Boolean)," "),_=Km(e.preflight,f$,!1);if(_){const e=(e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily.sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor.DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:"1",color:e("placeholderColor.DEFAULT",e("colors.gray.400","#a1a1aa"))},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}))(t),n=f("function"==typeof _?m$(_(e,d),d)||e:{...e,..._});p((e=(n.forEach($),!0))=>e)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},d),process:b}},Jm=e=>{let t,n=e=>(r(),n(e)),r=e=>{({process:n,init:r}=Xm(e))};return{tw:Object.defineProperties((...e)=>n(e),{theme:{get:(i="theme",()=>(t||n([e=>(t=e,"")]),t[i]))}}),setup:e=>r(e)};var i},{tw:Zm,setup:Qm}=Jm();let ev={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rv(4,"rem",4,.5,.5),...rv(12,"rem",4,5),14:"3.5rem",...rv(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:iv("blur"),backdropBrightness:iv("brightness"),backdropContrast:iv("contrast"),backdropGrayscale:iv("grayscale"),backdropHueRotate:iv("hueRotate"),backdropInvert:iv("invert"),backdropOpacity:iv("opacity"),backdropSaturate:iv("saturate"),backdropSepia:iv("sepia"),backgroundColor:iv("colors"),backgroundImage:{none:"none"},backgroundOpacity:iv("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rv(200,"",100,0,50),...rv(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:iv("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:iv("spacing"),borderWidth:{DEFAULT:"1px",...nv(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:iv("colors"),caretColor:iv("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rv(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:iv("borderColor"),divideOpacity:iv("borderOpacity"),divideWidth:iv("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...tv(2,6),...tv(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:iv("spacing"),gradientColorStops:iv("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...tv(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...tv(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rv(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rv(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:iv("spacing"),placeholderColor:iv("colors"),placeholderOpacity:iv("opacity"),outlineColor:iv("colors"),outlineOffset:nv(8,"px"),outlineWidth:nv(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:iv("colors"),ringOffsetWidth:nv(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...nv(8,"px")},rotate:{...nv(2,"deg"),...nv(12,"deg",3),...nv(180,"deg",45)},saturate:rv(200,"",100,0,50),scale:{...rv(150,"",100,0,50),...rv(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:iv("spacing"),scrollPadding:iv("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...nv(2,"deg"),...nv(12,"deg",3)},space:iv("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rv(2),textColor:iv("colors"),textDecorationColor:iv("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...nv(8,"px")},textUnderlineOffset:{auto:"auto",...nv(8,"px")},textIndent:iv("spacing"),textOpacity:iv("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:iv("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...tv(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rv(50,"",1,0,10),auto:"auto"}};function tv(e,t){let n={};do{for(var r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%"}while(++e<=t);return n}function nv(e,t,n=0){let r={};for(;n<=e;n=2*n||1)r[n]=n+t;return r}function rv(e,t="",n=1,r=0,i=1,o={}){for(;r<=e;r+=i)o[r]=r/n+t;return o}function iv(e){return({theme:t})=>t(e)}let ov={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${ev.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${ev.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};function av(e,t="@media "){return t+sv(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function sv(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function dv(e,t){return Math.round(parseInt(e,16)*t)}function uv(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let t=(e.length-1)/3,n=[17,1,.062272][t-1];return`rgba(${[dv(e.substr(1,t),n),dv(e.substr(1+t,t),n),dv(e.substr(1+2*t,t),n),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function lv(e,t,n){return[e,cv(t,n)]}function cv(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):fv(n,1)}):t=>e||{[t[1]]:fv(t,2)}}function fv(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function hv(e,t,n,r){return[e,pv(t,n,r)]}function pv(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return(t,n)=>{let i=yv(e||t[1]),o=n.theme(i,t.$$)??gv(t.$$,i,n);if(null!=o)return t._=fv(t,0,o),r(t,n,i)}}function $v(e,t={},n){return[e,mv(t,n)]}function mv(e={},t){return(n,r)=>{let{section:i=yv(n[0]).replace("-","")+"Color"}=e,[o,a]=(n.$$.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1);if(!o)return;let s=r.theme(i,o)||gv(o,i,r);if(!s||"object"==typeof s)return;let{opacityVariable:d=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:u=i.replace("Color","Opacity"),property:l=i,selector:c}=e,f=r.theme(u,a||"DEFAULT")||a&&gv(a,u,r),h=t||(({_:e})=>{let t=vv(l,e);return c?{[c]:t}:t});n._={value:uv(s,{opacityVariable:d||void 0,opacityValue:f||void 0}),color:e=>uv(s,e),opacityVariable:d||void 0,opacityValue:f||void 0};let p=h(n,r);if(!n.dark){let e=r.d(i,o,s);e&&e!==s&&(n._={value:uv(e,{opacityVariable:d||void 0,opacityValue:f||"1"}),color:t=>uv(e,t),opacityVariable:d||void 0,opacityValue:f||void 0},p={"&":p,[r.v("dark")]:h(n,r)})}return p}}function vv(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function gv(e,t,n){if("["==e[0]&&"]"==e.slice(-1)){if(e=bv(function(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o="")=>{let a=t(r,o);return"function"==typeof a&&/color|fill|stroke/i.test(r)?uv(a):""+sv(a).filter(e=>Object(e)!==e)})}(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!/^color:/.test(e)&&!/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e)||/image/i.test(t)&&!/^image:/.test(e)&&!/^[a-z-]+\(/.test(e)||/weight/i.test(t)&&!/^(number|any):/.test(e)&&!/^\d+$/.test(e)||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function yv(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function bv(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>bv(t)+n+bv(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let _v=[lv("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:gv(`[${t}]`,"",n)}}})),lv("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),hv("aspect-","aspectRatio"),lv("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),o={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...a("xs")};for(let s in n){let e=n[s];"string"==typeof e&&(o[av(e)]={"&":{maxWidth:e,...a(s)}})}return o;function a(e){let t=i&&("string"==typeof i?i:i[e]||i.DEFAULT);if(t)return{paddingRight:t,paddingLeft:t}}}),hv("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),lv("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),lv("box-(border|content)","boxSizing",({1:e})=>e+"-box"),lv("hidden",{display:"none"}),lv("table-(auto|fixed)","tableLayout"),lv(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",lv("isolate","isolation"),lv("object-(contain|cover|fill|none|scale-down)","objectFit"),hv("object-","objectPosition"),lv("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",wv),lv("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),lv("(static|fixed|absolute|relative|sticky)","position"),hv("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:"-x"!=e&&t,right:"-y"!=e&&t,bottom:"-x"!=e&&t,left:"-y"!=e&&t})),hv("-?(top|bottom|left|right)(?:$|-)","inset"),lv("(visible|collapse)","visibility"),lv("invisible",{visibility:"hidden"}),hv("-?z-","zIndex"),lv("flex-((row|col)(-reverse)?)","flexDirection",Cv),lv("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),hv("(flex-(?:grow|shrink))(?:$|-)"),hv("(flex)-"),hv("grow(?:$|-)","flexGrow"),hv("shrink(?:$|-)","flexShrink"),hv("basis-","flexBasis"),hv("-?(order)-"),"-?(order)-(\\d+)",hv("grid-cols-","gridTemplateColumns"),lv("grid-cols-(\\d+)","gridTemplateColumns",Pv),hv("col-","gridColumn"),lv("col-(span)-(\\d+)","gridColumn",Rv),hv("col-start-","gridColumnStart"),lv("col-start-(auto|\\d+)","gridColumnStart"),hv("col-end-","gridColumnEnd"),lv("col-end-(auto|\\d+)","gridColumnEnd"),hv("grid-rows-","gridTemplateRows"),lv("grid-rows-(\\d+)","gridTemplateRows",Pv),hv("row-","gridRow"),lv("row-(span)-(\\d+)","gridRow",Rv),hv("row-start-","gridRowStart"),lv("row-start-(auto|\\d+)","gridRowStart"),hv("row-end-","gridRowEnd"),lv("row-end-(auto|\\d+)","gridRowEnd"),lv("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>wv(Cv(e))),lv("grid-flow-(dense)","gridAutoFlow"),hv("auto-cols-","gridAutoColumns"),hv("auto-rows-","gridAutoRows"),hv("gap-x(?:$|-)","gap","columnGap"),hv("gap-y(?:$|-)","gap","rowGap"),hv("gap(?:$|-)","gap"),"(justify-(?:items|self))-",lv("justify-","justifyContent",Ev),lv("(content|items|self)-",e=>({["align-"+e[1]]:Ev(e)})),lv("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),hv("p([xytrbl])?(?:$|-)","padding",Tv("padding")),hv("-?m([xytrbl])?(?:$|-)","margin",Tv("margin")),hv("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),lv("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),hv("w-","width"),hv("min-w-","minWidth"),hv("max-w-","maxWidth"),hv("h-","height"),hv("min-h-","minHeight"),hv("max-h-","maxHeight"),hv("font-","fontWeight"),hv("font-","fontFamily",({_:e})=>"string"==typeof(e=sv(e))[1]?{fontFamily:Sv(e)}:{fontFamily:Sv(e[0]),...e[1]}),lv("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),lv("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),lv("italic","fontStyle"),lv("not-italic",{fontStyle:"normal"}),lv("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>"normal"==t?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...kv({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),hv("tracking-","letterSpacing"),hv("leading-","lineHeight"),lv("list-(inside|outside)","listStylePosition"),hv("list-","listStyleType"),lv("list-","listStyleType"),hv("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),$v("placeholder-",{property:"color",selector:"&::placeholder"}),lv("text-(left|center|right|justify|start|end)","textAlign"),lv("text-(ellipsis|clip)","textOverflow"),hv("text-opacity-","textOpacity","--tw-text-opacity"),$v("text-",{property:"color"}),hv("text-","fontSize",({_:e})=>"string"==typeof e?{fontSize:e}:{fontSize:e[0],..."string"==typeof e[1]?{lineHeight:e[1]}:e[1]}),hv("indent-","textIndent"),lv("(overline|underline|line-through)","textDecorationLine"),lv("no-underline",{textDecorationLine:"none"}),hv("underline-offset-","textUnderlineOffset"),$v("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),hv("decoration-","textDecorationThickness"),lv("decoration-","textDecorationStyle"),lv("(uppercase|lowercase|capitalize)","textTransform"),lv("normal-case",{textTransform:"none"}),lv("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),lv("align-","verticalAlign"),lv("whitespace-","whiteSpace"),lv("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),lv("break-words",{overflowWrap:"break-word"}),lv("break-all",{wordBreak:"break-all"}),lv("break-keep",{wordBreak:"keep-all"}),$v("caret-",{opacityVariable:!1,opacitySection:"opacity"}),$v("accent-",{opacityVariable:!1,opacitySection:"opacity"}),lv("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${xv(e," ")},var(--tw-gradient-stops))`),$v("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),$v("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),$v("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),lv("bg-(fixed|local|scroll)","backgroundAttachment"),lv("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),lv(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),lv("bg-blend-","backgroundBlendMode"),lv("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+("text"==e?"":"-box")),hv("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),$v("bg-",{section:"backgroundColor"}),hv("bg-","backgroundImage"),hv("bg-","backgroundPosition"),lv("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",wv),hv("bg-","backgroundSize"),hv("rounded(?:$|-)","borderRadius"),hv("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${xv(n[0])}-radius`]:t,[`border-${xv(n[1])}-radius`]:t}}),lv("border-(collapse|separate)","borderCollapse"),hv("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),lv("border-(solid|dashed|dotted|double|none)","borderStyle"),hv("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...kv({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),$v("border-([xytrbl])-",{section:"borderColor"},Tv("border","Color")),$v("border-"),hv("border-([xytrbl])(?:$|-)","borderWidth",Tv("border","Width")),hv("border(?:$|-)","borderWidth"),hv("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),lv("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),lv("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),hv("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${xv(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${xv(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),$v("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),hv("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),$v("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),hv("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),lv("ring-inset",{"--tw-ring-inset":"inset"}),$v("ring-",{property:"--tw-ring-color"}),hv("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...kv({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":uv(t("ringOffsetColor","","#fff")),"--tw-ring-color":uv(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),$v("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),hv("shadow(?:$|-)","boxShadow",({_:e})=>({...kv({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Sv(e),"--tw-shadow-colored":Sv(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),hv("(opacity)-"),lv("mix-blend-","mixBlendMode"),...Av(),...Av("backdrop-"),hv("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Sv(e),transitionTimingFunction:"none"==e._?void 0:Sv(t("transitionTimingFunction","")),transitionDuration:"none"==e._?void 0:Sv(t("transitionDuration",""))})),hv("duration(?:$|-)","transitionDuration","transitionDuration",Sv),hv("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Sv),hv("delay(?:$|-)","transitionDelay","transitionDelay",Sv),hv("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let i=Sv(e),o=i.split(" "),a=t("keyframes",o[0]);return a?{["@keyframes "+(o[0]=r(n(o[0])))]:a,animation:o.join(" ")}:{animation:i}}),"(transform)-(none)",lv("transform",Ov),lv("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Iv("gpu"==e)})),hv("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Ov()})),hv("-?(rotate)-","rotate",Nv),hv("-?(translate-[xy])-","translate",Nv),hv("-?(skew-[xy])-","skew",Nv),lv("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",wv),"(appearance)-",hv("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",hv("(cursor)-"),"(cursor)-",lv("snap-(none)","scroll-snap-type"),lv("snap-(x|y|both)",({1:e})=>({...kv({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),lv("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),lv("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),lv("snap-(normal|always)","scroll-snap-stop"),lv("scroll-(auto|smooth)","scroll-behavior"),hv("scroll-p([xytrbl])?(?:$|-)","padding",Tv("scroll-padding")),hv("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Tv("scroll-margin")),lv("touch-(auto|none|manipulation)","touch-action"),lv("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...kv({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),lv("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),lv("outline",{outlineStyle:"solid"}),lv("outline-(dashed|dotted|double)","outlineStyle"),hv("-?(outline-offset)-"),$v("outline-",{opacityVariable:!1,opacitySection:"opacity"}),hv("outline-","outlineWidth"),"(pointer-events)-",hv("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"}[e]||e||"both")],lv("select-(none|text|all|auto)","userSelect"),$v("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),$v("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),hv("stroke-","strokeWidth"),lv("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),lv("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function wv(e){return("string"==typeof e?e:e[1]).replace(/-/g," ").trim()}function Cv(e){return("string"==typeof e?e:e[1]).replace("col","column")}function xv(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Sv(e){return e&&""+(e._||e)}function Ev({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Tv(e,t=""){return({1:n,_:r})=>{let i={x:"lr",y:"tb"}[n]||n+n;return i?{...vv(e+"-"+xv(i[0])+t,r),...vv(e+"-"+xv(i[1])+t,r)}:vv(e+t,r)}}function Av(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...kv(n),[`${e}filter`]:t.map(t=>`var(--tw-${e}${t})`).join(" ")},[`(${e}filter)-(none)`,lv(`${e}filter`,n),...t.map(t=>hv(`${"h"==t[0]?"-?":""}(${e}${t})(?:$|-)`,t,({1:e,_:r})=>({[`--tw-${e}`]:sv(r).map(e=>`${t}(${e})`).join(" "),...n})))]}function Nv({1:e,_:t}){return{["--tw-"+e]:t,...Ov()}}function Ov(){return{...kv({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Iv()}),transform:"var(--tw-transform)"}}function Iv(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Rv({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Pv({1:e}){return`repeat(${e},minmax(0,1fr))`}function kv(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}let Dv=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||gv(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:i=t},{e:o,h:a,v:s})=>{let d=bv(r)||("["==n[0]?n:s(n.slice(1)));return`${(d.includes("&")?d:"&"+d).replace(/&/g,`:merge(.${o(a(e+i))})`)}${"p"==e[0]?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&(e=t.theme("supports",e)||gv(e,"",t)),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&(e=t.theme("screens",e)||gv(e,"",t)),"string"==typeof e)return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&(e=gv(e,"",t)),e&&`@media (min-width:${e})`)],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&bv(e).replace(/[}]+$/,"").split("{")]];let Mv={__proto__:null,slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"}};const Lv=globalThis;if(!Lv.__twindInitialized){Qm({presets:[function({disablePreflight:e}={}){return function({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:ov,theme:{...ev,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:Dv,rules:_v,finalize:e=>e.n&&e.d&&e.r.some(e=>/^&::(before|after)$/.test(e))&&!/(^|;)content:/.test(e.d)?{...e,d:"content:var(--tw-content);"+e.d}:e}}({colors:Mv,disablePreflight:e})}({disablePreflight:!1})],theme:{extend:{colors:{primary:"#1f7aed",primaryDark:"#1557a5",accent:"#1dd1a1"}}}}),Lv.__twindInitialized=!0}const jv="undefined"!=typeof window?window.__CALLIX_API_BASE_URL__||(window.location.origin.includes("localhost")?window.location.origin:"https://callix-zeta.vercel.app"):"";function Uv(){const e=function(){if("undefined"==typeof window)return null;const e=localStorage.getItem("callix_dialer_last_username");if(e){const t=`callix_dialer_${e}_session_token`,n=localStorage.getItem(t);if(n)return n}for(let t=0;t<localStorage.length;t++){const e=localStorage.key(t);if(e&&e.match(/^callix_dialer_.*_session_token$/)){const t=localStorage.getItem(e);if(t)return t}}return null}(),t={"Content-Type":"application/json"};return e&&(t["x-session-token"]=e),t}async function Fv(e){const t=`${jv}/api/campaign-fields/${e}`,n=await fetch(t,{method:"GET",headers:Uv(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar mapeamento: ${n.status}`)}return await n.json()}async function Bv(e){const t=`${jv}/api/campaign-contact/${e}`,n=await fetch(t,{method:"GET",headers:Uv(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar valores: ${n.status}`)}return await n.json()}function qv(){const e=wf.useCallOperatorCurrentCallInfo();return t.useEffect(()=>{console.log("[CallInfoDisplay] Call info atualizado:",{callInfo:e,type:null==e?void 0:e.type,hasCampaignInfo:"campaign"===(null==e?void 0:e.type),info:"campaign"===(null==e?void 0:e.type)?e.info:null,campaignContact:"campaign"===(null==e?void 0:e.type)?e.info.campaignContact:null})},[e]),"campaign"===(null==e?void 0:e.type)?v.jsx(Hv,{campaignCallInfo:e.info}):e?v.jsx("div",{className:"bg-yellow-50 rounded-lg p-3 mb-4",children:v.jsx("p",{className:"text-xs text-yellow-700",children:"Chamada manual (sem informações de campanha)"})}):null}function Hv(e){const{campaign:n,campaignList:r,campaignContact:i}=e.campaignCallInfo,[o,a]=t.useState({finalData:{},isLoading:!1,error:null}),[s,d]=t.useState(null);t.useEffect(()=>{if(!(null==i?void 0:i.id))return;if(s===i.id)return;let e=!1;return(async()=>{a({finalData:{},isLoading:!0,error:null});try{console.log("[CampaignCallInfoDisplay] 1. Buscando config para contato:",i.id);const t=await async function(e){const t=`${jv}/api/campaign-config/${e}`,n=await fetch(t,{method:"GET",headers:Uv(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar config: ${n.status}`)}return await n.json()}(i.id);if(console.log("[CampaignCallInfoDisplay] 2. Config recebida:",t),!t.campaignModelId)throw new Error("campaignModelId não encontrado");console.log("[CampaignCallInfoDisplay] 3. Buscando mapeamento e valores em paralelo...");const[n,r]=await Promise.all([Fv(t.campaignModelId),Bv(i.id)]);console.log("[CampaignCallInfoDisplay] 4. Mapeamento recebido:",n),console.log("[CampaignCallInfoDisplay] 5. Valores recebidos:",r);const o={};Object.entries(r).forEach(([e,t])=>{e in n&&(o[n[e]]=t)}),e||(console.log("[CampaignCallInfoDisplay] ✅ Dados finais mapeados:",o),a({finalData:o,isLoading:!1,error:null}),d(i.id))}catch(t){if(!e){console.error("[CampaignCallInfoDisplay] ❌ Erro ao buscar dados:",t);const e=t instanceof Error?t.message:"Erro ao buscar dados do contato";a({finalData:{},isLoading:!1,error:e})}}})(),()=>{e=!0}},[null==i?void 0:i.id,s]);const u=Object.keys(o.finalData).length>0,l=({fieldName:e,label:t})=>{const n=t||e;let r="-";if(o.finalData[e])r=o.finalData[e];else{const t=Object.keys(o.finalData).find(t=>t.toLowerCase()===e.toLowerCase());t&&(r=o.finalData[t])}return v.jsxs("div",{className:"bg-white/60 rounded-lg p-2 border border-blue-100",children:[v.jsx("p",{className:"text-[9px] text-slate-500 uppercase tracking-wide font-semibold mb-0.5 truncate",children:n}),v.jsx("p",{className:"text-xs text-slate-800 font-semibold break-words line-clamp-2",children:r})]})};return v.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-xl p-3 mb-4 shadow-sm border border-blue-100",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx("div",{className:"inline-flex h-6 w-6 items-center justify-center rounded-lg bg-blue-500 text-white",children:v.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),v.jsx("h3",{className:"text-sm font-bold text-slate-800",children:"Informações da Campanha"})]}),o.isLoading&&v.jsxs("div",{className:"bg-white/60 rounded-lg p-6 border border-blue-100 text-center",children:[v.jsx("div",{className:"inline-block h-6 w-6 animate-spin rounded-full border-2 border-blue-500 border-t-transparent"}),v.jsx("p",{className:"text-xs text-slate-600 mt-2 font-medium",children:"Carregando dados do contato..."})]}),o.error&&v.jsxs("div",{className:"bg-red-50 rounded-lg p-3 border border-red-200",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("svg",{className:"w-4 h-4 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsx("p",{className:"text-xs text-red-700 font-semibold",children:"Erro ao carregar dados"})]}),v.jsx("p",{className:"text-[10px] text-red-600 ml-6",children:o.error}),o.error.includes("Muitas requisições")&&v.jsx("button",{onClick:()=>d(null),className:"mt-2 ml-6 text-[10px] text-red-700 underline hover:text-red-800",children:"Tentar novamente"})]}),!o.isLoading&&!o.error&&u&&v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[v.jsx(l,{fieldName:"CNPJ",label:"CNPJ"}),v.jsx(l,{fieldName:"EMPRESA",label:"EMPRESA"}),v.jsx(l,{fieldName:"TOTAL BENEFICIO",label:"TOTAL BENEFÍCIO"})]}),v.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[v.jsx(l,{fieldName:"DECISOR",label:"DECISOR"}),v.jsx(l,{fieldName:"PRODUTO PROSPECTADO",label:"PRODUTO PROSPECTADO"}),v.jsx(l,{fieldName:"VALOR QUE PAGA POR MÊS EM PARCELAMENTOS",label:"VALOR PARCELAMENTO"})]}),v.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[v.jsx(l,{fieldName:"TOTAL SALDO DEVEDOR PGFN",label:"SALDO DEVEDOR PGFN"}),v.jsx(l,{fieldName:"TOTAL SALDO DEVEDOR RFB",label:"SALDO DEVEDOR RFB"}),v.jsx(l,{fieldName:"DIVIDA ATIVA",label:"DÍVIDA ATIVA"})]}),v.jsxs("div",{className:"grid grid-cols-4 gap-1.5",children:[v.jsx(l,{fieldName:"CORRESPONSABILIDADE SOCIO",label:"CORRESP. SÓCIO"}),v.jsx(l,{fieldName:"EXECUÇÃO FISCAL",label:"EXECUÇÃO FISCAL"}),v.jsx(l,{fieldName:"TRANSAÇÃO COM BENEFICIO",label:"TRANSAÇÃO BENEFÍCIO"}),v.jsx(l,{fieldName:"REGIME TRIBUTARIO",label:"REGIME TRIBUTÁRIO"})]})]})]})}function zv(e){let t=e.replace(/\D/g,"");if(!t)return"";for(t.startsWith("55")&&t.length>=12&&(t=t.substring(2));t.startsWith("0")&&t.length>11;)t=t.substring(1);const n=t.length;if(11===n){const e=t.substring(0,2),n=t.substring(2);return"9"===n[0]?t:9===n.length?e+"9"+n:t}if(10===n){const e=t.substring(0,2),n=t.substring(2);return"9"===n[0]?t:e+"9"+n}if(12===n){if("0"===t[0])return zv(t.substring(1));const e=t.substring(n-11);return"9"===e[2]?e:t.substring(1)}if(13===n)return t.substring(2);if(9===n)return"9"===t[0]?"48"+t:"489"+t;if(8===n)return"489"+t;if(n<8)return t;if(n>13){const e=t.substring(n-11);if("9"===e[2])return e;const r=t.substring(n-10);if("9"!==r[2]){return r.substring(0,2)+"9"+r.substring(2)}}return t}const Gv={width:448,height:640},Wv=280,Vv=420,Kv=1024,Yv=[{value:"1",detail:""},{value:"2",detail:"ABC"},{value:"3",detail:"DEF"},{value:"4",detail:"GHI"},{value:"5",detail:"JKL"},{value:"6",detail:"MNO"},{value:"7",detail:"PQRS"},{value:"8",detail:"TUV"},{value:"9",detail:"WXYZ"},{value:"*",detail:""},{value:"0",detail:"+"},{value:"#",detail:""}],Xv={rttMs:null,bitrateKbps:null,packetLossRatio:null},Jv={jitterMs:null,packetLossRatio:null,audioLevel:null},Zv="candidate-pair",Qv="inbound-rtp";function eg({isAuthenticated:e,username:n,onLogin:r,onLogout:i,isLoadingSession:o,sessionError:a,variant:s="default"}){const d=t.useRef(null),u=t.useRef(null),l=t.useRef({pointerId:null,offsetX:0,offsetY:0}),c=t.useRef({pointerId:null,originX:0,originY:0,startWidth:Gv.width,startHeight:Gv.height,edge:"corner"}),f=t.useRef(!1),[h,p]=t.useState({x:24,y:24}),[$,m]=t.useState(!1),[g,y]=t.useState(!1),[b,_]=t.useState(!1),[w,C]=t.useState(""),[x,S]=t.useState(null),[E,T]=t.useState({width:Gv.width,height:Gv.height}),A=t.useRef(e),N=t.useMemo(()=>rg(w),[w]),O="min"===s,I=t.useMemo(()=>{const e=E.width/Gv.width,t=E.height/Gv.height;return ug(Math.min(e,t),.55,2.5)},[E]),R=t.useCallback(e=>{if("undefined"==typeof window)return{width:ug(e.width,Wv,Kv),height:ug(e.height,Vv,960)};const t=window.innerWidth,n=window.innerHeight,r=t<640?12:16,i=Math.min(Kv,t-2*r),o=Math.min(960,n-2*r);return{width:ug(e.width,Wv,Math.max(Wv,i)),height:ug(e.height,Vv,Math.max(Vv,o))}},[]),P=t.useCallback(e=>{if("undefined"==typeof window)return e;const t=window.innerWidth,n=window.innerHeight,r=d.current,i=(null==r?void 0:r.offsetWidth)??0,o=(null==r?void 0:r.offsetHeight)??0,a=x??E??Gv,s=b?a.width:80,u=b?a.height:80,l=i>0?i:s,c=o>0?o:u,f=t<640?12:16,h=f,p=f,$=Math.max(h,t-l-f),m=Math.max(p,n-c-f);let v=e.x,g=e.y;return t<640&&b&&(v=Math.round((t-l)/2),g=f),n<c+2*f&&(g=f),{x:ug(v,h,$),y:ug(g,p,m)}},[b,x,E]),k=t.useCallback(e=>{C(t=>rg("function"==typeof e?e(t):e))},[]);t.useEffect(()=>{var e,t;if("undefined"==typeof window)return;const n=(null==(e=d.current)?void 0:e.offsetWidth)??96,r=(null==(t=d.current)?void 0:t.offsetHeight)??96,i=window.innerWidth-n-24,o=window.innerHeight-r-24;p(P({x:i,y:o}))},[P]),t.useEffect(()=>{p(e=>P(e))},[b,P]),t.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{p(e=>P(e)),S(e=>e?R(e):e)};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[P,R]),t.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;const t=(e,t)=>{T({width:e,height:t})};if("undefined"!=typeof ResizeObserver){const n=new ResizeObserver(e=>{const n=e[0];if(n){const{width:e,height:r}=n.contentRect;t(e,r)}});return n.observe(e),()=>n.disconnect()}const n=e.getBoundingClientRect();t(n.width,n.height)},[b,x]),t.useEffect(()=>{e&&!A.current&&_(!0),A.current=e},[e]),t.useEffect(()=>{if(!$)return;const e=e=>{var t,n;if(l.current.pointerId!==e.pointerId)return;f.current=!0;const r=(null==(t=d.current)?void 0:t.offsetWidth)??0,i=(null==(n=d.current)?void 0:n.offsetHeight)??0,o=e.clientX-l.current.offsetX,a=e.clientY-l.current.offsetY,s="undefined"!=typeof window?window.innerWidth:0,u=s<640?12:16,c=s-r-u,h=("undefined"!=typeof window?window.innerHeight:0)-i-u,$=Math.max(u,c),m=Math.max(u,h);p({x:ug(o,u,$),y:ug(a,u,m)})},t=e=>{l.current.pointerId===e.pointerId&&(m(!1),l.current={pointerId:null,offsetX:0,offsetY:0})};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}},[$]),t.useEffect(()=>{if(!g)return;const e=e=>{if(c.current.pointerId!==e.pointerId)return;e.preventDefault();const{edge:t,startWidth:n,startHeight:r,originX:i,originY:o}=c.current;let a=n,s=r;"right"!==t&&"corner"!==t||(a=n+(e.clientX-i)),"bottom"!==t&&"corner"!==t||(s=r+(e.clientY-o));const d=R({width:a,height:s});S(e=>e&&e.width===d.width&&e.height===d.height?e:d)},t=e=>{var t,n;if(c.current.pointerId===e.pointerId){try{null==(n=null==(t=e.target)?void 0:t.releasePointerCapture)||n.call(t,e.pointerId)}catch{}y(!1),c.current={...c.current,pointerId:null}}};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[g,R]),t.useEffect(()=>{b||(f.current=!1)},[b]),t.useEffect(()=>{p(e=>P(e))},[x,E,P]);const D=t.useCallback(e=>t=>{var n,r;if(0!==t.button&&"touch"!==t.pointerType)return;t.preventDefault(),t.stopPropagation();const i=u.current,o=null==i?void 0:i.getBoundingClientRect(),a=(null==o?void 0:o.width)??(null==x?void 0:x.width)??Gv.width,s=(null==o?void 0:o.height)??(null==x?void 0:x.height)??Gv.height;c.current={pointerId:t.pointerId,originX:t.clientX,originY:t.clientY,startWidth:a,startHeight:s,edge:e};try{null==(r=(n=t.currentTarget).setPointerCapture)||r.call(n,t.pointerId)}catch{}y(!0)},[x]),M=t.useCallback(e=>{var t;if(0!==e.button)return;const n=null==(t=d.current)?void 0:t.getBoundingClientRect();l.current={pointerId:e.pointerId,offsetX:e.clientX-((null==n?void 0:n.left)??0),offsetY:e.clientY-((null==n?void 0:n.top)??0)},f.current=!1,m(!0)},[]),L=t.useCallback(()=>{f.current?f.current=!1:_(e=>!e)},[]),j=t.useCallback(async e=>{const t=e.trim();t&&await r(t)},[r]),U=e?v.jsx(ng,{username:n??"",dialValue:N,setDialValue:k,onLogout:i,variant:s}):v.jsx(tg,{defaultValue:n??"",onSubmit:j,isLoading:o,error:a});if(O)return U;const F=Number.isFinite(I)&&I>0?I:1,B=Gv.width/F,q=Gv.height/F,H={width:x?`${x.width}px`:void 0,height:x?`${x.height}px`:void 0,minWidth:"280px",minHeight:"420px",maxWidth:"min(1024px, calc(100vw - 1.5rem))",maxHeight:"calc(100vh - 3rem)"},z={flex:1,display:"flex",flexDirection:"column",transform:`scale(${F})`,transformOrigin:"top left",width:`${B}px`,minHeight:`${q}px`},G={flex:1,display:"flex",flexDirection:"column",width:`${Gv.width}px`,minHeight:`${Gv.height}px`};return v.jsx("div",{ref:d,className:["callix","mode","full",Zm`fixed z-50 select-none`].join(" "),"data-callix-variant":"default",style:{transform:`translate3d(${h.x}px, ${h.y}px, 0)`,top:0,left:0},children:b?v.jsxs("div",{ref:u,"data-floating-dialer-card":"true",className:Zm`relative flex flex-col items-start overflow-hidden rounded-3xl border border-slate-200/60 bg-gradient-to-br from-white/95 via-slate-50/95 to-white/90 shadow-2xl backdrop-blur-lg transition-all duration-300 w-[min(32rem,calc(100vw-1.5rem))] max-w-[calc(100vw-1.5rem)] sm:w-[28rem] md:w-[30rem] max-h-[calc(100vh-3rem)] sm:max-h-none`,style:H,children:[v.jsx("div",{className:Zm`flex flex-1 flex-col overflow-hidden`,style:z,children:v.jsxs("div",{"data-floating-dialer-content":!0,className:Zm`flex flex-1 flex-col rounded-3xl overflow-hidden`,style:G,children:[v.jsxs("div",{className:Zm`cursor-grab touch-none active:cursor-grabbing flex items-center justify-between bg-gradient-to-r from-primary to-primaryDark px-4 py-3 text-white shadow-sm`,onPointerDown:M,children:[v.jsxs("div",{className:Zm`flex items-center gap-3`,children:[v.jsx("span",{className:Zm`inline-flex h-10 w-10 items-center justify-center rounded-2xl bg-white/15 shadow-inner`,children:v.jsx(Bp,{className:Zm`text-xl`})}),v.jsxs("div",{className:Zm`space-y-0.5`,children:[v.jsx("p",{className:Zm`text-[11px] uppercase tracking-[0.2em] text-white/70`,children:"Discadora"}),v.jsx("p",{className:Zm`text-base font-semibold`,children:n??"Visitante"})]})]}),v.jsx("button",{type:"button",className:Zm`rounded-full p-2 text-white/80 transition hover:bg-white/15 hover:text-white`,onClick:()=>_(!1),"aria-label":"Fechar discadora",children:v.jsx(Zp,{className:Zm`text-lg`})})]}),v.jsx("div",{className:Zm`flex-1 overflow-y-auto p-3`,children:U})]})}),v.jsx("div",{role:"presentation","data-floating-dialer-resize":"right","aria-hidden":"true",className:Zm`absolute right-0 top-16 bottom-12 w-3 cursor-ew-resize touch-none rounded-md border border-transparent transition-colors duration-150 hover:border-primary/30 hover:bg-primary/10`,onPointerDown:D("right")}),v.jsx("div",{role:"presentation","data-floating-dialer-resize":"bottom","aria-hidden":"true",className:Zm`absolute left-16 right-12 bottom-0 h-3 cursor-ns-resize touch-none rounded-md border border-transparent transition-colors duration-150 hover:border-primary/30 hover:bg-primary/10`,onPointerDown:D("bottom")}),v.jsx("div",{role:"presentation","data-floating-dialer-resize":"corner",className:Zm`absolute bottom-1 right-1 flex h-6 w-6 items-center justify-center cursor-nwse-resize touch-none`,onPointerDown:D("corner"),"aria-label":"Redimensionar discadora",children:v.jsx("span",{className:Zm`h-3 w-3 rotate-45 rounded-sm border border-slate-300 bg-white/80 shadow`})})]}):v.jsx("button",{type:"button",onPointerDown:M,onClick:L,className:Zm`flex h-16 w-16 items-center justify-center rounded-full bg-primary text-white shadow-xl transition-transform hover:scale-105 hover:bg-primaryDark focus:outline-none focus:ring-4 focus:ring-primary/30`,"aria-label":"Abrir discadora",children:v.jsx(zp,{className:Zm`text-2xl`})})})}function tg({defaultValue:e,onSubmit:n,isLoading:r,error:i}){const[o,a]=t.useState(e),[s,d]=t.useState(!1);t.useEffect(()=>{a(e)},[e]);const u=s&&!o.trim();return v.jsxs("form",{className:Zm`space-y-4`,onSubmit:async e=>{e.preventDefault(),d(!0),o.trim()&&await n(o)},children:[v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsxs("label",{className:Zm`flex items-center gap-2 text-sm font-medium text-slate-700`,htmlFor:"dialer-username",children:[v.jsx(Vp,{className:Zm`text-base text-primary`}),"Usuario"]}),v.jsx("input",{id:"dialer-username",type:"text",placeholder:"Digite seu usuario Callix",className:Zm`w-full rounded-xl border border-slate-200 bg-white px-3 py-2 text-base shadow-inner focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/40`,value:o,onChange:e=>a(e.target.value),onBlur:()=>d(!0),disabled:r}),u&&v.jsx("p",{className:Zm`text-xs text-red-500`,children:"Informe um usuario para continuar."}),i&&v.jsx("p",{className:Zm`text-xs text-red-500`,children:i})]}),v.jsxs("button",{type:"submit",disabled:r,className:Zm`flex w-full items-center justify-center gap-2 rounded-xl bg-primary px-4 py-2 text-white shadow-lg transition hover:bg-primaryDark disabled:cursor-not-allowed disabled:opacity-60`,children:[r&&v.jsx("span",{className:Zm`inline-flex h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white`}),"Entrar"]})]})}function ng({username:e,dialValue:n,setDialValue:r,onLogout:i,variant:o}){var a,s;const d=wf.useCallOperator(),u="min"===o,{skipManualQualification:l}=Tg(),c=wf.useCallOperatorState(),f=wf.useCallOperatorCurrentCall(),h=wf.useCallOperatorCurrentCallInfo(),p=wf.useCallOperatorSuccessQualifications(),$=wf.useCallOperatorDiscardQualifications();t.useEffect(()=>{console.log("[FloatingDialer] Estado do operador mudou:",{state:null==c?void 0:c.state,operatorState:c,hasCall:!!f,currentCall:f})},[c,f]),t.useEffect(()=>{console.log("[FloatingDialer] Qualifica��es:",{success:p,discard:$,callState:null==c?void 0:c.state})},[p,$,null==c?void 0:c.state]),t.useEffect(()=>{"incoming"===(null==f?void 0:f.direction)&&console.log("[FloatingDialer] ?? CHAMADA RECEBIDA:",{call:f,direction:f.direction,state:null==c?void 0:c.state,counterpart:ag(f)})},[f,null==c?void 0:c.state]);const{makeManualCall:m,becomeAvailable:g,finishAfterCall:y}=wf.useCallOperatorControls(),{hangup:b,answer:_,reject:w}=wf.useCallOperatorCurrentCallControls(),[C,x]=t.useState(!1),S=t.useRef(null),E=t.useRef(null),T=t.useRef(null),[A,N]=t.useState(null),[O,I]=t.useState(null),[R,P]=t.useState(null),[k,D]=t.useState(!1),[M,L]=t.useState("success"),[j,U]=t.useState(null),[F,B]=t.useState(0),[q,H]=t.useState(Xv),[z,G]=t.useState(Jv),W=t.useRef(null),V=t.useRef(!1),[K,Y]=wf.useCallOperatorAudioInputMuted(),[X,J]=wf.useCallOperatorAudioOutputMuted(),[Z,Q]=wf.useCallOperatorAudioOutputVolume(),[ee,te]=t.useState({inputs:[],outputs:[]}),[ne,re]=t.useState(null),[ie,oe]=t.useState(null),[ae,se]=t.useState(null),[de,ue]=t.useState(!1),le=t.useRef(null),[ce,fe]=t.useState(null),[he,pe]=t.useState(!1),[$e,me]=t.useState(null),ve=function(e){const[n,r]=t.useState(null==e?void 0:e.get());return t.useEffect(()=>{if(e)return r(e.get()),e.subscribe(e=>{r(e)});r(void 0)},[e]),n}(null==d?void 0:d.breaks)||[],{goOnBreak:ge,goOffBreak:ye}=function(){const{enterOnBreak:e,becomeAvailable:t}=wf.useCallOperatorControls();return{goOnBreak:e,goOffBreak:t}}(),be=t.useMemo(()=>n.slice(0,32),[n]),_e=t.useMemo(()=>function(e,t){const n=rg(e);if(!n)return"";const r=n.startsWith("+"),i=n.replace(/[^0-9]/g,""),o=t.replace(/[^0-9]/g,""),a=o.length||2,s=r?i.slice(0,Math.min(a,i.length)):o||i.slice(0,a);let d=r?i.slice(s.length):i;const u=r?`+${s}`:t;if("55"===s&&d.length>=8){return`${u} (${d.slice(0,2)}) ${d.slice(2,Math.max(d.length-4,2))}-${d.slice(-4)}`.replace(/\s+/g," ").trim()}if(!d)return u.trim();const l=[];for(;d.length>4;)l.push(d.slice(0,3)),d=d.slice(3);d&&l.push(d);const c=l.join(" ");return`${u} ${c}`.replace(/\s+/g," ").trim()}(be,"+55"),[be]),we=t.useMemo(()=>function(e,t){const n=rg(e);if(!n)return null;if(n.startsWith("+"))return n.replace(/[^0-9+]/g,"");const r=n.replace(/[^0-9]/g,"");if(!r)return null;const i=t.replace(/[^0-9]/g,"");if(!i)return`+${r}`;return`+${i}${r}`}(be,"+55"),[be]),Ce=null==c?void 0:c.state,xe="idle"===Ce,Se="onBreak"===Ce,Ee="incoming"===(null==f?void 0:f.direction),Te="callInProgress"===Ce,Ae="manualCallRinging"===Ce||"callRinging"===Ce,Ne="manualCallSetup"===Ce||Ae,Oe=!Ce||"starting"===Ce||"idle"===Ce||"manualCallSetup"===Ce||"onBreak"===Ce,Ie=Oe||Te||Ae,Re=Boolean(we&&function(e){try{return vp(e)}catch(t){return console.warn("Falha ao validar numero",t),!1}}(we)),Pe=t.useCallback(async e=>{if("function"==typeof g)try{await Promise.resolve(g())}catch(t){console.error(e,t),I(e)}else I(e)},[g]);t.useEffect(()=>{V.current||(V.current=!0,Pe("Nao foi possivel ficar disponivel automaticamente."))},[Pe]),t.useEffect(()=>{"idle"===Ce&&(I(null),N(null))},[Ce]),t.useEffect(()=>{"offline"===Ce&&(I("Conexao perdida. Tentando reconectar..."),Pe("Conexao perdida. Tentando reconectar..."))},[Ce,Pe]),t.useEffect(()=>{if("afterCall"===Ce){if("campaign"===(null==h?void 0:h.type)&&!0===h.info.campaign.skipCallQualification)return console.log("[FloatingDialer] 🚀 skipCallQualification ativado - finalizando automaticamente"),void("function"==typeof y&&Promise.resolve(y({result:"success",qualificationId:void 0})));const e="manual"===(null==h?void 0:h.type),t=0===p.length&&0===$.length;if(e&&(l||t))return console.log("[FloatingDialer] 🚀 Chamada manual - finalizando automaticamente (skipManualQualification:",l,", hasNoQualifications:",t,")"),void("function"==typeof y&&Promise.resolve(y({result:"success",qualificationId:void 0})));const n=p.length>0;L(n?"success":"failure"),U(null),P(null)}},[Ce,p.length,$.length,h,y,l]),t.useEffect(()=>{if("undefined"==typeof window)return;if("starting"!==Ce)return;const e=window.setTimeout(()=>{I(e=>e??"Conexao demorando mais que o esperado. Verifique rede ou credenciais.")},8e3);return()=>window.clearTimeout(e)},[Ce]),t.useEffect(()=>{"manualCallRinging"!==Ce&&"callInProgress"!==Ce||r(""),"idle"===Ce&&fe(null)},[Ce,r]),t.useEffect(()=>{var e;if("undefined"==typeof navigator||!(null==(e=navigator.mediaDevices)?void 0:e.enumerateDevices))return;let t=!1;const n=async()=>{try{navigator.mediaDevices.getUserMedia&&await navigator.mediaDevices.getUserMedia({audio:!0})}catch(e){console.warn("Permissao de microfone nao concedida ainda",e)}try{const e=await navigator.mediaDevices.enumerateDevices();if(t)return;const n=e.filter(e=>"audioinput"===e.kind),r=e.filter(e=>"audiooutput"===e.kind);te({inputs:n,outputs:r}),se(null),re(e=>{var t;return e??(null==(t=n[0])?void 0:t.deviceId)??null}),oe(e=>{var t;return e??(null==(t=r[0])?void 0:t.deviceId)??null})}catch(e){t||(console.error("Listagem de dispositivos falhou",e),se("Nao foi possivel listar dispositivos de audio. Verifique as permissoes."))}};n();const r=()=>{n()},i=navigator.mediaDevices;return"addEventListener"in i?i.addEventListener("devicechange",r):"ondevicechange"in i&&(i.ondevicechange=r),()=>{t=!0,"removeEventListener"in i?i.removeEventListener("devicechange",r):"ondevicechange"in i&&(i.ondevicechange=null)}},[]),t.useEffect(()=>{if(!f||"callInProgress"!==Ce)return F>0&&console.log("[FloatingDialer] ?? Timer resetado (chamada n�o est� em progresso)"),B(0),H(Xv),void G(Jv);const e=Math.floor(f.currentDurationSeconds??0);B(e),console.log("[FloatingDialer] ?? Timer iniciado:",{initialDuration:e,currentDurationSeconds:f.currentDurationSeconds,callState:Ce});const t=window.setInterval(()=>{const e=Math.floor(f.currentDurationSeconds??0);B(e),e%5==0&&e>0&&console.log("[FloatingDialer] ?? Timer atualizado:",e,"segundos")},1e3);return()=>{console.log("[FloatingDialer] ?? Timer parado"),window.clearInterval(t)}},[f,Ce]),t.useEffect(()=>{if(!f||"callInProgress"!==Ce)return;const e=e=>{const t=ig(e,"stat")??{},n="string"==typeof t.type?t.type:void 0;if(n===Zv){const e=sg(t,"currentRoundTripTime"),n=sg(t,"availableOutgoingBitrate");H(t=>({rttMs:null!=e?1e3*e:t.rttMs,bitrateKbps:null!=n?n/1e3:t.bitrateKbps,packetLossRatio:t.packetLossRatio}))}if(n===Qv){const e=sg(t,"packetsReceived")??0,n=sg(t,"packetsLost")??0,r=e+n,i=r>0?n/r:null,o=sg(t,"jitter"),a=sg(t,"audioLevel");G(e=>({jitterMs:null!=o?1e3*o:e.jitterMs,packetLossRatio:i??e.packetLossRatio,audioLevel:a??e.audioLevel})),H(e=>({rttMs:e.rttMs,bitrateKbps:e.bitrateKbps,packetLossRatio:i??e.packetLossRatio}))}};return f.on("webRTCStat",e),()=>{f.off("webRTCStat",e)}},[f,Ce]),t.useEffect(()=>{var e;if(!ne)return;if("undefined"==typeof navigator||!(null==(e=navigator.mediaDevices)?void 0:e.getUserMedia))return;let t=!1;return(async()=>{var e,n,r,i;const o=null==(n=null==(e=le.current)?void 0:e.getAudioTracks)?void 0:n.call(e)[0],a=null==(r=null==o?void 0:o.getSettings)?void 0:r.call(o).deviceId;let s=le.current;if(!s||a!==ne)try{const e=await navigator.mediaDevices.getUserMedia({audio:{deviceId:{exact:ne}}});if(t)return void e.getTracks().forEach(e=>e.stop());le.current&&le.current!==e&&le.current.getTracks().forEach(e=>e.stop()),le.current=e,s=e}catch(l){return void(t||(console.error("Falha ao acessar microfone selecionado",l),se("Nao foi possivel acessar o microfone selecionado.")))}if(!s)return;const u=s.getAudioTracks()[0];if(u)try{const e=og(d,"setAudioInputDevice");if(e)return await Promise.resolve(e(ne)),void se(null);const t=function(e){const t=ig(e,"rtcSession")??ig(e,"_session")??ig(e,"session"),n=ig(t,"_connection")??ig(t,"connection");if(n)return n;return ig(e,"pc")??void 0}(f),n=null==(i=null==t?void 0:t.getSenders)?void 0:i.call(t).find(e=>{var t;return"audio"===(null==(t=e.track)?void 0:t.kind)});if(null==n?void 0:n.replaceTrack)return await n.replaceTrack(u),void se(null);const r=og(f,"setInputTrack");if(r)return await Promise.resolve(r(u)),void se(null);const o=og(f,"replaceTrack");if(o)return await Promise.resolve(o(u)),void se(null);console.warn("Nao foi possivel aplicar o microfone via API conhecida"),se(null)}catch(l){t||(console.error("Erro ao aplicar microfone",l),se("Nao foi possivel aplicar o microfone selecionado."))}})(),()=>{t=!0}},[ne,d,f]),t.useEffect(()=>{if(!ie||!d)return;(async()=>{try{const e=og(ig(d,"audioOutput"),"setAudioOutputDevice");if(!e)return void console.warn("Nao foi possivel localizar API para alterar dispositivo de saida.");await Promise.resolve(e(ie)),se(null)}catch(e){console.error("Erro ao aplicar dispositivo de saida",e),se("Nao foi possivel aplicar a saida de audio selecionada.")}})()},[ie,d]),t.useEffect(()=>{if(!f)return;const e=e=>{var t,n;const r=(null==(t=null==e?void 0:e.failure)?void 0:t.message)||(null==(n=null==e?void 0:e.failure)?void 0:n.cause);N(r?`Chamada nao concluida: ${r}`:"Chamada nao concluida.")};return f.on("failed",e),()=>{f.off("failed",e)}},[f]),t.useEffect(()=>()=>{const e=W.current;e&&e.close().catch(()=>{})},[]),t.useEffect(()=>()=>{var e;null==(e=le.current)||e.getTracks().forEach(e=>e.stop()),le.current=null},[]);const ke=t.useCallback(async()=>{if("undefined"==typeof window)return null;const e=window.AudioContext||window.webkitAudioContext;if(!e)return null;if(W.current||(W.current=new e),"suspended"===W.current.state)try{await W.current.resume()}catch(t){console.error("Falha ao retomar audio",t)}return W.current},[]),De=t.useCallback(async e=>{const t=dg[e];if(!t)return;const n=await ke();if(!n)return;const r=n.createGain(),[i,o]=t,a=n.createOscillator(),s=n.createOscillator();a.type="sine",s.type="sine",a.frequency.setValueAtTime(i,n.currentTime),s.frequency.setValueAtTime(o,n.currentTime),r.gain.setValueAtTime(0,n.currentTime),r.gain.linearRampToValueAtTime(.22,n.currentTime+.01),r.gain.linearRampToValueAtTime(0,n.currentTime+.18),a.connect(r),s.connect(r),r.connect(n.destination);const d=n.currentTime,u=d+.2;a.start(d),s.start(d),a.stop(u),s.stop(u);const l=()=>{try{a.disconnect(),s.disconnect(),r.disconnect()}catch(e){console.error("Erro ao limpar tons DTMF",e)}};a.onended=l,s.onended=l},[ke]),Me=t.useCallback(e=>{if(De(e),f&&(Te||Ae))try{f.sendDtmf(e)}catch(t){console.error("Falha ao enviar DTMF",t),N("Nao foi possivel enviar o tom DTMF.")}else Oe&&(N(null),r(t=>(t+e).slice(0,32)))},[De,f,Te,Ae,Oe,r]),Le=t.useCallback(()=>{N(null),r("")},[r]),je=t.useCallback(()=>{N(null),r(e=>e.slice(0,-1))},[r]),Ue=t.useCallback(async()=>{if(xe||Se)if(we)if(Re)try{N(null),fe(we),await m(we)}catch(e){console.error("Erro ao iniciar chamada",e),N("Nao foi possivel iniciar a ligacao.")}else N("Numero invalido. Digite apenas o numero local, sem o +55.");else N("Informe um numero para ligar.")},[xe,Se,we,Re,m]),Fe=t.useCallback(async e=>{try{me(null),await ge(e),pe(!1),console.log("[FloatingDialer] Entrou em pausa com sucesso:",e)}catch(t){console.error("[FloatingDialer] Erro ao entrar em pausa:",t),me(t instanceof Error?t.message:"N�o foi poss�vel entrar em pausa.")}},[ge]),Be=t.useCallback(async()=>{try{await ye(),console.log("[FloatingDialer] Saiu da pausa com sucesso")}catch(e){console.error("[FloatingDialer] Erro ao sair da pausa:",e),I("N�o foi poss�vel sair da pausa.")}},[ye]);t.useEffect(()=>{if(!u&&!C)return;const e=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return;const t=e.key;if("Backspace"===t)return e.preventDefault(),void je();if("Delete"===t)return e.preventDefault(),void Le();if("Enter"===t)return void(xe&&(e.preventDefault(),Ue()));const n="NumpadEnter"===t?null:t;if(n&&["0","1","2","3","4","5","6","7","8","9","#","*","+"].includes(n))return e.preventDefault(),void Me(n);if(t.startsWith("Numpad")){const n=t.replace("Numpad","");if("Add"===n)return e.preventDefault(),void Me("+");if("Multiply"===n)return e.preventDefault(),void Me("*");/^[0-9]$/.test(n)&&(e.preventDefault(),Me(n))}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[u,C,je,Le,Me,Ue,xe]);const qe=t.useCallback(async()=>{try{await b()}catch(e){console.error("Erro ao encerrar chamada",e),N("Falha ao encerrar chamada.")}},[b]),He=t.useCallback(async()=>{try{await _()}catch(e){console.error("Erro ao atender chamada",e),N("Nao foi possivel atender.")}},[_]),ze=t.useCallback(async()=>{try{await w()}catch(e){console.error("Erro ao rejeitar chamada",e),N("Nao foi possivel rejeitar.")}},[w]),Ge=t.useCallback(async()=>{if(("success"===M?p:$).length)if(j)if("function"==typeof y)try{D(!0),P(null),await Promise.resolve(y({result:M,qualificationId:j}))}catch(e){console.error("Erro ao finalizar pos-chamada",e),P("Falha ao finalizar atendimento. Tente novamente.")}finally{D(!1)}else P("Nao foi possivel enviar a qualificacao.");else P("Selecione uma qualificacao para finalizar.");else P("Nenhuma qualificacao configurada para este resultado.")},[M,$,y,j,p]),We=t.useCallback(()=>{x(!0)},[]),Ve=t.useCallback(e=>{const t=e.relatedTarget;S.current&&t&&S.current.contains(t)||x(!1)},[]),Ke=t.useCallback(e=>{e.preventDefault();const t=e.clipboardData.getData("text");if(!t)return;const n=zv(t);r(n)},[r]),Ye=t.useCallback(e=>{const t=e.target.value;re(t||null)},[]),Xe=t.useCallback(e=>{const t=e.target.value;oe(t||null)},[]),Je=t.useCallback(e=>{const t=Number.isFinite(e)?e:0,n=Math.min(Math.max(t,0),1);Q(Number((n*(("number"==typeof Z?Z:0)>1?100:1)).toFixed(2)))},[Z,Q]),Ze=c&&"call"in c?c.call:void 0,Qe=ag(f)??ag(Ze),et=we||ce,tt=(null==Qe?void 0:Qe.displayName)??(null==Qe?void 0:Qe.phoneNumber)??("campaign"===(null==h?void 0:h.type)?h.info.campaignContact.phoneNumber:void 0)??((Te||Ne)&&et?et:void 0),nt=function(e){switch(e){case"starting":return"Conectando";case"idle":return"Disponivel";case"manualCallSetup":return"Preparando";case"manualCallRinging":return"Chamando";case"callRinging":return"Recebida";case"callInProgress":return"Em chamada";case"afterCall":return"Finalizando";case"onBreak":return"Em pausa";case"offline":return"Offline";case"error":return"Erro";default:return"Aguardando"}}(Ce),rt=_e||be,it=(null==(a=ee.inputs.find(e=>e.deviceId===ne))?void 0:a.label)||"Microfone padrao",ot=(null==(s=ee.outputs.find(e=>e.deviceId===ie))?void 0:s.label)||"Saida padrao",at="number"==typeof Z?Z:0,st=at>1?100:1,dt=Math.min(Math.max(at/st,0),1),ut=Math.round(100*dt),lt=X?Xp:dt>.65?Yp:Kp,ct=K?Lp:jp,ft=function(e){switch(e){case"idle":return{Icon:Rp,badgeClass:Zm`border-green-200 bg-green-50 text-green-700`,dotClass:Zm`bg-green-500`};case"callInProgress":case"manualCallSetup":case"manualCallRinging":case"callRinging":return{Icon:Np,badgeClass:Zm`border-primary/30 bg-primary/10 text-primary`,dotClass:Zm`bg-primary`};case"onBreak":return{Icon:Fp,badgeClass:Zm`border-amber-200 bg-amber-50 text-amber-700`,dotClass:Zm`bg-amber-500`};case"offline":case"error":return{Icon:Ip,badgeClass:Zm`border-rose-200 bg-rose-50 text-rose-700`,dotClass:Zm`bg-rose-500`};default:return{Icon:Bp,badgeClass:Zm`border-slate-200 bg-slate-50 text-slate-600`,dotClass:Zm`bg-slate-500`}}}(Ce);if("afterCall"===Ce&&!u)return v.jsx(cg,{username:e,result:M,onChangeResult:L,successQualifications:p,discardQualifications:$,selectedQualificationId:j,onSelectQualification:U,onSubmit:Ge,isSubmitting:k,errorMessage:R,onLogout:i});const ht=he?v.jsx("div",{className:Zm`fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4`,children:v.jsxs("div",{className:Zm`bg-white rounded-2xl shadow-2xl max-w-md w-full p-6 space-y-4`,children:[v.jsxs("div",{className:Zm`flex items-center justify-between`,children:[v.jsx("h3",{className:Zm`text-lg font-bold text-slate-800`,children:"Selecione uma Pausa"}),v.jsx("button",{type:"button",onClick:()=>{pe(!1),me(null)},className:Zm`text-slate-400 hover:text-slate-600 transition`,children:v.jsx(Zp,{className:Zm`text-xl`})})]}),$e&&v.jsxs("div",{className:Zm`rounded-lg bg-red-50 border border-red-200 px-3 py-2 flex items-start gap-2`,children:[v.jsx(Ip,{className:Zm`text-red-500 shrink-0 mt-0.5`}),v.jsx("p",{className:Zm`text-sm text-red-700`,children:$e})]}),ve&&0!==ve.length?v.jsx("div",{className:Zm`space-y-2 max-h-96 overflow-y-auto`,children:ve.map(e=>v.jsxs("button",{type:"button",onClick:()=>Fe(e.id),className:Zm`w-full flex items-center gap-3 rounded-lg border border-slate-200 bg-white px-4 py-3 text-left transition-all hover:border-amber-300 hover:bg-amber-50 hover:shadow-md`,children:[v.jsx(Fp,{className:Zm`text-xl text-amber-600 shrink-0`}),v.jsxs("div",{className:Zm`flex-1 min-w-0`,children:[v.jsx("p",{className:Zm`font-semibold text-slate-800 truncate`,children:e.name}),v.jsxs("p",{className:Zm`text-xs text-slate-500`,children:["ID: ",e.id]})]})]},e.id))}):v.jsx("div",{className:Zm`text-center py-8`,children:v.jsx("p",{className:Zm`text-slate-500`,children:"Nenhuma pausa disponivel"})}),v.jsx("button",{type:"button",onClick:()=>{pe(!1),me(null)},className:Zm`w-full rounded-lg border border-slate-200 bg-slate-50 px-4 py-2 text-sm font-semibold text-slate-600 transition hover:bg-slate-100`,children:"Cancelar"})]})}):null;if(u){const e=Te||Ne,t=be.length>0,n=!e&&!t,i=!O&&(Ie||xe||Se);if(console.log("[FloatingDialer Mini] Estado:",{miniCanUseKeypad:i,callButtonDisabled:n,hasNumber:t,dialValue:be,isNumberValid:Re,availabilityError:O,callState:Ce,operatorState:null==c?void 0:c.state}),"afterCall"===Ce){const e="success"===M?p:$,t=e.length>0;return console.log("[FloatingDialer Mini] ?? TELA DE QUALIFICA��O:",{callState:Ce,afterCallResult:M,successQualifications:p.length,discardQualifications:$.length,hasOptions:t,selectedQualificationId:j}),v.jsx("div",{className:["callix","mode","min",Zm`flex w-full max-w-full flex-col gap-1 rounded-xl border border-slate-200 bg-white/95 p-1.5 shadow-sm text-slate-800 overflow-hidden`].join(" "),"data-callix-variant":"min",children:v.jsxs("div",{className:Zm`space-y-1 rounded-lg border border-slate-200 bg-slate-50 px-1.5 py-1 overflow-hidden`,children:[v.jsx("div",{className:Zm`text-center`,children:v.jsx("p",{className:Zm`text-[9px] font-semibold text-slate-700`,children:"Qualifique a chamada"})}),v.jsxs("div",{className:Zm`grid grid-cols-2 gap-0.5`,children:[v.jsx("button",{type:"button",onClick:()=>L("success"),className:Zm`${"success"===M?"bg-green-500 text-white":"bg-white text-slate-600"} rounded border border-slate-200 px-1 py-0.5 text-[7px] font-semibold transition`,children:"✓ Concluído"}),v.jsx("button",{type:"button",onClick:()=>L("failure"),className:Zm`${"failure"===M?"bg-rose-500 text-white":"bg-white text-slate-600"} rounded border border-slate-200 px-1 py-0.5 text-[7px] font-semibold transition`,children:"✗ Descartado"})]}),v.jsxs("div",{className:Zm`space-y-0.5`,children:[v.jsx("p",{className:Zm`text-[7px] font-medium text-slate-700 text-center`,children:"Selecione qualificação"}),t?v.jsx("div",{className:Zm`max-h-16 space-y-0.5 overflow-y-auto`,children:e.map(e=>{const t=j===e.id;return v.jsx("button",{type:"button",onClick:()=>U(e.id),className:Zm`${t?"bg-blue-100 border-blue-300 text-blue-800":"border-slate-200 bg-white text-slate-700"} w-full rounded border px-1 py-0.5 text-left transition`,children:v.jsx("p",{className:Zm`text-[7px] font-medium leading-tight truncate`,children:e.name})},e.id)})}):v.jsx("div",{className:Zm`rounded border border-amber-200 bg-amber-50 px-1 py-0.5 text-[7px] text-amber-700 text-center`,children:"Nenhuma qualificação"})]}),R&&v.jsx("p",{className:Zm`text-[7px] text-red-500 text-center`,children:R}),v.jsxs("button",{type:"button",onClick:Ge,disabled:!t||!j||k,className:Zm`flex w-full items-center justify-center gap-1 rounded bg-blue-500 px-1.5 py-1 text-[7px] font-bold text-white transition hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-60`,children:[k&&v.jsx("span",{className:Zm`inline-flex h-2 w-2 animate-spin rounded-full border border-white/50 border-t-white`}),"Finalizar"]})]})})}return console.log("[FloatingDialer Mini] ?? Estado da Chamada:",{isCallActive:e,callState:Ce,statusLabel:nt,isInCall:Te,isConnecting:Ne,isRinging:Ae,callDurationSeconds:F,callTarget:tt,statusVisualUsed:e?"GREEN (green)":"statusVisual",timerVisible:e&&F>0}),v.jsxs("div",{className:["callix","mode","min",Zm`flex w-full max-w-full flex-col gap-3 rounded-2xl border border-slate-200 bg-white/95 p-3 shadow-sm text-slate-800`].join(" "),"data-callix-variant":"min",children:[v.jsx("input",{ref:T,type:"tel",inputMode:"tel",value:be,onChange:e=>r(e.target.value),onPaste:Ke,className:Zm`sr-only`,tabIndex:-1,"aria-hidden":"true"}),v.jsxs("div",{className:Zm`flex items-center justify-between gap-2`,children:[v.jsxs("div",{className:Zm`${e?"border-green-200 bg-green-50 text-green-700":ft.badgeClass} flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-semibold uppercase leading-tight`,children:[v.jsx(ft.Icon,{className:Zm`text-xs`}),v.jsx("span",{children:nt})]}),Se?v.jsxs("button",{type:"button",onClick:()=>Be(),className:Zm`inline-flex items-center gap-1 rounded-full border border-green-400 bg-green-50 px-2.5 py-1 text-[10px] font-semibold text-green-700 transition hover:bg-green-100`,children:[v.jsx(Rp,{className:Zm`text-xs`}),"Voltar"]}):v.jsxs("button",{type:"button",onClick:()=>pe(!0),className:Zm`inline-flex items-center gap-1 rounded-full border border-amber-300 bg-amber-50 px-2.5 py-1 text-[10px] font-semibold text-amber-700 transition hover:bg-amber-100`,children:[v.jsx(Fp,{className:Zm`text-xs`}),"Pausa"]})]}),e?v.jsx("div",{className:Zm`rounded-xl border border-green-200 bg-gradient-to-br from-green-50 to-white px-3 py-2`,children:v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx("div",{className:Zm`flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-green-500 ${F>0?"animate-pulse":""}`,children:v.jsx(Bp,{className:Zm`text-xs text-white`})}),v.jsxs("div",{className:Zm`flex min-w-0 flex-1 flex-col gap-0.5`,children:[v.jsx("span",{className:Zm`truncate font-mono text-sm font-bold text-slate-800`,children:(null==tt?void 0:tt.replace(/^\+55/,""))||"Conectando..."}),v.jsx("span",{className:Zm`text-[9px] font-medium uppercase tracking-wider text-green-600`,children:nt})]}),F>0&&v.jsxs("div",{className:Zm`flex shrink-0 items-center gap-1 rounded-lg bg-green-500 px-2 py-1`,children:[v.jsx(Pp,{className:Zm`text-[10px] text-white`}),v.jsx("span",{className:Zm`tabular-nums text-xs font-bold text-white`,children:lg(F)})]})]})}):v.jsxs("div",{className:Zm`space-y-1 rounded-xl border border-slate-200 bg-slate-50 px-3 py-2 cursor-text`,onClick:()=>{var e;return null==(e=T.current)?void 0:e.focus()},children:[v.jsx("span",{className:Zm`text-[10px] font-semibold uppercase tracking-wide text-slate-500`,children:"Numero"}),v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx("span",{className:Zm`flex-1 truncate text-sm font-semibold text-slate-800`,children:rt||v.jsx("span",{className:Zm`text-slate-400 text-xs font-normal`,children:"Digite ou cole um numero"})}),v.jsx("button",{type:"button",onClick:je,disabled:!i,className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-300 bg-white text-slate-600 transition hover:border-slate-400 hover:text-slate-800 disabled:opacity-40 disabled:cursor-not-allowed`,"aria-label":"Apagar ultimo digito",children:v.jsx(kp,{className:Zm`text-base`})}),v.jsx("button",{type:"button",onClick:Le,disabled:!i,className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-lg border border-rose-300 bg-rose-50 text-rose-600 transition hover:border-rose-400 hover:bg-rose-100 disabled:opacity-40 disabled:cursor-not-allowed`,"aria-label":"Limpar numero",children:v.jsx(Zp,{className:Zm`text-sm`})})]})]}),v.jsx("div",{className:Zm`grid grid-cols-3 gap-2`,children:Yv.map(e=>v.jsxs("button",{type:"button",onClick:()=>Me(e.value),disabled:!i,className:Zm`flex h-12 flex-col items-center justify-center rounded-lg border border-slate-200 bg-white text-base font-semibold text-slate-800 shadow-sm transition active:scale-95 hover:border-slate-300 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-40`,children:[v.jsx("span",{children:e.value}),e.detail&&v.jsx("span",{className:Zm`text-[8px] font-semibold uppercase tracking-widest text-slate-400`,children:e.detail})]},e.value))}),v.jsxs("button",{type:"button",onClick:()=>{e?qe():Ue()},disabled:n,className:Zm`${e?"bg-rose-500 hover:bg-rose-600":"bg-green-500 hover:bg-green-600"} flex h-11 w-full items-center justify-center gap-2 rounded-xl text-sm font-bold text-white shadow-md transition disabled:cursor-not-allowed disabled:opacity-60`,children:[v.jsx(zp,{className:Zm`text-base`}),e?"Encerrar":"Ligar"]}),(A||O||ae)&&v.jsxs("div",{className:Zm`rounded-lg border border-rose-200 bg-rose-50 px-2.5 py-2 text-[11px] text-rose-700`,children:[v.jsx(Ip,{className:Zm`mr-1 inline text-xs`}),A||O||ae]}),ht]})}const pt=Te||Ne;return v.jsxs("div",{ref:S,tabIndex:0,role:"application","aria-label":"Discador manual",onFocusCapture:We,onBlurCapture:Ve,className:Zm`space-y-3 rounded-2xl outline-none`,children:[v.jsxs("div",{className:Zm`flex items-center justify-between gap-2`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2 min-w-0 flex-1`,children:[v.jsx("span",{className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-lg bg-primary/10 text-primary shrink-0`,children:v.jsx(Vp,{className:Zm`text-sm`})}),v.jsxs("div",{className:Zm`min-w-0 flex-1`,children:[v.jsx("p",{className:Zm`text-sm font-bold text-slate-800 truncate`,children:e}),v.jsx("p",{className:Zm`text-[9px] uppercase tracking-wide text-slate-500 font-medium`,children:"Operador"})]})]}),v.jsxs("div",{className:Zm`flex items-center gap-2 shrink-0`,children:[xe&&v.jsxs("button",{type:"button",onClick:()=>pe(!0),className:Zm`inline-flex items-center gap-1 rounded-lg border border-amber-300 bg-amber-50 px-2 py-1 text-[10px] font-bold text-amber-700 transition-all hover:bg-amber-100 hover:shadow-sm`,"aria-label":"Entrar em pausa",children:[v.jsx(Fp,{className:Zm`text-xs`}),v.jsx("span",{children:"Pausa"})]}),Se&&v.jsxs("button",{type:"button",onClick:Be,className:Zm`inline-flex items-center gap-1 rounded-lg border border-green-300 bg-green-50 px-2 py-1 text-[10px] font-bold text-green-700 transition-all hover:bg-green-100 hover:shadow-sm`,"aria-label":"Sair da pausa",children:[v.jsx(Rp,{className:Zm`text-xs`}),v.jsx("span",{children:"Voltar"})]}),v.jsxs("div",{className:Zm`${ft.badgeClass} inline-flex items-center gap-1.5 rounded-lg border px-2 py-1 text-[10px] font-bold ${Te?"animate-pulse":""}`,children:[v.jsx(ft.Icon,{className:Zm`text-xs`}),v.jsx("span",{children:nt}),v.jsx("span",{className:Zm`${ft.dotClass} inline-flex h-1.5 w-1.5 rounded-full`,"aria-hidden":!0})]})]})]}),pt&&v.jsxs(v.Fragment,{children:[v.jsx(fg,{statusLabel:nt,callTarget:tt,durationSeconds:F}),v.jsx(qv,{})]}),!pt&&v.jsxs("div",{ref:E,className:Zm`${C?"ring-2 ring-primary/50 shadow-lg":"shadow-sm"} relative overflow-hidden rounded-xl border border-slate-200 bg-gradient-to-br from-white to-slate-50 px-4 py-3 transition-all hover:shadow-md`,onClick:()=>{var e;return null==(e=S.current)?void 0:e.focus()},children:[v.jsx("input",{ref:T,id:"dialer-number",type:"tel",inputMode:"tel",value:be,onChange:e=>r(e.target.value),onPaste:Ke,className:Zm`sr-only`,tabIndex:-1,"aria-hidden":"true"}),v.jsxs("div",{className:Zm`flex items-center justify-between mb-2`,children:[v.jsxs("div",{className:Zm`flex items-center gap-1.5`,children:[v.jsx(zp,{className:Zm`text-sm text-primary`}),v.jsx("span",{className:Zm`text-[10px] uppercase tracking-wider text-slate-500 font-semibold`,children:"N�mero"})]}),C&&v.jsxs("span",{className:Zm`inline-flex items-center gap-1 rounded-full bg-primary/10 px-2 py-0.5 text-[9px] font-semibold text-primary`,children:[v.jsx("span",{className:Zm`inline-block h-1.5 w-1.5 rounded-full bg-primary animate-pulse`}),"Ativo"]})]}),v.jsx("div",{className:Zm`min-h-[2.5rem] flex items-center`,children:v.jsx("p",{className:Zm`text-2xl font-semibold tabular-nums tracking-tight text-slate-800 flex-1 truncate`,children:rt||v.jsx("span",{className:Zm`text-slate-400 text-lg font-normal`,children:"Digite um n�mero"})})})]}),v.jsx("div",{className:Zm`grid grid-cols-3 gap-2`,children:Yv.map(e=>v.jsxs("button",{type:"button",onClick:()=>Me(e.value),disabled:!Ie,className:Zm`relative flex h-14 flex-col items-center justify-center rounded-lg border border-slate-200 bg-gradient-to-b from-white to-slate-50 text-lg font-bold text-slate-800 shadow-sm transition-all active:scale-95 hover:border-slate-300 hover:shadow-md outline-none disabled:cursor-not-allowed disabled:opacity-40`,children:[v.jsx("span",{children:e.value}),e.detail&&v.jsx("span",{className:Zm`text-[8px] font-semibold tracking-widest text-slate-400 uppercase`,children:e.detail})]},e.value))}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsxs("div",{className:Zm`flex flex-wrap items-center gap-2`,children:[xe||Se?v.jsxs("button",{type:"button",onClick:Ue,disabled:!Re,className:Zm`flex flex-1 min-w-[7rem] items-center justify-center gap-2 rounded-lg bg-green-500 px-4 py-2.5 text-sm font-bold text-white shadow-lg transition-all hover:bg-green-600 hover:shadow-xl disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:shadow-lg`,children:[v.jsx(zp,{className:Zm`text-base`}),"Ligar"]}):Ee?v.jsxs(v.Fragment,{children:[v.jsxs("button",{type:"button",onClick:ze,className:Zm`flex flex-1 min-w-[6rem] items-center justify-center gap-1.5 rounded-lg bg-rose-500 px-3 py-2 text-xs font-bold text-white shadow-md transition-all hover:bg-rose-600 hover:shadow-lg`,children:[v.jsx(Hp,{className:Zm`text-sm`}),"Recusar"]}),v.jsxs("button",{type:"button",onClick:He,className:Zm`flex flex-1 min-w-[6rem] items-center justify-center gap-1.5 rounded-lg bg-green-500 px-3 py-2 text-xs font-bold text-white shadow-md transition-all hover:bg-green-600 hover:shadow-lg`,children:[v.jsx(qp,{className:Zm`text-sm`}),"Atender"]})]}):v.jsxs("button",{type:"button",onClick:qe,className:Zm`flex flex-1 min-w-[7rem] items-center justify-center gap-2 rounded-lg bg-rose-500 px-4 py-2.5 text-sm font-bold text-white shadow-lg transition-all hover:bg-rose-600 hover:shadow-xl`,children:[v.jsx(Hp,{className:Zm`text-base`}),"Encerrar"]}),v.jsxs("button",{type:"button",onClick:()=>Y(!K),className:Zm`${K?"border-rose-300 bg-rose-50 text-rose-600":"border-slate-300 bg-white text-slate-700"} flex h-9 min-w-[4.5rem] flex-1 items-center justify-center gap-1 rounded-lg border px-2 py-1.5 text-[10px] font-bold transition-all hover:border-slate-400 hover:shadow-md disabled:cursor-not-allowed`,children:[v.jsx(ct,{className:Zm`text-xs`}),K?"Mudo":"Mic"]}),v.jsxs("button",{type:"button",onClick:()=>J(!X),className:Zm`${X?"border-amber-300 bg-amber-50 text-amber-700":"border-slate-300 bg-white text-slate-700"} flex h-9 min-w-[4.5rem] flex-1 items-center justify-center gap-1 rounded-lg border px-2 py-1.5 text-[10px] font-bold transition-all hover:border-slate-400 hover:shadow-md`,children:[v.jsx(lt,{className:Zm`text-xs`}),X?"Mudo":`${ut}%`]}),v.jsx("button",{type:"button",onClick:je,className:Zm`flex h-9 w-9 items-center justify-center rounded-lg border border-slate-300 bg-white text-slate-700 transition-all hover:border-slate-400 hover:shadow-md`,"aria-label":"Apagar ultimo digito",children:v.jsx(kp,{className:Zm`text-base`})}),v.jsx("button",{type:"button",onClick:Le,className:Zm`flex h-9 w-9 items-center justify-center rounded-lg border border-rose-300 bg-rose-50 text-rose-700 font-bold text-xs transition-all hover:border-rose-400 hover:bg-rose-100 hover:shadow-md active:bg-rose-200`,"aria-label":"Limpar numero",children:"C"})]}),v.jsxs("div",{className:Zm`rounded-xl border border-slate-200 bg-white/80 p-3 shadow-sm`,children:[v.jsxs("div",{className:Zm`flex flex-wrap items-center justify-between gap-2`,children:[v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-[10px] uppercase tracking-wide text-slate-500`,children:"Volume"}),v.jsxs("p",{className:Zm`text-sm font-semibold text-slate-800`,children:["Sa�da ",ut,"%"]})]}),v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx("button",{type:"button",onClick:()=>Je((Z??0)-.05),className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-600 transition hover:border-primary/60 hover:text-primary`,"aria-label":"Diminuir volume",children:v.jsx(Up,{className:Zm`text-sm`})}),v.jsx("input",{type:"range",min:0,max:1,step:.01,value:Number.isFinite(Z)?Z:0,onChange:e=>Je(parseFloat(e.target.value)),className:Zm`h-1 w-full max-w-full cursor-pointer appearance-none rounded-full bg-slate-200 accent-primary`,"aria-label":"Volume de saida"}),v.jsx("button",{type:"button",onClick:()=>Je((Z??0)+.05),className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-600 transition hover:border-primary/60 hover:text-primary`,"aria-label":"Aumentar volume",children:v.jsx(Gp,{className:Zm`text-sm`})})]})]}),v.jsxs("div",{className:Zm`mt-2 flex flex-wrap items-center gap-2 text-xs text-slate-600`,children:[v.jsxs("div",{className:Zm`flex items-center gap-1.5`,children:[v.jsx(jp,{className:Zm`text-sm text-primary`}),v.jsx("span",{className:Zm`truncate max-w-full`,children:it})]}),v.jsxs("div",{className:Zm`flex items-center gap-1.5`,children:[v.jsx(Dp,{className:Zm`text-sm text-primary`}),v.jsx("span",{className:Zm`truncate max-w-full`,children:ot})]}),(ee.inputs.length>0||ee.outputs.length>0)&&v.jsxs("button",{type:"button",onClick:()=>ue(e=>!e),className:Zm`inline-flex items-center gap-1 rounded-md border border-slate-300 bg-white px-2 py-0.5 text-[9px] font-bold text-slate-700 transition-all hover:border-slate-400 hover:shadow-sm`,children:[v.jsx(Wp,{className:Zm`text-[10px]`}),de?"Ocultar":"Config"]})]}),de&&v.jsxs("div",{className:Zm`mt-3 grid gap-2`,children:[v.jsxs("label",{className:Zm`space-y-1 text-xs text-slate-700`,children:[v.jsxs("span",{className:Zm`flex items-center gap-1.5 font-semibold`,children:[v.jsx(jp,{className:Zm`text-sm text-primary`}),"Entrada"]}),v.jsxs("select",{className:Zm`w-full rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-xs shadow-inner focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/40`,value:ne??"",onChange:Ye,children:[0===ee.inputs.length&&v.jsx("option",{value:"",children:"Padr�o"}),ee.inputs.map(e=>v.jsx("option",{value:e.deviceId,children:e.label||"Padr�o"},e.deviceId||e.label))]})]}),v.jsxs("label",{className:Zm`space-y-1 text-xs text-slate-700`,children:[v.jsxs("span",{className:Zm`flex items-center gap-1.5 font-semibold`,children:[v.jsx(Dp,{className:Zm`text-sm text-primary`}),"Sa�da"]}),v.jsxs("select",{className:Zm`w-full rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-xs shadow-inner focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/40`,value:ie??"",onChange:Xe,children:[0===ee.outputs.length&&v.jsx("option",{value:"",children:"Padr�o"}),ee.outputs.map(e=>v.jsx("option",{value:e.deviceId,children:e.label||"Padr�o"},e.deviceId||e.label))]})]})]})]})]}),(A||O||ae)&&v.jsxs("div",{className:Zm`space-y-1.5`,children:[A&&v.jsxs("div",{className:Zm`flex items-start gap-2 rounded-xl border border-rose-200 bg-rose-50 px-2.5 py-2 text-[11px] text-rose-700`,children:[v.jsx(Ip,{className:Zm`mt-0.5 text-xs`}),v.jsx("span",{children:A})]}),O&&v.jsxs("div",{className:Zm`flex items-start gap-2 rounded-xl border border-amber-200 bg-amber-50 px-2.5 py-2 text-[11px] text-amber-700`,children:[v.jsx(Ip,{className:Zm`mt-0.5 text-xs`}),v.jsx("span",{children:O})]}),ae&&v.jsxs("div",{className:Zm`flex items-start gap-2 rounded-xl border border-sky-200 bg-sky-50 px-2.5 py-2 text-[11px] text-sky-700`,children:[v.jsx(Ip,{className:Zm`mt-0.5 text-xs`}),v.jsx("span",{children:ae})]})]}),ht,v.jsxs("button",{type:"button",onClick:i,className:Zm`flex w-full items-center justify-center gap-2 rounded-2xl border border-slate-200 bg-white px-4 py-3 text-sm font-semibold text-slate-600 transition hover:border-red-400 hover:text-red-500`,children:[v.jsx(Mp,{className:Zm`text-base`}),"Sair"]})]})}function rg(e){if(!e)return"";const t=e.normalize("NFKC");let n="";for(const r of t)(/^[0-9*#]$/.test(r)||"+"===r&&0===n.length)&&(n+=r);return n}function ig(e,t){const n=function(e){return e&&"object"==typeof e?e:null}(e);if(n&&t in n)return n[t]}function og(e,t){const n=ig(e,t);return"function"==typeof n?n:void 0}function ag(e){const t=ig(e,"counterpart");return function(e){if(!e||"object"!=typeof e)return!1;const t=e,n=t.displayName,r=t.phoneNumber;return!(null!=n&&"string"!=typeof n||null!=r&&"string"!=typeof r)}(t)?t:null}function sg(e,t){const n=e[t];if("number"==typeof n&&Number.isFinite(n))return n;if("string"==typeof n){const e=Number(n);if(Number.isFinite(e))return e}return null}const dg={1:[1209,697],2:[1336,697],3:[1477,697],4:[1209,770],5:[1336,770],6:[1477,770],7:[1209,852],8:[1336,852],9:[1477,852],"*":[1209,941],0:[1336,941],"#":[1477,941]};function ug(e,t,n){return Number.isFinite(e)?n<t?t:Math.min(Math.max(e,t),n):t}function lg(e){const t=Math.max(0,Math.floor(e));return`${Math.floor(t/60).toString().padStart(2,"0")}:${(t%60).toString().padStart(2,"0")}`}function cg({username:e,result:t,onChangeResult:n,successQualifications:r,discardQualifications:i,selectedQualificationId:o,onSelectQualification:a,onSubmit:s,isSubmitting:d,errorMessage:u,onLogout:l}){const c="success"===t?r:i,f=c.length>0;return v.jsxs("div",{className:Zm`space-y-5`,children:[v.jsxs("div",{className:Zm`space-y-1`,children:[v.jsx("p",{className:Zm`text-xs uppercase tracking-wide text-slate-500`,children:"Logado como"}),v.jsx("p",{className:Zm`text-sm font-semibold text-slate-800`,children:e})]}),v.jsxs("div",{className:Zm`space-y-4 rounded-2xl border border-slate-200 bg-slate-50 px-4 py-5`,children:[v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-sm font-semibold text-slate-700`,children:"Qualifique a chamada"}),v.jsx("p",{className:Zm`text-xs text-slate-500`,children:"Esta etapa e obrigatoria para registrar o desfecho do atendimento."})]}),v.jsxs("div",{className:Zm`grid grid-cols-2 gap-2`,children:[v.jsx("button",{type:"button",onClick:()=>n("success"),className:Zm`${"success"===t?"bg-green-500 text-white shadow-lg":"bg-white text-slate-600"} rounded-xl border border-slate-200 px-3 py-2 text-sm font-semibold transition hover:border-green-400`,children:"Atendimento concluido"}),v.jsx("button",{type:"button",onClick:()=>n("failure"),className:Zm`${"failure"===t?"bg-rose-500 text-white shadow-lg":"bg-white text-slate-600"} rounded-xl border border-slate-200 px-3 py-2 text-sm font-semibold transition hover:border-rose-400`,children:"Atendimento descartado"})]}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsx("p",{className:Zm`text-sm font-medium text-slate-700`,children:"Selecione uma qualificacao"}),f?v.jsx("div",{className:Zm`max-h-52 space-y-2 overflow-y-auto pr-1`,children:c.map(e=>{const t=o===e.id;return v.jsx("button",{type:"button",onClick:()=>a(e.id),className:Zm`${t?"ring-2 ring-primary bg-primary/5 border-primary":"border-slate-200 bg-white"} w-full rounded-xl border px-3 py-2 text-left transition hover:border-primary`,children:v.jsx("p",{className:Zm`text-sm font-semibold text-slate-800`,children:e.name})},e.id)})}):v.jsx("div",{className:Zm`rounded-xl border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-700`,children:"Nenhuma qualificacao disponivel para este tipo de resultado."})]}),u&&v.jsx("p",{className:Zm`text-xs text-red-500`,children:u}),v.jsxs("button",{type:"button",onClick:s,disabled:!f||!o||d,className:Zm`flex w-full items-center justify-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white shadow-lg transition hover:bg-primaryDark disabled:cursor-not-allowed disabled:opacity-60`,children:[d&&v.jsx("span",{className:Zm`inline-flex h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white`}),"Finalizar atendimento"]})]}),v.jsxs("button",{type:"button",onClick:l,className:Zm`flex w-full items-center justify-center gap-2 rounded-xl border border-slate-200 bg-white px-4 py-2 text-sm font-semibold text-slate-600 transition hover:border-red-400 hover:text-red-500`,children:[v.jsx(Mp,{className:Zm`text-base`}),"Sair"]})]})}function fg({statusLabel:e,callTarget:t,durationSeconds:n}){const r=n>0?lg(n):"00:00",i=(null==t?void 0:t.replace(/^\+55/,""))||"Conectando...";return v.jsx("div",{className:Zm`rounded-lg border border-green-200 bg-gradient-to-br from-green-50 to-white px-3 py-2`,children:v.jsxs("div",{className:Zm`flex items-center justify-between gap-3`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2.5 min-w-0 flex-1`,children:[v.jsx("div",{className:Zm`flex items-center justify-center w-8 h-8 rounded-full bg-green-500 shrink-0 ${n>0?"animate-pulse":""}`,children:v.jsx(Bp,{className:Zm`text-sm text-white`})}),v.jsxs("div",{className:Zm`flex flex-col gap-0.5 min-w-0 flex-1`,children:[v.jsx("span",{className:Zm`text-base font-bold text-slate-800 truncate font-mono`,children:i}),v.jsx("span",{className:Zm`text-[9px] font-medium text-green-600 uppercase tracking-wider`,children:e})]})]}),n>0&&v.jsxs("div",{className:Zm`flex items-center gap-1.5 bg-green-500 rounded-lg px-2.5 py-1.5 shrink-0`,children:[v.jsx(Pp,{className:Zm`text-xs text-white`}),v.jsx("span",{className:Zm`text-sm font-bold tabular-nums text-white`,children:r})]})]})})}const hg=16;function pg(e,t,n){return Math.min(Math.max(e,t),n)}function $g(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t>0?`${t}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`:`${n}:${r.toString().padStart(2,"0")}`}const mg="undefined"!=typeof window&&window.__CALLIX_API_BASE_URL__||"https://callix-zeta.vercel.app";function vg(){const e=function(){if("undefined"==typeof window)return null;console.log("[DraggableClientInfoModal] 🔍 Buscando token de sessão no localStorage...");const e=localStorage.getItem("callix_dialer_last_username");if(e){const t=`callix_dialer_${e}_session_token`,n=localStorage.getItem(t);if(n)return console.log(`[DraggableClientInfoModal] ✅ Token encontrado para usuário "${e}":`,n.substring(0,20)+"..."),n;console.log(`[DraggableClientInfoModal] ⚠️ Chave de sessão "${t}" não encontrada`)}else console.log("[DraggableClientInfoModal] ⚠️ callix_dialer_last_username não encontrado");console.log("[DraggableClientInfoModal] 🔍 Procurando qualquer chave de sessão...");for(let t=0;t<localStorage.length;t++){const e=localStorage.key(t);if(e&&e.match(/^callix_dialer_.*_session_token$/)){const t=localStorage.getItem(e);if(t)return console.log(`[DraggableClientInfoModal] ✅ Token encontrado na chave "${e}":`,t.substring(0,20)+"..."),t}}console.log("[DraggableClientInfoModal] ⚠️ Nenhum token encontrado. Chaves disponíveis no localStorage:");for(let t=0;t<localStorage.length;t++){const e=localStorage.key(t);e&&console.log(` - ${e}`)}return null}(),t={"Content-Type":"application/json"};return e&&(t["x-session-token"]=e),t}async function gg(e){const t=`${mg}/api/campaign-fields/${e}`,n=await fetch(t,{method:"GET",headers:vg(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar mapeamento: ${n.status}`)}return await n.json()}async function yg(e){const t=`${mg}/api/campaign-contact/${e}`,n=await fetch(t,{method:"GET",headers:vg(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar valores: ${n.status}`)}return await n.json()}function bg({isOpen:e,campaignCallInfo:r,callDuration:i,isCallActive:o,onClose:a}){const s=t.useRef(null),d=t.useRef({pointerId:null,offsetX:0,offsetY:0}),u=t.useRef(!1),[l,c]=t.useState({x:100,y:100}),[f,h]=t.useState(!1),[p,$]=t.useState({}),[m,g]=t.useState(!1),[y,b]=t.useState(null),[_,w]=t.useState(null),C=null==r?void 0:r.campaignContact,x=t.useCallback(e=>{if("undefined"==typeof window)return e;const t=window.innerWidth,n=window.innerHeight,r=s.current,i=(null==r?void 0:r.offsetWidth)??500,o=(null==r?void 0:r.offsetHeight)??600,a=Math.max(16,t-i-hg),d=Math.max(16,n-o-hg);return{x:pg(e.x,16,a),y:pg(e.y,16,d)}},[]);t.useEffect(()=>{if(e&&"undefined"!=typeof window){const e=s.current,t=(null==e?void 0:e.offsetWidth)??500,n=(null==e?void 0:e.offsetHeight)??600,r=(window.innerWidth-t)/2,i=(window.innerHeight-n)/2;c(x({x:r,y:i}))}},[e,x]),t.useEffect(()=>{if(!e||"undefined"==typeof window)return;const t=()=>{c(e=>x(e))};return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[e,x]),t.useEffect(()=>{if(!(null==C?void 0:C.id))return;if(_===C.id)return;let e=!1;return(async()=>{g(!0),b(null);try{console.log("[DraggableClientInfoModal] 1. Buscando config para contato:",C.id);const t=await async function(e){const t=`${mg}/api/campaign-config/${e}`,n=await fetch(t,{method:"GET",headers:vg(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar config: ${n.status}`)}return await n.json()}(C.id);if(console.log("[DraggableClientInfoModal] 2. Config recebida:",t),!t.campaignModelId)throw new Error("campaignModelId não encontrado");console.log("[DraggableClientInfoModal] 3. Buscando mapeamento e valores em paralelo...");const[n,r]=await Promise.all([gg(t.campaignModelId),yg(C.id)]);console.log("[DraggableClientInfoModal] 4. Mapeamento recebido:",n),console.log("[DraggableClientInfoModal] 5. Valores recebidos:",r);const i={};Object.entries(r).forEach(([e,t])=>{e in n&&(i[n[e]]=t)}),e||(console.log("[DraggableClientInfoModal] ✅ Dados finais mapeados:",i),$(i),w(C.id),g(!1))}catch(t){if(!e){console.error("[DraggableClientInfoModal] ❌ Erro ao buscar dados:",t);const e=t instanceof Error?t.message:"Erro ao buscar dados do contato";b(e),g(!1)}}})(),()=>{e=!0}},[null==C?void 0:C.id,_]),t.useEffect(()=>{if(!f)return;const e=e=>{var t,n;if(d.current.pointerId!==e.pointerId)return;u.current=!0;const r=(null==(t=s.current)?void 0:t.offsetWidth)??0,i=(null==(n=s.current)?void 0:n.offsetHeight)??0,o=e.clientX-d.current.offsetX,a=e.clientY-d.current.offsetY,l="undefined"!=typeof window?window.innerWidth:0,f="undefined"!=typeof window?window.innerHeight:0,h=l-r-hg,p=f-i-hg,$=Math.max(hg,h),m=Math.max(hg,p);c({x:pg(o,hg,$),y:pg(a,hg,m)})},t=e=>{d.current.pointerId===e.pointerId&&(h(!1),d.current={pointerId:null,offsetX:0,offsetY:0})};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}},[f]);const S=t.useCallback(e=>{if(0!==e.button&&"touch"!==e.pointerType)return;const t=s.current;if(!t)return;const n=t.getBoundingClientRect();d.current={pointerId:e.pointerId,offsetX:e.clientX-n.left,offsetY:e.clientY-n.top},u.current=!1,h(!0)},[]),E=t.useCallback(()=>{!o&&a&&a()},[o,a]);if(!e)return null;const T=Object.keys(p).length>0,A=e=>{if(p[e])return p[e];const t=Object.keys(p).find(t=>t.toLowerCase()===e.toLowerCase());return t?p[t]:"-"},N=v.jsxs("div",{ref:s,className:Zm`fixed z-[9999] flex flex-col overflow-hidden rounded-xl border border-slate-300 bg-white shadow-2xl`,style:{left:`${l.x}px`,top:`${l.y}px`,width:"520px",maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 32px)"},children:[v.jsxs("div",{onPointerDown:S,className:Zm`flex cursor-move items-center justify-between border-b border-slate-200 bg-gradient-to-r from-blue-500 to-blue-600 px-4 py-3 text-white`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx(Vp,{className:Zm`h-5 w-5`}),v.jsx("h3",{className:Zm`text-sm font-bold`,children:"Informações da Campanha"})]}),v.jsx("button",{type:"button",onClick:E,disabled:o,className:Zm`rounded-full p-1 transition hover:bg-white/20 disabled:cursor-not-allowed disabled:opacity-40`,title:o?"Aguarde o fim da chamada para fechar":"Fechar",children:v.jsx(Zp,{className:Zm`h-5 w-5`})})]}),v.jsxs("div",{className:Zm`flex-1 space-y-3 overflow-y-auto p-4`,children:[v.jsxs("div",{className:Zm`grid grid-cols-2 gap-3`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-slate-200 bg-slate-50 px-3 py-2`,children:[v.jsx(Pp,{className:Zm`h-4 w-4 text-slate-500`}),v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-[10px] text-slate-500 uppercase tracking-wide font-medium`,children:"Duração"}),v.jsx("p",{className:Zm`text-sm font-bold text-slate-800`,children:$g(i)})]})]}),v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-slate-200 bg-slate-50 px-3 py-2`,children:[v.jsx(Vp,{className:Zm`h-4 w-4 text-slate-500`}),v.jsxs("div",{className:Zm`min-w-0 flex-1`,children:[v.jsx("p",{className:Zm`text-[10px] text-slate-500 uppercase tracking-wide font-medium`,children:"Cliente"}),v.jsx("p",{className:Zm`truncate text-sm font-bold text-slate-800`,children:(null==C?void 0:C.label)||"N/A"})]})]})]}),m&&v.jsxs("div",{className:Zm`rounded-lg border border-blue-200 bg-blue-50 p-6 text-center`,children:[v.jsx("div",{className:Zm`mx-auto mb-2 inline-block h-6 w-6 animate-spin rounded-full border-2 border-blue-500 border-t-transparent`}),v.jsx("p",{className:Zm`text-xs font-medium text-blue-700`,children:"Carregando dados do contato..."})]}),y&&v.jsx("div",{className:Zm`rounded-lg border border-red-200 bg-red-50 p-3`,children:v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx(Op,{className:Zm`h-4 w-4 flex-shrink-0 text-red-600`}),v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-xs font-semibold text-red-700`,children:"Erro ao carregar dados"}),v.jsx("p",{className:Zm`text-[10px] text-red-600`,children:y})]})]})}),!m&&!y&&T&&v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsxs("div",{className:Zm`grid grid-cols-3 gap-2`,children:[v.jsx(_g,{label:"CNPJ",value:A("CNPJ")}),v.jsx(_g,{label:"EMPRESA",value:A("EMPRESA")}),v.jsx(_g,{label:"TOTAL BENEFÍCIO",value:A("TOTAL BENEFICIO")})]}),v.jsxs("div",{className:Zm`grid grid-cols-3 gap-2`,children:[v.jsx(_g,{label:"DECISOR",value:A("DECISOR")}),v.jsx(_g,{label:"PRODUTO",value:A("PRODUTO PROSPECTADO")}),v.jsx(_g,{label:"VALOR PARCELAMENTO",value:A("VALOR QUE PAGA POR MÊS EM PARCELAMENTOS")})]}),v.jsxs("div",{className:Zm`grid grid-cols-3 gap-2`,children:[v.jsx(_g,{label:"SALDO PGFN",value:A("TOTAL SALDO DEVEDOR PGFN")}),v.jsx(_g,{label:"SALDO RFB",value:A("TOTAL SALDO DEVEDOR RFB")}),v.jsx(_g,{label:"DÍVIDA ATIVA",value:A("DIVIDA ATIVA")})]}),v.jsxs("div",{className:Zm`grid grid-cols-4 gap-2`,children:[v.jsx(_g,{label:"CORRESP. SÓCIO",value:A("CORRESPONSABILIDADE SOCIO")}),v.jsx(_g,{label:"EXEC. FISCAL",value:A("EXECUÇÃO FISCAL")}),v.jsx(_g,{label:"TRANSAÇÃO BENEF.",value:A("TRANSAÇÃO COM BENEFICIO")}),v.jsx(_g,{label:"REGIME TRIB.",value:A("REGIME TRIBUTARIO")})]})]}),!m&&!y&&!T&&v.jsxs("div",{className:Zm`flex flex-col items-center justify-center rounded-lg border border-slate-200 bg-slate-50 px-4 py-8 text-center`,children:[v.jsx(Vp,{className:Zm`mb-2 h-8 w-8 text-slate-400`}),v.jsx("p",{className:Zm`text-sm text-slate-500`,children:"Nenhum dado disponível"})]})]}),o&&v.jsx("div",{className:Zm`border-t border-slate-200 bg-slate-50 px-4 py-2`,children:v.jsx("p",{className:Zm`text-center text-xs text-slate-500`,children:"Aguarde o fim da chamada para fechar"})})]});return"undefined"!=typeof document?n.createPortal(N,document.body):null}function _g({label:e,value:t}){return v.jsxs("div",{className:Zm`rounded-lg border border-slate-200 bg-white p-2`,children:[v.jsx("p",{className:Zm`mb-0.5 truncate text-[9px] font-semibold uppercase tracking-wide text-slate-500`,children:e}),v.jsx("p",{className:Zm`break-words text-xs font-semibold text-slate-800 line-clamp-2`,children:t})]})}const wg=16;function Cg(e,t,n){return Math.min(Math.max(e,t),n)}function xg({isOpen:e,result:r,onChangeResult:i,successQualifications:o,discardQualifications:a,selectedQualificationId:s,onSelectQualification:d,onSubmit:u,isSubmitting:l,errorMessage:c}){const f=t.useRef(null),h=t.useRef({pointerId:null,offsetX:0,offsetY:0}),p=t.useRef(!1),[$,m]=t.useState({x:100,y:100}),[g,y]=t.useState(!1),b="success"===r?o:a,_=b.length>0,w=t.useCallback(e=>{if("undefined"==typeof window)return e;const t=window.innerWidth,n=window.innerHeight,r=f.current,i=(null==r?void 0:r.offsetWidth)??400,o=(null==r?void 0:r.offsetHeight)??500,a=Math.max(16,t-i-wg),s=Math.max(16,n-o-wg);return{x:Cg(e.x,16,a),y:Cg(e.y,16,s)}},[]);t.useEffect(()=>{if(e&&"undefined"!=typeof window){const e=f.current,t=(null==e?void 0:e.offsetWidth)??400,n=(null==e?void 0:e.offsetHeight)??500,r=(window.innerWidth-t)/2,i=(window.innerHeight-n)/2;m(w({x:r,y:i}))}},[e,w]),t.useEffect(()=>{if(!e||"undefined"==typeof window)return;const t=()=>{m(e=>w(e))};return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[e,w]),t.useEffect(()=>{if(!g)return;const e=e=>{var t,n;if(h.current.pointerId!==e.pointerId)return;p.current=!0;const r=(null==(t=f.current)?void 0:t.offsetWidth)??0,i=(null==(n=f.current)?void 0:n.offsetHeight)??0,o=e.clientX-h.current.offsetX,a=e.clientY-h.current.offsetY,s="undefined"!=typeof window?window.innerWidth:0,d="undefined"!=typeof window?window.innerHeight:0,u=s-r-wg,l=d-i-wg,c=Math.max(wg,u),$=Math.max(wg,l);m({x:Cg(o,wg,c),y:Cg(a,wg,$)})},t=e=>{h.current.pointerId===e.pointerId&&(y(!1),h.current={pointerId:null,offsetX:0,offsetY:0})};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}},[g]);const C=t.useCallback(e=>{if(0!==e.button&&"touch"!==e.pointerType)return;const t=f.current;if(!t)return;const n=t.getBoundingClientRect();h.current={pointerId:e.pointerId,offsetX:e.clientX-n.left,offsetY:e.clientY-n.top},p.current=!1,y(!0)},[]);if(!e)return null;const x=v.jsxs("div",{ref:f,className:Zm`fixed z-[9999] flex flex-col overflow-hidden rounded-xl border border-slate-300 bg-white shadow-2xl`,style:{left:`${$.x}px`,top:`${$.y}px`,width:"420px",maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 32px)"},children:[v.jsx("div",{onPointerDown:C,className:Zm`flex cursor-move items-center justify-center border-b border-slate-200 bg-gradient-to-r from-indigo-500 to-indigo-600 px-4 py-3 text-white`,children:v.jsx("h3",{className:Zm`text-sm font-bold`,children:"Qualificar Chamada"})}),v.jsxs("div",{className:Zm`flex-1 space-y-4 overflow-y-auto p-5`,children:[v.jsx("div",{className:Zm`text-center`,children:v.jsx("p",{className:Zm`text-sm text-slate-600`,children:"Esta etapa é obrigatória para registrar o desfecho do atendimento."})}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsx("p",{className:Zm`text-sm font-semibold text-slate-700`,children:"Resultado da chamada"}),v.jsxs("div",{className:Zm`grid grid-cols-2 gap-3`,children:[v.jsxs("button",{type:"button",onClick:()=>i("success"),className:Zm`${"success"===r?"border-emerald-500 bg-emerald-50 ring-2 ring-emerald-500":"border-slate-200 bg-white hover:border-emerald-300"} flex flex-col items-center justify-center gap-2 rounded-lg border px-4 py-3 transition`,children:[v.jsx(Rp,{className:Zm`h-6 w-6 ${"success"===r?"text-emerald-600":"text-slate-400"}`}),v.jsx("span",{className:Zm`text-sm font-semibold ${"success"===r?"text-emerald-700":"text-slate-600"}`,children:"Sucesso"})]}),v.jsxs("button",{type:"button",onClick:()=>i("failure"),className:Zm`${"failure"===r?"border-rose-500 bg-rose-50 ring-2 ring-rose-500":"border-slate-200 bg-white hover:border-rose-300"} flex flex-col items-center justify-center gap-2 rounded-lg border px-4 py-3 transition`,children:[v.jsx(Jp,{className:Zm`h-6 w-6 ${"failure"===r?"text-rose-600":"text-slate-400"}`}),v.jsx("span",{className:Zm`text-sm font-semibold ${"failure"===r?"text-rose-700":"text-slate-600"}`,children:"Falha"})]})]})]}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsx("p",{className:Zm`text-sm font-semibold text-slate-700`,children:"Selecione uma qualificação"}),_?v.jsx("div",{className:Zm`max-h-64 space-y-2 overflow-y-auto rounded-lg border border-slate-200 bg-slate-50 p-2`,children:b.map(e=>{const t=s===e.id;return v.jsx("button",{type:"button",onClick:()=>d(e.id),className:Zm`${t?"border-blue-400 bg-blue-100 ring-2 ring-blue-400":"border-slate-200 bg-white hover:border-blue-300"} w-full rounded-lg border px-4 py-3 text-left transition`,children:v.jsx("p",{className:Zm`text-sm font-semibold ${t?"text-blue-800":"text-slate-800"}`,children:e.name})},e.id)})}):v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700`,children:[v.jsx(Op,{className:Zm`h-5 w-5 flex-shrink-0`}),v.jsx("span",{children:"Nenhuma qualificação disponível para este tipo de resultado."})]})]}),c&&v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700`,children:[v.jsx(Op,{className:Zm`h-5 w-5 flex-shrink-0`}),v.jsx("span",{children:c})]})]}),v.jsx("div",{className:Zm`border-t border-slate-200 bg-slate-50 px-5 py-4`,children:v.jsxs("button",{type:"button",onClick:u,disabled:!_||!s||l,className:Zm`flex w-full items-center justify-center gap-2 rounded-lg bg-indigo-600 px-4 py-3 text-sm font-bold text-white shadow-md transition hover:bg-indigo-700 disabled:cursor-not-allowed disabled:opacity-50`,children:[l&&v.jsxs("svg",{className:Zm`h-4 w-4 animate-spin text-white`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:Zm`opacity-25`,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:Zm`opacity-75`,fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),l?"Enviando...":"Confirmar Qualificação"]})})]});return"undefined"!=typeof document?n.createPortal(x,document.body):null}function Sg({variant:e="default",isAuthenticated:n,...r}){const i="min"===e;if(!n||!i)return v.jsx(eg,{variant:e,isAuthenticated:n,...r});const{skipManualQualification:o}=Tg(),a=wf.useCallOperatorState(),s=wf.useCallOperatorCurrentCall(),d=wf.useCallOperatorCurrentCallInfo(),u=wf.useCallOperatorSuccessQualifications(),l=wf.useCallOperatorDiscardQualifications(),{finishAfterCall:c}=wf.useCallOperatorControls(),[f,h]=t.useState(!1),[p,$]=t.useState(!1),[m,g]=t.useState(0),[y,b]=t.useState("success"),[_,w]=t.useState(null),[C,x]=t.useState(!1),[S,E]=t.useState(null),T=null==a?void 0:a.state,A="callInProgress"===T,N="manualCallSetup"===T||("manualCallRinging"===T||"callRinging"===T),O="incoming"===(null==s?void 0:s.direction),I="afterCall"===T;t.useEffect(()=>{if(!i||!A)return void(A||g(0));const e=setInterval(()=>{g(e=>e+1)},1e3);return()=>clearInterval(e)},[i,A]),t.useEffect(()=>{i&&(A||N)&&O&&"campaign"===(null==d?void 0:d.type)&&h(!0)},[i,A,N,O,d]),t.useEffect(()=>{if(i)if(I){if("campaign"===(null==d?void 0:d.type)&&!0===d.info.campaign.skipCallQualification&&c)return void Promise.resolve(c({result:"success",qualificationId:void 0}));const e="manual"===(null==d?void 0:d.type),t=0===u.length&&0===l.length;if(e&&(o||t)&&c)return console.log("[InlineDialer] 🚀 Chamada manual - finalizando automaticamente (skipManualQualification:",o,", hasNoQualifications:",t,")"),void Promise.resolve(c({result:"success",qualificationId:void 0}));const n=u.length>0;b(n?"success":"failure"),w(null),E(null),$(!0)}else $(!1)},[i,I,d,c,u,l,o]),t.useEffect(()=>{i&&(A||N||I||h(!1))},[i,A,N,I]);const R=t.useMemo(()=>d&&"campaign"===d.type?d.info:null,[d]);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:'\n /* Container externo do HTML - SEM padding/border para não vazar */\n #dialer-inline.callix.mode.min {\n display: block !important;\n width: 100% !important;\n max-width: 100% !important;\n padding: 0 !important;\n border: none !important;\n background: transparent !important;\n box-shadow: none !important;\n }\n\n /* Estilos para modo mini quando Tailwind CDN não processa classes */\n .callix.mode.min {\n display: flex !important;\n flex-direction: column !important;\n gap: 0.75rem !important;\n border-radius: 1rem !important;\n border: 1px solid #e2e8f0 !important;\n background: rgba(255, 255, 255, 0.95) !important;\n padding: 0.75rem !important;\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;\n color: #1e293b !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n }\n\n /* Visor de número - fonte menor para caber todos os dígitos */\n .callix.mode.min [class*="truncate"] {\n font-size: 0.875rem !important; /* text-sm */\n line-height: 1.25rem !important;\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n white-space: nowrap !important;\n }\n\n /* Botões do modo mini */\n .callix.mode.min button {\n cursor: pointer !important;\n transition: all 0.2s ease !important;\n }\n \n .callix.mode.min button:disabled {\n cursor: not-allowed !important;\n opacity: 0.6 !important;\n }\n\n /* Grid do teclado numérico */\n .callix.mode.min [class*="grid-cols-3"] {\n display: grid !important;\n grid-template-columns: repeat(3, minmax(0, 1fr)) !important;\n gap: 0.5rem !important;\n }\n\n /* Botões do teclado */\n .callix.mode.min [class*="grid-cols-3"] button {\n display: flex !important;\n height: 3rem !important;\n flex-direction: column !important;\n align-items: center !important;\n justify-content: center !important;\n border-radius: 0.5rem !important;\n border: 1px solid #e2e8f0 !important;\n background: white !important;\n font-size: 1rem !important;\n font-weight: 600 !important;\n color: #1e293b !important;\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;\n }\n\n .callix.mode.min [class*="grid-cols-3"] button:hover:not(:disabled) {\n border-color: #cbd5e1 !important;\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;\n }\n\n .callix.mode.min [class*="grid-cols-3"] button:active:not(:disabled) {\n transform: scale(0.95) !important;\n }\n\n /* Botão principal de Ligar/Encerrar */\n .callix.mode.min > button[class*="bg-emerald"],\n .callix.mode.min > button[class*="bg-rose"] {\n display: flex !important;\n height: 2.75rem !important;\n width: 100% !important;\n align-items: center !important;\n justify-content: center !important;\n gap: 0.5rem !important;\n border-radius: 0.75rem !important;\n font-size: 0.875rem !important;\n font-weight: 700 !important;\n color: white !important;\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;\n border: none !important;\n }\n\n .callix.mode.min > button[class*="bg-emerald"] {\n background: #10b981 !important;\n }\n\n .callix.mode.min > button[class*="bg-emerald"]:hover:not(:disabled) {\n background: #059669 !important;\n }\n\n .callix.mode.min > button[class*="bg-rose"] {\n background: #f43f5e !important;\n }\n\n .callix.mode.min > button[class*="bg-rose"]:hover:not(:disabled) {\n background: #e11d48 !important;\n }\n '}}),v.jsx(eg,{isAuthenticated:n,...r,variant:e}),i&&v.jsxs(v.Fragment,{children:[v.jsx(bg,{isOpen:f,campaignCallInfo:R,callDuration:m,isCallActive:A||N,onClose:()=>h(!1)}),v.jsx(xg,{isOpen:p,result:y,onChangeResult:b,successQualifications:u,discardQualifications:l,selectedQualificationId:_,onSelectQualification:w,onSubmit:async()=>{if(("success"===y?u:l).length)if(_)if("function"==typeof c){x(!0),E(null);try{await Promise.resolve(c({result:y,qualificationId:_})),$(!1)}catch(e){E("Erro ao enviar qualificacao."),console.error("Erro ao finalizar afterCall:",e)}finally{x(!1)}}else E("Não foi possível enviar a qualificação.");else E("Selecione uma qualificação para finalizar.");else E("Nenhuma qualificação configurada para este resultado.")},isSubmitting:C,errorMessage:S})]})]})}const Eg=t.createContext(null);function Tg(){const e=t.useContext(Eg);return e||{skipManualQualification:!1}}class Ag{constructor(e){this.root=null,this.container=null,this.options=e}init(){try{if("string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container,!this.container)throw new Error(`Container não encontrado: ${this.options.container}`);const e=function(e){const t={},n=e.getAttribute("data-callix-mode")||e.dataset.callixMode||e.dataset.mode,r=e.getAttribute("data-callix-username")||e.dataset.callixUsername||e.dataset.username,i=Array.from(e.classList),o=i.map(e=>e.toLowerCase()),a=o.includes("callix"),s=n?n.toLowerCase():void 0;if(("min"===s||"mini"===s||a&&(o.includes("mode-min")||o.includes("mode-mini")||o.includes("mode")&&o.includes("min")))&&(t.uiVariant="min"),!t.presetUsername&&r&&(t.presetUsername=r.trim()),!t.presetUsername)for(const d of i){const e=d.match(/(?:user|username|callix-user)[-_:]([A-Za-z0-9.@_-]+)/i);if(e){t.presetUsername=e[1];break}}return t.presetUsername&&(t.presetUsername=t.presetUsername.trim()),t}(this.container);!this.options.uiVariant&&e.uiVariant&&(this.options.uiVariant=e.uiVariant),!this.options.presetUsername&&e.presetUsername&&(this.options.presetUsername=e.presetUsername),this.root=b.createRoot(this.container),this.root.render(v.jsx(t.StrictMode,{children:v.jsx(Rg,{options:this.options})})),this.options.onReady&&this.options.onReady()}catch(e){this.options.onError?this.options.onError(e):console.error("[Callix Dialer] Erro ao inicializar:",e)}}destroy(){this.root&&(this.root.unmount(),this.root=null)}}const Ng=e=>({SESSION_TOKEN:`callix_dialer_${e}_session_token`,DOMAIN:`callix_dialer_${e}_domain`,TIMESTAMP:`callix_dialer_${e}_timestamp`,SKIP_MANUAL_QUALIFICATION:`callix_dialer_${e}_skip_manual_qualification`}),Og="callix_dialer_last_username",Ig=288e5;function Rg({options:e}){const[n,r]=t.useState(null),[i,o]=t.useState(!1),[a,s]=t.useState(!1),[d,u]=t.useState(null),[l,c]=t.useState(null),[f,h]=t.useState(null),[p,$]=t.useState(!0),[m,g]=t.useState(!1),y=e.presetUsername?e.presetUsername.trim():null,b=e.uiVariant??"default",_=t.useRef(!1),w=t.useRef(y);t.useEffect(()=>{if("undefined"!=typeof window)try{const e=localStorage.getItem(Og);if(!e)return void $(!1);if(y&&e!==y)return console.log("[Callix Dialer] Ignorando sessao salva por mismatch com preset:",e,"!=",y),void $(!1);const t=Ng(e),n=localStorage.getItem(t.SESSION_TOKEN),i=localStorage.getItem(t.DOMAIN),a=localStorage.getItem(t.TIMESTAMP);if(e&&n&&i&&a){const s=parseInt(a,10);if(Date.now()-s<Ig){console.log("[Callix Dialer] Restaurando sessão salva:",e),r(e),c(n),h(i),o(!0);const a=localStorage.getItem(t.SKIP_MANUAL_QUALIFICATION);a&&g("true"===a)}else console.log("[Callix Dialer] Sessão expirada, limpando..."),localStorage.removeItem(Og),localStorage.removeItem(t.SESSION_TOKEN),localStorage.removeItem(t.DOMAIN),localStorage.removeItem(t.TIMESTAMP)}}catch(e){console.error("[Callix Dialer] Erro ao restaurar sessão:",e)}finally{$(!1)}else $(!1)},[]),t.useEffect(()=>{y&&n!==y&&r(y)},[y,n]);const C=t.useCallback(async t=>{var n,i;s(!0),u(null);try{const s=e.apiUrl||"/api/user-sdk-session",l=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:t}),credentials:"same-origin"});if(!l.ok){const e=await l.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha na autenticação: ${l.status}`)}const f=await l.json();c(f.userSessionToken),h(f.domain||"villelabrasil.callix.com.br"),r(t),o(!0),u(null);try{const e=`https://${f.domain||"villelabrasil.callix.com.br"}/sdk/v1/client/user-service/config`,r=await fetch(e,{headers:{Cookie:`token=${f.userSessionToken}`}});if(r.ok){const e=await r.json(),o=!0===(null==(i=null==(n=null==e?void 0:e.service)?void 0:n.outboundOptions)?void 0:i.skipQualification);if(console.log("[Callix Dialer] skipQualification configurado:",o),g(o),"undefined"!=typeof window){const e=Ng(t);localStorage.setItem(e.SKIP_MANUAL_QUALIFICATION,o.toString())}}else console.warn("[Callix Dialer] Não foi possível buscar config do serviço:",r.status)}catch(a){console.warn("[Callix Dialer] Erro ao buscar config do serviço:",a)}if("undefined"!=typeof window)try{const e=Ng(t);localStorage.setItem(Og,t),localStorage.setItem(e.SESSION_TOKEN,f.userSessionToken),localStorage.setItem(e.DOMAIN,f.domain||"villelabrasil.callix.com.br"),localStorage.setItem(e.TIMESTAMP,Date.now().toString()),console.log("[Callix Dialer] Sessão salva no localStorage")}catch(d){console.warn("[Callix Dialer] Não foi possível salvar sessão:",d)}console.log("[Callix Dialer] Autenticado com sucesso:",t)}catch(d){console.error("[Callix Dialer] Erro ao autenticar:",d),u(d instanceof Error?d.message:"Erro ao autenticar"),o(!1),c(null)}finally{s(!1)}},[e.apiUrl]);t.useEffect(()=>{if(!y)return w.current=null,void(_.current=!1);w.current!==y&&(w.current=y,_.current=!1),i||a||p||_.current||(_.current=!0,C(y))},[y,i,a,p,C]);const x=()=>{const e=n;if(r(y??null),o(!1),c(null),h(null),u(null),_.current=!1,w.current=y??null,"undefined"!=typeof window&&e)try{const t=Ng(e);localStorage.removeItem(Og),localStorage.removeItem(t.SESSION_TOKEN),localStorage.removeItem(t.DOMAIN),localStorage.removeItem(t.TIMESTAMP),console.log("[Callix Dialer] Sessão removida do localStorage")}catch(t){console.warn("[Callix Dialer] Não foi possível limpar sessão:",t)}},S="inline"===e.mode?Sg:eg;return i&&l&&f?v.jsx(Eg.Provider,{value:{skipManualQualification:m},children:v.jsx(wf.CallixClientProvider,{domain:f,userSessionToken:l,children:v.jsx(S,{isAuthenticated:i,username:n,onLogin:C,onLogout:x,isLoadingSession:a,sessionError:d,variant:b})})}):v.jsx(S,{isAuthenticated:!1,username:n,onLogin:C,onLogout:x,isLoadingSession:a||p,sessionError:d,variant:b})}const Pg={CallixDialerWidget:Ag,init:function(e){const t=new Ag(e);return t.init(),t}};"undefined"!=typeof window&&(window.CallixDialer=Pg),e.default=Pg,e.useDialerConfig=Tg,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
26
+ */var wf=function(){if(gf)return vf;gf=1;var e,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{CallixClientParams:()=>s.CallixClientParams,CallixClientProvider:()=>m,CallixClientSdk:()=>s.CallixClientSdk,useCallOperator:()=>C,useCallOperatorAudioInputMuted:()=>M,useCallOperatorAudioOutputControls:()=>P,useCallOperatorAudioOutputMuted:()=>D,useCallOperatorAudioOutputVolume:()=>k,useCallOperatorBreaks:()=>L,useCallOperatorControls:()=>E,useCallOperatorCurrentCall:()=>T,useCallOperatorCurrentCallControls:()=>I,useCallOperatorCurrentCallInfo:()=>A,useCallOperatorDiscardQualifications:()=>O,useCallOperatorEventListener:()=>R,useCallOperatorState:()=>x,useCallOperatorSuccessQualifications:()=>N,useCallixClient:()=>p}),e=a,vf=((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let d of i(t))!o.call(e,d)&&d!==a&&n(e,d,{get:()=>t[d],enumerable:!(s=r(t,d))||s.enumerable});return e})(n({},"__esModule",{value:!0}),e);var s=df(),d=df(),u=pf(),l=_f(),c=$(),f=(0,u.createScope)(null),h=(0,u.molecule)((e,t)=>{let n=t(f);if(!n)throw new Error("Missing CallixClient parameters. You must wrap your component tree with CallixClientProvider.");return new d.CallixClientSdk(n)});function p(){return(0,l.useMolecule)(h)}function m({children:e,...t}){return(0,c.jsx)(l.ScopeProvider,{scope:f,value:t,children:e})}var v=pf(),g=_f(),y=t,b=t;function _(e){return(0,b.useSyncExternalStore)(e.subscribe.bind(e),e.get.bind(e),e.get.bind(e))}var w=(0,v.molecule)(e=>{let t=e(h).createCallOperator();return(0,v.onMount)(()=>{t.start();let e=()=>{t.stop()};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),(0,v.onUnmount)(()=>{t.stop()}),t});function C(){return(0,g.useMolecule)(w)}function x(){let e=C(),t=_(e.currentStateKeys);for(let n of t){if("startup.error"===n||"manualCall.callFailed"===n)return{state:"error"};if("startup"===n)return{state:"starting"};if("offline"===n||"available.networkDown"===n||"onBreak.networkDown"===n)return{state:"offline"};if("onBreak"===n)return{state:"onBreak",break:e.currentBreak.get()};if("available.callRinging"===n)return{state:"callRinging",call:e.currentCall.get()};if("manualCall.callSetup"===n)return{state:"manualCallSetup",call:e.currentCall.get()};if("manualCall.callRinging"===n)return{state:"manualCallRinging",call:e.currentCall.get()};if("available"===n||"manualCall.idle"===n)return{state:"idle"};if("inCall"===n)return{state:"callInProgress",call:e.currentCall.get()};if("afterCall"===n)return{state:"afterCall"}}}function S(e,t,n){return Object.fromEntries(n.map(n=>[n,(0,y.useCallback)((...r)=>{if(t){if("function"==typeof t[n])return(null==t?void 0:t[n]).apply(t,r);console.warn(`Method ${String(n)} is not a function on obj ${e}.`)}else console.warn(`Obj ${e} is null or undefined, cannot call method ${String(n)}.`)},[t])]))}function E(){return S("callOperator",C(),["becomeAvailable","goOffline","enterOnBreak","makeManualCall","finishAfterCall"])}function T(){return _(C().currentCall)}function A(){return _(C().currentCallInfo)}function N(){return _(C().successQualifications)}function O(){return _(C().discardQualifications)}function I(){return S("currentCall",T(),["answer","reject","hangup","isOnHold","hold","unhold","isMuted","mute","unmute"])}function R(e,t){let n=C(),r=(0,y.useRef)(t);r.current=t,(0,y.useEffect)(()=>{if(n)return n.on(e,(...e)=>{r.current.apply(null,e)})},[e,n])}function P(){return S("audioOutput",C().audioOutput,["setVolume","setMute"])}function k(){let e=C(),{setVolume:t}=P();return[_(e.audioOutput.volume),t]}function D(){let e=C(),{setMute:t}=P();return[_(e.audioOutput.isMuted),t]}function M(){let e=T(),[t,n]=(0,y.useState)((null==e?void 0:e.isMuted())??!1);return[t,(0,y.useCallback)(t=>{e&&(t?e.mute():e.unmute(),n(t))},[e])]}function L(){return _(C().breaks)}return vf}();const Cf={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function xf(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Sf={}.constructor;function Ef(e){return null!=e&&e.constructor===Sf}function Tf(e){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nf(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Of(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Of(e){var t=function(e,t){if("object"!=Tf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Tf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Tf(t)?t:t+""}var If=" ext. ",Rf=/^\d+$/,Pf=function(){return Nf(function e(t){Af(this,e),Uf(t),this.metadata=t,qf.call(this,t)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Rf.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new kf(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new kf(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),kf=function(){return Nf(function e(t,n){Af(this,e),this.globalMetadataObject=n,this.metadata=t,qf.call(this,n.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new Df(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&jf(this.types(),e))return new Lf(jf(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?If:this.metadata[13]||If}}])}(),Df=function(){return Nf(function e(t,n){Af(this,e),this._format=t,this.metadata=n},[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Mf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),Mf=/^\(?\$1\)?$/,Lf=function(){return Nf(function e(t,n){Af(this,e),this.type=t,this.metadata=n},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function jf(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Uf(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Ef(e)||!Ef(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Ef(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Ff(e)+": "+e,"."))}var Ff=function(e){return Tf(e)};function Bf(e,t){if((t=new Pf(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function qf(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===xf(t,"1.2.0")?this.v2=!0:-1===xf(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function Hf(e,t,n){return function(e,t,n,r){t&&(r=new Pf(r.metadata)).selectNumberingPlan(t);var i=r.type(n),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var a=e.length,s=o[0];if(s===a)return"IS_POSSIBLE";if(s>a)return"TOO_SHORT";if(o[o.length-1]<a)return"TOO_LONG";return o.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,void 0,n)}function zf(e,t,n){return"IS_POSSIBLE"===Hf(e,t,n)}function Gf(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Wf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vf(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Vf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Kf=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Yf(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new Pf(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Gf(r,n.nationalNumberPattern())){if(Xf(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?Xf(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i,o=Wf(Kf);!(i=o()).done;){var a=i.value;if(Xf(r,a,n))return a}}}}function Xf(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Gf(e,t.pattern()))}function Jf(e,t,n){var r=new Pf(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return function(e,t,n){var r=new Pf(n);if(r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)}):[]}var Zf="0-90-9٠-٩۰-۹",Qf="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),eh=new RegExp("(["+Zf+"])");function th(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return nh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nh(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rh(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:function(e,t){var n=t.countries,r=t.metadata;r=new Pf(r);for(var i,o=th(n);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(Yf({phone:e,country:a},void 0,r.metadata))return a}}(n,{countries:i,metadata:r.metadata})}function ih(e,t,n){var r=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,s=r.length-1,d=s>0&&r[s];if(t.nationalPrefixTransformRule()&&d)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=r[1]);else{var u=r[0];i=e.slice(u.length),d&&(o=r[1])}if(d){var l=e.indexOf(r[1]);e.slice(0,l)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}(e,n),i=r.carrierCode,o=r.nationalNumber;if(o!==e){if(!function(e,t,n){if(Gf(e,n.nationalNumberPattern())&&!Gf(t,n.nationalNumberPattern()))return!1;return!0}(e,o,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=rh(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!function(e,t,n){switch(Hf(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:i}}function oh(e,t,n,r,i){if(!e)return{};var o;if("+"!==e[0]){var a=function(e,t,n,r){if(t){var i=new Pf(r);i.selectNumberingPlan(t,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(eh);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}(e,n,r,i);if(!a||a===e){if(n||r){var s=function(e,t,n,r,i){var o=n?Bf(n,i):r;if(0===e.indexOf(o)){(i=new Pf(i)).selectNumberingPlan(n,o);var a=e.slice(o.length),s=ih(a,t,i).nationalNumber,d=ih(e,t,i).nationalNumber;if(!Gf(d,i.nationalNumberPattern())&&Gf(s,i.nationalNumberPattern())||"TOO_LONG"===Hf(d,t,i))return{countryCallingCode:o,number:a}}return{number:e}}(e,t,n,r,i),d=s.countryCallingCode,u=s.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:u}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};i=new Pf(i);for(var l=2;l-1<=3&&l<=e.length;){var c=e.slice(1,l);if(i.hasCallingCode(c))return i.selectNumberingPlan(c),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:e.slice(l)};l++}return{}}var ah=/(\$\d)/;function sh(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,o=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(ah,t.nationalPrefixFormattingRule()):t.format());return r?function(e){return e.replace(new RegExp("[".concat(Qf,"]+"),"g")," ").trim()}(o):o}var dh=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var uh=function(e){return"([".concat(Zf,"]{1,").concat(e,"})")};function lh(e){var t="[  \\t,]*",n="[:\\..]?[  \\t,-]*",r="#?",i="[  \\t]*";return";ext="+uh("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+uh("20")+r)+"|"+(t+"(?:[xx##~~]|int|int)"+n+uh("9")+r)+"|"+("[- ]+"+uh("6")+"#")+"|"+(i+"(?:,{2}|;)"+n+uh("15")+r)+"|"+(i+"(?:,)+"+n+uh("9")+r)}var ch="["+Zf+"]{2}",fh="[++]{0,1}(?:["+Qf+"]*["+Zf+"]){3,}["+Qf+Zf+"]*",hh=new RegExp("^[++]{0,1}(?:["+Qf+"]*["+Zf+"]){1,2}$","i"),ph=fh+"(?:"+lh()+")?",$h=new RegExp("^"+ch+"$|^"+ph+"$","i");var mh={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function vh(e,t,n,r){if(n=n?function(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}({},mh,n):mh,r=new Pf(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i,o=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return a?yh(i=gh(a,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return a?(i=gh(a,null,"INTERNATIONAL",r,n),yh(i="+".concat(o," ").concat(i),e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(a);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(o).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n,r,i){var o=Bf(r,i.metadata);if(o===n){var a=gh(e,t,"NATIONAL",i);return"1"===n?n+" "+a:a}var s=function(e,t,n){var r=new Pf(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():dh.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,i.metadata);if(s)return"".concat(s," ").concat(n," ").concat(gh(e,null,"INTERNATIONAL",i))}(a,e.carrierCode,o,n.fromCountry,r);return yh(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function gh(e,t,n,r,i){var o,a,s=(o=r.formats(),a=e,function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(o,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return Gf(a,e.pattern())}));return s?sh(e,s,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix}):e}function yh(e,t,n,r){return t?r(e,t,n):e}function bh(e){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_h(Object(n),!0).forEach(function(t){Ch(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ch(e,t,n){return(t=Sh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xh(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sh(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sh(e){var t=function(e,t){if("object"!=bh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=bh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==bh(t)?t:t+""}var Eh=function(){return xh(function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("First argument is required");if("string"!=typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!n)throw new TypeError("`metadata` argument not passed");if(Ef(n)&&Ef(n.countries)){r=n;var i=t;if(!Ah.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=oh(i,void 0,void 0,void 0,r);if(t=o.countryCallingCode,!(n=o.number))throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw new TypeError("`nationalNumber` argument must be a string");Uf(r);var a=function(e,t){var n,r,i=new Pf(t);Th(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e;return{country:n,countryCallingCode:r}}(t,r),s=a.country,d=a.countryCallingCode;this.country=s,this.countryCallingCode=d,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}},[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Jf(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new Pf(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return zf(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return e=this,t={v2:!0},n=this.getMetadata(),t=t||{},(n=new Pf(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Yf(e,t,n.metadata):Gf(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern());var e,t,n}},{key:"isNonGeographic",value:function(){return new Pf(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Yf(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return vh(this,e,t?wh(wh({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),Th=function(e){return/^[A-Z]{2}$/.test(e)};var Ah=/^\+\d+$/;function Nh(e){return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oh(e,t,n){return t=kh(t),function(e,t){if(t&&("object"==Nh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rh()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Ih(e){var t="function"==typeof Map?new Map:void 0;return Ih=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Rh())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Ph(i,n.prototype),i}(e,arguments,kh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ph(n,e)},Ih(e)}function Rh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Rh=function(){return!!e})()}function Ph(e,t){return(Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kh(e){return(kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dh=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Oh(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(Ih(Error)),Mh=new RegExp("(?:"+lh()+")$","i");var Lh={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function jh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Uh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uh(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fh(e){for(var t,n="",r=jh(e.split(""));!(t=r()).done;){n+=Bh(t.value,n)||""}return n}function Bh(e,t,n){if("+"===e){if(t)return;return"+"}return function(e){return Lh[e]}(e)}var qh="(["+Zf+"]|[\\-\\.\\(\\)]?)",Hh=new RegExp("^\\+"+qh+"*["+Zf+"]"+qh+"*$","g"),zh=new RegExp("^("+("["+Zf+"]+((\\-)*["+Zf+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+Zf+"])*")+"\\.?$","g"),Gh="tel:",Wh=";phone-context=";function Vh(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(Wh);if(t<0)return null;var n=t+15;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(Hh.test(e)||zh.test(e))}(i))throw new Dh("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o,a=e.indexOf(Gh);o=a>=0?a+4:0;var s=e.indexOf(Wh);n+=e.substring(o,s)}var d=n.indexOf(";isub=");if(d>0&&(n=n.substring(0,d)),""!==n)return n}var Kh=new RegExp("[++"+Zf+"]"),Yh=new RegExp("[^"+Zf+"#]+$");function Xh(e,t,n){if(t=t||{},n=new Pf(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Dh("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var r=Vh(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new Dh("TOO_LONG");return}if(!1===t)return e;var r=e.search(Kh);if(r<0)return;return e.slice(r).replace(Yh,"")}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&$h.test(e)}(r))return function(e){return hh.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(Mh);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(Mh),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);if(i.ext)return i;return{number:r}}(e,t.v2,t.extract),i=r.number,o=r.ext,a=r.error;if(!i){if(t.v2){if("TOO_SHORT"===a)throw new Dh("TOO_SHORT");throw new Dh("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var i,o=oh(Fh(e),void 0,t,n,r.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,d=o.number;if(s)r.selectNumberingPlan(s);else{if(!d||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),s=n||Bf(t,r.metadata)}if(!d)return{countryCallingCodeSource:a,countryCallingCode:s};var u=ih(Fh(d),i,r),l=u.nationalNumber,c=u.carrierCode,f=rh(s,{nationalNumber:l,metadata:r});f&&(i=f,"001"===f||r.selectNumberingPlan(i));return{country:i,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:l,carrierCode:c}}(i,t.defaultCountry,t.defaultCallingCode,n),d=s.country,u=s.nationalNumber,l=s.countryCallingCode,c=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Dh("INVALID_COUNTRY");return{}}if(!u||u.length<2){if(t.v2)throw new Dh("TOO_SHORT");return{}}if(u.length>17){if(t.v2)throw new Dh("TOO_LONG");return{}}if(t.v2){var h=new Eh(l,u,n.metadata);return d&&(h.country=d),f&&(h.carrierCode=f),o&&(h.ext=o),h.__countryCallingCodeSource=c,h}var p=!!(t.extended?n.hasSelectedNumberingPlan():d)&&Gf(u,n.nationalNumberPattern());return t.extended?{country:d,countryCallingCode:l,carrierCode:f,valid:p,possible:!!p||!(!0!==t.extended||!n.possibleLengths()||!zf(u,d,n)),phone:u,ext:o}:p?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(d,u,o):{}}function Jh(e){return(Jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(t){ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ep(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Jh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Jh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tp(e){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=tp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ip(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],d=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(d=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(l){u=!0,i=l}finally{try{if(!d&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return op(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?op(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function op(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ap(e){var t,n,r,i=ip(Array.prototype.slice.call(e),4),o=i[0],a=i[1],s=i[2],d=i[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!Ef(a))throw new Error("Invalid second argument: ".concat(a));s?(n=a,r=s):r=a}else d?(n=s,r=d):(n=void 0,r=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach(function(t){rp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:r}}function sp(e){return(sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){lp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=sp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=sp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t,n){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,n)&&(t=up(up({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return Xh(e,Qh(Qh({},t),{},{v2:!0}),n)}(e,t,n)}catch(r){if(!(r instanceof Dh))throw r}}function fp(e){return(fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach(function(t){$p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=fp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=fp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(){var e=ap(arguments),t=e.text,n=e.options,r=e.metadata,i=cp(t,n=pp(pp({},n),{},{extract:!1}),r);return i&&i.isValid()||!1}function vp(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(Cf),e.apply(this,n)}(mp,arguments)}var gp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yp=t.createContext&&t.createContext(gp),bp=["attr","size","title"];function _p(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(this,arguments)}function Cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cp(Object(n),!0).forEach(function(t){Sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sp(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ep(e){return e&&e.map((e,n)=>t.createElement(e.tag,xp({key:n},e.attr),Ep(e.child)))}function Tp(e){return n=>t.createElement(Ap,wp({attr:xp({},e.attr)},n),Ep(e.child))}function Ap(e){var n=n=>{var r,{attr:i,size:o,title:a}=e,s=_p(e,bp),d=o||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",wp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:r,style:xp(xp({color:e.color||n.color},n.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==yp?t.createElement(yp.Consumer,null,e=>n(e)):n(gp)}function Np(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function Op(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(e)}function Ip(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(e)}function Rp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(e)}function Pp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 6 12 12 16 14"},child:[]}]})(e)}function kp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"},child:[]},{tag:"line",attr:{x1:"18",y1:"9",x2:"12",y2:"15"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"18",y2:"15"},child:[]}]})(e)}function Dp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 18v-6a9 9 0 0 1 18 0v6"},child:[]},{tag:"path",attr:{d:"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"},child:[]}]})(e)}function Mp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(e)}function Lp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]},{tag:"path",attr:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"},child:[]},{tag:"path",attr:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function jp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function Up(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function Fp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"10",y1:"15",x2:"10",y2:"9"},child:[]},{tag:"line",attr:{x1:"14",y1:"15",x2:"14",y2:"9"},child:[]}]})(e)}function Bp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(e)}function qp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 2 16 8 22 8"},child:[]},{tag:"line",attr:{x1:"23",y1:"1",x2:"16",y2:"8"},child:[]},{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(e)}function Hp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"},child:[]},{tag:"line",attr:{x1:"23",y1:"1",x2:"1",y2:"23"},child:[]}]})(e)}function zp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(e)}function Gp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function Wp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},child:[]}]})(e)}function Vp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"},child:[]}]})(e)}function Kp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(e)}function Yp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(e)}function Xp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"line",attr:{x1:"23",y1:"9",x2:"17",y2:"15"},child:[]},{tag:"line",attr:{x1:"17",y1:"9",x2:"23",y2:"15"},child:[]}]})(e)}function Jp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(e)}function Zp(e){return Tp({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}var Qp=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);var e$,t$,n$,r$,i$,o$,a$,s$,d$=(e,t)=>!!~e.indexOf(t),u$=(e,t="-")=>e.join(t),l$=(e,t)=>u$(e.filter(Boolean),t),c$=(e,t=1)=>e.slice(t),f$=e=>e,h$=()=>{},p$=e=>e[0].toUpperCase()+c$(e),$$=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),m$=(e,t)=>{for(;"function"==typeof e;)e=e(t);return e},v$=(e,t)=>{e.size>t&&e.delete(e.keys().next().value)},g$=(e,t)=>!d$("@:&",e[0])&&(d$("rg",(typeof t)[5])||Array.isArray(t)),y$=(e,t,n)=>t?Object.keys(t).reduce((e,r)=>{const i=m$(t[r],n);return g$(r,i)?e[$$(r)]=i:e[r]="@"==r[0]&&d$("figa",r[1])?(e[r]||[]).concat(i):y$(e[r]||{},i,n),e},e):e,b$="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& ")),_$=e=>(Array.isArray(e)||(e=[e]),"@media "+u$(e.map(e=>("string"==typeof e&&(e={min:e}),e.raw||u$(Object.keys(e).map(t=>`(${t}-width:${e[t]})`)," and "))),",")),w$=e=>{for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},C$=(e="")=>(e$.push(e),""),x$=e=>{e$.length=Math.max(e$.lastIndexOf("")+~~e,0)},S$=e=>e&&!d$("!:",e[0]),E$=e=>":"==e[0],T$=(e,t)=>{t$.push({v:e$.filter(E$),d:e,n:t,i:d$(e$,"!"),$:""})},A$=e=>{const t="-"==e[0];t&&(e=c$(e));const n=u$(e$.filter(S$));return T$("&"==e?n:(n&&n+"-")+e,t),""},N$=(e,t)=>{let n="";for(let r,i=!1,o=0;r=e[o++];)if(i||"["==r)n+=r,i="]"!=r;else switch(r){case":":n=n&&C$(":"+(e[o]==r?e[o++]:"")+n);break;case"(":n=n&&C$(n),C$();break;case"!":C$(r);break;case")":case" ":case"\t":case"\n":case"\r":n=n&&A$(n),x$(")"!==r);break;default:n+=r}n&&(t?C$(":"+n):"-"==n.slice(-1)?C$(n.slice(0,-1)):A$(n))},O$=e=>{C$(),I$(e),x$()},I$=e=>{switch(typeof e){case"string":N$(e);break;case"function":T$(e);break;case"object":Array.isArray(e)?e.forEach(O$):e&&Object.keys(e).forEach(t=>{((e,t)=>{if(t){C$();const n=d$("tbu",(typeof t)[1]);N$(e,n),n&&O$(t),x$()}})(t,e[t])})}},R$=new WeakMap,P$=e=>(e$=[],t$=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?(e=>{let t=R$.get(e);if(!t){let n=NaN,r="";t=e.map((t,i)=>{if(n==n||"["!=t.slice(-1)&&!d$(":-(",(e[i+1]||"")[0])||(n=i),i>=n)return o=>{i==n&&(r=""),r+=t,d$("rg",(typeof o)[5])?r+=o:o&&(N$(r),r="",I$(o)),i==e.length-1&&N$(r)};const o=t$=[];N$(t);const a=[...e$];return t$=[],e=>{t$.push(...o),e$=[...a],e&&I$(e)}}),R$.set(e,t)}return t})(e[0]).forEach((t,n)=>t(e[n+1])):I$(e),t$),k$=(e,t)=>("function"==typeof t&&(n$=!1),t),D$=new WeakMap,M$=(e,t)=>{const n=(e=>{n$=!0;const t=JSON.stringify(e,k$);return n$&&t})(t);let r;if(n){var i=D$.get(e);i||D$.set(e,i=new Map),r=i.get(n)}return r||(r=Object.defineProperty((n,r)=>(r=Array.isArray(n)?r:n,m$(e(t,r),r)),"toJSON",{value:()=>n||t}),i&&(i.set(n,r),v$(i,1e4))),r},L$=(e,{css:t})=>t(P$(e)),j$=e=>(t,n,r,i)=>{if(t){const o=n&&e(n);if(o&&o.length>0)return o.reduce((e,n)=>(e[l$([r,n,i])]=t,e),{})}},U$=j$(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]}[e])),F$=e=>{const t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},B$=j$(F$),q$=(e,t)=>e+(":"==t[1]?c$(t,2)+":":c$(t))+":",H$=(e,t=e.d)=>"function"==typeof t?"":e.v.reduce(q$,"")+(e.i?"!":"")+(e.n?"-":"")+t,z$=e=>"cols"==e?"columns":"rows",G$=e=>(t,n,r)=>({[e]:r+((r$=u$(t))&&"-"+r$)}),W$=(e,t)=>(n,r,i)=>(r$=u$(n,t))&&{[e||i]:r$},V$=e=>(t,{theme:n},r)=>(r$=n(e||r,t))&&{[e||r]:r$},K$=(e,t)=>(n,{theme:r},i)=>(r$=r(e||i,n,u$(n,t)))&&{[e||i]:r$},Y$=(e,t)=>(n,r)=>e(n,r,t),X$=G$("display"),J$=G$("position"),Z$=G$("textTransform"),Q$=G$("textDecoration"),em=G$("fontStyle"),tm=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),nm=(e,{theme:t},n)=>(r$=t("inset",e))&&{[n]:r$},rm=(e,t,n,r=n)=>(r$=t(r+"Opacity",c$(e)))&&{[`--tw-${n}-opacity`]:r$},im=(e,t)=>Math.round(parseInt(e,16)*t),om=(e,t,n)=>e&&"#"==e[0]&&(r$=(e.length-1)/3)&&(o$=[17,1,.062272][r$-1])?`rgba(${im(e.substr(1,r$),o$)},${im(e.substr(1+r$,r$),o$)},${im(e.substr(1+2*r$,r$),o$)},${t?`var(--tw-${t}${n?","+n:""})`:n||1})`:e,am=(e,t,n)=>n&&"string"==typeof n?(r$=om(n,t+"-opacity"))&&r$!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,r$]}:{[e]:n}:void 0,sm=e=>(o$=om(e,"","0"))==r$?"transparent":o$,dm=(e,{theme:t},n,r,i,o)=>(r$={x:["right","left"],y:["bottom","top"]}[e[0]])&&(o$=`--tw-${n}-${e[0]}-reverse`)?"reverse"==e[1]?{[o$]:"1"}:{[o$]:"0",[l$([i,r$[0],o])]:(i$=t(r,c$(e)))&&`calc(${i$} * var(${o$}))`,[l$([i,r$[1],o])]:i$&&[i$,`calc(${i$} * calc(1 - var(${o$})))`]}:void 0,um=(e,t)=>t[0]&&{[e]:(d$("wun",(t[0]||"")[3])?"space-":"")+t[0]},lm=e=>t=>d$(["start","end"],t[0])?{[e]:"flex-"+t[0]}:um(e,t),cm=e=>(t,{theme:n})=>{if(r$=n("grid"+p$(e),t,""))return{["grid-"+e]:r$};switch(t[0]){case"span":return t[1]&&{["grid-"+e]:`span ${t[1]} / span ${t[1]}`};case"start":case"end":return(r$=n("grid"+p$(e)+p$(t[0]),c$(t),u$(c$(t))))&&{[`grid-${e}-${t[0]}`]:r$}}},fm=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return W$("borderStyle")(e);case"collapse":case"separate":return W$("borderCollapse")(e);case"opacity":return rm(e,t,n)}return(r$=t(n+"Width",e,""))?{borderWidth:r$}:am("borderColor",n,t(n+"Color",e))},hm=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",pm=(e,t,n)=>e[0]&&(r$=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:"y"!==e[0]&&r$,[`--tw-${n}-y`]:"x"!==e[0]&&r$,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${r$})`,hm()]},$m=e=>(t,n,r)=>r[1]?B$(n.theme(e,t),r[1],e):V$(e)(t,n,r),mm=$m("padding"),vm=$m("margin"),gm=(e,{theme:t},n)=>(r$={w:"width",h:"height"}[e[0]])&&{[r$=`${n}${p$(r$)}`]:t(r$,c$(e))},ym=(e,{theme:t},n)=>{const r=n.split("-"),i="backdrop"==r[0]?r[0]+"-":"";if(i||e.unshift(...r),"filter"==e[0]){const t=["blur","brightness","contrast","grayscale","hue-rotate","invert",i&&"opacity","saturate","sepia",!i&&"drop-shadow"].filter(Boolean);return"none"==e[1]?{[i+"filter"]:"none"}:t.reduce((e,t)=>(e["--tw-"+i+t]="var(--tw-empty,/*!*/ /*!*/)",e),{[i+"filter"]:t.map(e=>`var(--tw-${i}${e})`).join(" ")})}return o$=e.shift(),d$(["hue","drop"],o$)&&(o$+=p$(e.shift())),(r$=t(i?"backdrop"+p$(o$):o$,e))&&{["--tw-"+i+o$]:(Array.isArray(r$)?r$:[r$]).map(e=>`${$$(o$)}(${e})`).join(" ")}},bm={group:(e,{tag:t},n)=>t(u$([n,...e])),hidden:Y$(X$,"none"),inline:X$,block:X$,contents:X$,flow:X$,table:(e,t,n)=>d$(["auto","fixed"],e[0])?{tableLayout:e[0]}:X$(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:u$("col"==e[0]?["column",...c$(e)]:e)};case"nowrap":case"wrap":return{flexWrap:u$(e)};case"grow":case"shrink":return null!=(r$=t.theme("flex"+p$(e[0]),c$(e),e[1]||1))&&{["flex-"+e[0]]:""+r$}}return(r$=t.theme("flex",e,""))?{flex:r$}:X$(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return(r$=t.theme("gridTemplate"+p$(z$(e[0])),c$(e),2==e.length&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:u$(c$(e))))&&{["gridTemplate-"+z$(e[0])]:r$};case"flow":return e.length>1&&{gridAutoFlow:u$("col"==e[1]?["column",...c$(e,2)]:c$(e)," ")}}return X$(e,t,n)},auto:(e,{theme:t})=>d$(["cols","rows"],e[0])&&(r$=t("gridAuto"+p$(z$(e[0])),c$(e),u$(c$(e))))&&{["gridAuto-"+z$(e[0])]:r$},static:J$,fixed:J$,absolute:J$,relative:J$,sticky:J$,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"horizontal",y:"vertical"}[e[0]]||e[0]||"both"}),box:e=>e[0]&&{boxSizing:e[0]+"-box"},appearance:W$(),cursor:K$(),float:W$(),clear:W$(),decoration:W$("boxDecorationBreak"),isolate:{isolation:"isolate"},isolation:W$(),"mix-blend":W$("mixBlendMode"),top:nm,right:nm,bottom:nm,left:nm,inset:(e,{theme:t})=>(r$=F$(e[0]))?B$(t("inset",c$(e)),e[0]):(r$=t("inset",e))&&{top:r$,right:r$,bottom:r$,left:r$},underline:Q$,"line-through":Q$,"no-underline":Y$(Q$,"none"),"text-underline":Y$(Q$,"underline"),"text-no-underline":Y$(Q$,"none"),"text-line-through":Y$(Q$,"line-through"),uppercase:Z$,lowercase:Z$,capitalize:Z$,"normal-case":Y$(Z$,"none"),"text-normal-case":Y$(Z$,"none"),italic:em,"not-italic":Y$(em,"normal"),"font-italic":Y$(em,"italic"),"font-not-italic":Y$(em,"normal"),font:(e,t,n)=>(r$=t.theme("fontFamily",e,""))?{fontFamily:r$}:V$("fontWeight")(e,t,n),items:e=>e[0]&&{alignItems:d$(["start","end"],e[0])?"flex-"+e[0]:u$(e)},"justify-self":W$(),"justify-items":W$(),justify:lm("justifyContent"),content:lm("alignContent"),self:lm("alignSelf"),place:e=>e[0]&&um("place-"+e[0],c$(e)),overscroll:e=>e[0]&&{["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]},col:cm("column"),row:cm("row"),duration:V$("transitionDuration"),delay:V$("transitionDelay"),tracking:V$("letterSpacing"),leading:V$("lineHeight"),z:V$("zIndex"),opacity:V$(),ease:V$("transitionTimingFunction"),p:mm,py:mm,px:mm,pt:mm,pr:mm,pb:mm,pl:mm,m:vm,my:vm,mx:vm,mt:vm,mr:vm,mb:vm,ml:vm,w:V$("width"),h:V$("height"),min:gm,max:gm,fill:V$(),order:V$(),origin:K$("transformOrigin"," "),select:W$("userSelect"),"pointer-events":W$(),align:W$("verticalAlign"),whitespace:W$("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:tm("ordinal"),"slashed-zero":tm("slashed-zero"),"lining-nums":tm("numeric-figure"),"oldstyle-nums":tm("numeric-figure"),"proportional-nums":tm("numeric-spacing"),"tabular-nums":tm("numeric-spacing"),"diagonal-fractions":tm("numeric-fraction"),"stacked-fractions":tm("numeric-fraction"),overflow:(e,t,n)=>d$(["ellipsis","clip"],e[0])?W$("textOverflow")(e):e[1]?{["overflow-"+e[0]]:e[1]}:W$()(e,t,n),transform:e=>"none"==e[0]?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:hm("gpu"==e[0])},rotate:(e,{theme:t})=>(r$=t("rotate",e))&&{"--tw-rotate":r$,transform:[`rotate(${r$})`,hm()]},scale:pm,translate:pm,skew:pm,gap:(e,t,n)=>(r$={x:"column",y:"row"}[e[0]])?{[r$+"Gap"]:t.theme("gap",c$(e))}:V$("gap")(e,t,n),stroke:(e,t,n)=>(r$=t.theme("stroke",e,""))?{stroke:r$}:V$("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(r$=t("outline",e))&&{outline:r$[0],outlineOffset:r$[1]},"break-normal":{wordBreak:"normal",overflowWrap:"normal"},"break-words":{overflowWrap:"break-word"},"break-all":{wordBreak:"break-all"},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return Z$([],r$,e[0]);case"opacity":return rm(e,t,n)}const r=t("fontSize",e,"");return r?"string"==typeof r?{fontSize:r}:{fontSize:r[0],..."string"==typeof r[1]?{lineHeight:r[1]}:r[1]}:am("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return W$("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return W$("backgroundPosition"," ")(e);case"no":return"repeat"==e[1]&&W$("backgroundRepeat")(e);case"repeat":return d$("xy",e[1])?W$("backgroundRepeat")(e):{backgroundRepeat:e[1]||e[0]};case"opacity":return rm(e,t,n,"background");case"clip":case"origin":return e[1]&&{["background-"+e[0]]:e[1]+("text"==e[1]?"":"-box")};case"blend":return W$("background-blend-mode")(c$(e));case"gradient":if("to"==e[1]&&(r$=F$(e[2])))return{backgroundImage:`linear-gradient(to ${u$(r$," ")},var(--tw-gradient-stops))`}}return(r$=t("backgroundPosition",e,""))?{backgroundPosition:r$}:(r$=t("backgroundSize",e,""))?{backgroundSize:r$}:(r$=t("backgroundImage",e,""))?{backgroundImage:r$}:am("backgroundColor","bg",t("backgroundColor",e))},from:(e,{theme:t})=>(r$=t("gradientColorStops",e))&&{"--tw-gradient-from":r$,"--tw-gradient-stops":`var(--tw-gradient-from),var(--tw-gradient-to,${sm(r$)})`},via:(e,{theme:t})=>(r$=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from),${r$},var(--tw-gradient-to,${sm(r$)})`},to:(e,{theme:t})=>(r$=t("gradientColorStops",e))&&{"--tw-gradient-to":r$},border:(e,t,n)=>{var r;const i=null==(r=F$(e[0]))?void 0:r.map(p$);i&&(e=c$(e));let o=fm(e,t,n);return i&&o&&"object"==typeof o&&(o=Object.entries(o).reduce((e,[t,n])=>{if(t.startsWith("border"))for(const r of i)e[t.slice(0,6)+r+t.slice(6)]=n;else e[t]=n;return e},{})),o},divide:(e,t,n)=>(r$=dm(e,t,n,"divideWidth","border","width")||fm(e,t,n))&&{"&>:not([hidden])~:not([hidden])":r$},space:(e,t,n)=>(r$=dm(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":r$},placeholder:(e,{theme:t},n)=>(r$="opacity"==e[0]?rm(e,t,n):am("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":r$},shadow:(e,{theme:t})=>(r$=t("boxShadow",e))&&{":global":{"*":{"--tw-shadow":"0 0 transparent"}},"--tw-shadow":"none"==r$?"0 0 transparent":r$,boxShadow:[r$,"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)"]},animate:(e,{theme:t,tag:n})=>{if(o$=t("animation",e)){const e=o$.split(" ");return(r$=t("keyframes",e[0],i$={}))!==i$?(o$=n(e[0]))&&{animation:o$+" "+u$(c$(e)," "),["@keyframes "+o$]:r$}:{animation:o$}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return rm(e,t,n);case"offset":return(r$=t("ringOffsetWidth",c$(e),""))?{"--tw-ring-offset-width":r$}:{"--tw-ring-offset-color":t("ringOffsetColor",c$(e))}}return(r$=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${r$} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)",":global":{"*":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":t("ringOffsetColor","","#fff"),"--tw-ring-color":om(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5")),"--tw-ring-offset-shadow":"0 0 transparent","--tw-ring-shadow":"0 0 transparent"}}}:{"--tw-ring-opacity":"1","--tw-ring-color":om(t("ringColor",e),"ring-opacity")}},object:(e,t,n)=>d$(["contain","cover","fill","none","scale-down"],u$(e))?{objectFit:u$(e)}:K$("objectPosition"," ")(e,t,n),list:(e,t,n)=>"item"==u$(e)?X$(e,t,n):d$(["inside","outside"],u$(e))?{listStylePosition:e[0]}:K$("listStyleType")(e,t,n),rounded:(e,t,n)=>U$(t.theme("borderRadius",c$(e),""),e[0],"border","radius")||V$("borderRadius")(e,t,n),"transition-none":{transitionProperty:"none"},transition:(e,{theme:t})=>({transitionProperty:t("transitionProperty",e),transitionTimingFunction:t("transitionTimingFunction",""),transitionDuration:t("transitionDuration","")}),container:(e,{theme:t})=>{const{screens:n=t("screens"),center:r,padding:i}=t("container"),o=e=>(r$=i&&("string"==typeof i?i:i[e]||i.DEFAULT))?{paddingRight:r$,paddingLeft:r$}:{};return Object.keys(n).reduce((e,t)=>((o$=n[t])&&"string"==typeof o$&&(e[_$(o$)]={"&":{"max-width":o$,...o(t)}}),e),{width:"100%",...r?{marginRight:"auto",marginLeft:"auto"}:{},...o("xs")})},filter:ym,blur:ym,brightness:ym,contrast:ym,grayscale:ym,"hue-rotate":ym,invert:ym,saturate:ym,sepia:ym,"drop-shadow":ym,backdrop:ym},_m={dark:"@media (prefers-color-scheme:dark)",sticky:"@supports ((position: -webkit-sticky) or (position:sticky))","motion-reduce":"@media (prefers-reduced-motion:reduce)","motion-safe":"@media (prefers-reduced-motion:no-preference)",first:"&:first-child",last:"&:last-child",even:"&:nth-child(2n)",odd:"&:nth-child(odd)",children:"&>*",siblings:"&~*",sibling:"&+*",override:"&&"},wm="__twind",Cm=e=>{let t=self[wm];return t||(t=document.head.appendChild(document.createElement("style")),t.id=wm,e&&(t.nonce=e),t.appendChild(document.createTextNode(""))),t},xm=e=>({unknown(e,t=[],n,r){n||this.report({id:"UNKNOWN_THEME_VALUE",key:e+"."+u$(t)},r)},report:({id:t,...n})=>e(`[${t}] ${JSON.stringify(n)}`)}),Sm=xm(e=>console.warn(e)),Em=xm(e=>{throw new Error(e)}),Tm=xm(h$),Am=(e,t,n)=>`${e}:${t}${n?" !important":""}`,Nm=(e,t,n)=>{let r="";const i=(o=e,Qp.get(o));var o;i&&(r+=`${Am(i,t,n)};`);let a=function(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}(e);return 1&a&&(r+=`-webkit-${Am(e,t,n)};`),2&a&&(r+=`-moz-${Am(e,t,n)};`),4&a&&(r+=`-ms-${Am(e,t,n)};`),a=function(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?"-"===t[3]?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}(e,t),1&a&&(r+=`${Am(e,`-webkit-${t}`,n)};`),2&a&&(r+=`${Am(e,`-moz-${t}`,n)};`),4&a&&(r+=`${Am(e,`-ms-${t}`,n)};`),r+=Am(e,t,n),r},Om=(e,t)=>{const n={};do{for(let t=1;t<e;t++)n[`${t}/${e}`]=Number((t/e*100).toFixed(6))+"%"}while(++e<=t);return n},Im=(e,t,n=0)=>{const r={};for(;n<=e;n=2*n||1)r[n]=n+t;return r},Rm=(e,t="",n=1,r=0,i=1,o={})=>{for(;r<=e;r+=i)o[r]=r/n+t;return o},Pm=e=>t=>t(e),km={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:{px:"1px",0:"0px",...Rm(4,"rem",4,.5,.5),...Rm(12,"rem",4,5),14:"3.5rem",...Rm(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backdropBlur:Pm("blur"),backdropBrightness:Pm("brightness"),backdropContrast:Pm("contrast"),backdropGrayscale:Pm("grayscale"),backdropHueRotate:Pm("hueRotate"),backdropInvert:Pm("invert"),backdropOpacity:Pm("opacity"),backdropSaturate:Pm("saturate"),backdropSepia:Pm("sepia"),backgroundColor:Pm("colors"),backgroundImage:{none:"none"},backgroundOpacity:Pm("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Rm(200,"",100,0,50),...Rm(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:e=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:Pm("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderWidth:{DEFAULT:"1px",...Im(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none"},contrast:{...Rm(200,"",100,0,50),75:"0.75",125:"1.25"},divideColor:Pm("borderColor"),divideOpacity:Pm("borderOpacity"),divideWidth:Pm("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:{current:"currentColor"},grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gridTemplateColumns:{},gridTemplateRows:{},gridAutoColumns:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gap:Pm("spacing"),gradientColorStops:Pm("colors"),height:e=>({auto:"auto",...e("spacing"),...Om(2,6),full:"100%",screen:"100vh"}),inset:e=>({auto:"auto",...e("spacing"),...Om(2,4),full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",...Rm(10,"rem",4,3)},margin:e=>({auto:"auto",...e("spacing")}),maxHeight:e=>({...e("spacing"),full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{...Rm(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0",...Rm(12,"",1,1)},outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:Pm("spacing"),placeholderColor:Pm("colors"),placeholderOpacity:Pm("opacity"),ringColor:e=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:Pm("colors"),ringOffsetWidth:Im(8,"px"),ringOpacity:e=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",...Im(8,"px")},rotate:{...Im(2,"deg"),...Im(12,"deg",3),...Im(180,"deg",45)},saturate:Rm(200,"",100,0,50),scale:{...Rm(150,"",100,0,50),...Rm(110,"",100,90,5),75:"0.75",125:"1.25"},sepia:{0:"0",DEFAULT:"100%"},skew:{...Im(2,"deg"),...Im(12,"deg",3)},space:Pm("spacing"),stroke:{current:"currentColor"},strokeWidth:Rm(2),textColor:Pm("colors"),textOpacity:Pm("opacity"),transitionDuration:e=>({DEFAULT:"150ms",...e("durations")}),transitionDelay:Pm("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>({...e("spacing"),...Om(2,4),full:"100%"}),width:e=>({auto:"auto",...e("spacing"),...Om(2,6),...Om(12,12),screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:{auto:"auto",...Rm(50,"",1,0,10)}},Dm=(e,t={},n=[])=>(Object.keys(e).forEach(r=>{const i=e[r];"DEFAULT"==r&&(t[u$(n)]=i,t[u$(n,".")]=i);const o=[...n,r];t[u$(o)]=i,t[u$(o,".")]=i,i&&"object"==typeof i&&Dm(i,t,o)},t),t),Mm={negative:()=>({}),breakpoints:e=>Object.keys(e).filter(t=>"string"==typeof e[t]).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},Lm=e=>{const t=new Map,n={...km,...e},r=(e,t)=>{const n=e&&e[t],r="function"==typeof n?n(i,Mm):n;return r&&"colors"==t?Dm(r):r},i=(e,i,o)=>{const a=e.split(".");e=a[0],a.length>1&&(o=i,i=u$(c$(a),"."));let s=t.get(e);if(s||(t.set(e,s={...r(n,e)}),Object.assign(s,r(n.extend,e))),null!=i){const t=((e,t)=>(t="["==t[0]&&"]"==t.slice(-1)&&t.slice(1,-1))&&d$(e,"olor")==/^(#|(hsl|rgb)a?\(|[a-z]+$)/.test(t)&&(d$(t,"calc(")?t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "):t))(e,i=(Array.isArray(i)?u$(i):i)||"DEFAULT")||s[i];return null==t?o:Array.isArray(t)&&!d$(["fontSize","outline","dropShadow"],e)?u$(t,","):t}return s};return i},jm=/^:(group(?:(?!-focus).+?)*)-(.+)$/,Um=/^(:not)-(.+)/,Fm=e=>"["==e[1]?c$(e):e,Bm=e=>(31&((s$=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+s$[1]/(s$[2]?15:1)/10:0))<<22,qm=e=>{s$=0;for(let t=e.length;t--;)s$+=d$("-:,",e[t]);return s$},Hm=e=>(15&qm(e))<<18,zm=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],Gm=(e,t)=>(n,r)=>{return n|((s$=e("screens",c$(r),""))?1<<27|Bm(_$(s$)):":dark"==r?1<<30:"@"==(s$=t[r]||r.replace(Um,":$2"))[0]?Hm(s$):(i=r,1<<(~(s$=zm.indexOf(i.replace(jm,":$2").slice(3,8)))?s$:17)));var i},Wm=(e,t)=>t+"{"+e+"}",Vm=(e,t,n)=>{const{theme:r,tag:i}=n,o=(e,t)=>"--"+i(t),a=e=>`${e}`.replace(/--(tw-[\w-]+)\b/g,o);let s;const d=(t,r,i,o,u)=>{if(Array.isArray(o))return void o.forEach(e=>e&&d(t,r,i,e,u));let l="",c=0,f=0;o["@apply"]&&(o=y$(m$(((...e)=>M$(L$,e))(o["@apply"]),n),{...o,"@apply":void 0},n)),Object.keys(o).forEach(h=>{const p=m$(o[h],n);if(g$(h,p)){if(""!==p&&h.length>1){const t=$$(h);f+=1,c=Math.max(c,(e=>"-"==e[0]?0:qm(e)+((s$=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.exec(e))?+!!s$[1]||-!!s$[2]:0)+1)(t)),l=(l&&l+";")+((t,n,r)=>(t=a(t),Array.isArray(n)?u$(n.filter(Boolean).map(n=>e(t,a(n),r)),";"):e(t,a(n),r)))(t,p,u)}}else if(p)if(":global"==h&&(h="@global"),"@"==h[0])if("g"==h[1])d([],"",0,p,u);else if("f"==h[1])d([],h,0,p,u);else if("k"==h[1]){const e=s.length;d([],"",0,p,u);const t=s.splice(e,s.length-e);s.push({r:Wm(u$(t.map(e=>e.r),""),h),p:t.reduce((e,t)=>e+t.p,0)})}else"i"==h[1]?(Array.isArray(p)?p:[p]).forEach(e=>e&&s.push({p:0,r:`${h} ${e};`})):("c"==h[2]&&(h=_$(n.theme("screens",c$(h,8).trim()))),d([...t,h],r,i|Bm(h)|Hm(h),p,u));else d(t,r?r.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,t,n)=>h.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>(d$(n,"&")?n.replace(/&/g,t):(t&&t+" ")+n)+r)+n):h,i,p,u)}),f&&s.push({r:t.reduceRight(Wm,Wm(l,r)),p:256*i+((15&Math.max(0,15-f))<<4|15&(c||15))})},u=Gm(r,t);return(e,t,n,r=0)=>(r<<=28,s=[],d([],t?"."+b$(t):"",n?n.v.reduceRight(u,r):r,e,n&&n.i),s)},Km=(e,t,n,r=t)=>!1===e?n:!0===e?r:e||t,Ym={_:{value:"",writable:!0}},Xm=(e={})=>{const t=Lm(e.theme),n=(e=>("string"==typeof e?{t:Em,a:Sm,i:Tm}[e[1]]:e)||Sm)(e.mode),r=Km(e.hash,!1,!1,w$),i=e.important;let o={v:[]},a=0;const s=[],d={tw:(...e)=>b(e),theme:(e,r,i)=>{var a;const s=null!=(a=t(e,r,i))?a:n.unknown(e,null==r||Array.isArray(r)?r:r.split("."),null!=i,d);return o.n&&s&&d$("rg",(typeof s)[5])?`calc(${s} * -1)`:s},tag:e=>r?r(e):e,css:e=>{a++;const t=s.length;try{("string"==typeof e?P$([e]):e).forEach(y);const n=Object.create(null,Ym);for(let e=t;e<s.length;e++){const t=s[e];if(t)switch(typeof t){case"object":y$(n,t,d);break;case"string":n._+=(n._&&" ")+t}}return n}finally{s.length=t,a--}}},u=((e,t)=>(n,r)=>{if("function"==typeof n.d)return n.d(t);const i=n.d.split(/-(?![^[]*])/g);if(!r&&"tw"==i[0]&&n.$==n.d)return n.$;for(let o=i.length;o;o--){const n=u$(i.slice(0,o));if(Object.prototype.hasOwnProperty.call(e,n)){const a=e[n];return"function"==typeof a?a(c$(i,o),t,n):"string"==typeof a?t[r?"css":"tw"](a):a}}})({...bm,...e.plugins},d),l={..._m,...e.variants},c=((e,t,{theme:n,tag:r})=>{const i=(i,o)=>(a$=n("screens",c$(o),""))?{[_$(a$)]:i}:":dark"==o&&"class"==e?{".dark &":i}:(a$=jm.exec(o))?{[`.${b$(r(a$[1]))}:${a$[2]} &`]:i}:{[t[c$(o)]||"&"+o.replace(Um,(e,t,n)=>t+"("+Fm(":"+n)+")")]:i};return(e,t)=>t.v.reduceRight(i,e)})(e.darkMode||"media",l,d),f=Vm(Km(e.prefix,Nm,Am),l,d),h=e.sheet||("undefined"==typeof window?{target:null,insert:h$}:(({nonce:e,target:t=Cm(e).sheet}={})=>{const n=t.cssRules.length;return{target:t,insert:(e,r)=>t.insertRule(e,n+r)}})(e)),{init:p=e=>e()}=h,$=((e,t,n,r)=>{let i,o;return n((e=[])=>i=e),n((e=new Set)=>o=e),({r:n,p:a})=>{if(!o.has(n)){o.add(n);const d=((e,t)=>{for(var n=0,r=e.length;n<r;){const i=r+n>>1;e[i]<=t?n=i+1:r=i}return r})(i,a);try{e.insert(n,d),i.splice(d,0,a)}catch(s){/:-[mwo]/.test(n)||t.report({id:"INJECT_CSS_ERROR",css:n,error:s},r)}}}})(h,n,p,d);let m;p((e=new Map)=>m=e);const v=new WeakMap,g=(e,t)=>"_"==e?void 0:"function"==typeof t?JSON.stringify(m$(t,d),g):t,y=e=>{!a&&o.v.length&&(e={...e,v:[...o.v,...e.v],$:""}),e.$||(e.$=H$(e,v.get(e.d)));let t=a?null:m.get(e.$);if(null==t){let l=(e=>{const t=o;o=e;try{return m$(u(e),d)}finally{o=t}})(e);if(e.$||(e.$=w$(JSON.stringify(l,g)),v.set(e.d,e.$),e.$=H$(e,e.$)),l&&"object"==typeof l)if(e.v=e.v.map(Fm),i&&(e.i=i),l=c(l,e),a)s.push(l);else{const n="function"==typeof e.d?"string"==typeof l._?1:3:2;t=r||"function"==typeof e.d?(r||w$)(n+e.$):e.$,f(l,t,e,n).forEach($),l._&&(t+=" "+l._)}else"string"==typeof l?t=l:(t=e.$,n.report({id:"UNKNOWN_DIRECTIVE",rule:t},d)),a&&"function"!=typeof e.d&&s.push(t);a||(m.set(e.$,t),v$(m,3e4))}return t},b=e=>u$(P$(e).map(y).filter(Boolean)," "),_=Km(e.preflight,f$,!1);if(_){const e=(e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily.sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor.DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:"1",color:e("placeholderColor.DEFAULT",e("colors.gray.400","#a1a1aa"))},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}))(t),n=f("function"==typeof _?m$(_(e,d),d)||e:{...e,..._});p((e=(n.forEach($),!0))=>e)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},d),process:b}},Jm=e=>{let t,n=e=>(r(),n(e)),r=e=>{({process:n,init:r}=Xm(e))};return{tw:Object.defineProperties((...e)=>n(e),{theme:{get:(i="theme",()=>(t||n([e=>(t=e,"")]),t[i]))}}),setup:e=>r(e)};var i},{tw:Zm,setup:Qm}=Jm();let ev={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rv(4,"rem",4,.5,.5),...rv(12,"rem",4,5),14:"3.5rem",...rv(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:iv("blur"),backdropBrightness:iv("brightness"),backdropContrast:iv("contrast"),backdropGrayscale:iv("grayscale"),backdropHueRotate:iv("hueRotate"),backdropInvert:iv("invert"),backdropOpacity:iv("opacity"),backdropSaturate:iv("saturate"),backdropSepia:iv("sepia"),backgroundColor:iv("colors"),backgroundImage:{none:"none"},backgroundOpacity:iv("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rv(200,"",100,0,50),...rv(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:iv("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:iv("spacing"),borderWidth:{DEFAULT:"1px",...nv(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:iv("colors"),caretColor:iv("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rv(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:iv("borderColor"),divideOpacity:iv("borderOpacity"),divideWidth:iv("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...tv(2,6),...tv(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:iv("spacing"),gradientColorStops:iv("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...tv(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...tv(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rv(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rv(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:iv("spacing"),placeholderColor:iv("colors"),placeholderOpacity:iv("opacity"),outlineColor:iv("colors"),outlineOffset:nv(8,"px"),outlineWidth:nv(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:iv("colors"),ringOffsetWidth:nv(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...nv(8,"px")},rotate:{...nv(2,"deg"),...nv(12,"deg",3),...nv(180,"deg",45)},saturate:rv(200,"",100,0,50),scale:{...rv(150,"",100,0,50),...rv(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:iv("spacing"),scrollPadding:iv("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...nv(2,"deg"),...nv(12,"deg",3)},space:iv("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rv(2),textColor:iv("colors"),textDecorationColor:iv("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...nv(8,"px")},textUnderlineOffset:{auto:"auto",...nv(8,"px")},textIndent:iv("spacing"),textOpacity:iv("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:iv("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...tv(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rv(50,"",1,0,10),auto:"auto"}};function tv(e,t){let n={};do{for(var r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%"}while(++e<=t);return n}function nv(e,t,n=0){let r={};for(;n<=e;n=2*n||1)r[n]=n+t;return r}function rv(e,t="",n=1,r=0,i=1,o={}){for(;r<=e;r+=i)o[r]=r/n+t;return o}function iv(e){return({theme:t})=>t(e)}let ov={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${ev.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${ev.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};function av(e,t="@media "){return t+sv(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function sv(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function dv(e,t){return Math.round(parseInt(e,16)*t)}function uv(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let t=(e.length-1)/3,n=[17,1,.062272][t-1];return`rgba(${[dv(e.substr(1,t),n),dv(e.substr(1+t,t),n),dv(e.substr(1+2*t,t),n),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function lv(e,t,n){return[e,cv(t,n)]}function cv(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):fv(n,1)}):t=>e||{[t[1]]:fv(t,2)}}function fv(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function hv(e,t,n,r){return[e,pv(t,n,r)]}function pv(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return(t,n)=>{let i=yv(e||t[1]),o=n.theme(i,t.$$)??gv(t.$$,i,n);if(null!=o)return t._=fv(t,0,o),r(t,n,i)}}function $v(e,t={},n){return[e,mv(t,n)]}function mv(e={},t){return(n,r)=>{let{section:i=yv(n[0]).replace("-","")+"Color"}=e,[o,a]=(n.$$.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1);if(!o)return;let s=r.theme(i,o)||gv(o,i,r);if(!s||"object"==typeof s)return;let{opacityVariable:d=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:u=i.replace("Color","Opacity"),property:l=i,selector:c}=e,f=r.theme(u,a||"DEFAULT")||a&&gv(a,u,r),h=t||(({_:e})=>{let t=vv(l,e);return c?{[c]:t}:t});n._={value:uv(s,{opacityVariable:d||void 0,opacityValue:f||void 0}),color:e=>uv(s,e),opacityVariable:d||void 0,opacityValue:f||void 0};let p=h(n,r);if(!n.dark){let e=r.d(i,o,s);e&&e!==s&&(n._={value:uv(e,{opacityVariable:d||void 0,opacityValue:f||"1"}),color:t=>uv(e,t),opacityVariable:d||void 0,opacityValue:f||void 0},p={"&":p,[r.v("dark")]:h(n,r)})}return p}}function vv(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function gv(e,t,n){if("["==e[0]&&"]"==e.slice(-1)){if(e=bv(function(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o="")=>{let a=t(r,o);return"function"==typeof a&&/color|fill|stroke/i.test(r)?uv(a):""+sv(a).filter(e=>Object(e)!==e)})}(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!/^color:/.test(e)&&!/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e)||/image/i.test(t)&&!/^image:/.test(e)&&!/^[a-z-]+\(/.test(e)||/weight/i.test(t)&&!/^(number|any):/.test(e)&&!/^\d+$/.test(e)||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function yv(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function bv(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>bv(t)+n+bv(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let _v=[lv("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:gv(`[${t}]`,"",n)}}})),lv("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),hv("aspect-","aspectRatio"),lv("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),o={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...a("xs")};for(let s in n){let e=n[s];"string"==typeof e&&(o[av(e)]={"&":{maxWidth:e,...a(s)}})}return o;function a(e){let t=i&&("string"==typeof i?i:i[e]||i.DEFAULT);if(t)return{paddingRight:t,paddingLeft:t}}}),hv("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),lv("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),lv("box-(border|content)","boxSizing",({1:e})=>e+"-box"),lv("hidden",{display:"none"}),lv("table-(auto|fixed)","tableLayout"),lv(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",lv("isolate","isolation"),lv("object-(contain|cover|fill|none|scale-down)","objectFit"),hv("object-","objectPosition"),lv("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",wv),lv("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),lv("(static|fixed|absolute|relative|sticky)","position"),hv("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:"-x"!=e&&t,right:"-y"!=e&&t,bottom:"-x"!=e&&t,left:"-y"!=e&&t})),hv("-?(top|bottom|left|right)(?:$|-)","inset"),lv("(visible|collapse)","visibility"),lv("invisible",{visibility:"hidden"}),hv("-?z-","zIndex"),lv("flex-((row|col)(-reverse)?)","flexDirection",Cv),lv("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),hv("(flex-(?:grow|shrink))(?:$|-)"),hv("(flex)-"),hv("grow(?:$|-)","flexGrow"),hv("shrink(?:$|-)","flexShrink"),hv("basis-","flexBasis"),hv("-?(order)-"),"-?(order)-(\\d+)",hv("grid-cols-","gridTemplateColumns"),lv("grid-cols-(\\d+)","gridTemplateColumns",Pv),hv("col-","gridColumn"),lv("col-(span)-(\\d+)","gridColumn",Rv),hv("col-start-","gridColumnStart"),lv("col-start-(auto|\\d+)","gridColumnStart"),hv("col-end-","gridColumnEnd"),lv("col-end-(auto|\\d+)","gridColumnEnd"),hv("grid-rows-","gridTemplateRows"),lv("grid-rows-(\\d+)","gridTemplateRows",Pv),hv("row-","gridRow"),lv("row-(span)-(\\d+)","gridRow",Rv),hv("row-start-","gridRowStart"),lv("row-start-(auto|\\d+)","gridRowStart"),hv("row-end-","gridRowEnd"),lv("row-end-(auto|\\d+)","gridRowEnd"),lv("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>wv(Cv(e))),lv("grid-flow-(dense)","gridAutoFlow"),hv("auto-cols-","gridAutoColumns"),hv("auto-rows-","gridAutoRows"),hv("gap-x(?:$|-)","gap","columnGap"),hv("gap-y(?:$|-)","gap","rowGap"),hv("gap(?:$|-)","gap"),"(justify-(?:items|self))-",lv("justify-","justifyContent",Ev),lv("(content|items|self)-",e=>({["align-"+e[1]]:Ev(e)})),lv("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),hv("p([xytrbl])?(?:$|-)","padding",Tv("padding")),hv("-?m([xytrbl])?(?:$|-)","margin",Tv("margin")),hv("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),lv("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),hv("w-","width"),hv("min-w-","minWidth"),hv("max-w-","maxWidth"),hv("h-","height"),hv("min-h-","minHeight"),hv("max-h-","maxHeight"),hv("font-","fontWeight"),hv("font-","fontFamily",({_:e})=>"string"==typeof(e=sv(e))[1]?{fontFamily:Sv(e)}:{fontFamily:Sv(e[0]),...e[1]}),lv("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),lv("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),lv("italic","fontStyle"),lv("not-italic",{fontStyle:"normal"}),lv("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>"normal"==t?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...kv({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),hv("tracking-","letterSpacing"),hv("leading-","lineHeight"),lv("list-(inside|outside)","listStylePosition"),hv("list-","listStyleType"),lv("list-","listStyleType"),hv("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),$v("placeholder-",{property:"color",selector:"&::placeholder"}),lv("text-(left|center|right|justify|start|end)","textAlign"),lv("text-(ellipsis|clip)","textOverflow"),hv("text-opacity-","textOpacity","--tw-text-opacity"),$v("text-",{property:"color"}),hv("text-","fontSize",({_:e})=>"string"==typeof e?{fontSize:e}:{fontSize:e[0],..."string"==typeof e[1]?{lineHeight:e[1]}:e[1]}),hv("indent-","textIndent"),lv("(overline|underline|line-through)","textDecorationLine"),lv("no-underline",{textDecorationLine:"none"}),hv("underline-offset-","textUnderlineOffset"),$v("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),hv("decoration-","textDecorationThickness"),lv("decoration-","textDecorationStyle"),lv("(uppercase|lowercase|capitalize)","textTransform"),lv("normal-case",{textTransform:"none"}),lv("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),lv("align-","verticalAlign"),lv("whitespace-","whiteSpace"),lv("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),lv("break-words",{overflowWrap:"break-word"}),lv("break-all",{wordBreak:"break-all"}),lv("break-keep",{wordBreak:"keep-all"}),$v("caret-",{opacityVariable:!1,opacitySection:"opacity"}),$v("accent-",{opacityVariable:!1,opacitySection:"opacity"}),lv("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${xv(e," ")},var(--tw-gradient-stops))`),$v("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),$v("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),$v("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),lv("bg-(fixed|local|scroll)","backgroundAttachment"),lv("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),lv(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),lv("bg-blend-","backgroundBlendMode"),lv("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+("text"==e?"":"-box")),hv("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),$v("bg-",{section:"backgroundColor"}),hv("bg-","backgroundImage"),hv("bg-","backgroundPosition"),lv("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",wv),hv("bg-","backgroundSize"),hv("rounded(?:$|-)","borderRadius"),hv("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${xv(n[0])}-radius`]:t,[`border-${xv(n[1])}-radius`]:t}}),lv("border-(collapse|separate)","borderCollapse"),hv("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),lv("border-(solid|dashed|dotted|double|none)","borderStyle"),hv("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...kv({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),$v("border-([xytrbl])-",{section:"borderColor"},Tv("border","Color")),$v("border-"),hv("border-([xytrbl])(?:$|-)","borderWidth",Tv("border","Width")),hv("border(?:$|-)","borderWidth"),hv("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),lv("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),lv("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),hv("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${xv(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${xv(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),$v("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),hv("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),$v("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),hv("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),lv("ring-inset",{"--tw-ring-inset":"inset"}),$v("ring-",{property:"--tw-ring-color"}),hv("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...kv({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":uv(t("ringOffsetColor","","#fff")),"--tw-ring-color":uv(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),$v("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),hv("shadow(?:$|-)","boxShadow",({_:e})=>({...kv({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Sv(e),"--tw-shadow-colored":Sv(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),hv("(opacity)-"),lv("mix-blend-","mixBlendMode"),...Av(),...Av("backdrop-"),hv("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Sv(e),transitionTimingFunction:"none"==e._?void 0:Sv(t("transitionTimingFunction","")),transitionDuration:"none"==e._?void 0:Sv(t("transitionDuration",""))})),hv("duration(?:$|-)","transitionDuration","transitionDuration",Sv),hv("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Sv),hv("delay(?:$|-)","transitionDelay","transitionDelay",Sv),hv("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let i=Sv(e),o=i.split(" "),a=t("keyframes",o[0]);return a?{["@keyframes "+(o[0]=r(n(o[0])))]:a,animation:o.join(" ")}:{animation:i}}),"(transform)-(none)",lv("transform",Ov),lv("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Iv("gpu"==e)})),hv("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Ov()})),hv("-?(rotate)-","rotate",Nv),hv("-?(translate-[xy])-","translate",Nv),hv("-?(skew-[xy])-","skew",Nv),lv("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",wv),"(appearance)-",hv("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",hv("(cursor)-"),"(cursor)-",lv("snap-(none)","scroll-snap-type"),lv("snap-(x|y|both)",({1:e})=>({...kv({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),lv("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),lv("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),lv("snap-(normal|always)","scroll-snap-stop"),lv("scroll-(auto|smooth)","scroll-behavior"),hv("scroll-p([xytrbl])?(?:$|-)","padding",Tv("scroll-padding")),hv("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Tv("scroll-margin")),lv("touch-(auto|none|manipulation)","touch-action"),lv("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...kv({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),lv("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),lv("outline",{outlineStyle:"solid"}),lv("outline-(dashed|dotted|double)","outlineStyle"),hv("-?(outline-offset)-"),$v("outline-",{opacityVariable:!1,opacitySection:"opacity"}),hv("outline-","outlineWidth"),"(pointer-events)-",hv("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"}[e]||e||"both")],lv("select-(none|text|all|auto)","userSelect"),$v("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),$v("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),hv("stroke-","strokeWidth"),lv("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),lv("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function wv(e){return("string"==typeof e?e:e[1]).replace(/-/g," ").trim()}function Cv(e){return("string"==typeof e?e:e[1]).replace("col","column")}function xv(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Sv(e){return e&&""+(e._||e)}function Ev({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Tv(e,t=""){return({1:n,_:r})=>{let i={x:"lr",y:"tb"}[n]||n+n;return i?{...vv(e+"-"+xv(i[0])+t,r),...vv(e+"-"+xv(i[1])+t,r)}:vv(e+t,r)}}function Av(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...kv(n),[`${e}filter`]:t.map(t=>`var(--tw-${e}${t})`).join(" ")},[`(${e}filter)-(none)`,lv(`${e}filter`,n),...t.map(t=>hv(`${"h"==t[0]?"-?":""}(${e}${t})(?:$|-)`,t,({1:e,_:r})=>({[`--tw-${e}`]:sv(r).map(e=>`${t}(${e})`).join(" "),...n})))]}function Nv({1:e,_:t}){return{["--tw-"+e]:t,...Ov()}}function Ov(){return{...kv({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Iv()}),transform:"var(--tw-transform)"}}function Iv(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Rv({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Pv({1:e}){return`repeat(${e},minmax(0,1fr))`}function kv(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}let Dv=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||gv(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:i=t},{e:o,h:a,v:s})=>{let d=bv(r)||("["==n[0]?n:s(n.slice(1)));return`${(d.includes("&")?d:"&"+d).replace(/&/g,`:merge(.${o(a(e+i))})`)}${"p"==e[0]?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&(e=t.theme("supports",e)||gv(e,"",t)),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&(e=t.theme("screens",e)||gv(e,"",t)),"string"==typeof e)return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&(e=gv(e,"",t)),e&&`@media (min-width:${e})`)],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&bv(e).replace(/[}]+$/,"").split("{")]];let Mv={__proto__:null,slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"}};const Lv=globalThis;if(!Lv.__twindInitialized){Qm({presets:[function({disablePreflight:e}={}){return function({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:ov,theme:{...ev,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:Dv,rules:_v,finalize:e=>e.n&&e.d&&e.r.some(e=>/^&::(before|after)$/.test(e))&&!/(^|;)content:/.test(e.d)?{...e,d:"content:var(--tw-content);"+e.d}:e}}({colors:Mv,disablePreflight:e})}({disablePreflight:!1})],theme:{extend:{colors:{primary:"#1f7aed",primaryDark:"#1557a5",accent:"#1dd1a1"}}}}),Lv.__twindInitialized=!0}const jv="undefined"!=typeof window?window.__CALLIX_API_BASE_URL__||(window.location.origin.includes("localhost")?window.location.origin:"https://callix-zeta.vercel.app"):"";function Uv(){const e=function(){if("undefined"==typeof window)return null;const e=localStorage.getItem("callix_dialer_last_username");if(e){const t=`callix_dialer_${e}_session_token`,n=localStorage.getItem(t);if(n)return n}for(let t=0;t<localStorage.length;t++){const e=localStorage.key(t);if(e&&e.match(/^callix_dialer_.*_session_token$/)){const t=localStorage.getItem(e);if(t)return t}}return null}(),t={"Content-Type":"application/json"};return e&&(t["x-session-token"]=e),t}async function Fv(e){const t=`${jv}/api/campaign-fields/${e}`,n=await fetch(t,{method:"GET",headers:Uv(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar mapeamento: ${n.status}`)}return await n.json()}async function Bv(e){const t=`${jv}/api/campaign-contact/${e}`,n=await fetch(t,{method:"GET",headers:Uv(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar valores: ${n.status}`)}return await n.json()}function qv(){const e=wf.useCallOperatorCurrentCallInfo();return t.useEffect(()=>{console.log("[CallInfoDisplay] Call info atualizado:",{callInfo:e,type:null==e?void 0:e.type,hasCampaignInfo:"campaign"===(null==e?void 0:e.type),info:"campaign"===(null==e?void 0:e.type)?e.info:null,campaignContact:"campaign"===(null==e?void 0:e.type)?e.info.campaignContact:null})},[e]),"campaign"===(null==e?void 0:e.type)?v.jsx(Hv,{campaignCallInfo:e.info}):e?v.jsx("div",{className:"bg-yellow-50 rounded-lg p-3 mb-4",children:v.jsx("p",{className:"text-xs text-yellow-700",children:"Chamada manual (sem informações de campanha)"})}):null}function Hv(e){const{campaign:n,campaignList:r,campaignContact:i}=e.campaignCallInfo,[o,a]=t.useState({finalData:{},isLoading:!1,error:null}),[s,d]=t.useState(null);t.useEffect(()=>{if(!(null==i?void 0:i.id))return;if(s===i.id)return;let e=!1;return(async()=>{a({finalData:{},isLoading:!0,error:null});try{console.log("[CampaignCallInfoDisplay] 1. Buscando config para contato:",i.id);const t=await async function(e){const t=`${jv}/api/campaign-config/${e}`,n=await fetch(t,{method:"GET",headers:Uv(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar config: ${n.status}`)}return await n.json()}(i.id);if(console.log("[CampaignCallInfoDisplay] 2. Config recebida:",t),!t.campaignModelId)throw new Error("campaignModelId não encontrado");console.log("[CampaignCallInfoDisplay] 3. Buscando mapeamento e valores em paralelo...");const[n,r]=await Promise.all([Fv(t.campaignModelId),Bv(i.id)]);console.log("[CampaignCallInfoDisplay] 4. Mapeamento recebido:",n),console.log("[CampaignCallInfoDisplay] 5. Valores recebidos:",r);const o={};Object.entries(r).forEach(([e,t])=>{e in n&&(o[n[e]]=t)}),e||(console.log("[CampaignCallInfoDisplay] ✅ Dados finais mapeados:",o),a({finalData:o,isLoading:!1,error:null}),d(i.id))}catch(t){if(!e){console.error("[CampaignCallInfoDisplay] ❌ Erro ao buscar dados:",t);const e=t instanceof Error?t.message:"Erro ao buscar dados do contato";a({finalData:{},isLoading:!1,error:e})}}})(),()=>{e=!0}},[null==i?void 0:i.id,s]);const u=Object.keys(o.finalData).length>0,l=({fieldName:e,label:t})=>{const n=t||e;let r="-";if(o.finalData[e])r=o.finalData[e];else{const t=Object.keys(o.finalData).find(t=>t.toLowerCase()===e.toLowerCase());t&&(r=o.finalData[t])}return v.jsxs("div",{className:"bg-white/60 rounded-lg p-2 border border-blue-100",children:[v.jsx("p",{className:"text-[9px] text-slate-500 uppercase tracking-wide font-semibold mb-0.5 truncate",children:n}),v.jsx("p",{className:"text-xs text-slate-800 font-semibold break-words line-clamp-2",children:r})]})};return v.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-xl p-3 mb-4 shadow-sm border border-blue-100",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx("div",{className:"inline-flex h-6 w-6 items-center justify-center rounded-lg bg-blue-500 text-white",children:v.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),v.jsx("h3",{className:"text-sm font-bold text-slate-800",children:"Informações da Campanha"})]}),o.isLoading&&v.jsxs("div",{className:"bg-white/60 rounded-lg p-6 border border-blue-100 text-center",children:[v.jsx("div",{className:"inline-block h-6 w-6 animate-spin rounded-full border-2 border-blue-500 border-t-transparent"}),v.jsx("p",{className:"text-xs text-slate-600 mt-2 font-medium",children:"Carregando dados do contato..."})]}),o.error&&v.jsxs("div",{className:"bg-red-50 rounded-lg p-3 border border-red-200",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("svg",{className:"w-4 h-4 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsx("p",{className:"text-xs text-red-700 font-semibold",children:"Erro ao carregar dados"})]}),v.jsx("p",{className:"text-[10px] text-red-600 ml-6",children:o.error}),o.error.includes("Muitas requisições")&&v.jsx("button",{onClick:()=>d(null),className:"mt-2 ml-6 text-[10px] text-red-700 underline hover:text-red-800",children:"Tentar novamente"})]}),!o.isLoading&&!o.error&&u&&v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[v.jsx(l,{fieldName:"CNPJ",label:"CNPJ"}),v.jsx(l,{fieldName:"EMPRESA",label:"EMPRESA"}),v.jsx(l,{fieldName:"TOTAL BENEFICIO",label:"TOTAL BENEFÍCIO"})]}),v.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[v.jsx(l,{fieldName:"DECISOR",label:"DECISOR"}),v.jsx(l,{fieldName:"PRODUTO PROSPECTADO",label:"PRODUTO PROSPECTADO"}),v.jsx(l,{fieldName:"VALOR QUE PAGA POR MÊS EM PARCELAMENTOS",label:"VALOR PARCELAMENTO"})]}),v.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[v.jsx(l,{fieldName:"TOTAL SALDO DEVEDOR PGFN",label:"SALDO DEVEDOR PGFN"}),v.jsx(l,{fieldName:"TOTAL SALDO DEVEDOR RFB",label:"SALDO DEVEDOR RFB"}),v.jsx(l,{fieldName:"DIVIDA ATIVA",label:"DÍVIDA ATIVA"})]}),v.jsxs("div",{className:"grid grid-cols-4 gap-1.5",children:[v.jsx(l,{fieldName:"CORRESPONSABILIDADE SOCIO",label:"CORRESP. SÓCIO"}),v.jsx(l,{fieldName:"EXECUÇÃO FISCAL",label:"EXECUÇÃO FISCAL"}),v.jsx(l,{fieldName:"TRANSAÇÃO COM BENEFICIO",label:"TRANSAÇÃO BENEFÍCIO"}),v.jsx(l,{fieldName:"REGIME TRIBUTARIO",label:"REGIME TRIBUTÁRIO"})]})]})]})}function zv(e){let t=e.replace(/\D/g,"");if(!t)return"";for(t.startsWith("55")&&t.length>=12&&(t=t.substring(2));t.startsWith("0")&&t.length>11;)t=t.substring(1);const n=t.length;if(11===n){const e=t.substring(0,2),n=t.substring(2);return"9"===n[0]?t:9===n.length?e+"9"+n:t}if(10===n){const e=t.substring(0,2),n=t.substring(2);return"9"===n[0]?t:e+"9"+n}if(12===n){if("0"===t[0])return zv(t.substring(1));const e=t.substring(n-11);return"9"===e[2]?e:t.substring(1)}if(13===n)return t.substring(2);if(9===n)return"9"===t[0]?"48"+t:"489"+t;if(8===n)return"489"+t;if(n<8)return t;if(n>13){const e=t.substring(n-11);if("9"===e[2])return e;const r=t.substring(n-10);if("9"!==r[2]){return r.substring(0,2)+"9"+r.substring(2)}}return t}const Gv={width:448,height:640},Wv=280,Vv=420,Kv=1024,Yv=[{value:"1",detail:""},{value:"2",detail:"ABC"},{value:"3",detail:"DEF"},{value:"4",detail:"GHI"},{value:"5",detail:"JKL"},{value:"6",detail:"MNO"},{value:"7",detail:"PQRS"},{value:"8",detail:"TUV"},{value:"9",detail:"WXYZ"},{value:"*",detail:""},{value:"0",detail:"+"},{value:"#",detail:""}],Xv={rttMs:null,bitrateKbps:null,packetLossRatio:null},Jv={jitterMs:null,packetLossRatio:null,audioLevel:null},Zv="candidate-pair",Qv="inbound-rtp";function eg({isAuthenticated:e,username:n,onLogin:r,onLogout:i,isLoadingSession:o,sessionError:a,variant:s="default"}){const d=t.useRef(null),u=t.useRef(null),l=t.useRef({pointerId:null,offsetX:0,offsetY:0}),c=t.useRef({pointerId:null,originX:0,originY:0,startWidth:Gv.width,startHeight:Gv.height,edge:"corner"}),f=t.useRef(!1),[h,p]=t.useState({x:24,y:24}),[$,m]=t.useState(!1),[g,y]=t.useState(!1),[b,_]=t.useState(!1),[w,C]=t.useState(""),[x,S]=t.useState(null),[E,T]=t.useState({width:Gv.width,height:Gv.height}),A=t.useRef(e),N=t.useMemo(()=>rg(w),[w]),O="min"===s,I=t.useMemo(()=>{const e=E.width/Gv.width,t=E.height/Gv.height;return ug(Math.min(e,t),.55,2.5)},[E]),R=t.useCallback(e=>{if("undefined"==typeof window)return{width:ug(e.width,Wv,Kv),height:ug(e.height,Vv,960)};const t=window.innerWidth,n=window.innerHeight,r=t<640?12:16,i=Math.min(Kv,t-2*r),o=Math.min(960,n-2*r);return{width:ug(e.width,Wv,Math.max(Wv,i)),height:ug(e.height,Vv,Math.max(Vv,o))}},[]),P=t.useCallback(e=>{if("undefined"==typeof window)return e;const t=window.innerWidth,n=window.innerHeight,r=d.current,i=(null==r?void 0:r.offsetWidth)??0,o=(null==r?void 0:r.offsetHeight)??0,a=x??E??Gv,s=b?a.width:80,u=b?a.height:80,l=i>0?i:s,c=o>0?o:u,f=t<640?12:16,h=f,p=f,$=Math.max(h,t-l-f),m=Math.max(p,n-c-f);let v=e.x,g=e.y;return t<640&&b&&(v=Math.round((t-l)/2),g=f),n<c+2*f&&(g=f),{x:ug(v,h,$),y:ug(g,p,m)}},[b,x,E]),k=t.useCallback(e=>{C(t=>rg("function"==typeof e?e(t):e))},[]);t.useEffect(()=>{var e,t;if("undefined"==typeof window)return;const n=(null==(e=d.current)?void 0:e.offsetWidth)??96,r=(null==(t=d.current)?void 0:t.offsetHeight)??96,i=window.innerWidth-n-24,o=window.innerHeight-r-24;p(P({x:i,y:o}))},[P]),t.useEffect(()=>{p(e=>P(e))},[b,P]),t.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{p(e=>P(e)),S(e=>e?R(e):e)};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[P,R]),t.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;const t=(e,t)=>{T({width:e,height:t})};if("undefined"!=typeof ResizeObserver){const n=new ResizeObserver(e=>{const n=e[0];if(n){const{width:e,height:r}=n.contentRect;t(e,r)}});return n.observe(e),()=>n.disconnect()}const n=e.getBoundingClientRect();t(n.width,n.height)},[b,x]),t.useEffect(()=>{e&&!A.current&&_(!0),A.current=e},[e]),t.useEffect(()=>{if(!$)return;const e=e=>{var t,n;if(l.current.pointerId!==e.pointerId)return;f.current=!0;const r=(null==(t=d.current)?void 0:t.offsetWidth)??0,i=(null==(n=d.current)?void 0:n.offsetHeight)??0,o=e.clientX-l.current.offsetX,a=e.clientY-l.current.offsetY,s="undefined"!=typeof window?window.innerWidth:0,u=s<640?12:16,c=s-r-u,h=("undefined"!=typeof window?window.innerHeight:0)-i-u,$=Math.max(u,c),m=Math.max(u,h);p({x:ug(o,u,$),y:ug(a,u,m)})},t=e=>{l.current.pointerId===e.pointerId&&(m(!1),l.current={pointerId:null,offsetX:0,offsetY:0})};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}},[$]),t.useEffect(()=>{if(!g)return;const e=e=>{if(c.current.pointerId!==e.pointerId)return;e.preventDefault();const{edge:t,startWidth:n,startHeight:r,originX:i,originY:o}=c.current;let a=n,s=r;"right"!==t&&"corner"!==t||(a=n+(e.clientX-i)),"bottom"!==t&&"corner"!==t||(s=r+(e.clientY-o));const d=R({width:a,height:s});S(e=>e&&e.width===d.width&&e.height===d.height?e:d)},t=e=>{var t,n;if(c.current.pointerId===e.pointerId){try{null==(n=null==(t=e.target)?void 0:t.releasePointerCapture)||n.call(t,e.pointerId)}catch{}y(!1),c.current={...c.current,pointerId:null}}};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[g,R]),t.useEffect(()=>{b||(f.current=!1)},[b]),t.useEffect(()=>{p(e=>P(e))},[x,E,P]);const D=t.useCallback(e=>t=>{var n,r;if(0!==t.button&&"touch"!==t.pointerType)return;t.preventDefault(),t.stopPropagation();const i=u.current,o=null==i?void 0:i.getBoundingClientRect(),a=(null==o?void 0:o.width)??(null==x?void 0:x.width)??Gv.width,s=(null==o?void 0:o.height)??(null==x?void 0:x.height)??Gv.height;c.current={pointerId:t.pointerId,originX:t.clientX,originY:t.clientY,startWidth:a,startHeight:s,edge:e};try{null==(r=(n=t.currentTarget).setPointerCapture)||r.call(n,t.pointerId)}catch{}y(!0)},[x]),M=t.useCallback(e=>{var t;if(0!==e.button)return;const n=null==(t=d.current)?void 0:t.getBoundingClientRect();l.current={pointerId:e.pointerId,offsetX:e.clientX-((null==n?void 0:n.left)??0),offsetY:e.clientY-((null==n?void 0:n.top)??0)},f.current=!1,m(!0)},[]),L=t.useCallback(()=>{f.current?f.current=!1:_(e=>!e)},[]),j=t.useCallback(async e=>{const t=e.trim();t&&await r(t)},[r]),U=e?v.jsx(ng,{username:n??"",dialValue:N,setDialValue:k,onLogout:i,variant:s}):v.jsx(tg,{defaultValue:n??"",onSubmit:j,isLoading:o,error:a});if(O)return U;const F=Number.isFinite(I)&&I>0?I:1,B=Gv.width/F,q=Gv.height/F,H={width:x?`${x.width}px`:void 0,height:x?`${x.height}px`:void 0,minWidth:"280px",minHeight:"420px",maxWidth:"min(1024px, calc(100vw - 1.5rem))",maxHeight:"calc(100vh - 3rem)"},z={flex:1,display:"flex",flexDirection:"column",transform:`scale(${F})`,transformOrigin:"top left",width:`${B}px`,minHeight:`${q}px`},G={flex:1,display:"flex",flexDirection:"column",width:`${Gv.width}px`,minHeight:`${Gv.height}px`};return v.jsx("div",{ref:d,className:["callix","mode","full",Zm`fixed z-50 select-none`].join(" "),"data-callix-variant":"default",style:{transform:`translate3d(${h.x}px, ${h.y}px, 0)`,top:0,left:0},children:b?v.jsxs("div",{ref:u,"data-floating-dialer-card":"true",className:Zm`relative flex flex-col items-start overflow-hidden rounded-3xl border border-slate-200/60 bg-gradient-to-br from-white/95 via-slate-50/95 to-white/90 shadow-2xl backdrop-blur-lg transition-all duration-300 w-[min(32rem,calc(100vw-1.5rem))] max-w-[calc(100vw-1.5rem)] sm:w-[28rem] md:w-[30rem] max-h-[calc(100vh-3rem)] sm:max-h-none`,style:H,children:[v.jsx("div",{className:Zm`flex flex-1 flex-col overflow-hidden`,style:z,children:v.jsxs("div",{"data-floating-dialer-content":!0,className:Zm`flex flex-1 flex-col rounded-3xl overflow-hidden`,style:G,children:[v.jsxs("div",{className:Zm`cursor-grab touch-none active:cursor-grabbing flex items-center justify-between bg-gradient-to-r from-primary to-primaryDark px-4 py-3 text-white shadow-sm`,onPointerDown:M,children:[v.jsxs("div",{className:Zm`flex items-center gap-3`,children:[v.jsx("span",{className:Zm`inline-flex h-10 w-10 items-center justify-center rounded-2xl bg-white/15 shadow-inner`,children:v.jsx(Bp,{className:Zm`text-xl`})}),v.jsxs("div",{className:Zm`space-y-0.5`,children:[v.jsx("p",{className:Zm`text-[11px] uppercase tracking-[0.2em] text-white/70`,children:"Discadora"}),v.jsx("p",{className:Zm`text-base font-semibold`,children:n??"Visitante"})]})]}),v.jsx("button",{type:"button",className:Zm`rounded-full p-2 text-white/80 transition hover:bg-white/15 hover:text-white`,onClick:()=>_(!1),"aria-label":"Fechar discadora",children:v.jsx(Zp,{className:Zm`text-lg`})})]}),v.jsx("div",{className:Zm`flex-1 overflow-y-auto p-3`,children:U})]})}),v.jsx("div",{role:"presentation","data-floating-dialer-resize":"right","aria-hidden":"true",className:Zm`absolute right-0 top-16 bottom-12 w-3 cursor-ew-resize touch-none rounded-md border border-transparent transition-colors duration-150 hover:border-primary/30 hover:bg-primary/10`,onPointerDown:D("right")}),v.jsx("div",{role:"presentation","data-floating-dialer-resize":"bottom","aria-hidden":"true",className:Zm`absolute left-16 right-12 bottom-0 h-3 cursor-ns-resize touch-none rounded-md border border-transparent transition-colors duration-150 hover:border-primary/30 hover:bg-primary/10`,onPointerDown:D("bottom")}),v.jsx("div",{role:"presentation","data-floating-dialer-resize":"corner",className:Zm`absolute bottom-1 right-1 flex h-6 w-6 items-center justify-center cursor-nwse-resize touch-none`,onPointerDown:D("corner"),"aria-label":"Redimensionar discadora",children:v.jsx("span",{className:Zm`h-3 w-3 rotate-45 rounded-sm border border-slate-300 bg-white/80 shadow`})})]}):v.jsx("button",{type:"button",onPointerDown:M,onClick:L,className:Zm`flex h-16 w-16 items-center justify-center rounded-full bg-primary text-white shadow-xl transition-transform hover:scale-105 hover:bg-primaryDark focus:outline-none focus:ring-4 focus:ring-primary/30`,"aria-label":"Abrir discadora",children:v.jsx(zp,{className:Zm`text-2xl`})})})}function tg({defaultValue:e,onSubmit:n,isLoading:r,error:i}){const[o,a]=t.useState(e),[s,d]=t.useState(!1);t.useEffect(()=>{a(e)},[e]);const u=s&&!o.trim();return v.jsxs("form",{className:Zm`space-y-4`,onSubmit:async e=>{e.preventDefault(),d(!0),o.trim()&&await n(o)},children:[v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsxs("label",{className:Zm`flex items-center gap-2 text-sm font-medium text-slate-700`,htmlFor:"dialer-username",children:[v.jsx(Vp,{className:Zm`text-base text-primary`}),"Usuario"]}),v.jsx("input",{id:"dialer-username",type:"text",placeholder:"Digite seu usuario Callix",className:Zm`w-full rounded-xl border border-slate-200 bg-white px-3 py-2 text-base shadow-inner focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/40`,value:o,onChange:e=>a(e.target.value),onBlur:()=>d(!0),disabled:r}),u&&v.jsx("p",{className:Zm`text-xs text-red-500`,children:"Informe um usuario para continuar."}),i&&v.jsx("p",{className:Zm`text-xs text-red-500`,children:i})]}),v.jsxs("button",{type:"submit",disabled:r,className:Zm`flex w-full items-center justify-center gap-2 rounded-xl bg-primary px-4 py-2 text-white shadow-lg transition hover:bg-primaryDark disabled:cursor-not-allowed disabled:opacity-60`,children:[r&&v.jsx("span",{className:Zm`inline-flex h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white`}),"Entrar"]})]})}function ng({username:e,dialValue:n,setDialValue:r,onLogout:i,variant:o}){var a,s;const d=wf.useCallOperator(),u="min"===o,{skipManualQualification:l}=Tg();console.log("[FloatingDialer/AuthenticatedDialer] 🔧 skipManualQualification:",l);const c=wf.useCallOperatorState(),f=wf.useCallOperatorCurrentCall(),h=wf.useCallOperatorCurrentCallInfo(),p=wf.useCallOperatorSuccessQualifications(),$=wf.useCallOperatorDiscardQualifications();t.useEffect(()=>{console.log("[FloatingDialer] Estado do operador mudou:",{state:null==c?void 0:c.state,operatorState:c,hasCall:!!f,currentCall:f})},[c,f]),t.useEffect(()=>{console.log("[FloatingDialer] Qualifica��es:",{success:p,discard:$,callState:null==c?void 0:c.state})},[p,$,null==c?void 0:c.state]),t.useEffect(()=>{"incoming"===(null==f?void 0:f.direction)&&console.log("[FloatingDialer] ?? CHAMADA RECEBIDA:",{call:f,direction:f.direction,state:null==c?void 0:c.state,counterpart:ag(f)})},[f,null==c?void 0:c.state]);const{makeManualCall:m,becomeAvailable:g,finishAfterCall:y}=wf.useCallOperatorControls(),{hangup:b,answer:_,reject:w}=wf.useCallOperatorCurrentCallControls(),[C,x]=t.useState(!1),S=t.useRef(null),E=t.useRef(null),T=t.useRef(null),[A,N]=t.useState(null),[O,I]=t.useState(null),[R,P]=t.useState(null),[k,D]=t.useState(!1),[M,L]=t.useState("success"),[j,U]=t.useState(null),[F,B]=t.useState(0),[q,H]=t.useState(Xv),[z,G]=t.useState(Jv),W=t.useRef(null),V=t.useRef(!1),[K,Y]=wf.useCallOperatorAudioInputMuted(),[X,J]=wf.useCallOperatorAudioOutputMuted(),[Z,Q]=wf.useCallOperatorAudioOutputVolume(),[ee,te]=t.useState({inputs:[],outputs:[]}),[ne,re]=t.useState(null),[ie,oe]=t.useState(null),[ae,se]=t.useState(null),[de,ue]=t.useState(!1),le=t.useRef(null),[ce,fe]=t.useState(null),[he,pe]=t.useState(!1),[$e,me]=t.useState(null),ve=function(e){const[n,r]=t.useState(null==e?void 0:e.get());return t.useEffect(()=>{if(e)return r(e.get()),e.subscribe(e=>{r(e)});r(void 0)},[e]),n}(null==d?void 0:d.breaks)||[],{goOnBreak:ge,goOffBreak:ye}=function(){const{enterOnBreak:e,becomeAvailable:t}=wf.useCallOperatorControls();return{goOnBreak:e,goOffBreak:t}}(),be=t.useMemo(()=>n.slice(0,32),[n]),_e=t.useMemo(()=>function(e,t){const n=rg(e);if(!n)return"";const r=n.startsWith("+"),i=n.replace(/[^0-9]/g,""),o=t.replace(/[^0-9]/g,""),a=o.length||2,s=r?i.slice(0,Math.min(a,i.length)):o||i.slice(0,a);let d=r?i.slice(s.length):i;const u=r?`+${s}`:t;if("55"===s&&d.length>=8){return`${u} (${d.slice(0,2)}) ${d.slice(2,Math.max(d.length-4,2))}-${d.slice(-4)}`.replace(/\s+/g," ").trim()}if(!d)return u.trim();const l=[];for(;d.length>4;)l.push(d.slice(0,3)),d=d.slice(3);d&&l.push(d);const c=l.join(" ");return`${u} ${c}`.replace(/\s+/g," ").trim()}(be,"+55"),[be]),we=t.useMemo(()=>function(e,t){const n=rg(e);if(!n)return null;if(n.startsWith("+"))return n.replace(/[^0-9+]/g,"");const r=n.replace(/[^0-9]/g,"");if(!r)return null;const i=t.replace(/[^0-9]/g,"");if(!i)return`+${r}`;return`+${i}${r}`}(be,"+55"),[be]),Ce=null==c?void 0:c.state,xe="idle"===Ce,Se="onBreak"===Ce,Ee="incoming"===(null==f?void 0:f.direction),Te="callInProgress"===Ce,Ae="manualCallRinging"===Ce||"callRinging"===Ce,Ne="manualCallSetup"===Ce||Ae,Oe=!Ce||"starting"===Ce||"idle"===Ce||"manualCallSetup"===Ce||"onBreak"===Ce,Ie=Oe||Te||Ae,Re=Boolean(we&&function(e){try{return vp(e)}catch(t){return console.warn("Falha ao validar numero",t),!1}}(we)),Pe=t.useCallback(async e=>{if("function"==typeof g)try{await Promise.resolve(g())}catch(t){console.error(e,t),I(e)}else I(e)},[g]);t.useEffect(()=>{V.current||(V.current=!0,Pe("Nao foi possivel ficar disponivel automaticamente."))},[Pe]),t.useEffect(()=>{"idle"===Ce&&(I(null),N(null))},[Ce]),t.useEffect(()=>{"offline"===Ce&&(I("Conexao perdida. Tentando reconectar..."),Pe("Conexao perdida. Tentando reconectar..."))},[Ce,Pe]),t.useEffect(()=>{if("afterCall"===Ce){if("campaign"===(null==h?void 0:h.type)&&!0===h.info.campaign.skipCallQualification)return console.log("[FloatingDialer] 🚀 skipCallQualification ativado - finalizando automaticamente"),void("function"==typeof y&&Promise.resolve(y({result:"success",qualificationId:void 0})));const e="manual"===(null==h?void 0:h.type),t=0===p.length&&0===$.length;if(e&&(l||t))return console.log("[FloatingDialer] 🚀 Chamada manual - finalizando automaticamente (skipManualQualification:",l,", hasNoQualifications:",t,")"),void("function"==typeof y&&Promise.resolve(y({result:"success",qualificationId:void 0})));const n=p.length>0;L(n?"success":"failure"),U(null),P(null)}},[Ce,p.length,$.length,h,y,l]),t.useEffect(()=>{if("undefined"==typeof window)return;if("starting"!==Ce)return;const e=window.setTimeout(()=>{I(e=>e??"Conexao demorando mais que o esperado. Verifique rede ou credenciais.")},8e3);return()=>window.clearTimeout(e)},[Ce]),t.useEffect(()=>{"manualCallRinging"!==Ce&&"callInProgress"!==Ce||r(""),"idle"===Ce&&fe(null)},[Ce,r]),t.useEffect(()=>{var e;if("undefined"==typeof navigator||!(null==(e=navigator.mediaDevices)?void 0:e.enumerateDevices))return;let t=!1;const n=async()=>{try{navigator.mediaDevices.getUserMedia&&await navigator.mediaDevices.getUserMedia({audio:!0})}catch(e){console.warn("Permissao de microfone nao concedida ainda",e)}try{const e=await navigator.mediaDevices.enumerateDevices();if(t)return;const n=e.filter(e=>"audioinput"===e.kind),r=e.filter(e=>"audiooutput"===e.kind);te({inputs:n,outputs:r}),se(null),re(e=>{var t;return e??(null==(t=n[0])?void 0:t.deviceId)??null}),oe(e=>{var t;return e??(null==(t=r[0])?void 0:t.deviceId)??null})}catch(e){t||(console.error("Listagem de dispositivos falhou",e),se("Nao foi possivel listar dispositivos de audio. Verifique as permissoes."))}};n();const r=()=>{n()},i=navigator.mediaDevices;return"addEventListener"in i?i.addEventListener("devicechange",r):"ondevicechange"in i&&(i.ondevicechange=r),()=>{t=!0,"removeEventListener"in i?i.removeEventListener("devicechange",r):"ondevicechange"in i&&(i.ondevicechange=null)}},[]),t.useEffect(()=>{if(!f||"callInProgress"!==Ce)return F>0&&console.log("[FloatingDialer] ?? Timer resetado (chamada n�o est� em progresso)"),B(0),H(Xv),void G(Jv);const e=Math.floor(f.currentDurationSeconds??0);B(e),console.log("[FloatingDialer] ?? Timer iniciado:",{initialDuration:e,currentDurationSeconds:f.currentDurationSeconds,callState:Ce});const t=window.setInterval(()=>{const e=Math.floor(f.currentDurationSeconds??0);B(e),e%5==0&&e>0&&console.log("[FloatingDialer] ?? Timer atualizado:",e,"segundos")},1e3);return()=>{console.log("[FloatingDialer] ?? Timer parado"),window.clearInterval(t)}},[f,Ce]),t.useEffect(()=>{if(!f||"callInProgress"!==Ce)return;const e=e=>{const t=ig(e,"stat")??{},n="string"==typeof t.type?t.type:void 0;if(n===Zv){const e=sg(t,"currentRoundTripTime"),n=sg(t,"availableOutgoingBitrate");H(t=>({rttMs:null!=e?1e3*e:t.rttMs,bitrateKbps:null!=n?n/1e3:t.bitrateKbps,packetLossRatio:t.packetLossRatio}))}if(n===Qv){const e=sg(t,"packetsReceived")??0,n=sg(t,"packetsLost")??0,r=e+n,i=r>0?n/r:null,o=sg(t,"jitter"),a=sg(t,"audioLevel");G(e=>({jitterMs:null!=o?1e3*o:e.jitterMs,packetLossRatio:i??e.packetLossRatio,audioLevel:a??e.audioLevel})),H(e=>({rttMs:e.rttMs,bitrateKbps:e.bitrateKbps,packetLossRatio:i??e.packetLossRatio}))}};return f.on("webRTCStat",e),()=>{f.off("webRTCStat",e)}},[f,Ce]),t.useEffect(()=>{var e;if(!ne)return;if("undefined"==typeof navigator||!(null==(e=navigator.mediaDevices)?void 0:e.getUserMedia))return;let t=!1;return(async()=>{var e,n,r,i;const o=null==(n=null==(e=le.current)?void 0:e.getAudioTracks)?void 0:n.call(e)[0],a=null==(r=null==o?void 0:o.getSettings)?void 0:r.call(o).deviceId;let s=le.current;if(!s||a!==ne)try{const e=await navigator.mediaDevices.getUserMedia({audio:{deviceId:{exact:ne}}});if(t)return void e.getTracks().forEach(e=>e.stop());le.current&&le.current!==e&&le.current.getTracks().forEach(e=>e.stop()),le.current=e,s=e}catch(l){return void(t||(console.error("Falha ao acessar microfone selecionado",l),se("Nao foi possivel acessar o microfone selecionado.")))}if(!s)return;const u=s.getAudioTracks()[0];if(u)try{const e=og(d,"setAudioInputDevice");if(e)return await Promise.resolve(e(ne)),void se(null);const t=function(e){const t=ig(e,"rtcSession")??ig(e,"_session")??ig(e,"session"),n=ig(t,"_connection")??ig(t,"connection");if(n)return n;return ig(e,"pc")??void 0}(f),n=null==(i=null==t?void 0:t.getSenders)?void 0:i.call(t).find(e=>{var t;return"audio"===(null==(t=e.track)?void 0:t.kind)});if(null==n?void 0:n.replaceTrack)return await n.replaceTrack(u),void se(null);const r=og(f,"setInputTrack");if(r)return await Promise.resolve(r(u)),void se(null);const o=og(f,"replaceTrack");if(o)return await Promise.resolve(o(u)),void se(null);console.warn("Nao foi possivel aplicar o microfone via API conhecida"),se(null)}catch(l){t||(console.error("Erro ao aplicar microfone",l),se("Nao foi possivel aplicar o microfone selecionado."))}})(),()=>{t=!0}},[ne,d,f]),t.useEffect(()=>{if(!ie||!d)return;(async()=>{try{const e=og(ig(d,"audioOutput"),"setAudioOutputDevice");if(!e)return void console.warn("Nao foi possivel localizar API para alterar dispositivo de saida.");await Promise.resolve(e(ie)),se(null)}catch(e){console.error("Erro ao aplicar dispositivo de saida",e),se("Nao foi possivel aplicar a saida de audio selecionada.")}})()},[ie,d]),t.useEffect(()=>{if(!f)return;const e=e=>{var t,n;const r=(null==(t=null==e?void 0:e.failure)?void 0:t.message)||(null==(n=null==e?void 0:e.failure)?void 0:n.cause);N(r?`Chamada nao concluida: ${r}`:"Chamada nao concluida.")};return f.on("failed",e),()=>{f.off("failed",e)}},[f]),t.useEffect(()=>()=>{const e=W.current;e&&e.close().catch(()=>{})},[]),t.useEffect(()=>()=>{var e;null==(e=le.current)||e.getTracks().forEach(e=>e.stop()),le.current=null},[]);const ke=t.useCallback(async()=>{if("undefined"==typeof window)return null;const e=window.AudioContext||window.webkitAudioContext;if(!e)return null;if(W.current||(W.current=new e),"suspended"===W.current.state)try{await W.current.resume()}catch(t){console.error("Falha ao retomar audio",t)}return W.current},[]),De=t.useCallback(async e=>{const t=dg[e];if(!t)return;const n=await ke();if(!n)return;const r=n.createGain(),[i,o]=t,a=n.createOscillator(),s=n.createOscillator();a.type="sine",s.type="sine",a.frequency.setValueAtTime(i,n.currentTime),s.frequency.setValueAtTime(o,n.currentTime),r.gain.setValueAtTime(0,n.currentTime),r.gain.linearRampToValueAtTime(.22,n.currentTime+.01),r.gain.linearRampToValueAtTime(0,n.currentTime+.18),a.connect(r),s.connect(r),r.connect(n.destination);const d=n.currentTime,u=d+.2;a.start(d),s.start(d),a.stop(u),s.stop(u);const l=()=>{try{a.disconnect(),s.disconnect(),r.disconnect()}catch(e){console.error("Erro ao limpar tons DTMF",e)}};a.onended=l,s.onended=l},[ke]),Me=t.useCallback(e=>{if(De(e),f&&(Te||Ae))try{f.sendDtmf(e)}catch(t){console.error("Falha ao enviar DTMF",t),N("Nao foi possivel enviar o tom DTMF.")}else Oe&&(N(null),r(t=>(t+e).slice(0,32)))},[De,f,Te,Ae,Oe,r]),Le=t.useCallback(()=>{N(null),r("")},[r]),je=t.useCallback(()=>{N(null),r(e=>e.slice(0,-1))},[r]),Ue=t.useCallback(async()=>{if(xe||Se)if(we)if(Re)try{N(null),fe(we),await m(we)}catch(e){console.error("Erro ao iniciar chamada",e),N("Nao foi possivel iniciar a ligacao.")}else N("Numero invalido. Digite apenas o numero local, sem o +55.");else N("Informe um numero para ligar.")},[xe,Se,we,Re,m]),Fe=t.useCallback(async e=>{try{me(null),await ge(e),pe(!1),console.log("[FloatingDialer] Entrou em pausa com sucesso:",e)}catch(t){console.error("[FloatingDialer] Erro ao entrar em pausa:",t),me(t instanceof Error?t.message:"N�o foi poss�vel entrar em pausa.")}},[ge]),Be=t.useCallback(async()=>{try{await ye(),console.log("[FloatingDialer] Saiu da pausa com sucesso")}catch(e){console.error("[FloatingDialer] Erro ao sair da pausa:",e),I("N�o foi poss�vel sair da pausa.")}},[ye]);t.useEffect(()=>{if(!u&&!C)return;const e=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return;const t=e.key;if("Backspace"===t)return e.preventDefault(),void je();if("Delete"===t)return e.preventDefault(),void Le();if("Enter"===t)return void(xe&&(e.preventDefault(),Ue()));const n="NumpadEnter"===t?null:t;if(n&&["0","1","2","3","4","5","6","7","8","9","#","*","+"].includes(n))return e.preventDefault(),void Me(n);if(t.startsWith("Numpad")){const n=t.replace("Numpad","");if("Add"===n)return e.preventDefault(),void Me("+");if("Multiply"===n)return e.preventDefault(),void Me("*");/^[0-9]$/.test(n)&&(e.preventDefault(),Me(n))}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[u,C,je,Le,Me,Ue,xe]);const qe=t.useCallback(async()=>{try{await b()}catch(e){console.error("Erro ao encerrar chamada",e),N("Falha ao encerrar chamada.")}},[b]),He=t.useCallback(async()=>{try{await _()}catch(e){console.error("Erro ao atender chamada",e),N("Nao foi possivel atender.")}},[_]),ze=t.useCallback(async()=>{try{await w()}catch(e){console.error("Erro ao rejeitar chamada",e),N("Nao foi possivel rejeitar.")}},[w]),Ge=t.useCallback(async()=>{if(("success"===M?p:$).length)if(j)if("function"==typeof y)try{D(!0),P(null),await Promise.resolve(y({result:M,qualificationId:j}))}catch(e){console.error("Erro ao finalizar pos-chamada",e),P("Falha ao finalizar atendimento. Tente novamente.")}finally{D(!1)}else P("Nao foi possivel enviar a qualificacao.");else P("Selecione uma qualificacao para finalizar.");else P("Nenhuma qualificacao configurada para este resultado.")},[M,$,y,j,p]),We=t.useCallback(()=>{x(!0)},[]),Ve=t.useCallback(e=>{const t=e.relatedTarget;S.current&&t&&S.current.contains(t)||x(!1)},[]),Ke=t.useCallback(e=>{e.preventDefault();const t=e.clipboardData.getData("text");if(!t)return;const n=zv(t);r(n)},[r]),Ye=t.useCallback(e=>{const t=e.target.value;re(t||null)},[]),Xe=t.useCallback(e=>{const t=e.target.value;oe(t||null)},[]),Je=t.useCallback(e=>{const t=Number.isFinite(e)?e:0,n=Math.min(Math.max(t,0),1);Q(Number((n*(("number"==typeof Z?Z:0)>1?100:1)).toFixed(2)))},[Z,Q]),Ze=c&&"call"in c?c.call:void 0,Qe=ag(f)??ag(Ze),et=we||ce,tt=(null==Qe?void 0:Qe.displayName)??(null==Qe?void 0:Qe.phoneNumber)??("campaign"===(null==h?void 0:h.type)?h.info.campaignContact.phoneNumber:void 0)??((Te||Ne)&&et?et:void 0),nt=function(e){switch(e){case"starting":return"Conectando";case"idle":return"Disponivel";case"manualCallSetup":return"Preparando";case"manualCallRinging":return"Chamando";case"callRinging":return"Recebida";case"callInProgress":return"Em chamada";case"afterCall":return"Finalizando";case"onBreak":return"Em pausa";case"offline":return"Offline";case"error":return"Erro";default:return"Aguardando"}}(Ce),rt=_e||be,it=(null==(a=ee.inputs.find(e=>e.deviceId===ne))?void 0:a.label)||"Microfone padrao",ot=(null==(s=ee.outputs.find(e=>e.deviceId===ie))?void 0:s.label)||"Saida padrao",at="number"==typeof Z?Z:0,st=at>1?100:1,dt=Math.min(Math.max(at/st,0),1),ut=Math.round(100*dt),lt=X?Xp:dt>.65?Yp:Kp,ct=K?Lp:jp,ft=function(e){switch(e){case"idle":return{Icon:Rp,badgeClass:Zm`border-green-200 bg-green-50 text-green-700`,dotClass:Zm`bg-green-500`};case"callInProgress":case"manualCallSetup":case"manualCallRinging":case"callRinging":return{Icon:Np,badgeClass:Zm`border-primary/30 bg-primary/10 text-primary`,dotClass:Zm`bg-primary`};case"onBreak":return{Icon:Fp,badgeClass:Zm`border-amber-200 bg-amber-50 text-amber-700`,dotClass:Zm`bg-amber-500`};case"offline":case"error":return{Icon:Ip,badgeClass:Zm`border-rose-200 bg-rose-50 text-rose-700`,dotClass:Zm`bg-rose-500`};default:return{Icon:Bp,badgeClass:Zm`border-slate-200 bg-slate-50 text-slate-600`,dotClass:Zm`bg-slate-500`}}}(Ce);if("afterCall"===Ce&&!u)return v.jsx(cg,{username:e,result:M,onChangeResult:L,successQualifications:p,discardQualifications:$,selectedQualificationId:j,onSelectQualification:U,onSubmit:Ge,isSubmitting:k,errorMessage:R,onLogout:i});const ht=he?v.jsx("div",{className:Zm`fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4`,children:v.jsxs("div",{className:Zm`bg-white rounded-2xl shadow-2xl max-w-md w-full p-6 space-y-4`,children:[v.jsxs("div",{className:Zm`flex items-center justify-between`,children:[v.jsx("h3",{className:Zm`text-lg font-bold text-slate-800`,children:"Selecione uma Pausa"}),v.jsx("button",{type:"button",onClick:()=>{pe(!1),me(null)},className:Zm`text-slate-400 hover:text-slate-600 transition`,children:v.jsx(Zp,{className:Zm`text-xl`})})]}),$e&&v.jsxs("div",{className:Zm`rounded-lg bg-red-50 border border-red-200 px-3 py-2 flex items-start gap-2`,children:[v.jsx(Ip,{className:Zm`text-red-500 shrink-0 mt-0.5`}),v.jsx("p",{className:Zm`text-sm text-red-700`,children:$e})]}),ve&&0!==ve.length?v.jsx("div",{className:Zm`space-y-2 max-h-96 overflow-y-auto`,children:ve.map(e=>v.jsxs("button",{type:"button",onClick:()=>Fe(e.id),className:Zm`w-full flex items-center gap-3 rounded-lg border border-slate-200 bg-white px-4 py-3 text-left transition-all hover:border-amber-300 hover:bg-amber-50 hover:shadow-md`,children:[v.jsx(Fp,{className:Zm`text-xl text-amber-600 shrink-0`}),v.jsxs("div",{className:Zm`flex-1 min-w-0`,children:[v.jsx("p",{className:Zm`font-semibold text-slate-800 truncate`,children:e.name}),v.jsxs("p",{className:Zm`text-xs text-slate-500`,children:["ID: ",e.id]})]})]},e.id))}):v.jsx("div",{className:Zm`text-center py-8`,children:v.jsx("p",{className:Zm`text-slate-500`,children:"Nenhuma pausa disponivel"})}),v.jsx("button",{type:"button",onClick:()=>{pe(!1),me(null)},className:Zm`w-full rounded-lg border border-slate-200 bg-slate-50 px-4 py-2 text-sm font-semibold text-slate-600 transition hover:bg-slate-100`,children:"Cancelar"})]})}):null;if(u){const e=Te||Ne,t=be.length>0,n=!e&&!t,i=!O&&(Ie||xe||Se);if(console.log("[FloatingDialer Mini] Estado:",{miniCanUseKeypad:i,callButtonDisabled:n,hasNumber:t,dialValue:be,isNumberValid:Re,availabilityError:O,callState:Ce,operatorState:null==c?void 0:c.state}),"afterCall"===Ce){const e="success"===M?p:$,t=e.length>0;return console.log("[FloatingDialer Mini] ?? TELA DE QUALIFICA��O:",{callState:Ce,afterCallResult:M,successQualifications:p.length,discardQualifications:$.length,hasOptions:t,selectedQualificationId:j}),v.jsx("div",{className:["callix","mode","min",Zm`flex w-full max-w-full flex-col gap-1 rounded-xl border border-slate-200 bg-white/95 p-1.5 shadow-sm text-slate-800 overflow-hidden`].join(" "),"data-callix-variant":"min",children:v.jsxs("div",{className:Zm`space-y-1 rounded-lg border border-slate-200 bg-slate-50 px-1.5 py-1 overflow-hidden`,children:[v.jsx("div",{className:Zm`text-center`,children:v.jsx("p",{className:Zm`text-[9px] font-semibold text-slate-700`,children:"Qualifique a chamada"})}),v.jsxs("div",{className:Zm`grid grid-cols-2 gap-0.5`,children:[v.jsx("button",{type:"button",onClick:()=>L("success"),className:Zm`${"success"===M?"bg-green-500 text-white":"bg-white text-slate-600"} rounded border border-slate-200 px-1 py-0.5 text-[7px] font-semibold transition`,children:"✓ Concluído"}),v.jsx("button",{type:"button",onClick:()=>L("failure"),className:Zm`${"failure"===M?"bg-rose-500 text-white":"bg-white text-slate-600"} rounded border border-slate-200 px-1 py-0.5 text-[7px] font-semibold transition`,children:"✗ Descartado"})]}),v.jsxs("div",{className:Zm`space-y-0.5`,children:[v.jsx("p",{className:Zm`text-[7px] font-medium text-slate-700 text-center`,children:"Selecione qualificação"}),t?v.jsx("div",{className:Zm`max-h-16 space-y-0.5 overflow-y-auto`,children:e.map(e=>{const t=j===e.id;return v.jsx("button",{type:"button",onClick:()=>U(e.id),className:Zm`${t?"bg-blue-100 border-blue-300 text-blue-800":"border-slate-200 bg-white text-slate-700"} w-full rounded border px-1 py-0.5 text-left transition`,children:v.jsx("p",{className:Zm`text-[7px] font-medium leading-tight truncate`,children:e.name})},e.id)})}):v.jsx("div",{className:Zm`rounded border border-amber-200 bg-amber-50 px-1 py-0.5 text-[7px] text-amber-700 text-center`,children:"Nenhuma qualificação"})]}),R&&v.jsx("p",{className:Zm`text-[7px] text-red-500 text-center`,children:R}),v.jsxs("button",{type:"button",onClick:Ge,disabled:!t||!j||k,className:Zm`flex w-full items-center justify-center gap-1 rounded bg-blue-500 px-1.5 py-1 text-[7px] font-bold text-white transition hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-60`,children:[k&&v.jsx("span",{className:Zm`inline-flex h-2 w-2 animate-spin rounded-full border border-white/50 border-t-white`}),"Finalizar"]})]})})}return console.log("[FloatingDialer Mini] ?? Estado da Chamada:",{isCallActive:e,callState:Ce,statusLabel:nt,isInCall:Te,isConnecting:Ne,isRinging:Ae,callDurationSeconds:F,callTarget:tt,statusVisualUsed:e?"GREEN (green)":"statusVisual",timerVisible:e&&F>0}),v.jsxs("div",{className:["callix","mode","min",Zm`flex w-full max-w-full flex-col gap-3 rounded-2xl border border-slate-200 bg-white/95 p-3 shadow-sm text-slate-800`].join(" "),"data-callix-variant":"min",children:[v.jsx("input",{ref:T,type:"tel",inputMode:"tel",value:be,onChange:e=>r(e.target.value),onPaste:Ke,className:Zm`sr-only`,tabIndex:-1,"aria-hidden":"true"}),v.jsxs("div",{className:Zm`flex items-center justify-between gap-2`,children:[v.jsxs("div",{className:Zm`${e?"border-green-200 bg-green-50 text-green-700":ft.badgeClass} flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-semibold uppercase leading-tight`,children:[v.jsx(ft.Icon,{className:Zm`text-xs`}),v.jsx("span",{children:nt})]}),Se?v.jsxs("button",{type:"button",onClick:()=>Be(),className:Zm`inline-flex items-center gap-1 rounded-full border border-green-400 bg-green-50 px-2.5 py-1 text-[10px] font-semibold text-green-700 transition hover:bg-green-100`,children:[v.jsx(Rp,{className:Zm`text-xs`}),"Voltar"]}):v.jsxs("button",{type:"button",onClick:()=>pe(!0),className:Zm`inline-flex items-center gap-1 rounded-full border border-amber-300 bg-amber-50 px-2.5 py-1 text-[10px] font-semibold text-amber-700 transition hover:bg-amber-100`,children:[v.jsx(Fp,{className:Zm`text-xs`}),"Pausa"]})]}),e?v.jsx("div",{className:Zm`rounded-xl border border-green-200 bg-gradient-to-br from-green-50 to-white px-3 py-2`,children:v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx("div",{className:Zm`flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-green-500 ${F>0?"animate-pulse":""}`,children:v.jsx(Bp,{className:Zm`text-xs text-white`})}),v.jsxs("div",{className:Zm`flex min-w-0 flex-1 flex-col gap-0.5`,children:[v.jsx("span",{className:Zm`truncate font-mono text-sm font-bold text-slate-800`,children:(null==tt?void 0:tt.replace(/^\+55/,""))||"Conectando..."}),v.jsx("span",{className:Zm`text-[9px] font-medium uppercase tracking-wider text-green-600`,children:nt})]}),F>0&&v.jsxs("div",{className:Zm`flex shrink-0 items-center gap-1 rounded-lg bg-green-500 px-2 py-1`,children:[v.jsx(Pp,{className:Zm`text-[10px] text-white`}),v.jsx("span",{className:Zm`tabular-nums text-xs font-bold text-white`,children:lg(F)})]})]})}):v.jsxs("div",{className:Zm`space-y-1 rounded-xl border border-slate-200 bg-slate-50 px-3 py-2 cursor-text`,onClick:()=>{var e;return null==(e=T.current)?void 0:e.focus()},children:[v.jsx("span",{className:Zm`text-[10px] font-semibold uppercase tracking-wide text-slate-500`,children:"Numero"}),v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx("span",{className:Zm`flex-1 truncate text-sm font-semibold text-slate-800`,children:rt||v.jsx("span",{className:Zm`text-slate-400 text-xs font-normal`,children:"Digite ou cole um numero"})}),v.jsx("button",{type:"button",onClick:je,disabled:!i,className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-300 bg-white text-slate-600 transition hover:border-slate-400 hover:text-slate-800 disabled:opacity-40 disabled:cursor-not-allowed`,"aria-label":"Apagar ultimo digito",children:v.jsx(kp,{className:Zm`text-base`})}),v.jsx("button",{type:"button",onClick:Le,disabled:!i,className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-lg border border-rose-300 bg-rose-50 text-rose-600 transition hover:border-rose-400 hover:bg-rose-100 disabled:opacity-40 disabled:cursor-not-allowed`,"aria-label":"Limpar numero",children:v.jsx(Zp,{className:Zm`text-sm`})})]})]}),v.jsx("div",{className:Zm`grid grid-cols-3 gap-2`,children:Yv.map(e=>v.jsxs("button",{type:"button",onClick:()=>Me(e.value),disabled:!i,className:Zm`flex h-12 flex-col items-center justify-center rounded-lg border border-slate-200 bg-white text-base font-semibold text-slate-800 shadow-sm transition active:scale-95 hover:border-slate-300 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-40`,children:[v.jsx("span",{children:e.value}),e.detail&&v.jsx("span",{className:Zm`text-[8px] font-semibold uppercase tracking-widest text-slate-400`,children:e.detail})]},e.value))}),v.jsxs("button",{type:"button",onClick:()=>{e?qe():Ue()},disabled:n,className:Zm`${e?"bg-rose-500 hover:bg-rose-600":"bg-green-500 hover:bg-green-600"} flex h-11 w-full items-center justify-center gap-2 rounded-xl text-sm font-bold text-white shadow-md transition disabled:cursor-not-allowed disabled:opacity-60`,children:[v.jsx(zp,{className:Zm`text-base`}),e?"Encerrar":"Ligar"]}),(A||O||ae)&&v.jsxs("div",{className:Zm`rounded-lg border border-rose-200 bg-rose-50 px-2.5 py-2 text-[11px] text-rose-700`,children:[v.jsx(Ip,{className:Zm`mr-1 inline text-xs`}),A||O||ae]}),ht]})}const pt=Te||Ne;return v.jsxs("div",{ref:S,tabIndex:0,role:"application","aria-label":"Discador manual",onFocusCapture:We,onBlurCapture:Ve,className:Zm`space-y-3 rounded-2xl outline-none`,children:[v.jsxs("div",{className:Zm`flex items-center justify-between gap-2`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2 min-w-0 flex-1`,children:[v.jsx("span",{className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-lg bg-primary/10 text-primary shrink-0`,children:v.jsx(Vp,{className:Zm`text-sm`})}),v.jsxs("div",{className:Zm`min-w-0 flex-1`,children:[v.jsx("p",{className:Zm`text-sm font-bold text-slate-800 truncate`,children:e}),v.jsx("p",{className:Zm`text-[9px] uppercase tracking-wide text-slate-500 font-medium`,children:"Operador"})]})]}),v.jsxs("div",{className:Zm`flex items-center gap-2 shrink-0`,children:[xe&&v.jsxs("button",{type:"button",onClick:()=>pe(!0),className:Zm`inline-flex items-center gap-1 rounded-lg border border-amber-300 bg-amber-50 px-2 py-1 text-[10px] font-bold text-amber-700 transition-all hover:bg-amber-100 hover:shadow-sm`,"aria-label":"Entrar em pausa",children:[v.jsx(Fp,{className:Zm`text-xs`}),v.jsx("span",{children:"Pausa"})]}),Se&&v.jsxs("button",{type:"button",onClick:Be,className:Zm`inline-flex items-center gap-1 rounded-lg border border-green-300 bg-green-50 px-2 py-1 text-[10px] font-bold text-green-700 transition-all hover:bg-green-100 hover:shadow-sm`,"aria-label":"Sair da pausa",children:[v.jsx(Rp,{className:Zm`text-xs`}),v.jsx("span",{children:"Voltar"})]}),v.jsxs("div",{className:Zm`${ft.badgeClass} inline-flex items-center gap-1.5 rounded-lg border px-2 py-1 text-[10px] font-bold ${Te?"animate-pulse":""}`,children:[v.jsx(ft.Icon,{className:Zm`text-xs`}),v.jsx("span",{children:nt}),v.jsx("span",{className:Zm`${ft.dotClass} inline-flex h-1.5 w-1.5 rounded-full`,"aria-hidden":!0})]})]})]}),pt&&v.jsxs(v.Fragment,{children:[v.jsx(fg,{statusLabel:nt,callTarget:tt,durationSeconds:F}),v.jsx(qv,{})]}),!pt&&v.jsxs("div",{ref:E,className:Zm`${C?"ring-2 ring-primary/50 shadow-lg":"shadow-sm"} relative overflow-hidden rounded-xl border border-slate-200 bg-gradient-to-br from-white to-slate-50 px-4 py-3 transition-all hover:shadow-md`,onClick:()=>{var e;return null==(e=S.current)?void 0:e.focus()},children:[v.jsx("input",{ref:T,id:"dialer-number",type:"tel",inputMode:"tel",value:be,onChange:e=>r(e.target.value),onPaste:Ke,className:Zm`sr-only`,tabIndex:-1,"aria-hidden":"true"}),v.jsxs("div",{className:Zm`flex items-center justify-between mb-2`,children:[v.jsxs("div",{className:Zm`flex items-center gap-1.5`,children:[v.jsx(zp,{className:Zm`text-sm text-primary`}),v.jsx("span",{className:Zm`text-[10px] uppercase tracking-wider text-slate-500 font-semibold`,children:"N�mero"})]}),C&&v.jsxs("span",{className:Zm`inline-flex items-center gap-1 rounded-full bg-primary/10 px-2 py-0.5 text-[9px] font-semibold text-primary`,children:[v.jsx("span",{className:Zm`inline-block h-1.5 w-1.5 rounded-full bg-primary animate-pulse`}),"Ativo"]})]}),v.jsx("div",{className:Zm`min-h-[2.5rem] flex items-center`,children:v.jsx("p",{className:Zm`text-2xl font-semibold tabular-nums tracking-tight text-slate-800 flex-1 truncate`,children:rt||v.jsx("span",{className:Zm`text-slate-400 text-lg font-normal`,children:"Digite um n�mero"})})})]}),v.jsx("div",{className:Zm`grid grid-cols-3 gap-2`,children:Yv.map(e=>v.jsxs("button",{type:"button",onClick:()=>Me(e.value),disabled:!Ie,className:Zm`relative flex h-14 flex-col items-center justify-center rounded-lg border border-slate-200 bg-gradient-to-b from-white to-slate-50 text-lg font-bold text-slate-800 shadow-sm transition-all active:scale-95 hover:border-slate-300 hover:shadow-md outline-none disabled:cursor-not-allowed disabled:opacity-40`,children:[v.jsx("span",{children:e.value}),e.detail&&v.jsx("span",{className:Zm`text-[8px] font-semibold tracking-widest text-slate-400 uppercase`,children:e.detail})]},e.value))}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsxs("div",{className:Zm`flex flex-wrap items-center gap-2`,children:[xe||Se?v.jsxs("button",{type:"button",onClick:Ue,disabled:!Re,className:Zm`flex flex-1 min-w-[7rem] items-center justify-center gap-2 rounded-lg bg-green-500 px-4 py-2.5 text-sm font-bold text-white shadow-lg transition-all hover:bg-green-600 hover:shadow-xl disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:shadow-lg`,children:[v.jsx(zp,{className:Zm`text-base`}),"Ligar"]}):Ee?v.jsxs(v.Fragment,{children:[v.jsxs("button",{type:"button",onClick:ze,className:Zm`flex flex-1 min-w-[6rem] items-center justify-center gap-1.5 rounded-lg bg-rose-500 px-3 py-2 text-xs font-bold text-white shadow-md transition-all hover:bg-rose-600 hover:shadow-lg`,children:[v.jsx(Hp,{className:Zm`text-sm`}),"Recusar"]}),v.jsxs("button",{type:"button",onClick:He,className:Zm`flex flex-1 min-w-[6rem] items-center justify-center gap-1.5 rounded-lg bg-green-500 px-3 py-2 text-xs font-bold text-white shadow-md transition-all hover:bg-green-600 hover:shadow-lg`,children:[v.jsx(qp,{className:Zm`text-sm`}),"Atender"]})]}):v.jsxs("button",{type:"button",onClick:qe,className:Zm`flex flex-1 min-w-[7rem] items-center justify-center gap-2 rounded-lg bg-rose-500 px-4 py-2.5 text-sm font-bold text-white shadow-lg transition-all hover:bg-rose-600 hover:shadow-xl`,children:[v.jsx(Hp,{className:Zm`text-base`}),"Encerrar"]}),v.jsxs("button",{type:"button",onClick:()=>Y(!K),className:Zm`${K?"border-rose-300 bg-rose-50 text-rose-600":"border-slate-300 bg-white text-slate-700"} flex h-9 min-w-[4.5rem] flex-1 items-center justify-center gap-1 rounded-lg border px-2 py-1.5 text-[10px] font-bold transition-all hover:border-slate-400 hover:shadow-md disabled:cursor-not-allowed`,children:[v.jsx(ct,{className:Zm`text-xs`}),K?"Mudo":"Mic"]}),v.jsxs("button",{type:"button",onClick:()=>J(!X),className:Zm`${X?"border-amber-300 bg-amber-50 text-amber-700":"border-slate-300 bg-white text-slate-700"} flex h-9 min-w-[4.5rem] flex-1 items-center justify-center gap-1 rounded-lg border px-2 py-1.5 text-[10px] font-bold transition-all hover:border-slate-400 hover:shadow-md`,children:[v.jsx(lt,{className:Zm`text-xs`}),X?"Mudo":`${ut}%`]}),v.jsx("button",{type:"button",onClick:je,className:Zm`flex h-9 w-9 items-center justify-center rounded-lg border border-slate-300 bg-white text-slate-700 transition-all hover:border-slate-400 hover:shadow-md`,"aria-label":"Apagar ultimo digito",children:v.jsx(kp,{className:Zm`text-base`})}),v.jsx("button",{type:"button",onClick:Le,className:Zm`flex h-9 w-9 items-center justify-center rounded-lg border border-rose-300 bg-rose-50 text-rose-700 font-bold text-xs transition-all hover:border-rose-400 hover:bg-rose-100 hover:shadow-md active:bg-rose-200`,"aria-label":"Limpar numero",children:"C"})]}),v.jsxs("div",{className:Zm`rounded-xl border border-slate-200 bg-white/80 p-3 shadow-sm`,children:[v.jsxs("div",{className:Zm`flex flex-wrap items-center justify-between gap-2`,children:[v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-[10px] uppercase tracking-wide text-slate-500`,children:"Volume"}),v.jsxs("p",{className:Zm`text-sm font-semibold text-slate-800`,children:["Sa�da ",ut,"%"]})]}),v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx("button",{type:"button",onClick:()=>Je((Z??0)-.05),className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-600 transition hover:border-primary/60 hover:text-primary`,"aria-label":"Diminuir volume",children:v.jsx(Up,{className:Zm`text-sm`})}),v.jsx("input",{type:"range",min:0,max:1,step:.01,value:Number.isFinite(Z)?Z:0,onChange:e=>Je(parseFloat(e.target.value)),className:Zm`h-1 w-full max-w-full cursor-pointer appearance-none rounded-full bg-slate-200 accent-primary`,"aria-label":"Volume de saida"}),v.jsx("button",{type:"button",onClick:()=>Je((Z??0)+.05),className:Zm`inline-flex h-8 w-8 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-600 transition hover:border-primary/60 hover:text-primary`,"aria-label":"Aumentar volume",children:v.jsx(Gp,{className:Zm`text-sm`})})]})]}),v.jsxs("div",{className:Zm`mt-2 flex flex-wrap items-center gap-2 text-xs text-slate-600`,children:[v.jsxs("div",{className:Zm`flex items-center gap-1.5`,children:[v.jsx(jp,{className:Zm`text-sm text-primary`}),v.jsx("span",{className:Zm`truncate max-w-full`,children:it})]}),v.jsxs("div",{className:Zm`flex items-center gap-1.5`,children:[v.jsx(Dp,{className:Zm`text-sm text-primary`}),v.jsx("span",{className:Zm`truncate max-w-full`,children:ot})]}),(ee.inputs.length>0||ee.outputs.length>0)&&v.jsxs("button",{type:"button",onClick:()=>ue(e=>!e),className:Zm`inline-flex items-center gap-1 rounded-md border border-slate-300 bg-white px-2 py-0.5 text-[9px] font-bold text-slate-700 transition-all hover:border-slate-400 hover:shadow-sm`,children:[v.jsx(Wp,{className:Zm`text-[10px]`}),de?"Ocultar":"Config"]})]}),de&&v.jsxs("div",{className:Zm`mt-3 grid gap-2`,children:[v.jsxs("label",{className:Zm`space-y-1 text-xs text-slate-700`,children:[v.jsxs("span",{className:Zm`flex items-center gap-1.5 font-semibold`,children:[v.jsx(jp,{className:Zm`text-sm text-primary`}),"Entrada"]}),v.jsxs("select",{className:Zm`w-full rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-xs shadow-inner focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/40`,value:ne??"",onChange:Ye,children:[0===ee.inputs.length&&v.jsx("option",{value:"",children:"Padr�o"}),ee.inputs.map(e=>v.jsx("option",{value:e.deviceId,children:e.label||"Padr�o"},e.deviceId||e.label))]})]}),v.jsxs("label",{className:Zm`space-y-1 text-xs text-slate-700`,children:[v.jsxs("span",{className:Zm`flex items-center gap-1.5 font-semibold`,children:[v.jsx(Dp,{className:Zm`text-sm text-primary`}),"Sa�da"]}),v.jsxs("select",{className:Zm`w-full rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-xs shadow-inner focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/40`,value:ie??"",onChange:Xe,children:[0===ee.outputs.length&&v.jsx("option",{value:"",children:"Padr�o"}),ee.outputs.map(e=>v.jsx("option",{value:e.deviceId,children:e.label||"Padr�o"},e.deviceId||e.label))]})]})]})]})]}),(A||O||ae)&&v.jsxs("div",{className:Zm`space-y-1.5`,children:[A&&v.jsxs("div",{className:Zm`flex items-start gap-2 rounded-xl border border-rose-200 bg-rose-50 px-2.5 py-2 text-[11px] text-rose-700`,children:[v.jsx(Ip,{className:Zm`mt-0.5 text-xs`}),v.jsx("span",{children:A})]}),O&&v.jsxs("div",{className:Zm`flex items-start gap-2 rounded-xl border border-amber-200 bg-amber-50 px-2.5 py-2 text-[11px] text-amber-700`,children:[v.jsx(Ip,{className:Zm`mt-0.5 text-xs`}),v.jsx("span",{children:O})]}),ae&&v.jsxs("div",{className:Zm`flex items-start gap-2 rounded-xl border border-sky-200 bg-sky-50 px-2.5 py-2 text-[11px] text-sky-700`,children:[v.jsx(Ip,{className:Zm`mt-0.5 text-xs`}),v.jsx("span",{children:ae})]})]}),ht,v.jsxs("button",{type:"button",onClick:i,className:Zm`flex w-full items-center justify-center gap-2 rounded-2xl border border-slate-200 bg-white px-4 py-3 text-sm font-semibold text-slate-600 transition hover:border-red-400 hover:text-red-500`,children:[v.jsx(Mp,{className:Zm`text-base`}),"Sair"]})]})}function rg(e){if(!e)return"";const t=e.normalize("NFKC");let n="";for(const r of t)(/^[0-9*#]$/.test(r)||"+"===r&&0===n.length)&&(n+=r);return n}function ig(e,t){const n=function(e){return e&&"object"==typeof e?e:null}(e);if(n&&t in n)return n[t]}function og(e,t){const n=ig(e,t);return"function"==typeof n?n:void 0}function ag(e){const t=ig(e,"counterpart");return function(e){if(!e||"object"!=typeof e)return!1;const t=e,n=t.displayName,r=t.phoneNumber;return!(null!=n&&"string"!=typeof n||null!=r&&"string"!=typeof r)}(t)?t:null}function sg(e,t){const n=e[t];if("number"==typeof n&&Number.isFinite(n))return n;if("string"==typeof n){const e=Number(n);if(Number.isFinite(e))return e}return null}const dg={1:[1209,697],2:[1336,697],3:[1477,697],4:[1209,770],5:[1336,770],6:[1477,770],7:[1209,852],8:[1336,852],9:[1477,852],"*":[1209,941],0:[1336,941],"#":[1477,941]};function ug(e,t,n){return Number.isFinite(e)?n<t?t:Math.min(Math.max(e,t),n):t}function lg(e){const t=Math.max(0,Math.floor(e));return`${Math.floor(t/60).toString().padStart(2,"0")}:${(t%60).toString().padStart(2,"0")}`}function cg({username:e,result:t,onChangeResult:n,successQualifications:r,discardQualifications:i,selectedQualificationId:o,onSelectQualification:a,onSubmit:s,isSubmitting:d,errorMessage:u,onLogout:l}){const c="success"===t?r:i,f=c.length>0;return v.jsxs("div",{className:Zm`space-y-5`,children:[v.jsxs("div",{className:Zm`space-y-1`,children:[v.jsx("p",{className:Zm`text-xs uppercase tracking-wide text-slate-500`,children:"Logado como"}),v.jsx("p",{className:Zm`text-sm font-semibold text-slate-800`,children:e})]}),v.jsxs("div",{className:Zm`space-y-4 rounded-2xl border border-slate-200 bg-slate-50 px-4 py-5`,children:[v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-sm font-semibold text-slate-700`,children:"Qualifique a chamada"}),v.jsx("p",{className:Zm`text-xs text-slate-500`,children:"Esta etapa e obrigatoria para registrar o desfecho do atendimento."})]}),v.jsxs("div",{className:Zm`grid grid-cols-2 gap-2`,children:[v.jsx("button",{type:"button",onClick:()=>n("success"),className:Zm`${"success"===t?"bg-green-500 text-white shadow-lg":"bg-white text-slate-600"} rounded-xl border border-slate-200 px-3 py-2 text-sm font-semibold transition hover:border-green-400`,children:"Atendimento concluido"}),v.jsx("button",{type:"button",onClick:()=>n("failure"),className:Zm`${"failure"===t?"bg-rose-500 text-white shadow-lg":"bg-white text-slate-600"} rounded-xl border border-slate-200 px-3 py-2 text-sm font-semibold transition hover:border-rose-400`,children:"Atendimento descartado"})]}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsx("p",{className:Zm`text-sm font-medium text-slate-700`,children:"Selecione uma qualificacao"}),f?v.jsx("div",{className:Zm`max-h-52 space-y-2 overflow-y-auto pr-1`,children:c.map(e=>{const t=o===e.id;return v.jsx("button",{type:"button",onClick:()=>a(e.id),className:Zm`${t?"ring-2 ring-primary bg-primary/5 border-primary":"border-slate-200 bg-white"} w-full rounded-xl border px-3 py-2 text-left transition hover:border-primary`,children:v.jsx("p",{className:Zm`text-sm font-semibold text-slate-800`,children:e.name})},e.id)})}):v.jsx("div",{className:Zm`rounded-xl border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-700`,children:"Nenhuma qualificacao disponivel para este tipo de resultado."})]}),u&&v.jsx("p",{className:Zm`text-xs text-red-500`,children:u}),v.jsxs("button",{type:"button",onClick:s,disabled:!f||!o||d,className:Zm`flex w-full items-center justify-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white shadow-lg transition hover:bg-primaryDark disabled:cursor-not-allowed disabled:opacity-60`,children:[d&&v.jsx("span",{className:Zm`inline-flex h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white`}),"Finalizar atendimento"]})]}),v.jsxs("button",{type:"button",onClick:l,className:Zm`flex w-full items-center justify-center gap-2 rounded-xl border border-slate-200 bg-white px-4 py-2 text-sm font-semibold text-slate-600 transition hover:border-red-400 hover:text-red-500`,children:[v.jsx(Mp,{className:Zm`text-base`}),"Sair"]})]})}function fg({statusLabel:e,callTarget:t,durationSeconds:n}){const r=n>0?lg(n):"00:00",i=(null==t?void 0:t.replace(/^\+55/,""))||"Conectando...";return v.jsx("div",{className:Zm`rounded-lg border border-green-200 bg-gradient-to-br from-green-50 to-white px-3 py-2`,children:v.jsxs("div",{className:Zm`flex items-center justify-between gap-3`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2.5 min-w-0 flex-1`,children:[v.jsx("div",{className:Zm`flex items-center justify-center w-8 h-8 rounded-full bg-green-500 shrink-0 ${n>0?"animate-pulse":""}`,children:v.jsx(Bp,{className:Zm`text-sm text-white`})}),v.jsxs("div",{className:Zm`flex flex-col gap-0.5 min-w-0 flex-1`,children:[v.jsx("span",{className:Zm`text-base font-bold text-slate-800 truncate font-mono`,children:i}),v.jsx("span",{className:Zm`text-[9px] font-medium text-green-600 uppercase tracking-wider`,children:e})]})]}),n>0&&v.jsxs("div",{className:Zm`flex items-center gap-1.5 bg-green-500 rounded-lg px-2.5 py-1.5 shrink-0`,children:[v.jsx(Pp,{className:Zm`text-xs text-white`}),v.jsx("span",{className:Zm`text-sm font-bold tabular-nums text-white`,children:r})]})]})})}const hg=16;function pg(e,t,n){return Math.min(Math.max(e,t),n)}function $g(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t>0?`${t}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`:`${n}:${r.toString().padStart(2,"0")}`}const mg="undefined"!=typeof window&&window.__CALLIX_API_BASE_URL__||"https://callix-zeta.vercel.app";function vg(){const e=function(){if("undefined"==typeof window)return null;console.log("[DraggableClientInfoModal] 🔍 Buscando token de sessão no localStorage...");const e=localStorage.getItem("callix_dialer_last_username");if(e){const t=`callix_dialer_${e}_session_token`,n=localStorage.getItem(t);if(n)return console.log(`[DraggableClientInfoModal] ✅ Token encontrado para usuário "${e}":`,n.substring(0,20)+"..."),n;console.log(`[DraggableClientInfoModal] ⚠️ Chave de sessão "${t}" não encontrada`)}else console.log("[DraggableClientInfoModal] ⚠️ callix_dialer_last_username não encontrado");console.log("[DraggableClientInfoModal] 🔍 Procurando qualquer chave de sessão...");for(let t=0;t<localStorage.length;t++){const e=localStorage.key(t);if(e&&e.match(/^callix_dialer_.*_session_token$/)){const t=localStorage.getItem(e);if(t)return console.log(`[DraggableClientInfoModal] ✅ Token encontrado na chave "${e}":`,t.substring(0,20)+"..."),t}}console.log("[DraggableClientInfoModal] ⚠️ Nenhum token encontrado. Chaves disponíveis no localStorage:");for(let t=0;t<localStorage.length;t++){const e=localStorage.key(t);e&&console.log(` - ${e}`)}return null}(),t={"Content-Type":"application/json"};return e&&(t["x-session-token"]=e),t}async function gg(e){const t=`${mg}/api/campaign-fields/${e}`,n=await fetch(t,{method:"GET",headers:vg(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar mapeamento: ${n.status}`)}return await n.json()}async function yg(e){const t=`${mg}/api/campaign-contact/${e}`,n=await fetch(t,{method:"GET",headers:vg(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar valores: ${n.status}`)}return await n.json()}function bg({isOpen:e,campaignCallInfo:r,callDuration:i,isCallActive:o,onClose:a}){const s=t.useRef(null),d=t.useRef({pointerId:null,offsetX:0,offsetY:0}),u=t.useRef(!1),[l,c]=t.useState({x:100,y:100}),[f,h]=t.useState(!1),[p,$]=t.useState({}),[m,g]=t.useState(!1),[y,b]=t.useState(null),[_,w]=t.useState(null),C=null==r?void 0:r.campaignContact,x=t.useCallback(e=>{if("undefined"==typeof window)return e;const t=window.innerWidth,n=window.innerHeight,r=s.current,i=(null==r?void 0:r.offsetWidth)??500,o=(null==r?void 0:r.offsetHeight)??600,a=Math.max(16,t-i-hg),d=Math.max(16,n-o-hg);return{x:pg(e.x,16,a),y:pg(e.y,16,d)}},[]);t.useEffect(()=>{if(e&&"undefined"!=typeof window){const e=s.current,t=(null==e?void 0:e.offsetWidth)??500,n=(null==e?void 0:e.offsetHeight)??600,r=(window.innerWidth-t)/2,i=(window.innerHeight-n)/2;c(x({x:r,y:i}))}},[e,x]),t.useEffect(()=>{if(!e||"undefined"==typeof window)return;const t=()=>{c(e=>x(e))};return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[e,x]),t.useEffect(()=>{if(!(null==C?void 0:C.id))return;if(_===C.id)return;let e=!1;return(async()=>{g(!0),b(null);try{console.log("[DraggableClientInfoModal] 1. Buscando config para contato:",C.id);const t=await async function(e){const t=`${mg}/api/campaign-config/${e}`,n=await fetch(t,{method:"GET",headers:vg(),credentials:"omit"});if(!n.ok){const e=await n.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha ao buscar config: ${n.status}`)}return await n.json()}(C.id);if(console.log("[DraggableClientInfoModal] 2. Config recebida:",t),!t.campaignModelId)throw new Error("campaignModelId não encontrado");console.log("[DraggableClientInfoModal] 3. Buscando mapeamento e valores em paralelo...");const[n,r]=await Promise.all([gg(t.campaignModelId),yg(C.id)]);console.log("[DraggableClientInfoModal] 4. Mapeamento recebido:",n),console.log("[DraggableClientInfoModal] 5. Valores recebidos:",r);const i={};Object.entries(r).forEach(([e,t])=>{e in n&&(i[n[e]]=t)}),e||(console.log("[DraggableClientInfoModal] ✅ Dados finais mapeados:",i),$(i),w(C.id),g(!1))}catch(t){if(!e){console.error("[DraggableClientInfoModal] ❌ Erro ao buscar dados:",t);const e=t instanceof Error?t.message:"Erro ao buscar dados do contato";b(e),g(!1)}}})(),()=>{e=!0}},[null==C?void 0:C.id,_]),t.useEffect(()=>{if(!f)return;const e=e=>{var t,n;if(d.current.pointerId!==e.pointerId)return;u.current=!0;const r=(null==(t=s.current)?void 0:t.offsetWidth)??0,i=(null==(n=s.current)?void 0:n.offsetHeight)??0,o=e.clientX-d.current.offsetX,a=e.clientY-d.current.offsetY,l="undefined"!=typeof window?window.innerWidth:0,f="undefined"!=typeof window?window.innerHeight:0,h=l-r-hg,p=f-i-hg,$=Math.max(hg,h),m=Math.max(hg,p);c({x:pg(o,hg,$),y:pg(a,hg,m)})},t=e=>{d.current.pointerId===e.pointerId&&(h(!1),d.current={pointerId:null,offsetX:0,offsetY:0})};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}},[f]);const S=t.useCallback(e=>{if(0!==e.button&&"touch"!==e.pointerType)return;const t=s.current;if(!t)return;const n=t.getBoundingClientRect();d.current={pointerId:e.pointerId,offsetX:e.clientX-n.left,offsetY:e.clientY-n.top},u.current=!1,h(!0)},[]),E=t.useCallback(()=>{!o&&a&&a()},[o,a]);if(!e)return null;const T=Object.keys(p).length>0,A=e=>{if(p[e])return p[e];const t=Object.keys(p).find(t=>t.toLowerCase()===e.toLowerCase());return t?p[t]:"-"},N=v.jsxs("div",{ref:s,className:Zm`fixed z-[9999] flex flex-col overflow-hidden rounded-xl border border-slate-300 bg-white shadow-2xl`,style:{left:`${l.x}px`,top:`${l.y}px`,width:"520px",maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 32px)"},children:[v.jsxs("div",{onPointerDown:S,className:Zm`flex cursor-move items-center justify-between border-b border-slate-200 bg-gradient-to-r from-blue-500 to-blue-600 px-4 py-3 text-white`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx(Vp,{className:Zm`h-5 w-5`}),v.jsx("h3",{className:Zm`text-sm font-bold`,children:"Informações da Campanha"})]}),v.jsx("button",{type:"button",onClick:E,disabled:o,className:Zm`rounded-full p-1 transition hover:bg-white/20 disabled:cursor-not-allowed disabled:opacity-40`,title:o?"Aguarde o fim da chamada para fechar":"Fechar",children:v.jsx(Zp,{className:Zm`h-5 w-5`})})]}),v.jsxs("div",{className:Zm`flex-1 space-y-3 overflow-y-auto p-4`,children:[v.jsxs("div",{className:Zm`grid grid-cols-2 gap-3`,children:[v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-slate-200 bg-slate-50 px-3 py-2`,children:[v.jsx(Pp,{className:Zm`h-4 w-4 text-slate-500`}),v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-[10px] text-slate-500 uppercase tracking-wide font-medium`,children:"Duração"}),v.jsx("p",{className:Zm`text-sm font-bold text-slate-800`,children:$g(i)})]})]}),v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-slate-200 bg-slate-50 px-3 py-2`,children:[v.jsx(Vp,{className:Zm`h-4 w-4 text-slate-500`}),v.jsxs("div",{className:Zm`min-w-0 flex-1`,children:[v.jsx("p",{className:Zm`text-[10px] text-slate-500 uppercase tracking-wide font-medium`,children:"Cliente"}),v.jsx("p",{className:Zm`truncate text-sm font-bold text-slate-800`,children:(null==C?void 0:C.label)||"N/A"})]})]})]}),m&&v.jsxs("div",{className:Zm`rounded-lg border border-blue-200 bg-blue-50 p-6 text-center`,children:[v.jsx("div",{className:Zm`mx-auto mb-2 inline-block h-6 w-6 animate-spin rounded-full border-2 border-blue-500 border-t-transparent`}),v.jsx("p",{className:Zm`text-xs font-medium text-blue-700`,children:"Carregando dados do contato..."})]}),y&&v.jsx("div",{className:Zm`rounded-lg border border-red-200 bg-red-50 p-3`,children:v.jsxs("div",{className:Zm`flex items-center gap-2`,children:[v.jsx(Op,{className:Zm`h-4 w-4 flex-shrink-0 text-red-600`}),v.jsxs("div",{children:[v.jsx("p",{className:Zm`text-xs font-semibold text-red-700`,children:"Erro ao carregar dados"}),v.jsx("p",{className:Zm`text-[10px] text-red-600`,children:y})]})]})}),!m&&!y&&T&&v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsxs("div",{className:Zm`grid grid-cols-3 gap-2`,children:[v.jsx(_g,{label:"CNPJ",value:A("CNPJ")}),v.jsx(_g,{label:"EMPRESA",value:A("EMPRESA")}),v.jsx(_g,{label:"TOTAL BENEFÍCIO",value:A("TOTAL BENEFICIO")})]}),v.jsxs("div",{className:Zm`grid grid-cols-3 gap-2`,children:[v.jsx(_g,{label:"DECISOR",value:A("DECISOR")}),v.jsx(_g,{label:"PRODUTO",value:A("PRODUTO PROSPECTADO")}),v.jsx(_g,{label:"VALOR PARCELAMENTO",value:A("VALOR QUE PAGA POR MÊS EM PARCELAMENTOS")})]}),v.jsxs("div",{className:Zm`grid grid-cols-3 gap-2`,children:[v.jsx(_g,{label:"SALDO PGFN",value:A("TOTAL SALDO DEVEDOR PGFN")}),v.jsx(_g,{label:"SALDO RFB",value:A("TOTAL SALDO DEVEDOR RFB")}),v.jsx(_g,{label:"DÍVIDA ATIVA",value:A("DIVIDA ATIVA")})]}),v.jsxs("div",{className:Zm`grid grid-cols-4 gap-2`,children:[v.jsx(_g,{label:"CORRESP. SÓCIO",value:A("CORRESPONSABILIDADE SOCIO")}),v.jsx(_g,{label:"EXEC. FISCAL",value:A("EXECUÇÃO FISCAL")}),v.jsx(_g,{label:"TRANSAÇÃO BENEF.",value:A("TRANSAÇÃO COM BENEFICIO")}),v.jsx(_g,{label:"REGIME TRIB.",value:A("REGIME TRIBUTARIO")})]})]}),!m&&!y&&!T&&v.jsxs("div",{className:Zm`flex flex-col items-center justify-center rounded-lg border border-slate-200 bg-slate-50 px-4 py-8 text-center`,children:[v.jsx(Vp,{className:Zm`mb-2 h-8 w-8 text-slate-400`}),v.jsx("p",{className:Zm`text-sm text-slate-500`,children:"Nenhum dado disponível"})]})]}),o&&v.jsx("div",{className:Zm`border-t border-slate-200 bg-slate-50 px-4 py-2`,children:v.jsx("p",{className:Zm`text-center text-xs text-slate-500`,children:"Aguarde o fim da chamada para fechar"})})]});return"undefined"!=typeof document?n.createPortal(N,document.body):null}function _g({label:e,value:t}){return v.jsxs("div",{className:Zm`rounded-lg border border-slate-200 bg-white p-2`,children:[v.jsx("p",{className:Zm`mb-0.5 truncate text-[9px] font-semibold uppercase tracking-wide text-slate-500`,children:e}),v.jsx("p",{className:Zm`break-words text-xs font-semibold text-slate-800 line-clamp-2`,children:t})]})}const wg=16;function Cg(e,t,n){return Math.min(Math.max(e,t),n)}function xg({isOpen:e,result:r,onChangeResult:i,successQualifications:o,discardQualifications:a,selectedQualificationId:s,onSelectQualification:d,onSubmit:u,isSubmitting:l,errorMessage:c}){const f=t.useRef(null),h=t.useRef({pointerId:null,offsetX:0,offsetY:0}),p=t.useRef(!1),[$,m]=t.useState({x:100,y:100}),[g,y]=t.useState(!1),b="success"===r?o:a,_=b.length>0,w=t.useCallback(e=>{if("undefined"==typeof window)return e;const t=window.innerWidth,n=window.innerHeight,r=f.current,i=(null==r?void 0:r.offsetWidth)??400,o=(null==r?void 0:r.offsetHeight)??500,a=Math.max(16,t-i-wg),s=Math.max(16,n-o-wg);return{x:Cg(e.x,16,a),y:Cg(e.y,16,s)}},[]);t.useEffect(()=>{if(e&&"undefined"!=typeof window){const e=f.current,t=(null==e?void 0:e.offsetWidth)??400,n=(null==e?void 0:e.offsetHeight)??500,r=(window.innerWidth-t)/2,i=(window.innerHeight-n)/2;m(w({x:r,y:i}))}},[e,w]),t.useEffect(()=>{if(!e||"undefined"==typeof window)return;const t=()=>{m(e=>w(e))};return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[e,w]),t.useEffect(()=>{if(!g)return;const e=e=>{var t,n;if(h.current.pointerId!==e.pointerId)return;p.current=!0;const r=(null==(t=f.current)?void 0:t.offsetWidth)??0,i=(null==(n=f.current)?void 0:n.offsetHeight)??0,o=e.clientX-h.current.offsetX,a=e.clientY-h.current.offsetY,s="undefined"!=typeof window?window.innerWidth:0,d="undefined"!=typeof window?window.innerHeight:0,u=s-r-wg,l=d-i-wg,c=Math.max(wg,u),$=Math.max(wg,l);m({x:Cg(o,wg,c),y:Cg(a,wg,$)})},t=e=>{h.current.pointerId===e.pointerId&&(y(!1),h.current={pointerId:null,offsetX:0,offsetY:0})};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}},[g]);const C=t.useCallback(e=>{if(0!==e.button&&"touch"!==e.pointerType)return;const t=f.current;if(!t)return;const n=t.getBoundingClientRect();h.current={pointerId:e.pointerId,offsetX:e.clientX-n.left,offsetY:e.clientY-n.top},p.current=!1,y(!0)},[]);if(!e)return null;const x=v.jsxs("div",{ref:f,className:Zm`fixed z-[9999] flex flex-col overflow-hidden rounded-xl border border-slate-300 bg-white shadow-2xl`,style:{left:`${$.x}px`,top:`${$.y}px`,width:"420px",maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 32px)"},children:[v.jsx("div",{onPointerDown:C,className:Zm`flex cursor-move items-center justify-center border-b border-slate-200 bg-gradient-to-r from-indigo-500 to-indigo-600 px-4 py-3 text-white`,children:v.jsx("h3",{className:Zm`text-sm font-bold`,children:"Qualificar Chamada"})}),v.jsxs("div",{className:Zm`flex-1 space-y-4 overflow-y-auto p-5`,children:[v.jsx("div",{className:Zm`text-center`,children:v.jsx("p",{className:Zm`text-sm text-slate-600`,children:"Esta etapa é obrigatória para registrar o desfecho do atendimento."})}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsx("p",{className:Zm`text-sm font-semibold text-slate-700`,children:"Resultado da chamada"}),v.jsxs("div",{className:Zm`grid grid-cols-2 gap-3`,children:[v.jsxs("button",{type:"button",onClick:()=>i("success"),className:Zm`${"success"===r?"border-emerald-500 bg-emerald-50 ring-2 ring-emerald-500":"border-slate-200 bg-white hover:border-emerald-300"} flex flex-col items-center justify-center gap-2 rounded-lg border px-4 py-3 transition`,children:[v.jsx(Rp,{className:Zm`h-6 w-6 ${"success"===r?"text-emerald-600":"text-slate-400"}`}),v.jsx("span",{className:Zm`text-sm font-semibold ${"success"===r?"text-emerald-700":"text-slate-600"}`,children:"Sucesso"})]}),v.jsxs("button",{type:"button",onClick:()=>i("failure"),className:Zm`${"failure"===r?"border-rose-500 bg-rose-50 ring-2 ring-rose-500":"border-slate-200 bg-white hover:border-rose-300"} flex flex-col items-center justify-center gap-2 rounded-lg border px-4 py-3 transition`,children:[v.jsx(Jp,{className:Zm`h-6 w-6 ${"failure"===r?"text-rose-600":"text-slate-400"}`}),v.jsx("span",{className:Zm`text-sm font-semibold ${"failure"===r?"text-rose-700":"text-slate-600"}`,children:"Falha"})]})]})]}),v.jsxs("div",{className:Zm`space-y-2`,children:[v.jsx("p",{className:Zm`text-sm font-semibold text-slate-700`,children:"Selecione uma qualificação"}),_?v.jsx("div",{className:Zm`max-h-64 space-y-2 overflow-y-auto rounded-lg border border-slate-200 bg-slate-50 p-2`,children:b.map(e=>{const t=s===e.id;return v.jsx("button",{type:"button",onClick:()=>d(e.id),className:Zm`${t?"border-blue-400 bg-blue-100 ring-2 ring-blue-400":"border-slate-200 bg-white hover:border-blue-300"} w-full rounded-lg border px-4 py-3 text-left transition`,children:v.jsx("p",{className:Zm`text-sm font-semibold ${t?"text-blue-800":"text-slate-800"}`,children:e.name})},e.id)})}):v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700`,children:[v.jsx(Op,{className:Zm`h-5 w-5 flex-shrink-0`}),v.jsx("span",{children:"Nenhuma qualificação disponível para este tipo de resultado."})]})]}),c&&v.jsxs("div",{className:Zm`flex items-center gap-2 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700`,children:[v.jsx(Op,{className:Zm`h-5 w-5 flex-shrink-0`}),v.jsx("span",{children:c})]})]}),v.jsx("div",{className:Zm`border-t border-slate-200 bg-slate-50 px-5 py-4`,children:v.jsxs("button",{type:"button",onClick:u,disabled:!_||!s||l,className:Zm`flex w-full items-center justify-center gap-2 rounded-lg bg-indigo-600 px-4 py-3 text-sm font-bold text-white shadow-md transition hover:bg-indigo-700 disabled:cursor-not-allowed disabled:opacity-50`,children:[l&&v.jsxs("svg",{className:Zm`h-4 w-4 animate-spin text-white`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:Zm`opacity-25`,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:Zm`opacity-75`,fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),l?"Enviando...":"Confirmar Qualificação"]})})]});return"undefined"!=typeof document?n.createPortal(x,document.body):null}function Sg({variant:e="default",isAuthenticated:n,...r}){const i="min"===e;if(!n||!i)return v.jsx(eg,{variant:e,isAuthenticated:n,...r});const{skipManualQualification:o}=Tg(),a=wf.useCallOperatorState(),s=wf.useCallOperatorCurrentCall(),d=wf.useCallOperatorCurrentCallInfo(),u=wf.useCallOperatorSuccessQualifications(),l=wf.useCallOperatorDiscardQualifications(),{finishAfterCall:c}=wf.useCallOperatorControls(),[f,h]=t.useState(!1),[p,$]=t.useState(!1),[m,g]=t.useState(0),[y,b]=t.useState("success"),[_,w]=t.useState(null),[C,x]=t.useState(!1),[S,E]=t.useState(null),T=null==a?void 0:a.state,A="callInProgress"===T,N="manualCallSetup"===T||("manualCallRinging"===T||"callRinging"===T),O="incoming"===(null==s?void 0:s.direction),I="afterCall"===T;t.useEffect(()=>{if(!i||!A)return void(A||g(0));const e=setInterval(()=>{g(e=>e+1)},1e3);return()=>clearInterval(e)},[i,A]),t.useEffect(()=>{i&&(A||N)&&O&&"campaign"===(null==d?void 0:d.type)&&h(!0)},[i,A,N,O,d]),t.useEffect(()=>{if(i)if(I){if("campaign"===(null==d?void 0:d.type)&&!0===d.info.campaign.skipCallQualification&&c)return void Promise.resolve(c({result:"success",qualificationId:void 0}));const e="manual"===(null==d?void 0:d.type),t=0===u.length&&0===l.length;if(e&&(o||t)&&c)return console.log("[InlineDialer] 🚀 Chamada manual - finalizando automaticamente (skipManualQualification:",o,", hasNoQualifications:",t,")"),void Promise.resolve(c({result:"success",qualificationId:void 0}));const n=u.length>0;b(n?"success":"failure"),w(null),E(null),$(!0)}else $(!1)},[i,I,d,c,u,l,o]),t.useEffect(()=>{i&&(A||N||I||h(!1))},[i,A,N,I]);const R=t.useMemo(()=>d&&"campaign"===d.type?d.info:null,[d]);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:'\n /* Container externo do HTML - SEM padding/border para não vazar */\n #dialer-inline.callix.mode.min {\n display: block !important;\n width: 100% !important;\n max-width: 100% !important;\n padding: 0 !important;\n border: none !important;\n background: transparent !important;\n box-shadow: none !important;\n }\n\n /* Estilos para modo mini quando Tailwind CDN não processa classes */\n .callix.mode.min {\n display: flex !important;\n flex-direction: column !important;\n gap: 0.75rem !important;\n border-radius: 1rem !important;\n border: 1px solid #e2e8f0 !important;\n background: rgba(255, 255, 255, 0.95) !important;\n padding: 0.75rem !important;\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;\n color: #1e293b !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n }\n\n /* Visor de número - fonte menor para caber todos os dígitos */\n .callix.mode.min [class*="truncate"] {\n font-size: 0.875rem !important; /* text-sm */\n line-height: 1.25rem !important;\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n white-space: nowrap !important;\n }\n\n /* Botões do modo mini */\n .callix.mode.min button {\n cursor: pointer !important;\n transition: all 0.2s ease !important;\n }\n \n .callix.mode.min button:disabled {\n cursor: not-allowed !important;\n opacity: 0.6 !important;\n }\n\n /* Grid do teclado numérico */\n .callix.mode.min [class*="grid-cols-3"] {\n display: grid !important;\n grid-template-columns: repeat(3, minmax(0, 1fr)) !important;\n gap: 0.5rem !important;\n }\n\n /* Botões do teclado */\n .callix.mode.min [class*="grid-cols-3"] button {\n display: flex !important;\n height: 3rem !important;\n flex-direction: column !important;\n align-items: center !important;\n justify-content: center !important;\n border-radius: 0.5rem !important;\n border: 1px solid #e2e8f0 !important;\n background: white !important;\n font-size: 1rem !important;\n font-weight: 600 !important;\n color: #1e293b !important;\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;\n }\n\n .callix.mode.min [class*="grid-cols-3"] button:hover:not(:disabled) {\n border-color: #cbd5e1 !important;\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;\n }\n\n .callix.mode.min [class*="grid-cols-3"] button:active:not(:disabled) {\n transform: scale(0.95) !important;\n }\n\n /* Botão principal de Ligar/Encerrar */\n .callix.mode.min > button[class*="bg-emerald"],\n .callix.mode.min > button[class*="bg-rose"] {\n display: flex !important;\n height: 2.75rem !important;\n width: 100% !important;\n align-items: center !important;\n justify-content: center !important;\n gap: 0.5rem !important;\n border-radius: 0.75rem !important;\n font-size: 0.875rem !important;\n font-weight: 700 !important;\n color: white !important;\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;\n border: none !important;\n }\n\n .callix.mode.min > button[class*="bg-emerald"] {\n background: #10b981 !important;\n }\n\n .callix.mode.min > button[class*="bg-emerald"]:hover:not(:disabled) {\n background: #059669 !important;\n }\n\n .callix.mode.min > button[class*="bg-rose"] {\n background: #f43f5e !important;\n }\n\n .callix.mode.min > button[class*="bg-rose"]:hover:not(:disabled) {\n background: #e11d48 !important;\n }\n '}}),v.jsx(eg,{isAuthenticated:n,...r,variant:e}),i&&v.jsxs(v.Fragment,{children:[v.jsx(bg,{isOpen:f,campaignCallInfo:R,callDuration:m,isCallActive:A||N,onClose:()=>h(!1)}),v.jsx(xg,{isOpen:p,result:y,onChangeResult:b,successQualifications:u,discardQualifications:l,selectedQualificationId:_,onSelectQualification:w,onSubmit:async()=>{if(("success"===y?u:l).length)if(_)if("function"==typeof c){x(!0),E(null);try{await Promise.resolve(c({result:y,qualificationId:_})),$(!1)}catch(e){E("Erro ao enviar qualificacao."),console.error("Erro ao finalizar afterCall:",e)}finally{x(!1)}}else E("Não foi possível enviar a qualificação.");else E("Selecione uma qualificação para finalizar.");else E("Nenhuma qualificação configurada para este resultado.")},isSubmitting:C,errorMessage:S})]})]})}const Eg=t.createContext(null);function Tg(){const e=t.useContext(Eg);return e||{skipManualQualification:!1}}class Ag{constructor(e){this.root=null,this.container=null,this.options=e}init(){try{if("string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container,!this.container)throw new Error(`Container não encontrado: ${this.options.container}`);const e=function(e){const t={},n=e.getAttribute("data-callix-mode")||e.dataset.callixMode||e.dataset.mode,r=e.getAttribute("data-callix-username")||e.dataset.callixUsername||e.dataset.username,i=Array.from(e.classList),o=i.map(e=>e.toLowerCase()),a=o.includes("callix"),s=n?n.toLowerCase():void 0;if(("min"===s||"mini"===s||a&&(o.includes("mode-min")||o.includes("mode-mini")||o.includes("mode")&&o.includes("min")))&&(t.uiVariant="min"),!t.presetUsername&&r&&(t.presetUsername=r.trim()),!t.presetUsername)for(const d of i){const e=d.match(/(?:user|username|callix-user)[-_:]([A-Za-z0-9.@_-]+)/i);if(e){t.presetUsername=e[1];break}}return t.presetUsername&&(t.presetUsername=t.presetUsername.trim()),t}(this.container);!this.options.uiVariant&&e.uiVariant&&(this.options.uiVariant=e.uiVariant),!this.options.presetUsername&&e.presetUsername&&(this.options.presetUsername=e.presetUsername),this.root=b.createRoot(this.container),this.root.render(v.jsx(t.StrictMode,{children:v.jsx(Rg,{options:this.options})})),this.options.onReady&&this.options.onReady()}catch(e){this.options.onError?this.options.onError(e):console.error("[Callix Dialer] Erro ao inicializar:",e)}}destroy(){this.root&&(this.root.unmount(),this.root=null)}}const Ng=e=>({SESSION_TOKEN:`callix_dialer_${e}_session_token`,DOMAIN:`callix_dialer_${e}_domain`,TIMESTAMP:`callix_dialer_${e}_timestamp`,SKIP_MANUAL_QUALIFICATION:`callix_dialer_${e}_skip_manual_qualification`}),Og="callix_dialer_last_username",Ig=288e5;function Rg({options:e}){const[n,r]=t.useState(null),[i,o]=t.useState(!1),[a,s]=t.useState(!1),[d,u]=t.useState(null),[l,c]=t.useState(null),[f,h]=t.useState(null),[p,$]=t.useState(!0),[m,g]=t.useState(!1),y=e.presetUsername?e.presetUsername.trim():null,b=e.uiVariant??"default",_=t.useRef(!1),w=t.useRef(y);t.useEffect(()=>{if("undefined"!=typeof window)try{const e=localStorage.getItem(Og);if(!e)return void $(!1);if(y&&e!==y)return console.log("[Callix Dialer] Ignorando sessao salva por mismatch com preset:",e,"!=",y),void $(!1);const t=Ng(e),n=localStorage.getItem(t.SESSION_TOKEN),i=localStorage.getItem(t.DOMAIN),a=localStorage.getItem(t.TIMESTAMP);if(e&&n&&i&&a){const s=parseInt(a,10);if(Date.now()-s<Ig){console.log("[Callix Dialer] Restaurando sessão salva:",e),r(e),c(n),h(i),o(!0);const a=localStorage.getItem(t.SKIP_MANUAL_QUALIFICATION);a&&g("true"===a)}else console.log("[Callix Dialer] Sessão expirada, limpando..."),localStorage.removeItem(Og),localStorage.removeItem(t.SESSION_TOKEN),localStorage.removeItem(t.DOMAIN),localStorage.removeItem(t.TIMESTAMP)}}catch(e){console.error("[Callix Dialer] Erro ao restaurar sessão:",e)}finally{$(!1)}else $(!1)},[]),t.useEffect(()=>{y&&n!==y&&r(y)},[y,n]);const C=t.useCallback(async t=>{var n,i;s(!0),u(null);try{const s=e.apiUrl||"/api/user-sdk-session",l=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:t}),credentials:"same-origin"});if(!l.ok){const e=await l.json().catch(()=>({error:"Erro desconhecido"}));throw new Error(e.error||`Falha na autenticação: ${l.status}`)}const f=await l.json();c(f.userSessionToken),h(f.domain||"villelabrasil.callix.com.br"),r(t),o(!0),u(null);try{const e=`https://${f.domain||"villelabrasil.callix.com.br"}/sdk/v1/client/user-service/config`;console.log("[Callix Dialer] 🔍 Buscando configuração do serviço:",e);const r=await fetch(e,{headers:{Authorization:`Bearer ${f.userSessionToken}`},credentials:"omit"});if(console.log("[Callix Dialer] 📡 Resposta da config:",r.status),r.ok){const e=await r.json();console.log("[Callix Dialer] 📦 Dados da config recebidos:",JSON.stringify(e,null,2));const o=!0===(null==(i=null==(n=null==e?void 0:e.service)?void 0:n.outboundOptions)?void 0:i.skipQualification);if(console.log("[Callix Dialer] ✅ skipQualification configurado:",o),g(o),"undefined"!=typeof window){const e=Ng(t);localStorage.setItem(e.SKIP_MANUAL_QUALIFICATION,o.toString()),console.log("[Callix Dialer] 💾 skipQualification salvo no localStorage")}}else{const e=await r.text();console.warn("[Callix Dialer] ⚠️ Erro ao buscar config do serviço:",r.status,e)}}catch(a){console.error("[Callix Dialer] ❌ Erro ao buscar config do serviço:",a)}if("undefined"!=typeof window)try{const e=Ng(t);localStorage.setItem(Og,t),localStorage.setItem(e.SESSION_TOKEN,f.userSessionToken),localStorage.setItem(e.DOMAIN,f.domain||"villelabrasil.callix.com.br"),localStorage.setItem(e.TIMESTAMP,Date.now().toString()),console.log("[Callix Dialer] Sessão salva no localStorage")}catch(d){console.warn("[Callix Dialer] Não foi possível salvar sessão:",d)}console.log("[Callix Dialer] Autenticado com sucesso:",t)}catch(d){console.error("[Callix Dialer] Erro ao autenticar:",d),u(d instanceof Error?d.message:"Erro ao autenticar"),o(!1),c(null)}finally{s(!1)}},[e.apiUrl]);t.useEffect(()=>{if(!y)return w.current=null,void(_.current=!1);w.current!==y&&(w.current=y,_.current=!1),i||a||p||_.current||(_.current=!0,C(y))},[y,i,a,p,C]);const x=()=>{const e=n;if(r(y??null),o(!1),c(null),h(null),u(null),_.current=!1,w.current=y??null,"undefined"!=typeof window&&e)try{const t=Ng(e);localStorage.removeItem(Og),localStorage.removeItem(t.SESSION_TOKEN),localStorage.removeItem(t.DOMAIN),localStorage.removeItem(t.TIMESTAMP),console.log("[Callix Dialer] Sessão removida do localStorage")}catch(t){console.warn("[Callix Dialer] Não foi possível limpar sessão:",t)}},S="inline"===e.mode?Sg:eg;return i&&l&&f?v.jsx(Eg.Provider,{value:{skipManualQualification:m},children:v.jsx(wf.CallixClientProvider,{domain:f,userSessionToken:l,children:v.jsx(S,{isAuthenticated:i,username:n,onLogin:C,onLogout:x,isLoadingSession:a,sessionError:d,variant:b})})}):v.jsx(S,{isAuthenticated:!1,username:n,onLogin:C,onLogout:x,isLoadingSession:a||p,sessionError:d,variant:b})}const Pg={CallixDialerWidget:Ag,init:function(e){const t=new Ag(e);return t.init(),t}};"undefined"!=typeof window&&(window.CallixDialer=Pg),e.default=Pg,e.useDialerConfig=Tg,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
27
  //# sourceMappingURL=callix-dialer.umd.js.map