@magic-ext/wallet-kit 0.9.0-canary.1078.24540287136.0 → 0.9.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.
package/dist/es/index.mjs CHANGED
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from"react";import o,{useState as a,useRef as i,useCallback as l,useContext as d,useEffect as s,useReducer as c,useMemo as u,createContext as p,forwardRef as f,Children as m,cloneElement as h,useLayoutEffect as g,useImperativeHandle as v,isValidElement as b}from"react";import y,{flushSync as w}from"react-dom";import{useConnect as $,useAccount as C,useDisconnect as x,useSignMessage as E,useChainId as k,WagmiProvider as L}from"wagmi";import{QueryClient as N,QueryClientProvider as M}from"@tanstack/react-query";import{Extension as _,MagicRPCError as P,createPromiEvent as T}from"@magic-sdk/provider";import{getAccount as I,reconnect as S,getConnectorClient as O,watchAccount as A,signMessage as R}from"@wagmi/core";import{WagmiAdapter as D}from"@reown/appkit-adapter-wagmi";import{mainnet as F,sepolia as H}from"@reown/appkit/networks";import{toHex as j}from"viem";import{EthereumProvider as V}from"@walletconnect/ethereum-provider";import{createAppKit as B}from"@reown/appkit";function z(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=z(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function G(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=z(e))&&(n&&(n+=" "),n+=t);return n}const U=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),W="-",Z=[],Y=e=>{const t=X(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return q(e);const r=e.split(W),n=""===r[0]&&r.length>1?1:0;return K(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||Z}return r[e]||Z}}},K=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=K(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(W):e.slice(t).join(W),l=a.length;for(let e=0;e<l;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},q=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),X=e=>{const{theme:t,classGroups:r}=e;return Q(r,t)},Q=(e,t)=>{const r=U();for(const n in e){const o=e[n];J(o,r,n,t)}return r},J=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];ee(o,t,r,n)}},ee=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?ne(e,t,r,n):re(e,t,r,n):te(e,t,r)},te=(e,t,r)=>{(""===e?t:oe(t,e)).classGroupId=r},re=(e,t,r,n)=>{ae(e)?J(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},ne=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];J(i,oe(t,a),r,n)}},oe=(e,t)=>{let r=e;const n=t.split(W),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=U(),r.nextPart.set(t,o)),r=o}return r},ae=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,ie=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,a)=>{r[o]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},le=[],de=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),se=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const i=e.length;for(let l=0;l<i;l++){const i=e[l];if(0===n&&0===o){if(":"===i){t.push(e.slice(a,l)),a=l+1;continue}if("/"===i){r=l;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const l=0===t.length?e:e.slice(a);let d=l,s=!1;l.endsWith("!")?(d=l.slice(0,-1),s=!0):l.startsWith("!")&&(d=l.slice(1),s=!0);return de(t,s,d,r&&r>a?r-a:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):de(le,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},ce=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],l=t.has(a);i||l?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},ue=/\s+/,pe=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=pe(e[n]))&&(r&&(r+=" "),r+=t);return r},fe=(e,...t)=>{let r,n,o,a;const i=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(ue);let d="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:s,modifiers:c,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:f}=r(t);if(s){d=t+(d.length>0?" "+d:d);continue}let m=!!f,h=n(m?p.substring(0,f):p);if(!h){if(!m){d=t+(d.length>0?" "+d:d);continue}if(h=n(p),!h){d=t+(d.length>0?" "+d:d);continue}m=!1}const g=0===c.length?"":1===c.length?c[0]:a(c).join(":"),v=u?g+"!":g,b=v+h;if(i.indexOf(b)>-1)continue;i.push(b);const y=o(h,m);for(let e=0;e<y.length;++e){const t=y[e];i.push(v+t)}d=t+(d.length>0?" "+d:d)}return d})(e,r);return o(e,a),a};return a=l=>{const d=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:ie(e.cacheSize),parseClassName:se(e),sortModifiers:ce(e),...Y(e)}))(d),n=r.cache.get,o=r.cache.set,a=i,i(l)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=pe(t))&&(o&&(o+=" "),o+=r);return o})(...e))},me=[],he=e=>{const t=t=>t[e]||me;return t.isThemeGetter=!0,t},ge=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ve=/^\((?:(\w[\w-]*):)?(.+)\)$/i,be=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ye=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,we=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ce=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ee=e=>be.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),Le=e=>!!e&&Number.isInteger(Number(e)),Ne=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Me=e=>ye.test(e),_e=()=>!0,Pe=e=>we.test(e)&&!$e.test(e),Te=()=>!1,Ie=e=>Ce.test(e),Se=e=>xe.test(e),Oe=e=>!Re(e)&&!Ge(e),Ae=e=>Qe(e,rt,Te),Re=e=>ge.test(e),De=e=>Qe(e,nt,Pe),Fe=e=>Qe(e,ot,ke),He=e=>Qe(e,it,_e),je=e=>Qe(e,at,Te),Ve=e=>Qe(e,et,Te),Be=e=>Qe(e,tt,Se),ze=e=>Qe(e,lt,Ie),Ge=e=>ve.test(e),Ue=e=>Je(e,nt),We=e=>Je(e,at),Ze=e=>Je(e,et),Ye=e=>Je(e,rt),Ke=e=>Je(e,tt),qe=e=>Je(e,lt,!0),Xe=e=>Je(e,it,!0),Qe=(e,t,r)=>{const n=ge.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Je=(e,t,r=!1)=>{const n=ve.exec(e);return!!n&&(n[1]?t(n[1]):r)},et=e=>"position"===e||"percentage"===e,tt=e=>"image"===e||"url"===e,rt=e=>"length"===e||"size"===e||"bg-size"===e,nt=e=>"length"===e,ot=e=>"number"===e,at=e=>"family-name"===e,it=e=>"number"===e||"weight"===e,lt=e=>"shadow"===e,dt=()=>{const e=he("color"),t=he("font"),r=he("text"),n=he("font-weight"),o=he("tracking"),a=he("leading"),i=he("breakpoint"),l=he("container"),d=he("spacing"),s=he("radius"),c=he("shadow"),u=he("inset-shadow"),p=he("text-shadow"),f=he("drop-shadow"),m=he("blur"),h=he("perspective"),g=he("aspect"),v=he("ease"),b=he("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ge,Re],w=()=>[Ge,Re,d],$=()=>[Ee,"full","auto",...w()],C=()=>[Le,"none","subgrid",Ge,Re],x=()=>["auto",{span:["full",Le,Ge,Re]},Le,Ge,Re],E=()=>[Le,"auto",Ge,Re],k=()=>["auto","min","max","fr",Ge,Re],L=()=>["auto",...w()],N=()=>[Ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],M=()=>[Ee,"screen","full","dvw","lvw","svw","min","max","fit",...w()],_=()=>[Ee,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],P=()=>[e,Ge,Re],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ze,Ve,{position:[Ge,Re]}],I=()=>["auto","cover","contain",Ye,Ae,{size:[Ge,Re]}],S=()=>[Ne,Ue,De],O=()=>["","none","full",s,Ge,Re],A=()=>["",ke,Ue,De],R=()=>[ke,Ne,Ze,Ve],D=()=>["","none",m,Ge,Re],F=()=>["none",ke,Ge,Re],H=()=>["none",ke,Ge,Re],j=()=>[ke,Ge,Re],V=()=>[Ee,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[_e],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[Oe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",ke],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ee,Re,Ge,g]}],container:["container"],columns:[{columns:[ke,Re,Ge,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Le,"auto",Ge,Re]}],basis:[{basis:[Ee,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,Ee,"auto","initial","none",Re]}],grow:[{grow:["",ke,Ge,Re]}],shrink:[{shrink:["",ke,Ge,Re]}],order:[{order:[Le,"first","last","none",Ge,Re]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[l,"screen",...N()]}],"min-w":[{"min-w":[l,"screen","none",...N()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,Ue,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Xe,He]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ne,Re]}],"font-family":[{font:[We,je,t]}],"font-features":[{"font-features":[Re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Ge,Re]}],"line-clamp":[{"line-clamp":[ke,"none",Ge,Fe]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",Ge,Re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ge,Re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",Ge,De]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[ke,"auto",Ge,Re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ge,Re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ge,Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Le,Ge,Re],radial:["",Ge,Re],conic:[Le,Ge,Re]},Ke,Be]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ke,Ge,Re]}],"outline-w":[{outline:["",ke,Ue,De]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",c,qe,ze]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",u,qe,ze]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[ke,De]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,qe,ze]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[ke,Ge,Re]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Ge,Re]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ge,Re]}],filter:[{filter:["","none",Ge,Re]}],blur:[{blur:D()}],brightness:[{brightness:[ke,Ge,Re]}],contrast:[{contrast:[ke,Ge,Re]}],"drop-shadow":[{"drop-shadow":["","none",f,qe,ze]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",ke,Ge,Re]}],"hue-rotate":[{"hue-rotate":[ke,Ge,Re]}],invert:[{invert:["",ke,Ge,Re]}],saturate:[{saturate:[ke,Ge,Re]}],sepia:[{sepia:["",ke,Ge,Re]}],"backdrop-filter":[{"backdrop-filter":["","none",Ge,Re]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[ke,Ge,Re]}],"backdrop-contrast":[{"backdrop-contrast":[ke,Ge,Re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,Ge,Re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,Ge,Re]}],"backdrop-invert":[{"backdrop-invert":["",ke,Ge,Re]}],"backdrop-opacity":[{"backdrop-opacity":[ke,Ge,Re]}],"backdrop-saturate":[{"backdrop-saturate":[ke,Ge,Re]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,Ge,Re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ge,Re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",Ge,Re]}],ease:[{ease:["linear","initial",v,Ge,Re]}],delay:[{delay:[ke,Ge,Re]}],animate:[{animate:["none",b,Ge,Re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Ge,Re]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:j()}],"skew-x":[{"skew-x":j()}],"skew-y":[{"skew-y":j()}],transform:[{transform:[Ge,Re,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ge,Re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ge,Re]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[ke,Ue,De,Fe]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},st=(e,t,r)=>{void 0!==r&&(e[t]=r)},ct=(e,t)=>{if(t)for(const r in t)st(e,r,t[r])},ut=(e,t)=>{if(t)for(const r in t)pt(e,t,r)},pt=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)},ft=((e,...t)=>"function"==typeof e?fe(dt,e,...t):fe(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(st(e,"cacheSize",t),st(e,"prefix",r),st(e,"experimentalParseClassName",n),ct(e.theme,a.theme),ct(e.classGroups,a.classGroups),ct(e.conflictingClassGroups,a.conflictingClassGroups),ct(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),st(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),ut(e.theme,o.theme),ut(e.classGroups,o.classGroups),ut(e.conflictingClassGroups,o.conflictingClassGroups),ut(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),pt(e,o,"orderSensitiveModifiers"),e))(dt(),e),...t))({override:{classGroups:{"outline-style":["outline-none","outline-dashed","outline-dotted","outline-double"]}},extend:{classGroups:{"outline-solid":["outline"],"border-w":[{border:["thin","medium","thick"]}],"outline-color":[{outline:["brand-lightest","brand-lighter","brand-base","brand-darker","brand-darkest","positive-base","negative-base","warning-base","dedicated-base"]}],"outline-w":[{outline:["thin","medium","thick"]}],rounded:[{rounded:["button","container","input"]}],"text-style":[{text:["style-h1","style-h1-scaled","style-h2","style-h2-scaled","style-h3","style-h3-scaled","style-h4","style-h4-scaled","style-h5","style-h5-scaled","style-h6","style-h6-scaled","style-body-xs","style-body-sm","style-body-sm-scaled","style-body-md","style-body-md-scaled","style-body-lg","style-body-lg-scaled","style-mono-sm","style-mono-md","style-mono-lg"]}]}}});function mt(...e){return ft(G(e))}const ht="undefined"!=typeof document?o.useLayoutEffect:()=>{};const gt={prefix:String(Math.round(1e10*Math.random())),current:0},vt=o.createContext(gt),bt=o.createContext(!1);let yt=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),wt=new WeakMap;const $t="function"==typeof o.useId?function(e){let t=o.useId(),[r]=a(kt()),n=r||"test"===process.env.NODE_ENV?"react-aria":`react-aria${gt.prefix}`;return e||`${n}-${t}`}:function(e){let t=d(vt);t!==gt||yt||"production"===process.env.NODE_ENV||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=function(e=!1){let t=d(vt),r=i(null);if(null===r.current&&!e){var n,a;let e=null===(a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(n=a.ReactCurrentOwner)||void 0===n?void 0:n.current;if(e){let r=wt.get(e);null==r?wt.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,wt.delete(e))}r.current=++t.current}return r.current}(!!e),n=t===gt&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`};function Ct(){return!1}function xt(){return!0}function Et(e){return()=>{}}function kt(){return"function"==typeof o.useSyncExternalStore?o.useSyncExternalStore(Et,Ct,xt):d(bt)}let Lt,Nt=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Mt=new Map;function _t(e){let[t,r]=a(e),n=i(null),o=$t(t),l=i(null);if(Lt&&Lt.register(l,o),Nt){const e=Mt.get(o);e&&!e.includes(n)?e.push(n):Mt.set(o,[n])}return ht(()=>{let e=o;return()=>{Lt&&Lt.unregister(l),Mt.delete(e)}},[o]),s(()=>{let e=n.current;return e&&r(e),()=>{e&&(n.current=null)}}),o}function Pt(e,t){if(e===t)return e;let r=Mt.get(e);if(r)return r.forEach(e=>e.current=t),t;let n=Mt.get(t);return n?(n.forEach(t=>t.current=e),e):t}function Tt(e=[]){let t=_t(),[r,n]=function(e){let[t,r]=a(e),n=i(t),o=i(null),d=i(()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:n.current===e.value?d.current():r(e.value)});ht(()=>{n.current=t,o.current&&d.current()});let s=l(e=>{o.current=e(n.current),d.current()},[d]);return[t,s]}(t),o=l(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ht(o,[t,o,...e]),r}function It(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}"undefined"!=typeof FinalizationRegistry&&(Lt=new FinalizationRegistry(e=>{Mt.delete(e)}));const St=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Ot=e=>{if(e&&"window"in e&&e.window===e)return e;return St(e).defaultView||window};function At(e,t){return!(!t||!e)&&e.contains(t)}const Rt=(e=document)=>e.activeElement;function Dt(e){return e.target}function Ft(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],o=n[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=It(r,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof o?"id"===e&&r&&o?t.id=Pt(r,o):t[e]=void 0!==o?o:r:t[e]=G(r,o)}}return t}const Ht=new Set(["id"]),jt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Vt=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Bt=new Set(["dir","lang","hidden","inert","translate"]),zt=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Gt=/^(data-.*)$/;function Ut(e,t={}){let{labelable:r,isLink:n,global:o,events:a=o,propNames:i}=t,l={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Ht.has(t)||r&&jt.has(t)||n&&Vt.has(t)||o&&Bt.has(t)||a&&(zt.has(t)||t.endsWith("Capture")&&zt.has(t.slice(0,-7)))||(null==i?void 0:i.has(t))||Gt.test(t))&&(l[t]=e[t]);return l}function Wt(e){if(function(){if(null==Zt){Zt=!1;try{document.createElement("div").focus({get preventScroll(){return Zt=!0,!0}})}catch{}}return Zt}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft});return r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}let Zt=null;function Yt(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let r=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Kt(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function qt(e){if("test"===process.env.NODE_ENV)return e;let t=null;return()=>(null==t&&(t=e()),t)}const Xt=qt(function(){return Kt(/^Mac/i)}),Qt=qt(function(){return Kt(/^iPhone/i)}),Jt=qt(function(){return Kt(/^iPad/i)||Xt()&&navigator.maxTouchPoints>1}),er=qt(function(){return Qt()||Jt()});qt(function(){return Xt()||er()});const tr=qt(function(){return Yt(/AppleWebKit/i)&&!rr()}),rr=qt(function(){return Yt(/Chrome/i)}),nr=qt(function(){return Yt(/Android/i)}),or=qt(function(){return Yt(/Firefox/i)});function ar(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:d}=t;or()&&(null===(o=window.event)||void 0===o||null===(n=o.type)||void 0===n?void 0:n.startsWith("key"))&&"_blank"===e.target&&(Xt()?a=!0:i=!0);let s=tr()&&Xt()&&!Jt()&&"test"!==process.env.NODE_ENV?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:d,detail:1,bubbles:!0,cancelable:!0});ar.isOpening=r,Wt(e),e.dispatchEvent(s),ar.isOpening=!1}ar.isOpening=!1;let ir=new Map,lr=new Set;function dr(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=r=>{if(!e(r)||!r.target)return;let n=ir.get(r.target);if(n&&(n.delete(r.propertyName),0===n.size&&(r.target.removeEventListener("transitioncancel",t),ir.delete(r.target)),0===ir.size)){for(let e of lr)e();lr.clear()}};document.body.addEventListener("transitionrun",r=>{if(!e(r)||!r.target)return;let n=ir.get(r.target);n||(n=new Set,ir.set(r.target,n),r.target.addEventListener("transitioncancel",t,{once:!0})),n.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function sr(e){requestAnimationFrame(()=>{!function(){for(const[e]of ir)"isConnected"in e&&!e.isConnected&&ir.delete(e)}(),0===ir.size?e():lr.add(e)})}function cr(){let e=i(new Map),t=l((t,r,n,o)=>{let a=(null==o?void 0:o.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:a,options:o}),t.addEventListener(r,a,o)},[]),r=l((t,r,n,o)=>{var a;let i=(null===(a=e.current.get(n))||void 0===a?void 0:a.fn)||n;t.removeEventListener(r,i,o),e.current.delete(n)},[]),n=l(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return s(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}var ur;"undefined"!=typeof document&&("loading"!==document.readyState?dr():document.addEventListener("DOMContentLoaded",dr));const pr=null!==(ur=o.useInsertionEffect)&&void 0!==ur?ur:ht;function fr(e){const t=i(null);return pr(()=>{t.current=e},[e]),l((...e)=>{const r=t.current;return null==r?void 0:r(...e)},[])}function mr(e){const{ref:t,box:r,onResize:n}=e;let o=fr(n);s(()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)};{const t=new window.ResizeObserver(e=>{e.length&&o()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}},[t,r])}function hr(e,t){ht(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function gr(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function vr(e,t){let r=e;for(gr(r,t)&&(r=r.parentElement);r&&!gr(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}const br=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yr(e){return e instanceof HTMLInputElement&&!br.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function wr(e){return!(""!==e.pointerType||!e.isTrusted)||(nr()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function $r(e,t,r){let n=fr(()=>{r&&r(t)});s(()=>{var t;let r=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==r||r.addEventListener("reset",n),()=>{null==r||r.removeEventListener("reset",n)}},[e])}const Cr="undefined"!=typeof Element&&"checkVisibility"in Element.prototype;function xr(e,t){return Cr?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){const t=Ot(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o="none"!==r&&"hidden"!==n&&"collapse"!==n;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:r,visibility:n}=t(e);o="none"!==r&&"hidden"!==n&&"collapse"!==n}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||xr(e.parentElement,e))}const Er=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],kr=Er.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Er.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Lr=Er.join(':not([hidden]):not([tabindex="-1"]),');function Nr(e){return e.matches(kr)&&xr(e)&&!_r(e)}function Mr(e){return e.matches(Lr)&&xr(e)&&!_r(e)}function _r(e){let t=e;for(;null!=t;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Pr;const Tr="undefined"!=typeof document?null!==(Pr=o.useInsertionEffect)&&void 0!==Pr?Pr:o.useLayoutEffect:()=>{};function Ir(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Sr(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Or(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Ar(e){let t=i({isFocused:!1,observer:null});return ht(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),l(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=r=>{if(t.current.isFocused=!1,n.disabled){let t=Sr(r);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Rr=!1;function Dr(e){for(;e&&!Nr(e);)e=e.parentElement;let t=Ot(e),r=t.document.activeElement;if(!r||r===e)return;Rr=!0;let n=!1,o=e=>{(e.target===r||n)&&e.stopImmediatePropagation()},a=t=>{(t.target===r||n)&&(t.stopImmediatePropagation(),e||n||(n=!0,Wt(r),d()))},i=t=>{(t.target===e||n)&&t.stopImmediatePropagation()},l=t=>{(t.target===e||n)&&(t.stopImmediatePropagation(),n||(n=!0,Wt(r),d()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let d=()=>{cancelAnimationFrame(s),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),Rr=!1,n=!1},s=requestAnimationFrame(d);return d}let Fr="default",Hr="",jr=new WeakMap;function Vr(e){if(er()){if("default"===Fr){const t=St(e);Hr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Fr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";jr.set(e,e.style[t]),e.style[t]="none"}}function Br(e){if(er()){if("disabled"!==Fr)return;Fr="restoring",setTimeout(()=>{sr(()=>{if("restoring"===Fr){const t=St(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=Hr||""),Hr="",Fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&jr.has(e)){let t=jr.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[r]&&(e.style[r]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),jr.delete(e)}}const zr=o.createContext({register:()=>{}});function Gr(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Ur(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function Wr(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,Gr(e,t,"set"),r),r}zr.displayName="PressResponderContext";var Zr=new WeakMap;class Yr{continuePropagation(){Wr(this,Zr,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,Gr(e,Zr,"get"));var e}constructor(e,t,r,n){var o;Ur(this,Zr,{writable:!0,value:void 0}),Wr(this,Zr,!0);let a=null!==(o=null==n?void 0:n.target)&&void 0!==o?o:r.currentTarget;const i=null==a?void 0:a.getBoundingClientRect();let l,d,s=0,c=null;null!=r.clientX&&null!=r.clientY&&(d=r.clientX,c=r.clientY),i&&(null!=d&&null!=c?(l=d-i.left,s=c-i.top):(l=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}}const Kr=Symbol("linkClicked"),qr="react-aria-pressable-style",Xr="data-react-aria-pressable";function Qr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:c,onClick:p,isDisabled:f,isPressed:m,preventFocusOnPress:h,shouldCancelOnPointerExit:g,allowTextSelectionOnPress:v,ref:b,...y}=function(e){let t=d(zr);if(t){let{register:r,...n}=t;e=Ft(n,e),r()}return hr(t,e.ref),e}(e),[$,C]=a(!1),x=i({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:k,removeGlobalListener:L}=cr(),N=l((e,t)=>{let o=x.current;if(f||o.didFirePressStart)return!1;let a=!0;if(o.isTriggeringEvent=!0,n){let r=new Yr("pressstart",t,e);n(r),a=r.shouldStopPropagation}return r&&r(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,C(!0),a},[f,n,r]),M=l((e,n,a=!0)=>{let i=x.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let l=!0;if(o){let t=new Yr("pressend",n,e);o(t),l=t.shouldStopPropagation}if(r&&r(!1),C(!1),t&&a&&!f){let r=new Yr("press",n,e);t(r),l&&(l=r.shouldStopPropagation)}return i.isTriggeringEvent=!1,l},[f,o,r,t]),_=fr(M),P=l((e,t)=>{let r=x.current;if(f)return!1;if(c){r.isTriggeringEvent=!0;let n=new Yr("pressup",t,e);return c(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0},[f,c]),T=fr(P),I=l(e=>{let t=x.current;if(t.isPressed&&t.target){t.didFirePressStart&&null!=t.pointerType&&M(nn(t.target,e),t.pointerType,!1),t.isPressed=!1,V(null),t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,k(),v||Br(t.target);for(let e of t.disposables)e();t.disposables=[]}},[v,k,M]),S=fr(I),O=l(e=>{g&&I(e)},[g,I]),A=l(e=>{f||null==p||p(e)},[f,p]),R=l((e,t)=>{if(!f&&p){let r=new MouseEvent("click",e);Or(r,t),p(Sr(r))}},[f,p]),D=fr(R),[F,H]=a(!1);ht(()=>{let e=x.current;if(F){let t=t=>{var r;if(e.isPressed&&e.target&&en(t,e.target)){var n;an(Dt(t),t.key)&&t.preventDefault();let r=Dt(t),o=At(e.target,Dt(t));_(nn(e.target,t),"keyboard",o),o&&D(t,e.target),k(),"Enter"!==t.key&&Jr(e.target)&&At(e.target,r)&&!t[Kr]&&(t[Kr]=!0,ar(e.target,t,!1)),e.isPressed=!1,H(!1),null===(n=e.metaKeyEvents)||void 0===n||n.delete(t.key)}else if("Meta"===t.key&&(null===(r=e.metaKeyEvents)||void 0===r?void 0:r.size)){var o;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let r of t.values())null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",r))}},r=e.target,n=t=>{r&&en(t,r)&&!t.repeat&&At(r,Dt(t))&&e.target&&T(nn(e.target,t),"keyboard")},o=It(n,t);return E(St(e.target),"keyup",o,!0),()=>{L(St(e.target),"keyup",o,!0)}}},[F,E,k,L]);let[j,V]=a(null);ht(()=>{let e=x.current;if("pointer"===j){let t=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(At(e.target,Dt(t))&&null!=e.pointerType){let r=!1,n=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(r?S(t):(Wt(e.target),e.target.click()))},80);E(t.currentTarget,"click",()=>r=!0,!0),e.disposables.push(()=>clearTimeout(n))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};return E(St(e.target),"pointerup",t,!1),E(St(e.target),"pointercancel",r,!1),()=>{L(St(e.target),"pointerup",t,!1),L(St(e.target),"pointercancel",r,!1)}}if("mouse"===j&&"test"===process.env.NODE_ENV){let t=t=>{0===t.button&&(e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&e.target.contains(t.target)&&null!=e.pointerType||S(t),e.isOverTarget=!1))};return E(St(e.target),"mouseup",t,!1),()=>{L(St(e.target),"mouseup",t,!1)}}if("touch"===j&&"test"===process.env.NODE_ENV){let t=t=>{e.isPressed&&At(Dt(t),e.target)&&S({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return E(Ot(e.target),"scroll",t,!0),()=>{L(Ot(e.target),"scroll",t,!0)}}},[j,E,L]);let B=u(()=>{let e=x.current,t={onKeyDown(t){if(en(t.nativeEvent,t.currentTarget)&&At(t.currentTarget,Dt(t.nativeEvent))){var r;an(Dt(t.nativeEvent),t.key)&&t.preventDefault();let n=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,H(!0),e.pointerType="keyboard",n=N(t,"keyboard")),n&&t.stopPropagation(),t.metaKey&&Xt()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||At(t.currentTarget,Dt(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!ar.isOpening){let r=!0;if(f&&t.preventDefault(),e.ignoreEmulatedMouseEvents||e.isPressed||"virtual"!==e.pointerType&&!wr(t.nativeEvent)){if(e.isPressed&&"keyboard"!==e.pointerType){let n=e.pointerType||t.nativeEvent.pointerType||"virtual",o=P(nn(t.currentTarget,t),n),a=M(nn(t.currentTarget,t),n,!0);r=o&&a,e.isOverTarget=!1,A(t),I(t)}}else{let e=N(t,"virtual"),n=P(t,"virtual"),o=M(t,"virtual");A(t),r=e&&n&&o}e.ignoreEmulatedMouseEvents=!1,r&&t.stopPropagation()}}};return"undefined"!=typeof PointerEvent?(t.onPointerDown=t=>{if(0!==t.button||!At(t.currentTarget,Dt(t.nativeEvent)))return;if(r=t.nativeEvent,!nr()&&0===r.width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType)return void(e.pointerType="virtual");var r;e.pointerType=t.pointerType;let n=!0;if(!e.isPressed){e.isPressed=!0,V("pointer"),e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,v||Vr(e.target),n=N(t,e.pointerType);let r=Dt(t.nativeEvent);"releasePointerCapture"in r&&r.releasePointerCapture(t.pointerId)}n&&t.stopPropagation()},t.onMouseDown=t=>{if(At(t.currentTarget,Dt(t.nativeEvent))&&0===t.button){if(h){let r=Dr(t.target);r&&e.disposables.push(r)}t.stopPropagation()}},t.onPointerUp=t=>{At(t.currentTarget,Dt(t.nativeEvent))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||P(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,N(nn(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,M(nn(e.target,t),e.pointerType,!1),O(t))},t.onDragStart=e=>{At(e.currentTarget,Dt(e.nativeEvent))&&I(e)}):"test"===process.env.NODE_ENV&&(t.onMouseDown=t=>{if(0!==t.button||!At(t.currentTarget,Dt(t.nativeEvent)))return;if(e.ignoreEmulatedMouseEvents)return void t.stopPropagation();if(e.isPressed=!0,V("mouse"),e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=wr(t.nativeEvent)?"virtual":"mouse",w(()=>N(t,e.pointerType))&&t.stopPropagation(),h){let r=Dr(t.target);r&&e.disposables.push(r)}},t.onMouseEnter=t=>{if(!At(t.currentTarget,Dt(t.nativeEvent)))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,r=N(t,e.pointerType)),r&&t.stopPropagation()},t.onMouseLeave=t=>{if(!At(t.currentTarget,Dt(t.nativeEvent)))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,r=M(t,e.pointerType,!1),O(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{At(t.currentTarget,Dt(t.nativeEvent))&&(e.ignoreEmulatedMouseEvents||0!==t.button||e.isPressed||P(t,e.pointerType||"mouse"))},t.onTouchStart=t=>{if(!At(t.currentTarget,Dt(t.nativeEvent)))return;let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,V("touch"),e.target=t.currentTarget,e.pointerType="touch",v||Vr(e.target),N(rn(e.target,t),e.pointerType)&&t.stopPropagation())},t.onTouchMove=t=>{if(!At(t.currentTarget,Dt(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let r=tn(t.nativeEvent,e.activePointerId),n=!0;r&&on(r,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=N(rn(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=M(rn(e.target,t),e.pointerType,!1),O(rn(e.target,t))),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!At(t.currentTarget,Dt(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let r=tn(t.nativeEvent,e.activePointerId),n=!0;r&&on(r,t.currentTarget)&&null!=e.pointerType?(P(rn(e.target,t),e.pointerType),n=M(rn(e.target,t),e.pointerType),R(t.nativeEvent,e.target)):e.isOverTarget&&null!=e.pointerType&&(n=M(rn(e.target,t),e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,V(null),e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!v&&Br(e.target),k()},t.onTouchCancel=t=>{At(t.currentTarget,Dt(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&I(rn(e.target,t)))},t.onDragStart=e=>{At(e.currentTarget,Dt(e.nativeEvent))&&I(e)}),t},[f,h,k,v,I,O,M,N,P,A,R]);return s(()=>{if(!b||"test"===process.env.NODE_ENV)return;const e=St(b.current);if(!e||!e.head||e.getElementById(qr))return;const t=e.createElement("style");t.id=qr,t.textContent=`\n@layer {\n [${Xr}] {\n touch-action: pan-x pan-y pinch-zoom;\n }\n}\n `.trim(),e.head.prepend(t)},[b]),s(()=>{let e=x.current;return()=>{var t;v||Br(null!==(t=e.target)&&void 0!==t?t:void 0);for(let t of e.disposables)t();e.disposables=[]}},[v]),{isPressed:m||$,pressProps:Ft(y,B,{[Xr]:!0})}}function Jr(e){return"A"===e.tagName&&e.hasAttribute("href")}function en(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return!("Enter"!==r&&" "!==r&&"Spacebar"!==r&&"Space"!==n||o instanceof Ot(o).HTMLInputElement&&!dn(o,r)||o instanceof Ot(o).HTMLTextAreaElement||o.isContentEditable||("link"===a||!a&&Jr(o))&&"Enter"!==r)}function tn(e,t){const r=e.changedTouches;for(let e=0;e<r.length;e++){const n=r[e];if(n.identifier===t)return n}return null}function rn(e,t){let r=0,n=0;return t.targetTouches&&1===t.targetTouches.length&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function nn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function on(e,t){let r=t.getBoundingClientRect(),n=function(e){let t=0,r=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?r=e.height/2:void 0!==e.radiusY&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(r,n)}function an(e,t){return e instanceof HTMLInputElement?!dn(e,t):function(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:Jr(e)))}(e)}const ln=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dn(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:ln.has(e.type)}let sn=null,cn=new Set,un=new Map,pn=!1,fn=!1;const mn={Tab:!0,Escape:!0};function hn(e,t){for(let r of cn)r(e,t)}function gn(e){pn=!0,!ar.isOpening&&function(e){return!(e.metaKey||!Xt()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(sn="keyboard",hn("keyboard",e))}function vn(e){sn="pointer",!("pointerType"in e)||e.pointerType,"mousedown"!==e.type&&"pointerdown"!==e.type||(pn=!0,hn("pointer",e))}function bn(e){!ar.isOpening&&wr(e)&&(pn=!0,sn="virtual")}function yn(e){e.target!==window&&e.target!==document&&!Rr&&e.isTrusted&&(pn||fn||(sn="virtual",hn("virtual",e)),pn=!1,fn=!1)}function wn(){Rr||(pn=!1,fn=!0)}function $n(e){if("undefined"==typeof window||"undefined"==typeof document||un.get(Ot(e)))return;const t=Ot(e),r=St(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pn=!0,n.apply(this,arguments)},r.addEventListener("keydown",gn,!0),r.addEventListener("keyup",gn,!0),r.addEventListener("click",bn,!0),t.addEventListener("focus",yn,!0),t.addEventListener("blur",wn,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",vn,!0),r.addEventListener("pointermove",vn,!0),r.addEventListener("pointerup",vn,!0)):"test"===process.env.NODE_ENV&&(r.addEventListener("mousedown",vn,!0),r.addEventListener("mousemove",vn,!0),r.addEventListener("mouseup",vn,!0)),t.addEventListener("beforeunload",()=>{Cn(e)},{once:!0}),un.set(t,{focus:n})}const Cn=(e,t)=>{const r=Ot(e),n=St(e);t&&n.removeEventListener("DOMContentLoaded",t),un.has(r)&&(r.HTMLElement.prototype.focus=un.get(r).focus,n.removeEventListener("keydown",gn,!0),n.removeEventListener("keyup",gn,!0),n.removeEventListener("click",bn,!0),r.removeEventListener("focus",yn,!0),r.removeEventListener("blur",wn,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",vn,!0),n.removeEventListener("pointermove",vn,!0),n.removeEventListener("pointerup",vn,!0)):"test"===process.env.NODE_ENV&&(n.removeEventListener("mousedown",vn,!0),n.removeEventListener("mousemove",vn,!0),n.removeEventListener("mouseup",vn,!0)),un.delete(r))};function xn(){return"pointer"!==sn}function En(){return sn}"undefined"!=typeof document&&function(e){const t=St(e);let r;"loading"!==t.readyState?$n(e):(r=()=>{$n(e)},t.addEventListener("DOMContentLoaded",r))}();const kn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ln(e,t,r){$n(),s(()=>{let t=(t,n)=>{(function(e,t,r){let n=St(null==r?void 0:r.target);const o="undefined"!=typeof window?Ot(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?Ot(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,i="undefined"!=typeof window?Ot(null==r?void 0:r.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?Ot(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||n.activeElement instanceof o&&!kn.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable)&&"keyboard"===t&&r instanceof l&&!mn[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(xn())};return cn.add(t),()=>{cn.delete(t)}},t)}function Nn(e){const t=St(e);if("virtual"===En()){let r=Rt(t);sr(()=>{const n=Rt(t);n!==r&&n!==t.body||!e.isConnected||Wt(e)})}else Wt(e)}function Mn(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=l(e=>{if(e.target===e.currentTarget)return n&&n(e),o&&o(!1),!0},[n,o]),i=Ar(a),d=l(e=>{const t=St(e.target),n=t?Rt(t):Rt();e.target===e.currentTarget&&n===Dt(e.nativeEvent)&&(r&&r(e),o&&o(!0),i(e))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?d:void 0,onBlur:t||!n&&!o?void 0:a}}}function _n(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){t&&"production"!==process.env.NODE_ENV?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t};e(n),t&&r.stopPropagation()}}function Pn(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:_n(e.onKeyDown),onKeyUp:_n(e.onKeyUp)}}}let Tn=o.createContext(null);function In(e,t){let{focusProps:r}=Mn(e),{keyboardProps:n}=Pn(e),o=Ft(r,n),a=function(e){let t=d(Tn)||{};hr(t,e);let{ref:r,...n}=t;return n}(t),l=e.isDisabled?{}:a,c=i(e.autoFocus);s(()=>{c.current&&t.current&&Nn(t.current),c.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:Ft({...o,tabIndex:u},l)}}function Sn({children:e}){let t=u(()=>({register:()=>{}}),[]);return o.createElement(zr.Provider,{value:t},e)}function On(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=i({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:s}=cr(),c=l(e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),r&&r(e),o&&o(!1))},[r,o,a,s]),u=Ar(c),p=l(e=>{if(!e.currentTarget.contains(e.target))return;const t=St(e.target),r=Rt(t);if(!a.current.isFocusWithin&&r===Dt(e.nativeEvent)){n&&n(e),o&&o(!0),a.current.isFocusWithin=!0,u(e);let r=e.currentTarget;d(t,"focus",e=>{if(a.current.isFocusWithin&&!At(r,e.target)){let n=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Or(n,r);let o=Sr(n);c(o)}},{capture:!0})}},[n,o,u,d,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:c}}}let An=!1,Rn=0;function Dn(){An=!0,setTimeout(()=>{An=!1},50)}function Fn(e){"touch"===e.pointerType&&Dn()}function Hn(){if("undefined"!=typeof document)return 0===Rn&&("undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Fn):"test"===process.env.NODE_ENV&&document.addEventListener("touchend",Dn)),Rn++,()=>{Rn--,Rn>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Fn):"test"===process.env.NODE_ENV&&document.removeEventListener("touchend",Dn))}}function jn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[l,d]=a(!1),c=i({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s(Hn,[]);let{addGlobalListener:p,removeAllGlobalListeners:f}=cr(),{hoverProps:m,triggerHoverEnd:h}=u(()=>{let e=(e,n)=>{if(c.pointerType=n,o||"touch"===n||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let i=e.currentTarget;c.target=i,p(St(e.target),"pointerover",e=>{c.isHovered&&c.target&&!At(c.target,e.target)&&a(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:i,pointerType:n}),r&&r(!0),d(!0)},a=(e,t)=>{let o=c.target;c.pointerType="",c.target=null,"touch"!==t&&c.isHovered&&o&&(c.isHovered=!1,f(),n&&n({type:"hoverend",target:o,pointerType:t}),r&&r(!1),d(!1))},i={};return"undefined"!=typeof PointerEvent?(i.onPointerEnter=t=>{An&&"mouse"===t.pointerType||e(t,t.pointerType)},i.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&a(e,e.pointerType)}):"test"===process.env.NODE_ENV&&(i.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},i.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||An||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},i.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&a(e,"mouse")}),{hoverProps:i,triggerHoverEnd:a}},[t,r,n,o,c,p,f]);return s(()=>{o&&h({currentTarget:c.target},c.pointerType)},[o]),{hoverProps:m,isHovered:l}}function Vn(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}const Bn=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),zn=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Gn(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return Bn.has(t.script)}let t=e.split("-")[0];return zn.has(t)}const Un=Symbol.for("react-aria.i18n.locale");function Wn(){let e="undefined"!=typeof window&&window[Un]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Gn(e)?"rtl":"ltr"}}let Zn=Wn(),Yn=new Set;function Kn(){Zn=Wn();for(let e of Yn)e(Zn)}const qn=o.createContext(null);function Xn(){let e=function(){let e=kt(),[t,r]=a(Zn);if(s(()=>(0===Yn.size&&window.addEventListener("languagechange",Kn),Yn.add(r),()=>{Yn.delete(r),0===Yn.size&&window.removeEventListener("languagechange",Kn)}),[]),e)return{locale:"undefined"!=typeof window&&window[Un]||"en-US",direction:"ltr"};return t}();return d(qn)||e}function Qn(e,t){let r,{elementType:n="button",isDisabled:o,onPress:a,onPressStart:i,onPressEnd:l,onPressUp:d,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:p,href:f,target:m,rel:h,type:g="button"}=e;r="button"===n?{type:g,disabled:o,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==n||o?void 0:f,target:"a"===n?m:void 0,type:"input"===n?g:void 0,disabled:"input"===n?o:void 0,"aria-disabled":o&&"input"!==n?o:void 0,rel:"a"===n?h:void 0};let{pressProps:v,isPressed:b}=Qr({onPressStart:i,onPressEnd:l,onPressChange:s,onPress:a,onPressUp:d,onClick:p,isDisabled:o,preventFocusOnPress:c,ref:t}),{focusableProps:y}=In(e,t);u&&(y.tabIndex=o?-1:y.tabIndex);let w=Ft(y,v,Ut(e,{labelable:!0}));return{isPressed:b,buttonProps:Ft(r,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const Jn=o.createContext(null),eo="react-aria-focus-scope-restore";let to=null;function ro(e){let{children:t,contain:r,restoreFocus:n,autoFocus:a}=e,l=i(null),c=i(null),p=i([]),{parentNode:f}=d(Jn)||{},m=u(()=>new vo({scopeRef:p}),[p]);ht(()=>{let e=f||bo.root;if(bo.getTreeNode(e.scopeRef)&&to&&!so(to,e.scopeRef)){let t=bo.getTreeNode(to);t&&(e=t)}e.addChild(m),bo.addNode(m)},[m,f]),ht(()=>{let e=bo.getTreeNode(p);e&&(e.contain=!!r)},[r]),ht(()=>{var e;let t=null===(e=l.current)||void 0===e?void 0:e.nextSibling,r=[],n=e=>e.stopPropagation();for(;t&&t!==c.current;)r.push(t),t.addEventListener(eo,n),t=t.nextSibling;return p.current=r,()=>{for(let e of r)e.removeEventListener(eo,n)}},[t]),function(e,t,r){ht(()=>{if(t||r)return;let n=e.current;const o=St(n?n[0]:void 0);let a=t=>{let r=Dt(t);io(r,e.current)?to=e:ao(r)||(to=null)};return o.addEventListener("focusin",a,!1),null==n||n.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,t,r])}(p,n,r),function(e,t){let r=i(void 0),n=i(void 0);ht(()=>{let o=e.current;if(!t)return void(n.current&&(cancelAnimationFrame(n.current),n.current=void 0));const a=St(o?o[0]:void 0);let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!oo(e)||t.isComposing)return;let r=Rt(a),n=e.current;if(!n||!io(r,n))return;let o=ho(no(n),{tabbable:!0},n);if(!r)return;o.currentNode=r;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&co(i,!0)},l=t=>{to&&!so(to,e)||!io(Dt(t),e.current)?oo(e)&&!lo(Dt(t),e)?r.current?r.current.focus():to&&to.current&&po(to.current):oo(e)&&(r.current=Dt(t)):(to=e,r.current=Dt(t))},d=t=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let n=En(),o=("virtual"===n||null===n)&&nr()&&rr(),i=Rt(a);if(!o&&i&&oo(e)&&!lo(i,e)){to=e;let n=Dt(t);var l;if(n&&n.isConnected)r.current=n,null===(l=r.current)||void 0===l||l.focus();else to.current&&po(to.current)}})};return a.addEventListener("keydown",i,!1),a.addEventListener("focusin",l,!1),null==o||o.forEach(e=>e.addEventListener("focusin",l,!1)),null==o||o.forEach(e=>e.addEventListener("focusout",d,!1)),()=>{a.removeEventListener("keydown",i,!1),a.removeEventListener("focusin",l,!1),null==o||o.forEach(e=>e.removeEventListener("focusin",l,!1)),null==o||o.forEach(e=>e.removeEventListener("focusout",d,!1))}},[e,t]),ht(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}(p,r),function(e,t,r){const n=i("undefined"!=typeof document?Rt(St(e.current?e.current[0]:void 0)):null);ht(()=>{let n=e.current;const o=St(n?n[0]:void 0);if(!t||r)return;let a=()=>{to&&!so(to,e)||!io(Rt(o),e.current)||(to=e)};return o.addEventListener("focusin",a,!1),null==n||n.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,r]),ht(()=>{const n=St(e.current?e.current[0]:void 0);if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!oo(e)||t.isComposing)return;let r=n.activeElement;if(!lo(r,e)||!fo(e))return;let o=bo.getTreeNode(e);if(!o)return;let a=o.nodeToRestore,i=ho(n.body,{tabbable:!0});i.currentNode=r;let l=t.shiftKey?i.previousNode():i.nextNode();if(a&&a.isConnected&&a!==n.body||(a=void 0,o.nodeToRestore=void 0),(!l||!lo(l,e))&&a){i.currentNode=a;do{l=t.shiftKey?i.previousNode():i.nextNode()}while(lo(l,e));t.preventDefault(),t.stopPropagation(),l?co(l,!0):ao(a)?co(a,!0):r.blur()}};return r||n.addEventListener("keydown",o,!0),()=>{r||n.removeEventListener("keydown",o,!0)}},[e,t,r]),ht(()=>{const r=St(e.current?e.current[0]:void 0);if(!t)return;let o=bo.getTreeNode(e);var a;return o?(o.nodeToRestore=null!==(a=n.current)&&void 0!==a?a:void 0,()=>{let n=bo.getTreeNode(e);if(!n)return;let o=n.nodeToRestore,a=Rt(r);if(t&&o&&(a&&lo(a,e)||a===r.body&&fo(e))){let t=bo.clone();requestAnimationFrame(()=>{if(r.activeElement===r.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected)return void mo(r.nodeToRestore);r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&bo.getTreeNode(r.scopeRef)){return void mo(uo(r.scopeRef.current,!0))}r=r.parent}}})}}):void 0},[e,t])}(p,n,r),function(e,t){const r=o.useRef(t);s(()=>{if(r.current){to=e;const t=St(e.current?e.current[0]:void 0);!io(Rt(t),to.current)&&e.current&&po(e.current)}r.current=!1},[e])}(p,a),s(()=>{const e=Rt(St(p.current?p.current[0]:void 0));let t=null;if(io(e,p.current)){for(let r of bo.traverse())r.scopeRef&&io(e,r.scopeRef.current)&&(t=r);t===bo.getTreeNode(p)&&(to=t.scopeRef)}},[p]),ht(()=>()=>{var e,t,r;let n=null!==(r=null===(t=bo.getTreeNode(p))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;p!==to&&!so(p,to)||n&&!bo.getTreeNode(n)||(to=n),bo.removeTreeNode(p)},[p]);let h=u(()=>function(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let d=n||Rt(St(null!==(l=r[0])&&void 0!==l?l:void 0)),s=r[0].previousElementSibling,c=ho(no(r),{tabbable:o,accept:i},r);c.currentNode=io(d,r)?d:s;let u=c.nextNode();return!u&&a&&(c.currentNode=s,u=c.nextNode()),u&&co(u,!0),u},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let d=n||Rt(St(null!==(l=r[0])&&void 0!==l?l:void 0)),s=r[r.length-1].nextElementSibling,c=ho(no(r),{tabbable:o,accept:i},r);c.currentNode=io(d,r)?d:s;let u=c.previousNode();return!u&&a&&(c.currentNode=s,u=c.previousNode()),u&&co(u,!0),u},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=ho(no(r),{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let i=a.nextNode();return i&&co(i,!0),i},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=ho(no(r),{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let i=a.previousNode();return i&&co(i,!0),i}}}(p),[]),g=u(()=>({focusManager:h,parentNode:m}),[m,h]);return o.createElement(Jn.Provider,{value:g},o.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,o.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}function no(e){return e[0].parentElement}function oo(e){let t=bo.getTreeNode(to);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function ao(e){return lo(e)}function io(e,t){return!!e&&(!!t&&t.some(t=>t.contains(e)))}function lo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of bo.traverse(bo.getTreeNode(t)))if(r&&io(e,r.current))return!0;return!1}function so(e,t){var r;let n=null===(r=bo.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function co(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{Nn(e)}catch{}}function uo(e,t=!0){let r=e[0].previousElementSibling,n=no(e),o=ho(n,{tabbable:t},e);o.currentNode=r;let a=o.nextNode();return t&&!a&&(n=no(e),o=ho(n,{tabbable:!1},e),o.currentNode=r,a=o.nextNode()),a}function po(e,t=!0){co(uo(e,t))}function fo(e){let t=bo.getTreeNode(to);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function mo(e){e.dispatchEvent(new CustomEvent(eo,{bubbles:!0,cancelable:!0}))&&co(e)}function ho(e,t,r){let n=(null==t?void 0:t.tabbable)?Mr:Nr,o=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=St(o),i=function(e,t,r,n){return e.createTreeWalker(t,r,n)}(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;if(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))return NodeFilter.FILTER_REJECT;if((null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")){if(!function(e){if(e.checked)return!0;let t=[];if(e.form){var r,n;let o=null===(n=e.form)||void 0===n||null===(r=n.elements)||void 0===r?void 0:r.namedItem(e.name);t=[...null!=o?o:[]]}else t=[...St(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e))return NodeFilter.FILTER_REJECT;if("INPUT"===i.currentNode.tagName&&"radio"===i.currentNode.type&&i.currentNode.name===e.name)return NodeFilter.FILTER_REJECT}return!n(e)||r&&!io(e,r)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class go{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let o=new vo({scopeRef:e});n.addChild(o),o.parent=n,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&io(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new go;var r;for(let n of this.traverse())t.addTreeNode(n.scopeRef,null!==(r=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new vo({scopeRef:null}),this.fastMap.set(null,this.root)}}class vo{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let bo=new go;function yo(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=i({isFocused:!1,isFocusVisible:t||xn()}),[d,s]=a(!1),[c,u]=a(()=>o.current.isFocused&&o.current.isFocusVisible),p=l(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),f=l(e=>{o.current.isFocused=e,s(e),p()},[p]);Ln(e=>{o.current.isFocusVisible=e,p()},[],{isTextInput:r});let{focusProps:m}=Mn({isDisabled:n,onFocusChange:f}),{focusWithinProps:h}=On({isDisabled:!n,onFocusWithinChange:f});return{isFocused:d,isFocusVisible:c,focusProps:n?h:m}}const wo={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$o={...wo,customError:!0,valid:!1},Co={isInvalid:!1,validationDetails:wo,validationErrors:[]},xo=p({}),Eo="__formValidationState"+Date.now();function ko(e){if(e[Eo]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}=e[Eo];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}}return function(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:l,validate:c,validationBehavior:p="aria"}=e;r&&(t||(t="invalid"===r));let f=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:$o}:null,m=u(()=>{if(!c||null==o)return null;let e=function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return Lo(r)}return[]}(c,o);return No(e)},[c,o]);(null==l?void 0:l.validationDetails.valid)&&(l=void 0);let h=d(xo),g=u(()=>n?Array.isArray(n)?n.flatMap(e=>Lo(h[e])):Lo(h[n]):[],[h,n]),[v,b]=a(h),[y,w]=a(!1);h!==v&&(b(h),w(!1));let $=u(()=>No(y?[]:g),[y,g]),C=i(Co),[x,E]=a(Co),k=i(Co),L=()=>{if(!N)return;M(!1);let e=m||l||C.current;Mo(e,k.current)||(k.current=e,E(e))},[N,M]=a(!1);return s(L),{realtimeValidation:f||$||m||l||Co,displayValidation:"native"===p?f||$||x:f||$||m||l||x,updateValidation(e){"aria"!==p||Mo(x,e)?C.current=e:E(e)},resetValidation(){let e=Co;Mo(e,k.current)||(k.current=e,E(e)),"native"===p&&M(!1),w(!0)},commitValidation(){"native"===p&&M(!0),w(!0)}}}(e)}function Lo(e){return e?Array.isArray(e)?e:[e]:[]}function No(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:$o}:null}function Mo(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}function _o(e,t,r){let{validationBehavior:n,focus:o}=e;ht(()=>{if("native"===n&&(null==r?void 0:r.current)&&!r.current.disabled){let n=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(n),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:Po(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e});let a=i(!1),l=fr(()=>{a.current||t.resetValidation()}),d=fr(e=>{var n;t.displayValidation.isInvalid||t.commitValidation();let a=null==r||null===(n=r.current)||void 0===n?void 0:n.form;var i,l;!e.defaultPrevented&&r&&a&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}(a)===r.current&&(o?o():null===(i=r.current)||void 0===i||i.focus(),sn=l="keyboard",hn(l,null));e.preventDefault()}),c=fr(()=>{t.commitValidation()});s(()=>{let e=null==r?void 0:r.current;if(!e)return;let t=e.form,n=null==t?void 0:t.reset;return t&&(t.reset=()=>{a.current=!window.event||"message"===window.event.type&&window.event.target instanceof MessagePort,null==n||n.call(t),a.current=!1}),e.addEventListener("invalid",d),e.addEventListener("change",c),null==t||t.addEventListener("reset",l),()=>{e.removeEventListener("invalid",d),e.removeEventListener("change",c),null==t||t.removeEventListener("reset",l),t&&(t.reset=n)}},[r,n])}function Po(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function To(e,t,r){let n=ko({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:i}=n.displayValidation,{labelProps:l,inputProps:d,isSelected:c,isPressed:p,isDisabled:f,isReadOnly:m}=function(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:a,name:i,form:l,children:d,"aria-label":s,"aria-labelledby":c,validationState:u="valid",isInvalid:p,onPressStart:f,onPressEnd:m,onPressChange:h,onPress:g,onPressUp:v,onClick:b}=e;null!=d||null!=s||null!=c||"production"===process.env.NODE_ENV||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:w}=Qr({onPressStart:f,onPressEnd:m,onPressChange:h,onPress:g,onPressUp:v,onClick:b,isDisabled:n}),{pressProps:$,isPressed:C}=Qr({onPressStart:f,onPressEnd:m,onPressChange:h,onPressUp:v,onClick:b,onPress(e){var n;null==g||g(e),t.toggle(),null===(n=r.current)||void 0===n||n.focus()},isDisabled:n||o}),{focusableProps:x}=In(e,r),E=Ft(y,x),k=Ut(e,{labelable:!0});return $r(r,t.defaultSelected,t.setSelected),{labelProps:Ft($,{onClick:e=>e.preventDefault()}),inputProps:Ft(k,{"aria-invalid":p||"invalid"===u||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:n,...null==a?{}:{value:a},name:i,form:l,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:w||C,isDisabled:n,isReadOnly:o,isInvalid:p||"invalid"===u}}({...e,isInvalid:o},t,r);_o(e,n,r);let{isIndeterminate:h,isRequired:g,validationBehavior:v="aria"}=e;s(()=>{r.current&&(r.current.indeterminate=!!h)});let{pressProps:b}=Qr({isDisabled:f||m,onPress(){let{[Eo]:t}=e,{commitValidation:r}=t||n;r()}});return{labelProps:Ft(l,b,u(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:{...d,checked:c,"aria-required":g&&"aria"===v||void 0,required:g&&"native"===v},isSelected:c,isPressed:p,isDisabled:f,isReadOnly:m,isInvalid:o,validationErrors:a,validationDetails:i}}function Io(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=_t(t);let i=_t(),l={};r?(n=n?`${i} ${n}`:i,l={id:i,htmlFor:"label"===a?t:void 0}):n||o||"production"===process.env.NODE_ENV||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=function(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;if(r=_t(r),o&&n){let e=new Set([r,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return n||o||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:d}}const So={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Oo(e){let{children:t,elementType:r="div",isFocusable:n,style:i,...l}=e,{visuallyHiddenProps:d}=function(e={}){let{style:t,isFocusable:r}=e,[n,o]=a(!1),{focusWithinProps:i}=On({isDisabled:!r,onFocusWithinChange:e=>o(e)});return{visuallyHiddenProps:{...i,style:u(()=>n?t:t?{...So,...t}:So,[n])}}}(e);return o.createElement(r,Ft(l,d),t)}function Ao(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:d=!1,isReadOnly:u=!1,type:p="text",validationBehavior:f="aria"}=e,[m,h]=function(e,t,r){let[n,o]=a(e||t),d=i(n),u=i(void 0!==e),p=void 0!==e;s(()=>{let e=u.current;e!==p&&"production"!==process.env.NODE_ENV&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}.`),u.current=p},[p]);let f=p?e:n;Tr(()=>{d.current=f});let[,m]=c(()=>({}),{}),h=l((e,...t)=>{let n="function"==typeof e?e(d.current):e;Object.is(d.current,n)||(d.current=n,o(n),m(),null==r||r(n,...t))},[r]);return[f,h]}(e.value,e.defaultValue||"",e.onChange),{focusableProps:g}=In(e,t),v=ko({...e,value:m}),{isInvalid:b,validationErrors:y,validationDetails:w}=v.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:E}=function(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:a,fieldProps:i}=Io(e),l=Tt([Boolean(t),Boolean(r),n,o]),d=Tt([Boolean(t),Boolean(r),n,o]);return i=Ft(i,{"aria-describedby":[l,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:i,descriptionProps:{id:l},errorMessageProps:{id:d}}}({...e,isInvalid:b,errorMessage:e.errorMessage||y}),k=Ut(e,{labelable:!0});const L={type:p,pattern:e.pattern};let[N]=a(m);var M;return $r(t,null!==(M=e.defaultValue)&&void 0!==M?M:N,h),_o(e,v,t),{labelProps:$,inputProps:Ft(k,"input"===r?L:void 0,{disabled:n,readOnly:u,required:d&&"native"===f,"aria-required":d&&"aria"===f||void 0,"aria-invalid":b||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:m,onChange:e=>h(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(o.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...g,...C}),descriptionProps:x,errorMessageProps:E,isInvalid:b,validationErrors:y,validationDetails:w}}const Ro={top:"top",bottom:"top",left:"left",right:"left"},Do={top:"bottom",bottom:"top",left:"right",right:"left"},Fo={top:"left",left:"top"},Ho={top:"height",left:"width"},jo={width:"totalWidth",height:"totalHeight"},Vo={};function Bo(e,t){let r=0,n=0,o=0,a=0,i=0,l=0,d={};var s;let c=(null!==(s=null==t?void 0:t.scale)&&void 0!==s?s:1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let s=document.documentElement;var u,p;o=s.clientWidth,a=s.clientHeight,r=null!==(u=null==t?void 0:t.width)&&void 0!==u?u:o,n=null!==(p=null==t?void 0:t.height)&&void 0!==p?p:a,d.top=s.scrollTop||e.scrollTop,d.left=s.scrollLeft||e.scrollLeft,t&&(i=t.offsetTop,l=t.offsetLeft)}else({width:r,height:n,top:i,left:l}=qo(e,!1)),d.top=e.scrollTop,d.left=e.scrollLeft,o=r,a=n;var f,m;tr()&&("BODY"===e.tagName||"HTML"===e.tagName)&&c&&(d.top=0,d.left=0,i=null!==(f=null==t?void 0:t.pageTop)&&void 0!==f?f:0,l=null!==(m=null==t?void 0:t.pageLeft)&&void 0!==m?m:0);return{width:r,height:n,totalWidth:o,totalHeight:a,scroll:d,top:i,left:l}}function zo(e,t,r,n,o,a,i){var l;let d=null!==(l=o.scroll[e])&&void 0!==l?l:0,s=n[Ho[e]],c=i[e]+n.scroll[Ro[e]]+a,u=i[e]+n.scroll[Ro[e]]+s-a,p=t-d+n.scroll[Ro[e]]+i[e]-n[Ro[e]],f=t-d+r+n.scroll[Ro[e]]+i[e]-n[Ro[e]];return p<c?c-p:f>u?Math.max(u-f,c-p):0}function Go(e){if(Vo[e])return Vo[e];let[t,r]=e.split(" "),n=Ro[t]||"right",o=Fo[n];Ro[r]||(r="center");let a=Ho[n],i=Ho[o];return Vo[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:a,crossSize:i},Vo[e]}function Uo(e,t,r,n,o,a,i,l,d,s,c){let{placement:u,crossPlacement:p,axis:f,crossAxis:m,size:h,crossSize:g}=n,v={};var b,y,w,$,C;v[m]=null!==(b=e[m])&&void 0!==b?b:0,"center"===p?v[m]+=((null!==(y=e[g])&&void 0!==y?y:0)-(null!==(w=r[g])&&void 0!==w?w:0))/2:p!==m&&(v[m]+=(null!==($=e[g])&&void 0!==$?$:0)-(null!==(C=r[g])&&void 0!==C?C:0)),v[m]+=a;const x=e[m]-r[g]+d+s,E=e[m]+e[g]-d-s;if(v[m]=Ir(v[m],x,E),u===f){let t=l?c[h]:c[jo[h]];v[Do[f]]=Math.floor(t-e[f]+o)}else v[f]=Math.floor(e[f]+e[h]+o);return v}function Wo(e,t,r,n,o,a,i,l){let{placement:d,axis:s,size:c}=a;var u,p,f,m;return d===s?Math.max(0,r[s]-(null!==(u=i.scroll[s])&&void 0!==u?u:0)-(e[s]+(l?t[s]:0))-(null!==(p=n[s])&&void 0!==p?p:0)-n[Do[s]]-o):Math.max(0,e[c]+e[s]+(l?t[s]:0)-r[s]-r[c]+(null!==(f=i.scroll[s])&&void 0!==f?f:0)-(null!==(m=n[s])&&void 0!==m?m:0)-n[Do[s]]-o)}function Zo(e,t,r,n,o,a,i,l,d,s,c,u,p,f,m,h,g,v){let b=Go(e),{size:y,crossAxis:w,crossSize:$,placement:C,crossPlacement:x}=b,E=Uo(t,0,r,b,c,u,0,p,m,h,d),k=c,L=Wo(l,s,t,o,a+c,b,d,g);if(i&&r[y]>L){let e=Go(`${Do[C]} ${x}`),n=Uo(t,0,r,e,c,u,0,p,m,h,d);Wo(l,s,t,o,a+c,e,d,g)>L&&(b=e,E=n,k=c)}let N="bottom";"top"===b.axis?"top"===b.placement?N="top":"bottom"===b.placement&&(N="bottom"):"top"===b.crossAxis&&("top"===b.crossPlacement?N="bottom":"bottom"===b.crossPlacement&&(N="top"));let M=zo(w,E[w],r[$],l,d,a,s);E[w]+=M;let _=function(e,t,r,n,o,a,i,l,d,s,c){var u,p;let f=(null!=e.top?e.top:d[jo.height]-(null!==(u=e.bottom)&&void 0!==u?u:0)-i)-(null!==(p=d.scroll.top)&&void 0!==p?p:0),m=s?r.top:0;var h,g,v;let b=Math.max(t.top+m,(null!==(h=null==c?void 0:c.offsetTop)&&void 0!==h?h:t.top)+m),y=Math.min(t.top+t.height+m,(null!==(g=null==c?void 0:c.offsetTop)&&void 0!==g?g:0)+(null!==(v=null==c?void 0:c.height)&&void 0!==v?v:0));var w,$,C,x;return"top"!==l?Math.max(0,y-f-((null!==(w=o.top)&&void 0!==w?w:0)+(null!==($=o.bottom)&&void 0!==$?$:0)+a)):Math.max(0,f+i-b-((null!==(C=o.top)&&void 0!==C?C:0)+(null!==(x=o.bottom)&&void 0!==x?x:0)+a))}(E,l,s,0,o,a,r.height,N,d,g,v);f&&f<_&&(_=f),r.height=Math.min(r.height,_),E=Uo(t,0,r,b,k,u,0,p,m,h,d),M=zo(w,E[w],r[$],l,d,a,s),E[w]+=M;let P={},T=t[w]-E[w]-o[Ro[w]],I=T+.5*t[$];const S=m/2+h;var O,A,R,D;const F="left"===Ro[w]?(null!==(O=o.left)&&void 0!==O?O:0)+(null!==(A=o.right)&&void 0!==A?A:0):(null!==(R=o.top)&&void 0!==R?R:0)+(null!==(D=o.bottom)&&void 0!==D?D:0),H=r[$]-F-m/2-h,j=Ir(I,t[w]+m/2-(E[w]+o[Ro[w]]),t[w]+t[$]-m/2-(E[w]+o[Ro[w]]));P[w]=Ir(j,S,H),({placement:C,crossPlacement:x}=b),m?T=P[w]:"right"===x?T+=t[$]:"center"===x&&(T+=t[$]/2);let V="left"===C||"top"===C?r[y]:0,B={x:"top"===C||"bottom"===C?T:V,y:"left"===C||"right"===C?T:V};return{position:E,maxHeight:_,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:C,triggerAnchorPoint:B}}function Yo(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:a,shouldFlip:i,boundaryElement:l,offset:d,crossOffset:s,maxHeight:c,arrowSize:u=0,arrowBoundaryOffset:p=0}=e,f="undefined"!=typeof document?window.visualViewport:null,m=n instanceof HTMLElement?function(e){let t=e.offsetParent;t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!Qo(t)&&(t=document.documentElement);if(null==t)for(t=e.parentElement;t&&!Qo(t);)t=t.parentElement;return t||document.documentElement}(n):document.documentElement,h=m===document.documentElement;const g=window.getComputedStyle(m).position;let v=!!g&&"static"!==g,b=h?qo(r,!1):Xo(r,m,!1);if(!h){let{marginTop:e,marginLeft:t}=window.getComputedStyle(r);b.top+=parseInt(e,10)||0,b.left+=parseInt(t,10)||0}let y=qo(n,!0),w=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(n);var $,C,x,E;y.width+=(null!==($=w.left)&&void 0!==$?$:0)+(null!==(C=w.right)&&void 0!==C?C:0),y.height+=(null!==(x=w.top)&&void 0!==x?x:0)+(null!==(E=w.bottom)&&void 0!==E?E:0);(k=o).scrollTop,k.scrollLeft,k.scrollWidth,k.scrollHeight;var k;return Zo(t,b,y,0,w,a,i,Bo(l,f),Bo(m,f),Xo(l,m,!1),d,s,v,c,u,p,l.contains(m),f)}function Ko(e,t){let{top:r,left:n,width:o,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,a=e.offsetHeight),{top:r,left:n,width:o,height:a}}function qo(e,t){let{top:r,left:n,width:o,height:a}=Ko(e,t),{scrollTop:i,scrollLeft:l,clientTop:d,clientLeft:s}=document.documentElement;return{top:r+i-d,left:n+l-s,width:o,height:a}}function Xo(e,t,r){let n,o=window.getComputedStyle(e);if("fixed"===o.position)n=Ko(e,r);else{n=qo(e,r);let o=qo(t,r),a=window.getComputedStyle(t);o.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(o.marginTop,10)||0,n.left-=parseInt(o.marginLeft,10)||0,n}function Qo(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}const Jo=new WeakMap;let ea="undefined"!=typeof document?window.visualViewport:null;function ta(e){let{direction:t}=Xn(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:d,scrollRef:c=o,placement:u="bottom",containerPadding:p=12,shouldFlip:f=!0,boundaryElement:m=("undefined"!=typeof document?document.body:null),offset:h=0,crossOffset:g=0,shouldUpdatePosition:v=!0,isOpen:b=!0,onClose:y,maxHeight:w,arrowBoundaryOffset:$=0}=e,[C,x]=a(null),E=[v,u,o.current,n.current,null==d?void 0:d.current,c.current,p,f,m,h,g,b,t,w,$,r],k=i(null==ea?void 0:ea.scale);s(()=>{b&&(k.current=null==ea?void 0:ea.scale)},[b]);let L=l(()=>{if(!(!1!==v&&b&&o.current&&n.current&&m))return;if((null==ea?void 0:ea.scale)!==k.current)return;let e=null;if(c.current&&c.current.contains(document.activeElement)){var a;let t=null===(a=document.activeElement)||void 0===a?void 0:a.getBoundingClientRect(),r=c.current.getBoundingClientRect();var i,l;if(e={type:"top",offset:(null!==(i=null==t?void 0:t.top)&&void 0!==i?i:0)-r.top},e.offset>r.height/2)e.type="bottom",e.offset=(null!==(l=null==t?void 0:t.bottom)&&void 0!==l?l:0)-r.bottom}let s=o.current;var y,C;!w&&o.current&&(s.style.top="0px",s.style.bottom="",s.style.maxHeight=(null!==(C=null===(y=window.visualViewport)||void 0===y?void 0:y.height)&&void 0!==C?C:window.innerHeight)+"px");let E=Yo({placement:ra(u,t),overlayNode:o.current,targetNode:n.current,scrollNode:c.current||o.current,padding:p,shouldFlip:f,boundaryElement:m,offset:h,crossOffset:g,maxHeight:w,arrowSize:null!=r?r:(null==d?void 0:d.current)?Ko(d.current,!0).width:0,arrowBoundaryOffset:$});if(E.position){if(s.style.top="",s.style.bottom="",s.style.left="",s.style.right="",Object.keys(E.position).forEach(e=>s.style[e]=E.position[e]+"px"),s.style.maxHeight=null!=E.maxHeight?E.maxHeight+"px":"",e&&document.activeElement&&c.current){let t=document.activeElement.getBoundingClientRect(),r=c.current.getBoundingClientRect(),n=t[e.type]-r[e.type];c.current.scrollTop+=n-e.offset}x(E)}},E);var N;ht(L,E),ht(()=>(window.addEventListener("resize",N,!1),()=>{window.removeEventListener("resize",N,!1)}),[N=L]),mr({ref:o,onResize:L}),mr({ref:n,onResize:L});let M=i(!1);ht(()=>{let e,t=()=>{M.current=!0,clearTimeout(e),e=setTimeout(()=>{M.current=!1},500),L()},r=()=>{M.current&&t()};return null==ea||ea.addEventListener("resize",t),null==ea||ea.addEventListener("scroll",r),()=>{null==ea||ea.removeEventListener("resize",t),null==ea||ea.removeEventListener("scroll",r)}},[L]);let _=l(()=>{M.current||null==y||y()},[y,M]);var P,T,I;return function(e){let{triggerRef:t,isOpen:r,onClose:n}=e;s(()=>{if(!r||null===n)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let o=n||Jo.get(t.current);o&&o()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[r,n,t])}({triggerRef:n,isOpen:b,onClose:y&&_}),{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...null==C?void 0:C.position,maxHeight:null!==(P=null==C?void 0:C.maxHeight)&&void 0!==P?P:"100vh"}},placement:null!==(T=null==C?void 0:C.placement)&&void 0!==T?T:null,triggerAnchorPoint:null!==(I=null==C?void 0:C.triggerAnchorPoint)&&void 0!==I?I:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==C?void 0:C.arrowOffsetLeft,top:null==C?void 0:C.arrowOffsetTop}},updatePosition:L}}function ra(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const na=[];function oa(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:d}=e;s(()=>{if(o&&!na.includes(t))return na.push(t),()=>{let e=na.indexOf(t);e>=0&&na.splice(e,1)}},[o,t]);let c=()=>{na[na.length-1]===t&&r&&r()};!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,a=i({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=fr(e=>{r&&Vn(e,t)&&(o&&o(e),a.current.isPointerDown=!0)}),d=fr(e=>{r&&r(e)});s(()=>{let e=a.current;if(n)return;const r=t.current,o=St(r);if("undefined"!=typeof PointerEvent){let r=r=>{e.isPointerDown&&Vn(r,t)&&d(r),e.isPointerDown=!1};return o.addEventListener("pointerdown",l,!0),o.addEventListener("click",r,!0),()=>{o.removeEventListener("pointerdown",l,!0),o.removeEventListener("click",r,!0)}}if("test"===process.env.NODE_ENV){let r=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&Vn(r,t)&&d(r),e.isPointerDown=!1},n=r=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&Vn(r,t)&&d(r),e.isPointerDown=!1};return o.addEventListener("mousedown",l,!0),o.addEventListener("mouseup",r,!0),o.addEventListener("touchstart",l,!0),o.addEventListener("touchend",n,!0),()=>{o.removeEventListener("mousedown",l,!0),o.removeEventListener("mouseup",r,!0),o.removeEventListener("touchstart",l,!0),o.removeEventListener("touchend",n,!0)}}},[t,n])}({ref:t,onInteractOutside:a&&o?e=>{d&&!d(e.target)||(na[na.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:void 0,onInteractOutsideStart:e=>{d&&!d(e.target)||na[na.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:u}=On({isDisabled:!n,onBlurWithin:e=>{e.relatedTarget&&!lo(e.relatedTarget,to)&&(d&&!d(e.relatedTarget)||null==r||r())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||l||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),c())},...u},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const aa="undefined"!=typeof document&&window.visualViewport;let ia,la=0;function da(e={}){let{isDisabled:t}=e;ht(()=>{if(!t)return la++,1===la&&(ia=er()?function(){let e,t=!1,r=r=>{let n=r.target;e=gr(n)?n:vr(n,!0),t=!1;let o=n.ownerDocument.defaultView.getSelection();o&&!o.isCollapsed&&o.containsNode(n,!0)&&(t=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(t=!0)},n=document.createElement("style");n.textContent="\n@layer {\n * {\n overscroll-behavior: contain;\n }\n}".trim(),document.head.prepend(n);let o=r=>{2===r.touches.length||t||(e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&r.preventDefault():r.preventDefault())},a=e=>{let t=e.target,r=e.relatedTarget;if(r&&yr(r))r.focus({preventScroll:!0}),ua(r,yr(t));else if(!r){var n;let e=null===(n=t.parentElement)||void 0===n?void 0:n.closest("[tabindex]");null==e||e.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=null!=document.activeElement&&yr(document.activeElement);i.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||ua(this,t)};let l=It(ca(document,"touchstart",r,{passive:!1,capture:!0}),ca(document,"touchmove",o,{passive:!1,capture:!0}),ca(document,"blur",a,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=i}}():function(){let e=window.innerWidth-document.documentElement.clientWidth;return It(e>0&&("scrollbarGutter"in document.documentElement.style?sa(document.documentElement,"scrollbarGutter","stable"):sa(document.documentElement,"paddingRight",`${e}px`)),sa(document.documentElement,"overflow","hidden"))}()),()=>{la--,0===la&&ia()}},[t])}function sa(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function ca(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function ua(e,t){t||!aa?pa(e):aa.addEventListener("resize",()=>pa(e),{once:!0})}function pa(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let e=vr(r);if(e!==document.documentElement&&e!==document.body&&e!==r){let t=e.getBoundingClientRect(),n=r.getBoundingClientRect();if(n.top<t.top||n.bottom>t.top+r.clientHeight){let r=t.bottom;aa&&(r=Math.min(r,aa.offsetTop+aa.height));let o=n.top-t.top-((r-t.top)/2-n.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+o)),behavior:"smooth"})}}r=e.parentElement}}const fa=p({});const ma="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype;let ha=new WeakMap,ga=[];function va(e,t){let r=Ot(null==e?void 0:e[0]),n=t instanceof r.Element?{root:t}:t;var o;let a=null!==(o=null==n?void 0:n.root)&&void 0!==o?o:document.body,i=(null==n?void 0:n.shouldUseInert)&&ma,l=new Set(e),d=new Set,s=(e,t)=>{i&&e instanceof r.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof r.HTMLElement&&(e.inert=!1))},c=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(d.has(e)||l.has(e)||e.parentElement&&d.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&u(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)u(e),e=r.nextNode()}},u=e=>{var t;let n=null!==(t=ha.get(e))&&void 0!==t?t:0;var o;(o=e,(i&&o instanceof r.HTMLElement?o.inert:"true"===o.getAttribute("aria-hidden"))&&0===n)||(0===n&&s(e,!0),d.add(e),ha.set(e,n+1))};ga.length&&ga[ga.length-1].disconnect(),c(a);let p=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&![...l,...d].some(e=>e.contains(t.target)))for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&c(e):l.add(e)});p.observe(a,{childList:!0,subtree:!0});let f={visibleNodes:l,hiddenNodes:d,observe(){p.observe(a,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return ga.push(f),()=>{p.disconnect();for(let e of d){let t=ha.get(e);null!=t&&(1===t?(s(e,!1),ha.delete(e)):ha.set(e,t-1))}f===ga[ga.length-1]?(ga.pop(),ga.length&&ga[ga.length-1].observe()):ga.splice(ga.indexOf(f),1)}}function ba(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:a,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...d}=e,c="SubmenuTrigger"===d.trigger,{overlayProps:u,underlayProps:p}=oa({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||c,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},null!=o?o:n),{overlayProps:f,arrowProps:m,placement:h,triggerAnchorPoint:g}=ta({...d,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:a&&!c?t.close:null});return da({isDisabled:a||!t.isOpen}),s(()=>{var e,r;if(t.isOpen&&n.current)return a?function(e){let t=ga[ga.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}(null!==(e=null==o?void 0:o.current)&&void 0!==e?e:n.current):va([null!==(r=null==o?void 0:o.current)&&void 0!==r?r:n.current],{shouldUseInert:!0})},[a,t.isOpen,n,o]),{popoverProps:Ft(u,f),arrowProps:m,underlayProps:p,placement:h,triggerAnchorPoint:g}}const ya=o.createContext(null);function wa(e){let t=kt(),{portalContainer:r=(t?null:document.body),isExiting:n}=e,[i,l]=a(!1),s=u(()=>({contain:i,setContain:l}),[i,l]),{getContainer:c}=null!==(p=d(fa))&&void 0!==p?p:{};var p;if(!e.portalContainer&&c&&(r=c()),!r)return null;let f=e.children;return e.disableFocusManagement||(f=o.createElement(ro,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!n},f)),f=o.createElement(ya.Provider,{value:s},o.createElement(Sn,null,f)),y.createPortal(f,r)}var $a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};const Ca=f(({children:t,className:r,borderRadius:n,disabled:o,expand:a,onHover:l,shadow:d,style:s,...c},u)=>{const p=i(null),f=u||p,{buttonProps:m}=Qn({...c,isDisabled:o??!1},f),{hoverProps:h}=jn({isDisabled:o??!1}),{isFocusVisible:g,focusProps:v}=yo();return e("button",{ref:f,className:mt("active:scale-95 disabled:opacity-80 disabled:pointer-events-none cursor-pointer h-auto outline-none relative transition-all duration-100 ease-in-out will-change-[transform,opacity]",a&&"w-full",d&&'before:content-[""] before:absolute before:top-0 before:left-0 before:right-0 before:bottom-0 before:rounded-[inherit] before:bg-[linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05))] dark:before:bg-[linear-gradient(rgba(255,255,255,0.05),rgba(255,255,255,0.05))] before:opacity-0 before:transition-opacity before:duration-100 before:ease-in-out hover:before:opacity-100',g&&"outline-brand-base outline outline-thick outline-offset-[0.125rem]",r),style:{borderRadius:n??"var(--button-radius, 9999px)",...s},...Ft(m,h,v),"aria-disabled":o,onMouseEnter:l,onTouchStart:l,children:e("div",{className:"flex flex-col",children:t})})});Ca.displayName="ButtonContainer";const xa=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0164 14.1589C18.3279 12.9836 18.3279 11.0163 17.0164 9.84113L9.66738 3.25527C9.25608 2.88669 8.62386 2.92132 8.25528 3.33261C7.8867 3.74391 7.92132 4.37613 8.33262 4.74471L15.6817 11.3306C16.1061 11.7109 16.1061 12.2891 15.6817 12.6694L8.33262 19.2553C7.92132 19.6239 7.8867 20.2561 8.25528 20.6674C8.62386 21.0787 9.25608 21.1133 9.66738 20.7447L17.0164 14.1589Z",fill:"currentColor"})]}),Ea=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7069 5.70735C20.0974 5.31683 20.0974 4.68366 19.7069 4.29314C19.3163 3.90261 18.6832 3.90261 18.2926 4.29314L12 10.5858L5.70735 4.29314C5.31682 3.90261 4.68366 3.90261 4.29314 4.29314C3.90261 4.68366 3.90261 5.31683 4.29314 5.70735L10.5858 12L4.29295 18.2928C3.90242 18.6834 3.90242 19.3165 4.29295 19.7071C4.68347 20.0976 5.31664 20.0976 5.70716 19.7071L12 13.4142L18.2928 19.7071C18.6834 20.0976 19.3165 20.0976 19.707 19.7071C20.0976 19.3165 20.0976 18.6834 19.707 18.2928L13.4142 12L19.7069 5.70735Z",fill:"currentColor"})]});function ka(e){const{slots:t,base:r,variants:n,compoundVariants:o,defaultVariants:a}=e;return function(e){const i={...a,...e},l={};for(const e of t){const t=[];if(r[e]&&t.push(r[e]),n)for(const[r,o]of Object.entries(n)){const n=i[r];if(null==n)continue;const a=o[String(n)];a?.[e]&&t.push(a[e])}if(o)for(const r of o){const{class:n,...o}=r;Object.entries(o).every(([e,t])=>i[e]===t)&&n[e]&&t.push(n[e])}l[e]=mt(...t)}return l}}const La=ka({slots:["container","label","description","icon","button","focus"],base:{container:"px-4 py-3 rounded-[10px] w-full",button:["cursor-pointer outline-none","focus-visible:outline-brand-base focus-visible:outline focus-visible:outline-thick","focus-visible:outline-offset-[0.125rem] focus-visible:rounded-sm"].join(" "),label:"text-left",description:"",icon:"",focus:""},variants:{size:{sm:{label:"text-sm"},md:{label:"text-base"},lg:{label:"text-lg"}},variant:{branded:{container:"bg-brand-lightest focus-visible:outline-brand-lightest",label:"text-brand-darkest",description:"text-brand-darkest",icon:"text-brand-darkest",button:"text-brand-darkest"},success:{container:"bg-positive-lightest focus-visible:outline-positive-lightest",label:"text-positive-darkest",description:"text-positive-darkest",icon:"text-positive-darkest",button:"text-positive-darkest"},error:{container:"bg-negative-lightest focus-visible:outline-negative-lightest",label:"text-negative-darkest dark:text-negative-base",description:"text-negative-darkest dark:text-negative-base",icon:"text-negative-darkest dark:text-negative-base",button:"text-negative-darkest dark:text-negative-base"},warning:{container:"bg-warning-lightest focus-visible:outline-warning-lightest",label:"text-warning-darkest",description:"text-warning-darkest",icon:"text-warning-darkest",button:"text-warning-darkest"},neutral:{container:"bg-surface-secondary focus-visible:outline-surface-secondary",label:"text-text-secondary",description:"text-text-secondary",icon:"text-text-secondary",button:"text-text-secondary"}},icon:{true:{description:"ml-7"}},dismissible:{true:{description:"mr-7"}},interactive:{true:{container:["cursor-pointer transition-[transform,opacity] duration-200 ease-in-out","active:scale-95 hover:opacity-80","focus-visible:outline focus-visible:outline-thick focus-visible:outline-offset-[0.125rem]"].join(" ")}},description:{true:{label:"uppercase text-xs font-semibold tracking-[0.06rem]"}},isDismissed:{true:{container:"[animation-fill-mode:forwards] [animation-name:scaleOut] [animation-duration:150ms] motion-reduce:scale-100"}}}}),Na=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM17.7731 8.63425C18.1234 8.20725 18.0612 7.57715 17.6342 7.22688C17.2072 6.87661 16.5771 6.93881 16.2268 7.36581L10.4197 14.445L7.75841 11.3483C7.39844 10.9294 6.76708 10.8817 6.34822 11.2416C5.92936 11.6016 5.88161 12.233 6.24157 12.6518L9.67907 16.6518C9.87165 16.8759 10.1535 17.0033 10.4489 17C10.7444 16.9966 11.0232 16.8627 11.2106 16.6343L17.7731 8.63425Z",fill:"currentColor"})]}),Ma={branded:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2628 0.239095C7.79128 -1.14294 1.99999 3.65189 1.99999 9.83699C1.99999 13.2747 4.14256 16.424 6.77979 18.1918V18.9377C6.77979 18.9839 6.77854 19.0279 6.77689 19.0861L6.77576 19.1265C6.77382 19.197 6.77152 19.2924 6.7751 19.3913C6.78188 19.579 6.81104 19.8992 7.00168 20.2136C7.4269 20.9149 8.24323 21.005 8.87914 20.9998H15.1605C15.9708 20.9998 16.6864 20.7352 17.0486 20.0545C17.2016 19.7671 17.2421 19.4859 17.2542 19.294C17.2604 19.1958 17.2597 19.1085 17.2585 19.0454C17.2576 19.003 17.2569 18.9807 17.2564 18.9653C17.2559 18.9499 17.2557 18.9413 17.2557 18.9265V18.1804C21.0065 15.6598 23.5296 10.3805 20.9575 5.31469C19.6385 2.71676 17.1206 0.858741 14.2659 0.239749L14.2628 0.239095ZM12.599 6.19416C13.0441 6.52115 13.1399 7.14703 12.8129 7.59211L11.4112 9.50004H13.0859C13.6185 9.50004 14.3124 9.64028 14.7256 10.209C15.215 10.8828 14.9729 11.6331 14.6277 12.0985L12.8155 14.5885C12.4905 15.035 11.8651 15.1336 11.4185 14.8086C10.972 14.4836 10.8735 13.8581 11.1984 13.4116L12.5897 11.5H10.9109C10.3791 11.5 9.69468 11.356 9.28221 10.7972C8.79008 10.1305 9.01522 9.37741 9.37068 8.89946L11.2011 6.40799C11.5281 5.96291 12.154 5.86717 12.599 6.19416ZM13.033 10.89C13.033 10.89 13.0326 10.8907 13.0317 10.8921L13.033 10.89ZM10.9656 10.1074C10.9656 10.1074 10.9658 10.1071 10.9661 10.1065L10.9668 10.1055L10.9656 10.1074ZM8.49998 22C7.9477 22 7.49998 22.4477 7.49998 23C7.49998 23.5523 7.9477 24 8.49998 24H15.5C16.0522 24 16.5 23.5523 16.5 23C16.5 22.4477 16.0522 22 15.5 22H8.49998Z",fill:"currentColor"})]}),success:Na,error:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 4.69686e-07 18.6274 1.04907e-06 12C1.62846e-06 5.37258 5.37259 -1.62846e-06 12 -1.04907e-06C18.6274 -4.69686e-07 24 5.37258 24 12ZM13.5 17C13.5 17.8284 12.8284 18.5 12 18.5L11.991 18.5C11.1626 18.5 10.491 17.8284 10.491 17C10.491 16.1716 11.1626 15.5 11.991 15.5L12 15.5C12.8284 15.5 13.5 16.1716 13.5 17ZM11.9946 13C11.4423 13 10.9946 12.5523 10.9946 12L10.9946 6C10.9946 5.44771 11.4423 5 11.9946 5C12.5469 5 12.9946 5.44771 12.9946 6L12.9946 12C12.9946 12.5523 12.5469 13 11.9946 13Z",fill:"currentColor"})]}),warning:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36635 3.74008C10.5034 1.65549 13.4967 1.65548 14.6337 3.74008L23.2646 19.5634C24.355 21.5626 22.9081 24 20.6309 24H3.36909C1.09191 24 -0.355028 21.5625 0.735407 19.5634L9.36635 3.74008L10.2442 4.21893L9.36635 3.74008ZM12 9C12.5523 9 13 9.44772 13 10V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V10C11 9.44772 11.4477 9 12 9ZM10.4946 19C10.4946 18.1716 11.1662 17.5 11.9946 17.5H12.0036C12.832 17.5 13.5036 18.1716 13.5036 19C13.5036 19.8284 12.832 20.5 12.0036 20.5H11.9946C11.1662 20.5 10.4946 19.8284 10.4946 19Z",fill:"currentColor"})]}),neutral:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM10.5 7C10.5 6.17157 11.1716 5.5 12 5.5H12.009C12.8374 5.5 13.509 6.17157 13.509 7C13.509 7.82843 12.8374 8.5 12.009 8.5H12C11.1716 8.5 10.5 7.82843 10.5 7ZM12.0054 11C12.5577 11 13.0054 11.4477 13.0054 12V18C13.0054 18.5523 12.5577 19 12.0054 19C11.4531 19 11.0054 18.5523 11.0054 18V12C11.0054 11.4477 11.4531 11 12.0054 11Z",fill:"currentColor"})]})},_a=t=>{const{variant:r="branded",...n}=t;return e("div",{className:"flex flex-row items-center gap-2.5",children:e(Ma[r],{...n})})},Pa={sm:"1rem",md:"1.25rem",lg:"1.5rem"},Ta=f((r,n)=>{const{label:o,description:l,size:d="md",variant:s="branded",icon:c=!1,dismissible:u=!1,onPress:p}=r,[f,m]=a(!0),[h,g]=a(!1),v=l?Pa.sm:Pa[d],b=La({size:d,variant:s,icon:c,description:!!l,isDismissed:h,dismissible:u,interactive:!!p}),y=()=>{g(!0)},w=i(null),$=n||w,{buttonProps:C}=Qn({onPress:p},$),x=()=>t("div",{className:mt(p?"":b.container,"flex flex-row items-center gap-2"),onAnimationEnd:()=>m(!1),ref:$,children:[t("div",{className:"flex flex-col items-start gap-1.5",children:[t("div",{className:"flex flex-row items-center justify-between w-full gap-2.5",children:[t("div",{className:"flex flex-row items-center gap-2.5",children:[c&&e(_a,{variant:s,className:b.icon,width:v,height:v}),e("p",{className:b.label,children:o})]}),u&&e("button",{className:b.button,onClick:y,"aria-label":"dismiss callout",children:e(Ea,{className:b.button,width:Pa.sm,height:Pa.sm})})]}),!!l&&e("p",{className:b.description,children:l})]}),!!p&&e(xa,{className:b.button,width:Pa.sm,height:Pa.sm})]});return f?p?e("button",{...C,className:b.container,children:e(x,{})}):e(x,{}):null});Ta.displayName="Callout";const Ia=({inverted:r,neutral:n,progress:o=30,size:a=64,strokeWidth:i=6})=>{const l=a/2,d=Math.abs(o)/100,s=2*Math.PI*l,c=r?"stroke-surface-primary":n?"stroke-text-primary":"stroke-brand-base";return e("div",{className:"inline-flex items-center justify-center",children:t("svg",{width:a,height:a,viewBox:`0 0 ${a} ${a}`,fill:"none",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("circle",{className:mt(c,"opacity-[0.12]"),cx:"50%",cy:"50%",r:l-i/2,strokeLinecap:"round",strokeWidth:i}),e("circle",{className:mt("animate-spin origin-center",c),cx:"50%",cy:"50%",r:l-i/2,strokeDasharray:s,strokeDashoffset:s-s*d+4*i,strokeLinecap:"round",strokeWidth:i})]})})},Sa=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.6449 4.23573C22.067 4.59188 22.1205 5.22279 21.7643 5.64489L9.9518 19.6449C9.76439 19.867 9.48962 19.9966 9.19902 20C8.90842 20.0033 8.63074 19.8801 8.43826 19.6623L2.25076 12.6623C1.88499 12.2485 1.92393 11.6166 2.33773 11.2508C2.75152 10.885 3.38349 10.924 3.74926 11.3378L9.16991 17.4702L20.2357 4.35515C20.5919 3.93304 21.2228 3.87958 21.6449 4.23573Z",fill:"currentColor"})]}),Oa=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Aa=G,Ra=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return Aa(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;const i=Oa(t)||Oa(n);return o[e][i]}),l=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),d=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...l}[t]):{...a,...l}[t]===r})?[...e,r,n]:e},[]);return Aa(e,i,d,null==r?void 0:r.class,null==r?void 0:r.className)},Da=Ra("text-wrap",{variants:{mono:{false:"",true:""},scale:{false:"",true:""},variant:{text:"text-text-primary",error:"text-negative-darker",info:"text-brand-base",success:"text-positive-base",warning:"text-warning-base"},size:{xs:"text-style-body-xs",sm:"text-style-body-sm",md:"text-style-body-md",lg:"text-style-body-lg"}},compoundVariants:[{scale:!0,size:"sm",class:"text-style-body-sm-scaled"},{scale:!0,size:"md",class:"text-style-body-md-scaled"},{scale:!0,size:"lg",class:"text-style-body-lg-scaled"},{mono:!0,size:"sm",class:"text-style-mono-sm"},{mono:!0,size:"md",class:"text-style-mono-md"},{mono:!0,size:"lg",class:"text-style-mono-lg"}],defaultVariants:{mono:!1,variant:"text",size:"md"}}),Fa={"text.primary":"text-text-primary","text.secondary":"text-text-secondary","text.tertiary":"text-text-tertiary","text.quaternary":"text-text-quaternary"},Ha={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},ja=f(({children:t,styles:r={},scale:n,fontColor:o="text.primary"},a)=>e("h1",{ref:a,className:mt(n?"text-style-h1-scaled":"text-style-h1",Fa[o]),style:r,children:t})),Va=f(({children:t,styles:r={},scale:n,fontColor:o="text.primary"},a)=>e("h2",{ref:a,className:mt(n?"text-style-h2-scaled":"text-style-h2",Fa[o]),style:r,children:t})),Ba=f(({children:t,styles:r={},scale:n,fontColor:o="text.primary"},a)=>e("h3",{ref:a,className:mt(n?"text-style-h3-scaled":"text-style-h3",Fa[o]),style:r,children:t})),za=f(({children:t,styles:r={},scale:n,fontColor:o="text.primary"},a)=>e("h4",{ref:a,className:mt(n?"text-style-h4-scaled":"text-style-h4",Fa[o]),style:r,children:t})),Ga=f(({children:t,styles:r={},scale:n,fontColor:o="text.primary"},a)=>e("h5",{ref:a,className:mt(n?"text-style-h5-scaled":"text-style-h5",Fa[o]),style:r,children:t})),Ua=f(({children:t,styles:r={},scale:n,fontColor:o="text.secondary"},a)=>e("h6",{ref:a,className:mt(n?"text-style-h6-scaled":"text-style-h6",Fa[o]),style:r,children:t})),Wa=f(({children:t,styles:r={},scale:n,inline:o=!1,mono:a=!1,variant:i="text",size:l="md",truncate:d=!1,fontWeight:s,fontColor:c},u)=>{const p={ref:u,className:mt(Da({mono:a,variant:i,size:l,scale:n}),Ha[s??("text"!==i?"medium":"normal")],c&&Fa[c],d&&"truncate"),style:r};return e(o?"span":"p",{...p,children:t})}),Za=f((t,r)=>e(Wa,{ref:r,mono:!0,...t})),Ya=Object.assign(Wa,{H1:ja,H2:Va,H3:Ba,H4:za,H5:Ga,H6:Ua,Mono:Za});Wa.displayName="Text",ja.displayName="Text.H1",Va.displayName="Text.H2",Ba.displayName="Text.H3",za.displayName="Text.H4",Ga.displayName="Text.H5",Ua.displayName="Text.H6",Za.displayName="Text.Mono";const Ka=({isSelected:e,onChange:t,defaultSelected:r=!1})=>{const[n,o]=a(r),i=void 0!==e,l=i?e:n,d=e=>{i||o(e),t&&t(e)};return s(()=>{i&&o(e)},[e]),{isSelected:l,setSelected:d,toggle:()=>d(!l)}},qa=f((r,n)=>{const{label:o,indeterminate:a=!1,disabled:l=!1,checked:d,"aria-label":c,...u}=r,p=Ka({...r,isSelected:d}),f=i(null),m=n||f;s(()=>{const e="current"in m?m.current:null;e&&(e.indeterminate=!!a)},[a,m]);const{inputProps:h}=To({...u,"aria-label":o||c||"Checkbox",isDisabled:l,isIndeterminate:a},p,m),{isFocusVisible:g,focusProps:v}=yo();return t("label",{className:mt("flex items-center rounded-sm",l?"opacity-30":"opacity-100"),children:[e(Oo,{children:e("input",{...Ft(h,v),ref:m})}),e("div",{className:mt("flex items-center justify-center w-5 h-5 border-thick transition-[background-color,border-color] duration-200 ease-in-out hover:cursor-pointer hover:border-brand-base rounded box-border outline outline-offset-[0.125rem]",p.isSelected?"bg-brand-base":"bg-transparent",p.isSelected||g?"border-brand-base":"border-text-tertiary",l?"pointer-events-none":"pointer-events-auto",g?"outline-brand-base outline-thick":"outline-transparent outline-thick"),children:t("span",{children:[p.isSelected&&!a&&e(Sa,{height:16,width:16,color:"var(--color-surface-primary)"}),p.isSelected&&!!a&&e("div",{className:"flex justify-center items-center",children:e("div",{className:"w-2.5 h-0.5 bg-surface-primary"})})]})}),o&&e("div",{className:"ml-3",children:e(Ya,{fontWeight:"medium",styles:{lineHeight:1},children:o})})]})});qa.displayName="Checkbox";const Xa=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.84115 16.0164C11.0164 17.3279 12.9837 17.3279 14.1589 16.0164L20.7447 8.66738C21.1133 8.25608 21.0787 7.62386 20.6674 7.25528C20.2561 6.8867 19.6239 6.92132 19.2553 7.33262L12.6694 14.6817C12.2891 15.1061 11.7109 15.1061 11.3306 14.6817L4.74473 7.33262C4.37614 6.92132 3.74393 6.8867 3.33263 7.25528C2.92133 7.62386 2.88671 8.25608 3.25529 8.66738L9.84115 16.0164Z",fill:"currentColor"})]}),Qa=p({selectedValue:void 0,setSelectedValue:()=>{}}),Ja=f((r,n)=>{const{label:o,value:a}=r,s=d(Qa),c=i(null),u=n||c,p=l(()=>{s.setSelectedValue(a)},[s,a]),{hoverProps:f}=jn({}),{focusProps:m,isFocusVisible:h}=yo(),{pressProps:g}=Qr({onPress:p}),v=s.selectedValue===a,b=v?0:-1;return t("label",{className:"flex items-center",children:[e(Oo,{children:e("input",{...Ft(g,m,f),ref:u,type:"radio",checked:v,tabIndex:b,readOnly:!0})}),e("div",{className:mt("flex justify-center items-center border-thick transition-colors duration-200 ease-in-out cursor-pointer w-6 h-6 rounded-full hover:border-brand-base",h||v?"border-brand-base":"border-text-tertiary",h?"outline outline-thick outline-brand-base outline-offset-[0.125rem]":"outline-none"),"aria-hidden":"true",children:v&&e("div",{className:"rounded-full w-3 h-3 bg-brand-base"})}),e("div",{className:"ml-3",children:e(Ya,{size:"lg",fontWeight:"medium",children:o})})]})});Ja.displayName="Radio";var ei=typeof window>"u"?n.useEffect:n.useLayoutEffect,ti=["$$typeof","render","displayName","defaultProps"],ri="slots-wrapper",ni=new RegExp(`^<${ri}>.*</${ri}>$`),oi=({name:e,forceUpdate:t,children:r})=>{let o=n.useRef(null),a=n.useRef(!1);return ei(()=>{var r;if(!a.current&&(null==(r=o.current)?void 0:r.innerHTML)){let t=o.current.innerHTML;t&&!ni.test(t)&&console.warn(`Unwrapped children found in "${e}", either wrap them in slots or remove`)}a.current=!0,t()},[e]),a.current?n.createElement(n.Fragment,null,r):n.createElement(ri,{ref:o},r)},ai=(e=>{let t=n.createContext(e);return t.displayName="SlotsContext",t})(void 0),ii=({children:e})=>e(),li=({children:e,callback:t})=>{let r=n.useReducer(()=>[],[])[1],o=n.useMemo(()=>(e=>{let t=new Map;return{register(e,r){t.set(e,r)},update(r,n){t.set(r,n),e(r)},unmount(r){t.delete(r),e(r)},get:e=>t.get(e),getProps(e){let r=t.get(e);if(!r)return;let{ref:n,props:o}=r;return n?{...o,ref:n}:o}}})(r),[r]);return n.createElement(n.Fragment,null,n.createElement(ai.Provider,{value:o},"production"===process.env.NODE_ENV?e:n.createElement(oi,{name:"HostSlots",forceUpdate:r},e)),n.createElement(ii,null,()=>t(o)))},di=(e,t)=>n.createElement(li,{children:e,callback:t}),si=e=>{let t=(t,o)=>{let a=n.useContext(ai);if(!a)return e?n.createElement(e,{ref:o,...t}):null;let i=n.createElement(r,{ref:o,...t});return n.useState(()=>a.register(r,i)),n.useEffect(()=>a.update(r,i)),n.useEffect(()=>()=>a.unmount(r),[a]),null};t.displayName=e?`Slot(${(e=>"string"==typeof e?e:e.displayName||e.name||"Component")(e)})`:"Slot";let r=n.forwardRef(t);return e?((e,t)=>{if("string"==typeof t)return e;let r=Object.getOwnPropertyNames(t).reduce((e,r)=>(ti.includes(r)||(e[r]=t[r]),e),{});return Object.assign(e,r)})(r,e):r};const ci=p({currentTab:void 0,setCurrentTab:()=>{},tabRefs:{current:{}},disabled:!1}),ui=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))})),pi=f((r,n)=>{const{label:o,id:a}=r,{currentTab:c,setCurrentTab:u,tabRefs:p,size:f,disabled:m}=d(ci),h=c===a,g="sm"===f?"h-8":"md"===f?"h-10":"h-[3.25rem]",v="sm"===f?16:20,b=i(null),y=n||b;s(()=>{"object"==typeof y&&p.current&&(p.current[a]=y.current)},[a]);const w=l(()=>{u(a)},[u,a]),{buttonProps:$,isPressed:C}=Qn({onPress:w,isDisabled:m},y),{hoverProps:x}=jn({}),{isFocusVisible:E,focusProps:k}=yo();return di(r.children,r=>{const n=r.get(ui);return e("button",{className:mt("flex justify-center items-center w-full rounded-button z-0 cursor-pointer font-semibold whitespace-nowrap bg-transparent outline disabled:opacity-30 disabled:pointer-events-none",g,"sm"===f?"text-sm":"md"===f?"text-md":"text-lg",h?"text-text-primary":"text-text-secondary",E?"outline-brand-base outline-thick":"outline-transparent outline-thick",h?"transition-none":"transition-colors duration-200 ease-in-out",h?"hover:bg-transparent dark:hover:bg-transparent":"hover:bg-ink-20 dark:hover:bg-slate-1"),ref:y,...Ft($,x,k),disabled:m,children:t("div",{className:"flex items-center justify-center",style:{opacity:C&&!h?.5:1},children:[n&&{...n,props:{...n.props,className:mt("mr-1",h?"text-text-primary":"text-text-secondary"),width:v,height:v}},o]})})})});Object.assign(pi,{Icon:ui}),pi.displayName="Tab";const fi=f((r,n)=>{const{checked:o,disabled:a=!1,label:l,className:d,...s}=r,c=i(null),u=n||c,p=Ka({...r,isSelected:o}),{buttonProps:f}=function(e,t,r){const{isSelected:n}=t,{isPressed:o,buttonProps:a}=Qn({...e,onPress:It(t.toggle,e.onPress)},r);return{isPressed:o,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:Ft(a,{"aria-pressed":n})}}({...s,isDisabled:a},p,u),{isFocusVisible:m,focusProps:h}=yo();return t("div",{className:"flex items-center",children:[l&&e("div",{className:"mr-2",children:e(Ya,{fontWeight:"medium",styles:{lineHeight:1},children:l})}),e("button",{...Ft(f,h),className:mt("px-0.5 h-5 w-11 disabled:opacity-30 disabled:pointer-events-none transition-colors duration-200 ease-in-out rounded-full cursor-pointer outline outline-offset-[0.125rem]",p.isSelected?"bg-brand-base hover:bg-brand-base":"bg-neutral-primary hover:bg-ink-70 dark:hover:bg-slate-4",m?"outline-brand-base outline-thick":"outline-transparent outline-thick",d),children:e("span",{className:mt("block rounded-full h-4 w-4 bg-paper relative transition-[left] duration-200 ease-in-out",p.isSelected?"left-6":"left-0")})})]})});fi.displayName="Switch";const mi="hover",hi=si(({children:t})=>e(r,{children:t})),gi=si(({children:t,...r})=>{const{onPress:n,...o}=r;return e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,o))})}),vi=si(t=>e(Mi.LeadingIcon,{...t})),bi=si(t=>e(Mi.TrailingIcon,{...t}));Object.assign(({children:n,...o})=>di(n,n=>{var a;const{isOpen:d,defaultOpen:c,onOpenChange:p,trigger:f=mi,iconSize:m,onPress:h,...g}=o,{isSelected:v,setSelected:b}=Ka({defaultSelected:c,onChange:p,...o}),y=void 0!==d?d:v,w=24,$=u(()=>({isOpen:y,open:()=>{b(!0)},close:()=>{b(!1)},setOpen(e){b(e)},toggle(){}}),[y]),C=n.getProps(hi),x=i(null),{triggerProps:E,overlayProps:k}=function(e,t,r){let n,{isOpen:o}=t;s(()=>{r&&r.current&&Jo.set(r.current,t.close)});let a=_t();return{triggerProps:{"aria-haspopup":n,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}(0,$,x),L=i(null),{popoverProps:N,underlayProps:M}=ba({placement:o.placement||"bottom left",offset:8,popoverRef:L,triggerRef:x,...C},$),_=Ft(C,N);null!==(a=_?.style)&&void 0!==a&&a.zIndex&&(_.style.zIndex="var(--zIndex-max)");const{className:P,...T}=_,I=l(()=>{$.open()},[$]),S=l(e=>{var t,r;const n=null===(t=x.current)||void 0===t?void 0:t.getBoundingClientRect(),o=null===(r=L.current)||void 0===r?void 0:r.getBoundingClientRect();if(n&&o){const t=e.clientX>=n.left-w&&e.clientX<=n.right+w&&e.clientY>=n.top-w&&e.clientY<=n.bottom+w,r=e.clientX>=o.left-w&&e.clientX<=o.right+w&&e.clientY>=o.top-w&&e.clientY<=o.bottom+w;!t&&!r&&$.close()}},[$]),O=()=>{if(L.current){const e=L.current.querySelectorAll('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');e.length>0&&e[0].focus()}};s(()=>(document.addEventListener("mousemove",S),()=>{document.removeEventListener("mousemove",S)}),[S]);const A=n.get(gi),R=n.getProps(vi),D=n.getProps(bi),F=m?{height:m,width:m}:{};return t(r,{children:[e("div",A?{className:"inline-block",ref:x,...g,children:A&&{...A,props:{...A.props,...E}}}:{className:"inline-block",ref:x,children:t(Mi,{...Ft(E,g),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d?$.close():($.open(),setTimeout(O,0)))},onHover:()=>"hover"===f&&I(),onPress:()=>"click"===f&&I(),children:[R&&e(Mi.LeadingIcon,{...R,...F}),D&&e(Mi.TrailingIcon,{...D,...F})]})}),y&&t(wa,{...k,children:[e("div",{...M,className:"underlay"}),e("div",{ref:L,...T,className:mt("flex flex-col bg-surface-secondary p-3 gap-0 text-text-secondary border border-neutral-secondary rounded-xl shadow-[0px_4px_20px_0px_rgba(0,0,0,0.10)] max-w-52 items-start",P),children:n.get(hi)})]})]})}),{Trigger:gi,LeadingIcon:vi,TrailingIcon:bi,Content:hi});const yi=f((t,r)=>{var n;const{container:o,...i}=t,[l,d]=a(!1);g(()=>d(!0),[]);const s=o||l&&(null===(n=globalThis?.document)||void 0===n?void 0:n.body);return s?y.createPortal(e("div",{...i,ref:r}),s):null});yi.displayName="Portal";const wi=e=>()=>{throw new Error("TOAST_PROVIDER_REQUIRED",{cause:`Before calling \`${e}\`, wrap your application with \`<ToastProvider>\`.`})};p({createToast:wi("createToast"),removeToast:wi("removeToast")});const $i=ka({slots:["trigger","content","spacer"],base:{trigger:"relative w-auto",content:["w-max max-w-[18rem] text-text-secondary","bg-surface-primary border-neutral-secondary border-thin","dark:bg-surface-tertiary","absolute py-2 px-3 rounded-xl","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.10)]","z-max hidden"].join(" "),spacer:"absolute"},variants:{expand:{true:{trigger:"w-full"}},isOpen:{true:{content:"block"}},placement:{top:{content:"top-0 left-1/2 [transform:translateX(-50%)_translateY(calc(-100%-0.75rem))]"},"top left":{content:"top-0 right-full [transform:translateX(10%)_translateY(calc(-100%-0.75rem))]"},"top right":{content:"top-0 left-full [transform:translateX(-10%)_translateY(calc(-100%-0.75rem))]"},left:{content:"top-1/2 left-0 [transform:translateX(calc(-100%-0.75rem))_translateY(-50%)]"},"left top":{content:"top-1/2 left-0 [transform:translateX(calc(-100%-0.75rem))_translateY(-75%)]"},"left bottom":{content:"top-1/2 left-0 [transform:translateX(calc(-100%-0.75rem))_translateY(-25%)]"},right:{content:"top-1/2 right-0 [transform:translateX(calc(100%+0.75rem))_translateY(-50%)]"},"right top":{content:"top-1/2 right-0 [transform:translateX(calc(100%+0.75rem))_translateY(-75%)]"},"right bottom":{content:"top-1/2 right-0 [transform:translateX(calc(100%+0.75rem))_translateY(-25%)]"},bottom:{content:"bottom-0 left-1/2 [transform:translateX(-50%)_translateY(calc(100%+0.75rem))]"},"bottom left":{content:"bottom-0 right-full [transform:translateX(10%)_translateY(calc(100%+0.75rem))]"},"bottom right":{content:"bottom-0 left-full [transform:translateX(-10%)_translateY(calc(100%+0.75rem))]"}},position:{top:{spacer:"w-[18rem] h-4 bottom-0 left-1/2 [transform:translateX(-50%)_translateY(0.75rem)]"},bottom:{spacer:"w-[18rem] h-4 top-0 left-1/2 [transform:translateX(-50%)_translateY(-0.75rem)]"},left:{spacer:"w-4 h-48 top-1/2 -right-6 [transform:translateX(-0.75rem)_translateY(-50%)]"},right:{spacer:"w-4 h-48 top-1/2 -left-6 [transform:translateX(0.75rem)_translateY(-50%)]"}}}}),Ci=f((r,n)=>{const o="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0,{children:l,content:d,width:c=288,closeDelay:p=2500,defaultOpen:f,placement:m="top",expand:v=!1,...b}=r,[y,w]=a(!1),{isSelected:$,setSelected:C}=Ka({isOpen:r.isOpen,defaultSelected:f,onChange(e){e||w(!1)},...r}),x=u(()=>({isOpen:$,open:()=>{C(!0)},close:e=>{e||o?C(!1):(y&&setTimeout(()=>{C(!1),w(!1)},p),y||C(!1))}}),[$,y]),E=i(null),{triggerProps:k,tooltipProps:L}=function(e,t,r){let{isDisabled:n,trigger:o,shouldCloseOnPress:a=!0}=e,l=_t(),d=i(!1),c=i(!1),u=()=>{(d.current||c.current)&&t.open(c.current)},p=e=>{d.current||c.current||t.close(e)};s(()=>{let e=e=>{r&&r.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[r,t]);let f=()=>{a&&(c.current=!1,d.current=!1,p(!0))},{hoverProps:m}=jn({isDisabled:n,onHoverStart:()=>{"focus"!==o&&("pointer"===En()?d.current=!0:d.current=!1,u())},onHoverEnd:()=>{"focus"!==o&&(c.current=!1,d.current=!1,p())}}),{focusableProps:h}=In({isDisabled:n,onFocus:()=>{xn()&&(c.current=!0,u())},onBlur:()=>{c.current=!1,d.current=!1,p(!0)}},r);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...Ft(h,m,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:l}}}(r,x,E);k.onClick=()=>{x.open(),w(!0)};const N=function(e){const t=i(null),r=i(e);return g(()=>{r.current=e}),s(()=>{const e=e=>{const n=t.current;n&&!n.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[]),t}(()=>{x.close(!0)}),M=m.split(" ")[0],_=$i({expand:v,isOpen:x.isOpen,placement:m,position:M});return t("div",{ref:N,className:_.trigger,onMouseLeave:()=>{x.close()},onFocus:()=>{x.open()},onBlur:()=>{x.close()},children:[h(l,{...k,tabIndex:0}),t("div",{ref:n,"aria-describedby":"tooltip",role:"tooltip",className:_.content,style:{width:c},onMouseEnter:()=>{x.open()},...Ft(L,b),children:[e(Ya,{size:"sm",children:d}),x.isOpen&&e("div",{onMouseEnter:()=>{x.open()},className:_.spacer})]})]})});Ci.displayName="Tooltip",p({selectedOption:null,setSelectedOption:()=>{}});const xi=ka({slots:["button","label","focus","icon","iconContainer"],base:{button:["inline-flex items-center justify-center relative font-semibold box-border","rounded-button border-thin border-solid border-transparent","cursor-pointer transition-all duration-100 ease-in-out outline-none","[will-change:transform,opacity] bg-none","active:scale-95","disabled:opacity-30 disabled:pointer-events-none",'before:content-[""] before:absolute before:inset-0 before:rounded-[inherit]',"before:bg-[linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05))]","dark:before:bg-[linear-gradient(rgba(255,255,255,0.05),rgba(255,255,255,0.05))]","before:opacity-0 before:transition-opacity before:duration-100 before:ease-in-out","hover:before:opacity-100"].join(" "),label:"flex text-center justify-center whitespace-nowrap transition-all duration-100 ease-in-out",focus:"outline-brand-base outline outline-thick outline-offset-[0.125rem]",icon:"transition-all duration-100 ease-in-out",iconContainer:""},variants:{size:{sm:{button:"h-9 py-1.5 px-4",label:"text-sm leading-6",iconContainer:"w-9 p-1.5"},md:{button:"h-12 py-3 px-6",label:"text-base leading-6",iconContainer:"w-12 p-3"},lg:{button:"h-15 py-4 px-6",label:"text-lg leading-7",iconContainer:"w-15 p-4"}},variant:{primary:{button:"bg-brand-base",label:"text-surface-primary",icon:"text-surface-primary"},secondary:{button:"bg-brand-lightest",label:"text-brand-darker",icon:"text-brand-darker"},positive:{button:"bg-positive-darker",label:"text-surface-primary",icon:"text-surface-primary"},negative:{button:"bg-negative-darker",label:"text-surface-primary",icon:"text-surface-primary"},neutral:{button:"bg-neutral-tertiary mix-blend-multiply dark:mix-blend-normal",label:"text-text-primary",icon:"text-text-primary"},tertiary:{button:"bg-transparent border-neutral-primary",label:"text-text-primary",icon:"text-brand-base"},text:{button:"p-0 h-fit hover:before:opacity-0",label:"text-brand-base group-hover:text-brand-darkest dark:group-hover:text-brand-lighter",icon:"text-brand-base group-hover:text-brand-darkest dark:group-hover:text-brand-lighter"},transparent:{button:"bg-[#ffffff14] hover:bg-[#ffffff4d] dark:bg-[#ffffff29] backdrop-blur-[3px] before:hidden",label:"text-chalk",icon:"text-chalk"},inverse:{button:["bg-ink-90 dark:bg-paper","before:bg-[linear-gradient(rgba(255,255,255,0.05),rgba(255,255,255,0.05))]","dark:before:bg-[linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05))]"].join(" "),label:"text-chalk dark:text-ink-90",icon:"text-chalk dark:text-ink-90"}},validating:{true:{button:"pointer-events-none"}},expand:{true:{button:"w-full"}},iconOnly:{true:{button:"rounded-full"}},textStyle:{positive:{},negative:{},neutral:{},subtle:{}}},compoundVariants:[{textStyle:"positive",class:{label:"text-positive-base",icon:"text-positive-base"}},{variant:"text",textStyle:"positive",class:{label:"group-hover:text-positive-darker dark:group-hover:text-positive-darker",icon:"group-hover:text-positive-darker dark:group-hover:text-positive-darker"}},{textStyle:"negative",class:{label:"text-negative-darker dark:text-negative-base",icon:"text-negative-darker dark:text-negative-base"}},{variant:"text",textStyle:"negative",class:{label:"group-hover:text-negative-darkest dark:group-hover:text-negative-lighter",icon:"group-hover:text-negative-darkest dark:group-hover:text-negative-lighter"}},{textStyle:"neutral",class:{label:"text-text-primary",icon:"text-text-primary"}},{variant:"text",textStyle:"neutral",class:{label:"group-hover:text-text-secondary dark:group-hover:text-text-secondary",icon:"group-hover:text-text-secondary dark:group-hover:text-text-secondary"}},{textStyle:"subtle",class:{label:"text-text-tertiary",icon:"text-text-tertiary"}},{variant:"text",textStyle:"subtle",class:{label:"group-hover:text-text-secondary dark:group-hover:text-text-secondary",icon:"group-hover:text-text-secondary dark:group-hover:text-text-secondary"}},{variant:"text",iconOnly:!0,class:{iconContainer:"p-1.5 w-fit"}}],defaultVariants:{size:"md",variant:"primary"}}),Ei=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))})),ki=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))})),Li=({variant:t="primary",size:r="md"})=>e(Ia,{size:{sm:20,md:24,lg:28}[r],strokeWidth:2.5,inverted:"primary"===t||"negative"===t,neutral:"neutral"===t||"tertiary"===t}),Ni=f((r,n)=>{const{label:o,variant:a="primary",textStyle:l,size:d="md",disabled:s,expand:c,validating:u,iconSize:p,onHover:f,centerContent:m}=r,h=p||("sm"===d?16:24),g=o&&c&&!m,v=xi({variant:a,textStyle:l,expand:c,size:d,validating:u,iconOnly:!o}),b=i(null),y=n||b,{buttonProps:w}=Qn({...r,isDisabled:s??!1},y),{hoverProps:$}=jn({isDisabled:s??!1}),{isFocusVisible:C,focusProps:x}=yo();return di(r.children,r=>{const n=r.get(Ei),i=r.get(ki),l=h/4;return e("button",{className:mt(v.button,"group",!o&&v.iconContainer,C&&v.focus),ref:y,...Ft(w,$,x),"aria-disabled":s,onMouseEnter:f,onTouchStart:f,children:u?e(Li,{variant:a,size:d}):t("div",{className:mt("flex flex-row items-center w-full gap-2",o&&(n||i)&&!m?"justify-between":"justify-center"),children:[n&&{...n,props:{className:n.props.color?void 0:v.icon,width:h,height:h,...n.props}},i&&g&&e("div",{style:{width:.25*l+"rem"}}),o&&e("span",{className:v.label,children:o}),n&&g&&e("div",{style:{width:.25*l+"rem"}}),i&&{...i,props:{className:i.props.color?void 0:v.icon,width:h,height:h,...i.props}}]})})})}),Mi=Object.assign(Ni,{LeadingIcon:Ei,TrailingIcon:ki});Ni.displayName="Button";const _i=Ra("bg-surface-primary rounded-2xl",{variants:{asButton:{false:"cursor-default",true:"items-center cursor-pointer h-[10.75rem] justify-center p-4 transition-all duration-100 ease-in-out w-[10.75rem] active:scale-95"},alignment:{center:"items-center",left:"items-start",right:"items-end"},alt:{true:""},expand:{false:"overflow-hidden",true:"overflow-visible w-full"},gapType:{none:"gap-0",sm:"gap-4",md:"gap-5",lg:"gap-6"},heavyShadow:{false:"shadow-[0px_1px_2px_rgba(189,189,189,0.3)]",true:"shadow-[8px_8px_48px_rgba(16,15,17,0.14)]"},paddingType:{none:"p-0",sm:"px-4 py-3",md:"px-8 py-6",lg:"p-12"},widthMax:{true:"flex-1 max-w-[29.125rem] md:max-w-full"},disabled:{true:"opacity-30 pointer-events-none"},validating:{true:"pointer-events-none"}},compoundVariants:[{asButton:!0,alt:!0,class:"bg-surface-tertiary text-text-secondary hover:brightness-90"}],defaultVariants:{alt:!1,expand:!1,gapType:"md",heavyShadow:!1,paddingType:"md",widthMax:!1}}),Pi=f(({children:t,className:r,id:n,asButton:o,stack:a,onClick:i,validating:l,...d},s)=>{const c=_i({asButton:o,validating:l,...d});return e("div",a||o?{id:n,className:mt(c,"flex flex-col",r),role:o?"button":"none",tabIndex:o?0:void 0,onClick:o?i:void 0,onKeyDown:o?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.target.click())}:void 0,ref:s,children:l?e(Ia,{neutral:!0}):t}:{id:n,className:mt(c,r),ref:s,children:t})});Pi.displayName="Card";const Ti=({isOpen:n=!1,title:o,onToggle:d,children:c,showCloseButton:u=!0})=>{const[p,f]=a(n),[m,h]=a(n),g=i(null);s(()=>{let e;return n?(f(!0),e=setTimeout(()=>h(!0),10)):h(!1),()=>clearTimeout(e)},[n]),s(()=>{const e=e=>{g.current&&!g.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d]);const v=l(()=>{d(!1)},[d]);return t(r,{children:[e("div",{className:mt("absolute bottom-0 left-0 right-0 h-full bg-[color-mix(in_srgb,var(--color-text-primary)_20%,transparent)] dark:bg-[rgba(0,0,0,0.7)] backdrop-blur-[3px]",n?"block":"hidden")}),p&&t("div",{ref:g,className:mt("absolute bottom-0 left-0 right-0 bg-surface-primary dark:bg-surface-secondary rounded-t-3xl shadow-[0px_-12px_56px_0px_rgba(119,118,122,0.15)] z-10 transition-transform duration-300",m?"translate-y-0":"translate-y-full"),onTransitionEnd:()=>{n||f(!1)},children:[t("div",{className:"flex flex-row items-center gap-2.5 justify-between px-6 py-4",children:[e(Ya,{fontWeight:"medium",children:o}),u&&e(Mi,{size:"sm",variant:"neutral",onPress:v,children:e(Mi.LeadingIcon,{children:e(Xa,{})})})]}),e("div",{className:"px-6 pb-6",children:c})]})]})},Ii=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M11.2625 0.24827C11.4758 0.0870459 11.7344 0 12 0C12.2656 0 12.5242 0.0870459 12.7375 0.24827C14.2625 1.36858 17.625 4.81861 17.625 13.1445C17.625 15.8944 16.65 19.2044 15.925 21.2285C15.75 21.725 15.2875 22.056 14.7625 22.056H9.25C8.725 22.056 8.25 21.725 8.075 21.2285C7.35 19.2044 6.375 15.8944 6.375 13.1445C6.375 4.81861 9.7375 1.36858 11.2625 0.24827ZM14.5 10.5984C14.5 9.19799 13.375 8.05222 12 8.05222C10.625 8.05222 9.5 9.19799 9.5 10.5984C9.5 11.9988 10.625 13.1445 12 13.1445C13.375 13.1445 14.5 11.9988 14.5 10.5984ZM6.6125 22.718C6.0125 21.1522 4.7125 17.4093 4.525 13.972L3.1125 14.9268C2.4125 15.4106 2 16.1999 2 17.0529V22.718C2 23.6219 2.8875 24.233 3.7125 23.902L6.6125 22.718ZM22 22.718V17.0529C22 16.1999 21.5875 15.4106 20.8875 14.9396L19.475 13.9848C19.2875 17.4093 17.975 21.1649 17.3875 22.7308L20.2875 23.9147C21.1125 24.233 22 23.6219 22 22.718Z",fill:"currentColor"})]}),Si="2.625rem",Oi=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))}));Object.assign(t=>{const{assetUri:n}=t;return di(t.children,t=>{const o=t.get(Oi);return e(r,{children:n&&"https://assets.fortmatic.com/MagicLogos/blank.png"!==n?e("img",{className:"h-[2.625rem] w-[2.625rem] overflow-hidden",alt:"logo",src:n}):o?{...o,props:{...o.props,width:Si,height:Si}}:e(Ii,{height:Si,width:Si,color:"var(--color-brand-lighter)"})})})},{PlaceholderIcon:Oi});var Ai={},Ri={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",a="[object Array]",i="[object Boolean]",l="[object Date]",d="[object Error]",s="[object Function]",c="[object Map]",u="[object Number]",p="[object Object]",f="[object Promise]",m="[object RegExp]",h="[object Set]",g="[object String]",v="[object Symbol]",b="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",$=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[a]=x[y]=x[i]=x[w]=x[l]=x[d]=x[s]=x[c]=x[u]=x[p]=x[m]=x[h]=x[g]=x[b]=!1;var E="object"==typeof $a&&$a&&$a.Object===Object&&$a,k="object"==typeof self&&self&&self.Object===Object&&self,L=E||k||Function("return this")(),N=t&&!t.nodeType&&t,M=N&&e&&!e.nodeType&&e,_=M&&M.exports===N,P=_&&E.process,T=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),I=T&&T.isTypedArray;function S(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function O(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function A(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var R,D,F,H=Array.prototype,j=Function.prototype,V=Object.prototype,B=L["__core-js_shared__"],z=j.toString,G=V.hasOwnProperty,U=(R=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",W=V.toString,Z=RegExp("^"+z.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=_?L.Buffer:void 0,K=L.Symbol,q=L.Uint8Array,X=V.propertyIsEnumerable,Q=H.splice,J=K?K.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=Y?Y.isBuffer:void 0,re=(D=Object.keys,F=Object,function(e){return D(F(e))}),ne=Te(L,"DataView"),oe=Te(L,"Map"),ae=Te(L,"Promise"),ie=Te(L,"Set"),le=Te(L,"WeakMap"),de=Te(Object,"create"),se=Ae(ne),ce=Ae(oe),ue=Ae(ae),pe=Ae(ie),fe=Ae(le),me=K?K.prototype:void 0,he=me?me.valueOf:void 0;function ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ve(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ye(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new be;++t<r;)this.add(e[t])}function we(e){var t=this.__data__=new ve(e);this.size=t.size}function $e(e,t){var r=Fe(e),n=!r&&De(e),o=!r&&!n&&He(e),a=!r&&!n&&!o&&Ge(e),i=r||n||o||a,l=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],d=l.length;for(var s in e)!G.call(e,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Oe(s,d))||l.push(s);return l}function Ce(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}function xe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=G.call(e,J),r=e[J];try{e[J]=void 0;var n=!0}catch(e){}var o=W.call(e);n&&(t?e[J]=r:delete e[J]);return o}(e):function(e){return W.call(e)}(e)}function Ee(e){return ze(e)&&xe(e)==o}function ke(e,t,r,n,s){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,r,n,s,f){var b=Fe(e),$=Fe(t),C=b?a:Se(e),x=$?a:Se(t),E=(C=C==o?p:C)==p,k=(x=x==o?p:x)==p,L=C==x;if(L&&He(e)){if(!He(t))return!1;b=!0,E=!1}if(L&&!E)return f||(f=new we),b||Ge(e)?Me(e,t,r,n,s,f):function(e,t,r,n,o,a,s){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!a(new q(e),new q(t)));case i:case l:case u:return Re(+e,+t);case d:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case c:var p=O;case h:var f=1&n;if(p||(p=A),e.size!=t.size&&!f)return!1;var b=s.get(e);if(b)return b==t;n|=2,s.set(e,t);var $=Me(p(e),p(t),n,o,a,s);return s.delete(e),$;case v:if(he)return he.call(e)==he.call(t)}return!1}(e,t,C,r,n,s,f);if(!(1&r)){var N=E&&G.call(e,"__wrapped__"),M=k&&G.call(t,"__wrapped__");if(N||M){var _=N?e.value():e,P=M?t.value():t;return f||(f=new we),s(_,P,r,n,f)}}if(!L)return!1;return f||(f=new we),function(e,t,r,n,o,a){var i=1&r,l=_e(e),d=l.length,s=_e(t),c=s.length;if(d!=c&&!i)return!1;var u=d;for(;u--;){var p=l[u];if(!(i?p in t:G.call(t,p)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var m=!0;a.set(e,t),a.set(t,e);var h=i;for(;++u<d;){var g=e[p=l[u]],v=t[p];if(n)var b=i?n(v,g,p,t,e,a):n(g,v,p,e,t,a);if(!(void 0===b?g===v||o(g,v,r,n,a):b)){m=!1;break}h||(h="constructor"==p)}if(m&&!h){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,r,n,s,f)}(e,t,r,n,ke,s))}function Le(e){return!(!Be(e)||function(e){return!!U&&U in e}(e))&&(je(e)?Z:$).test(Ae(e))}function Ne(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||V,t!==n)return re(e);var t,r,n,o=[];for(var a in Object(e))G.call(e,a)&&"constructor"!=a&&o.push(a);return o}function Me(e,t,r,n,o,a){var i=1&r,l=e.length,d=t.length;if(l!=d&&!(i&&d>l))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var c=-1,u=!0,p=2&r?new ye:void 0;for(a.set(e,t),a.set(t,e);++c<l;){var f=e[c],m=t[c];if(n)var h=i?n(m,f,c,t,e,a):n(f,m,c,e,t,a);if(void 0!==h){if(h)continue;u=!1;break}if(p){if(!S(t,function(e,t){if(i=t,!p.has(i)&&(f===e||o(f,e,r,n,a)))return p.push(t);var i})){u=!1;break}}else if(f!==m&&!o(f,m,r,n,a)){u=!1;break}}return a.delete(e),a.delete(t),u}function _e(e){return function(e,t,r){var n=t(e);return Fe(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Ue,Ie)}function Pe(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Te(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(r)?r:void 0}ge.prototype.clear=function(){this.__data__=de?de(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(de){var n=t[e];return n===r?void 0:n}return G.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return de?void 0!==t[e]:G.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=de&&void 0===t?r:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0)&&(r==t.length-1?t.pop():Q.call(t,r,1),--this.size,!0)},ve.prototype.get=function(e){var t=this.__data__,r=Ce(t,e);return r<0?void 0:t[r][1]},ve.prototype.has=function(e){return Ce(this.__data__,e)>-1},ve.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(oe||ve),string:new ge}},be.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Pe(this,e).get(e)},be.prototype.has=function(e){return Pe(this,e).has(e)},be.prototype.set=function(e,t){var r=Pe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,r),this},ye.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ve,this.size=0},we.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ve){var n=r.__data__;if(!oe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new be(n)}return r.set(e,t),this.size=r.size,this};var Ie=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(ee(e),function(t){return X.call(e,t)}))}:function(){return[]},Se=xe;function Oe(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Ae(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Re(e,t){return e===t||e!=e&&t!=t}(ne&&Se(new ne(new ArrayBuffer(1)))!=w||oe&&Se(new oe)!=c||ae&&Se(ae.resolve())!=f||ie&&Se(new ie)!=h||le&&Se(new le)!=b)&&(Se=function(e){var t=xe(e),r=t==p?e.constructor:void 0,n=r?Ae(r):"";if(n)switch(n){case se:return w;case ce:return c;case ue:return f;case pe:return h;case fe:return b}return t});var De=Ee(function(){return arguments}())?Ee:function(e){return ze(e)&&G.call(e,"callee")&&!X.call(e,"callee")},Fe=Array.isArray;var He=te||function(){return!1};function je(e){if(!Be(e))return!1;var t=xe(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var Ge=I?function(e){return function(t){return e(t)}}(I):function(e){return ze(e)&&Ve(e.length)&&!!x[xe(e)]};function Ue(e){return null!=(t=e)&&Ve(t.length)&&!je(t)?$e(e):Ne(e);var t}e.exports=function(e,t){return ke(e,t)}}(Ri,Ri.exports);var Di=Ri.exports,Fi={exports:{}};!function(e){var t=function(){var e=function(e,t){var r=e,n=c[t],o=null,a=0,i=null,l=[],d={},s=function(e,t){o=function(e){for(var t=new Array(e),r=0;r<e;r+=1){t[r]=new Array(e);for(var n=0;n<e;n+=1)t[r][n]=null}return t}(a=4*r+17),u(0,0),u(a-7,0),u(0,a-7),f(),p(),h(e,t),r>=7&&m(e),null==i&&(i=v(r,n,l)),g(i,t)},u=function(e,t){for(var r=-1;r<=7;r+=1)if(!(e+r<=-1||a<=e+r))for(var n=-1;n<=7;n+=1)t+n<=-1||a<=t+n||(o[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},p=function(){for(var e=8;e<a-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<a-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},f=function(){for(var e=y.getPatternPosition(r),t=0;t<e.length;t+=1)for(var n=0;n<e.length;n+=1){var a=e[t],i=e[n];if(null==o[a][i])for(var l=-2;l<=2;l+=1)for(var d=-2;d<=2;d+=1)o[a+l][i+d]=-2==l||2==l||-2==d||2==d||0==l&&0==d}},m=function(e){for(var t=y.getBCHTypeNumber(r),n=0;n<18;n+=1){var i=!e&&1==(t>>n&1);o[Math.floor(n/3)][n%3+a-8-3]=i}for(n=0;n<18;n+=1){i=!e&&1==(t>>n&1);o[n%3+a-8-3][Math.floor(n/3)]=i}},h=function(e,t){for(var r=n<<3|t,i=y.getBCHTypeInfo(r),l=0;l<15;l+=1){var d=!e&&1==(i>>l&1);l<6?o[l][8]=d:l<8?o[l+1][8]=d:o[a-15+l][8]=d}for(l=0;l<15;l+=1){d=!e&&1==(i>>l&1);l<8?o[8][a-l-1]=d:l<9?o[8][15-l-1+1]=d:o[8][15-l-1]=d}o[a-8][8]=!e},g=function(e,t){for(var r=-1,n=a-1,i=7,l=0,d=y.getMaskFunction(t),s=a-1;s>0;s-=2)for(6==s&&(s-=1);;){for(var c=0;c<2;c+=1)if(null==o[n][s-c]){var u=!1;l<e.length&&(u=1==(e[l]>>>i&1)),d(n,s-c)&&(u=!u),o[n][s-c]=u,-1==(i-=1)&&(l+=1,i=7)}if((n+=r)<0||a<=n){n-=r,r=-r;break}}},v=function(e,t,r){for(var n=C.getRSBlocks(e,t),o=x(),a=0;a<r.length;a+=1){var i=r[a];o.put(i.getMode(),4),o.put(i.getLength(),y.getLengthInBits(i.getMode(),e)),i.write(o)}var l=0;for(a=0;a<n.length;a+=1)l+=n[a].dataCount;if(o.getLengthInBits()>8*l)throw"code length overflow. ("+o.getLengthInBits()+">"+8*l+")";for(o.getLengthInBits()+4<=8*l&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*l||(o.put(236,8),o.getLengthInBits()>=8*l));)o.put(17,8);return function(e,t){for(var r=0,n=0,o=0,a=new Array(t.length),i=new Array(t.length),l=0;l<t.length;l+=1){var d=t[l].dataCount,s=t[l].totalCount-d;n=Math.max(n,d),o=Math.max(o,s),a[l]=new Array(d);for(var c=0;c<a[l].length;c+=1)a[l][c]=255&e.getBuffer()[c+r];r+=d;var u=y.getErrorCorrectPolynomial(s),p=$(a[l],u.getLength()-1).mod(u);for(i[l]=new Array(u.getLength()-1),c=0;c<i[l].length;c+=1){var f=c+p.getLength()-i[l].length;i[l][c]=f>=0?p.getAt(f):0}}var m=0;for(c=0;c<t.length;c+=1)m+=t[c].totalCount;var h=new Array(m),g=0;for(c=0;c<n;c+=1)for(l=0;l<t.length;l+=1)c<a[l].length&&(h[g]=a[l][c],g+=1);for(c=0;c<o;c+=1)for(l=0;l<t.length;l+=1)c<i[l].length&&(h[g]=i[l][c],g+=1);return h}(o,n)};d.addData=function(e,t){var r=null;switch(t=t||"Byte"){case"Numeric":r=E(e);break;case"Alphanumeric":r=k(e);break;case"Byte":r=L(e);break;case"Kanji":r=N(e);break;default:throw"mode:"+t}l.push(r),i=null},d.isDark=function(e,t){if(e<0||a<=e||t<0||a<=t)throw e+","+t;return o[e][t]},d.getModuleCount=function(){return a},d.make=function(){if(r<1){for(var e=1;e<40;e++){for(var t=C.getRSBlocks(e,n),o=x(),a=0;a<l.length;a++){var i=l[a];o.put(i.getMode(),4),o.put(i.getLength(),y.getLengthInBits(i.getMode(),e)),i.write(o)}var c=0;for(a=0;a<t.length;a++)c+=t[a].dataCount;if(o.getLengthInBits()<=8*c)break}r=e}s(!1,function(){for(var e=0,t=0,r=0;r<8;r+=1){s(!0,r);var n=y.getLostPoint(d);(0==r||e>n)&&(e=n,t=r)}return t}())},d.createTableTag=function(e,t){e=e||2;var r="";r+='<table style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",r+='">',r+="<tbody>";for(var n=0;n<d.getModuleCount();n+=1){r+="<tr>";for(var o=0;o<d.getModuleCount();o+=1)r+='<td style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: 0px;",r+=" width: "+e+"px;",r+=" height: "+e+"px;",r+=" background-color: ",r+=d.isDark(n,o)?"#000000":"#ffffff",r+=";",r+='"/>';r+="</tr>"}return r+="</tbody>",r+="</table>"},d.createSvgTag=function(e,t,r,n){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,r=o.alt,n=o.title),e=e||2,t=void 0===t?4*e:t,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var a,i,l,s,c=d.getModuleCount()*e+2*t,u="";for(s="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',u+=o.scalable?"":' width="'+c+'px" height="'+c+'px"',u+=' viewBox="0 0 '+c+" "+c+'" ',u+=' preserveAspectRatio="xMinYMin meet"',u+=n.text||r.text?' role="img" aria-labelledby="'+b([n.id,r.id].join(" ").trim())+'"':"",u+=">",u+=n.text?'<title id="'+b(n.id)+'">'+b(n.text)+"</title>":"",u+=r.text?'<description id="'+b(r.id)+'">'+b(r.text)+"</description>":"",u+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',u+='<path d="',i=0;i<d.getModuleCount();i+=1)for(l=i*e+t,a=0;a<d.getModuleCount();a+=1)d.isDark(i,a)&&(u+="M"+(a*e+t)+","+l+s);return u+='" stroke="transparent" fill="black"/>',u+="</svg>"},d.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var r=d.getModuleCount()*e+2*t,n=t,o=r-t;return P(r,r,function(t,r){if(n<=t&&t<o&&n<=r&&r<o){var a=Math.floor((t-n)/e),i=Math.floor((r-n)/e);return d.isDark(i,a)?0:1}return 1})},d.createImgTag=function(e,t,r){e=e||2,t=void 0===t?4*e:t;var n=d.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=d.createDataURL(e,t),o+='"',o+=' width="',o+=n,o+='"',o+=' height="',o+=n,o+='"',r&&(o+=' alt="',o+=b(r),o+='"'),o+="/>"};var b=function(e){for(var t="",r=0;r<e.length;r+=1){var n=e.charAt(r);switch(n){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=n}}return t};return d.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,r,n,o,a,i=1*d.getModuleCount()+2*e,l=e,s=i-e,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},u={"██":"▀","█ ":"▀"," █":" "," ":" "},p="";for(t=0;t<i;t+=2){for(n=Math.floor((t-l)/1),o=Math.floor((t+1-l)/1),r=0;r<i;r+=1)a="█",l<=r&&r<s&&l<=t&&t<s&&d.isDark(n,Math.floor((r-l)/1))&&(a=" "),l<=r&&r<s&&l<=t+1&&t+1<s&&d.isDark(o,Math.floor((r-l)/1))?a+=" ":a+="█",p+=e<1&&t+1>=s?u[a]:c[a];p+="\n"}return i%2&&e>0?p.substring(0,p.length-i-1)+Array(i+1).join("▀"):p.substring(0,p.length-1)}(t);e-=1,t=void 0===t?2*e:t;var r,n,o,a,i=d.getModuleCount()*e+2*t,l=t,s=i-t,c=Array(e+1).join("██"),u=Array(e+1).join(" "),p="",f="";for(r=0;r<i;r+=1){for(o=Math.floor((r-l)/e),f="",n=0;n<i;n+=1)a=1,l<=n&&n<s&&l<=r&&r<s&&d.isDark(o,Math.floor((n-l)/e))&&(a=0),f+=a?c:u;for(o=0;o<e;o+=1)p+=f+"\n"}return p.substring(0,p.length-1)},d.renderTo2dContext=function(e,t){t=t||2;for(var r=d.getModuleCount(),n=0;n<r;n++)for(var o=0;o<r;o++)e.fillStyle=d.isDark(n,o)?"black":"white",e.fillRect(n*t,o*t,t,t)},d};e.stringToBytesFuncs={default:function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e.charCodeAt(r);t.push(255&n)}return t}},e.stringToBytes=e.stringToBytesFuncs.default,e.createStringToBytes=function(e,t){var r=function(){for(var r=_(e),n=function(){var e=r.read();if(-1==e)throw"eof";return e},o=0,a={};;){var i=r.read();if(-1==i)break;var l=n(),d=n()<<8|n();a[String.fromCharCode(i<<8|l)]=d,o+=1}if(o!=t)throw o+" != "+t;return a}(),n="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var a=e.charCodeAt(o);if(a<128)t.push(a);else{var i=r[e.charAt(o)];"number"==typeof i?(255&i)==i?t.push(i):(t.push(i>>>8),t.push(255&i)):t.push(n)}}return t}};var t,r,n,o,a,i=1,l=2,d=4,s=8,c={L:1,M:0,Q:3,H:2},u=0,p=1,f=2,m=3,h=4,g=5,v=6,b=7,y=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,n=7973,a=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(o={}).getBCHTypeInfo=function(e){for(var t=e<<10;a(t)-a(r)>=0;)t^=r<<a(t)-a(r);return 21522^(e<<10|t)},o.getBCHTypeNumber=function(e){for(var t=e<<12;a(t)-a(n)>=0;)t^=n<<a(t)-a(n);return e<<12|t},o.getPatternPosition=function(e){return t[e-1]},o.getMaskFunction=function(e){switch(e){case u:return function(e,t){return(e+t)%2==0};case p:return function(e,t){return e%2==0};case f:return function(e,t){return t%3==0};case m:return function(e,t){return(e+t)%3==0};case h:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case g:return function(e,t){return e*t%2+e*t%3==0};case v:return function(e,t){return(e*t%2+e*t%3)%2==0};case b:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},o.getErrorCorrectPolynomial=function(e){for(var t=$([1],0),r=0;r<e;r+=1)t=t.multiply($([1,w.gexp(r)],0));return t},o.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case i:return 10;case l:return 9;case d:case s:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case i:return 12;case l:return 11;case d:return 16;case s:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case i:return 14;case l:return 13;case d:return 16;case s:return 12;default:throw"mode:"+e}}},o.getLostPoint=function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n+=1)for(var o=0;o<t;o+=1){for(var a=0,i=e.isDark(n,o),l=-1;l<=1;l+=1)if(!(n+l<0||t<=n+l))for(var d=-1;d<=1;d+=1)o+d<0||t<=o+d||0==l&&0==d||i==e.isDark(n+l,o+d)&&(a+=1);a>5&&(r+=3+a-5)}for(n=0;n<t-1;n+=1)for(o=0;o<t-1;o+=1){var s=0;e.isDark(n,o)&&(s+=1),e.isDark(n+1,o)&&(s+=1),e.isDark(n,o+1)&&(s+=1),e.isDark(n+1,o+1)&&(s+=1),0!=s&&4!=s||(r+=3)}for(n=0;n<t;n+=1)for(o=0;o<t-6;o+=1)e.isDark(n,o)&&!e.isDark(n,o+1)&&e.isDark(n,o+2)&&e.isDark(n,o+3)&&e.isDark(n,o+4)&&!e.isDark(n,o+5)&&e.isDark(n,o+6)&&(r+=40);for(o=0;o<t;o+=1)for(n=0;n<t-6;n+=1)e.isDark(n,o)&&!e.isDark(n+1,o)&&e.isDark(n+2,o)&&e.isDark(n+3,o)&&e.isDark(n+4,o)&&!e.isDark(n+5,o)&&e.isDark(n+6,o)&&(r+=40);var c=0;for(o=0;o<t;o+=1)for(n=0;n<t;n+=1)e.isDark(n,o)&&(c+=1);return r+=Math.abs(100*c/t/t-50)/5*10},o),w=function(){for(var e=new Array(256),t=new Array(256),r=0;r<8;r+=1)e[r]=1<<r;for(r=8;r<256;r+=1)e[r]=e[r-4]^e[r-5]^e[r-6]^e[r-8];for(r=0;r<255;r+=1)t[e[r]]=r;var n={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return n}();function $(e,t){if(void 0===e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r<e.length&&0==e[r];)r+=1;for(var n=new Array(e.length-r+t),o=0;o<e.length-r;o+=1)n[o]=e[o+r];return n}(),n={getAt:function(e){return r[e]},getLength:function(){return r.length},multiply:function(e){for(var t=new Array(n.getLength()+e.getLength()-1),r=0;r<n.getLength();r+=1)for(var o=0;o<e.getLength();o+=1)t[r+o]^=w.gexp(w.glog(n.getAt(r))+w.glog(e.getAt(o)));return $(t,0)},mod:function(e){if(n.getLength()-e.getLength()<0)return n;for(var t=w.glog(n.getAt(0))-w.glog(e.getAt(0)),r=new Array(n.getLength()),o=0;o<n.getLength();o+=1)r[o]=n.getAt(o);for(o=0;o<e.getLength();o+=1)r[o]^=w.gexp(w.glog(e.getAt(o))+t);return $(r,0).mod(e)}};return n}var C=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var r={};return r.totalCount=e,r.dataCount=t,r},r={};return r.getRSBlocks=function(r,n){var o=function(t,r){switch(r){case c.L:return e[4*(t-1)+0];case c.M:return e[4*(t-1)+1];case c.Q:return e[4*(t-1)+2];case c.H:return e[4*(t-1)+3];default:return}}(r,n);if(void 0===o)throw"bad rs block @ typeNumber:"+r+"/errorCorrectionLevel:"+n;for(var a=o.length/3,i=[],l=0;l<a;l+=1)for(var d=o[3*l+0],s=o[3*l+1],u=o[3*l+2],p=0;p<d;p+=1)i.push(t(s,u));return i},r}(),x=function(){var e=[],t=0,r={getBuffer:function(){return e},getAt:function(t){var r=Math.floor(t/8);return 1==(e[r]>>>7-t%8&1)},put:function(e,t){for(var n=0;n<t;n+=1)r.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return t},putBit:function(r){var n=Math.floor(t/8);e.length<=n&&e.push(0),r&&(e[n]|=128>>>t%8),t+=1}};return r},E=function(e){var t=i,r=e,n={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+2<t.length;)e.put(o(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(o(t.substring(n,n+1)),4):t.length-n==2&&e.put(o(t.substring(n,n+2)),7))}},o=function(e){for(var t=0,r=0;r<e.length;r+=1)t=10*t+a(e.charAt(r));return t},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return n},k=function(e){var t=l,r=e,n={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+1<t.length;)e.put(45*o(t.charAt(n))+o(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(o(t.charAt(n)),6)}},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return n},L=function(t){var r=d,n=e.stringToBytes(t),o={getMode:function(){return r},getLength:function(e){return n.length},write:function(e){for(var t=0;t<n.length;t+=1)e.put(n[t],8)}};return o},N=function(t){var r=s,n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(){var e=n("友");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var o=n(t),a={getMode:function(){return r},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,r=0;r+1<t.length;){var n=(255&t[r])<<8|255&t[r+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(r+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13),r+=2}if(r<t.length)throw"illegal char at "+(r+1)}};return a},M=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,r,n){r=r||0,n=n||e.length;for(var o=0;o<n;o+=1)t.writeByte(e[o+r])},writeString:function(e){for(var r=0;r<e.length;r+=1)t.writeByte(e.charCodeAt(r))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var r=0;r<e.length;r+=1)r>0&&(t+=","),t+=e[r];return t+="]"}};return t},_=function(e){var t=e,r=0,n=0,o=0,a={read:function(){for(;o<8;){if(r>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(r);if(r+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(n=n<<6|i(e.charCodeAt(0)),o+=6)}var a=n>>>o-8&255;return o-=8,a}},i=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return a},P=function(e,t,r){for(var n=function(e,t){var r=e,n=t,o=new Array(e*t),a={setPixel:function(e,t,n){o[t*r+e]=n},write:function(e){e.writeString("GIF87a"),e.writeShort(r),e.writeShort(n),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(r),e.writeShort(n),e.writeByte(0);var t=i(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},i=function(e){for(var t=1<<e,r=1+(1<<e),n=e+1,a=l(),i=0;i<t;i+=1)a.add(String.fromCharCode(i));a.add(String.fromCharCode(t)),a.add(String.fromCharCode(r));var d,s,c,u=M(),p=(d=u,s=0,c=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;s+t>=8;)d.writeByte(255&(e<<s|c)),t-=8-s,e>>>=8-s,c=0,s=0;c|=e<<s,s+=t},flush:function(){s>0&&d.writeByte(c)}});p.write(t,n);var f=0,m=String.fromCharCode(o[f]);for(f+=1;f<o.length;){var h=String.fromCharCode(o[f]);f+=1,a.contains(m+h)?m+=h:(p.write(a.indexOf(m),n),a.size()<4095&&(a.size()==1<<n&&(n+=1),a.add(m+h)),m=h)}return p.write(a.indexOf(m),n),p.write(r,n),p.flush(),u.toByteArray()},l=function(){var e={},t=0,r={add:function(n){if(r.contains(n))throw"dup key:"+n;e[n]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return r};return a}(e,t),o=0;o<t;o+=1)for(var a=0;a<e;a+=1)n.setPixel(a,o,r(a,o));var i=M();n.write(i);for(var l=function(){var e=0,t=0,r=0,n="",o={},a=function(e){n+=String.fromCharCode(i(63&e))},i=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(n){for(e=e<<8|255&n,t+=8,r+=1;t>=6;)a(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(a(e<<6-t),e=0,t=0),r%3!=0)for(var o=3-r%3,i=0;i<o;i+=1)n+="="},o.toString=function(){return n},o}(),d=i.toByteArray(),s=0;s<d.length;s+=1)l.writeByte(d[s]);return l.flush(),"data:image/gif;base64,"+l};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(e)},e.exports=t}(Fi);var Hi,ji=Fi.exports,Vi=$a&&$a.__extends||(Hi=function(e,t){return Hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Hi(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Hi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Bi=$a&&$a.__assign||function(){return Bi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bi.apply(this,arguments)};Object.defineProperty(Ai,"__esModule",{value:!0});var zi=Ai.QRCode=void 0,Gi=Di,Ui=ji,Wi=o,Zi=function(e){function t(t){var r=e.call(this,t)||this;return r.canvasRef=Wi.createRef(),r}return Vi(t,e),t.prototype.download=function(e,t){if(this.canvasRef.current){var r=void 0;switch(e){case"jpg":r="image/jpeg";break;case"webp":r="image/webp";break;default:r="image/png"}var n=this.canvasRef.current.toDataURL(r,1),o=document.createElement("a");o.download=null!=t?t:"react-qrcode-logo",o.href=n,o.click()}},t.prototype.utf16to8=function(e){var t,r,n="",o=e.length;for(t=0;t<o;t++)(r=e.charCodeAt(t))>=1&&r<=127?n+=e.charAt(t):r>2047?(n+=String.fromCharCode(224|r>>12&15),n+=String.fromCharCode(128|r>>6&63),n+=String.fromCharCode(128|63&r)):(n+=String.fromCharCode(192|r>>6&31),n+=String.fromCharCode(128|63&r));return n},t.prototype.drawRoundedSquare=function(e,t,r,n,o,a,i,l){l.lineWidth=e,l.fillStyle=o,l.strokeStyle=o,r+=e/2,t+=e/2,n-=e,Array.isArray(a)||(a=[a,a,a,a]),a=a.map(function(e){return(e=Math.min(e,n/2))<0?0:e});var d=a[0]||0,s=a[1]||0,c=a[2]||0,u=a[3]||0;l.beginPath(),l.moveTo(t+d,r),l.lineTo(t+n-s,r),s&&l.quadraticCurveTo(t+n,r,t+n,r+s),l.lineTo(t+n,r+n-c),c&&l.quadraticCurveTo(t+n,r+n,t+n-c,r+n),l.lineTo(t+u,r+n),u&&l.quadraticCurveTo(t,r+n,t,r+n-u),l.lineTo(t,r+d),d&&l.quadraticCurveTo(t,r,t+d,r),l.closePath(),l.stroke(),i&&l.fill()},t.prototype.drawPositioningPattern=function(e,t,r,n,o,a,i){void 0===i&&(i=[0,0,0,0]);var l,d,s,c,u=Math.ceil(t);"number"==typeof i||Array.isArray(i)?d=l=i:(l=i.outer||0,d=i.inner||0),"string"!=typeof a?(s=a.outer,c=a.inner):(s=a,c=a);var p=n*t+r,f=o*t+r,m=7*t;this.drawRoundedSquare(u,f,p,m,s,l,!1,e),m=3*t,p+=2*t,f+=2*t,this.drawRoundedSquare(u,f,p,m,c,d,!0,e)},t.prototype.isInPositioninZone=function(e,t,r){return r.some(function(r){return t>=r.row&&t<=r.row+7&&e>=r.col&&e<=r.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(e,t){return e/t},t.prototype.isCoordinateInImage=function(e,t,r,n,o,a,i,l){if(l){var d=this.transformPixelLengthIntoNumberOfCells(o,i),s=this.transformPixelLengthIntoNumberOfCells(a,i),c=this.transformPixelLengthIntoNumberOfCells(r,i)-1,u=this.transformPixelLengthIntoNumberOfCells(n,i)-1;return t>=d-2&&t<=d+c+2&&e>=s-2&&e<=s+u+2}return!1},t.prototype.shouldComponentUpdate=function(e){return!Gi(this.props,e)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var e,t=this.props,r=t.value,n=t.ecLevel,o=t.enableCORS,a=t.bgColor,i=t.fgColor,l=t.logoImage,d=t.logoOpacity,s=t.logoOnLoad,c=t.removeQrCodeBehindLogo,u=t.qrStyle,p=t.eyeRadius,f=t.eyeColor,m=t.logoPaddingStyle,h=+this.props.size,g=+this.props.quietZone,v=this.props.logoWidth?+this.props.logoWidth:0,b=this.props.logoHeight?+this.props.logoHeight:0,y=this.props.logoPadding?+this.props.logoPadding:0,w=Ui(0,n);w.addData(this.utf16to8(r)),w.make();var $=null===(e=this.canvasRef)||void 0===e?void 0:e.current,C=$.getContext("2d"),x=h+2*g,E=w.getModuleCount(),k=h/E,L=window.devicePixelRatio||1;$.height=$.width=x*L,C.scale(L,L),C.fillStyle=a,C.fillRect(0,0,x,x);var N=g,M=[{row:0,col:0},{row:0,col:E-7},{row:E-7,col:0}];if(C.strokeStyle=i,"dots"===u){C.fillStyle=i;for(var _=k/2,P=0;P<E;P++)for(var T=0;T<E;T++)w.isDark(P,T)&&!this.isInPositioninZone(P,T,M)&&(C.beginPath(),C.arc(Math.round(T*k)+_+N,Math.round(P*k)+_+N,_/100*75,0,2*Math.PI,!1),C.closePath(),C.fill())}else if("fluid"===u){for(_=Math.ceil(k/2),P=0;P<E;P++)for(T=0;T<E;T++)if(w.isDark(P,T)&&!this.isInPositioninZone(P,T,M)){var I=[!1,!1,!1,!1];P>0&&!w.isDark(P-1,T)&&T>0&&!w.isDark(P,T-1)&&(I[0]=!0),P>0&&!w.isDark(P-1,T)&&T<E-1&&!w.isDark(P,T+1)&&(I[1]=!0),P<E-1&&!w.isDark(P+1,T)&&T<E-1&&!w.isDark(P,T+1)&&(I[2]=!0),P<E-1&&!w.isDark(P+1,T)&&T>0&&!w.isDark(P,T-1)&&(I[3]=!0);var S=Math.ceil((T+1)*k)-Math.floor(T*k),O=Math.ceil((P+1)*k)-Math.floor(P*k);C.fillStyle=i,C.beginPath(),C.arc(Math.round(T*k)+_+N,Math.round(P*k)+_+N,_,0,2*Math.PI,!1),C.closePath(),C.fill(),I[0]||C.fillRect(Math.round(T*k)+N,Math.round(P*k)+N,S/2,O/2),I[1]||C.fillRect(Math.round(T*k)+N+Math.floor(S/2),Math.round(P*k)+N,S/2,O/2),I[2]||C.fillRect(Math.round(T*k)+N+Math.floor(S/2),Math.round(P*k)+N+Math.floor(O/2),S/2,O/2),I[3]||C.fillRect(Math.round(T*k)+N,Math.round(P*k)+N+Math.floor(O/2),S/2,O/2)}}else for(P=0;P<E;P++)for(T=0;T<E;T++)if(w.isDark(P,T)&&!this.isInPositioninZone(P,T,M)){C.fillStyle=i;S=Math.ceil((T+1)*k)-Math.floor(T*k),O=Math.ceil((P+1)*k)-Math.floor(P*k);C.fillRect(Math.round(T*k)+N,Math.round(P*k)+N,S,O)}for(var A=0;A<3;A++){var R=M[A],D=(P=R.row,T=R.col,p),F=void 0;Array.isArray(D)&&(D=D[A]),"number"==typeof D&&(D=[D,D,D,D]),F=f?Array.isArray(f)?f[A]:f:i,this.drawPositioningPattern(C,k,N,P,T,F,D)}if(l){var H=new Image;o&&(H.crossOrigin="Anonymous"),H.onload=function(e){C.save();var t=v||.2*h,r=b||t,n=(h-t)/2,o=(h-r)/2;if(c||y){C.beginPath(),C.strokeStyle=a,C.fillStyle=a;var i=t+2*y,l=r+2*y,u=n+N-y,p=o+N-y;if("circle"===m){var f=u+i/2,g=p+l/2;C.ellipse(f,g,i/2,l/2,0,0,2*Math.PI),C.stroke(),C.fill()}else C.fillRect(u,p,i,l)}C.globalAlpha=d,C.drawImage(H,n+N,o+N,t,r),C.restore(),s&&s(e)},H.src=l}},t.prototype.render=function(){var e,t=+this.props.size+2*+this.props.quietZone;return Wi.createElement("canvas",{id:null!==(e=this.props.id)&&void 0!==e?e:"react-qrcode-logo",height:t,width:t,style:Bi({height:t+"px",width:t+"px"},this.props.style),ref:this.canvasRef})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(Wi.Component);zi=Ai.QRCode=Zi;const Yi=({enableLink:r=!0,label:n="Secured by",onClickOverride:o})=>{const a=t("svg",{width:62,height:23,viewBox:"0 0 83 31",xmlns:"http://www.w3.org/2000/svg",children:[e("defs",{children:t("linearGradient",{id:"logo-gradient",x1:"-100%",y1:"0%",x2:"100%",y2:"0%",gradientUnits:"userSpaceOnUse",children:[e("stop",{offset:"0%",stopColor:"#402FC3"}),e("stop",{offset:"33%",stopColor:"#C970FF"}),e("stop",{offset:"67%",stopColor:"#C970FF"}),e("stop",{offset:"100%",stopColor:"#402FC3"}),e("animate",{attributeName:"x1",from:"-100%",to:"100%",dur:"4s",repeatCount:"indefinite"}),e("animate",{attributeName:"x2",from:"0%",to:"200%",dur:"4s",repeatCount:"indefinite"})]})}),t("g",{children:[e("path",{d:"M45.1797 20.8929H47.7932V8.70022H44.1379L41.1771 16.3047L38.2163 8.70022H34.5792V20.8929H37.1745V12.1186L40.6105 20.8929H41.7437L45.1797 12.1186V20.8929Z"}),e("path",{d:"M55.4597 20.8929H57.7808V15.1896C57.7808 12.6487 55.9349 11.8444 53.9245 11.8444C52.5354 11.8444 51.1464 12.2831 50.0681 13.2336L50.9454 14.7874C51.6947 14.0928 52.572 13.7455 53.5224 13.7455C54.6921 13.7455 55.4597 14.3304 55.4597 15.2262V16.4509C54.8748 15.738 53.8331 15.3724 52.6634 15.3724C51.2561 15.3724 49.5929 16.1219 49.5929 18.1875C49.5929 20.1617 51.2561 21.1123 52.6634 21.1123C53.8148 21.1123 54.8566 20.6918 55.4597 19.9789V20.8929ZM55.4597 18.7725C55.0759 19.2843 54.3448 19.5402 53.5955 19.5402C52.6816 19.5402 51.9323 19.0649 51.9323 18.2423C51.9323 17.4015 52.6816 16.9079 53.5955 16.9079C54.3448 16.9079 55.0759 17.1638 55.4597 17.6757V18.7725Z"}),e("path",{d:"M59.9003 23.1596C60.9969 24.1285 62.1849 24.4758 63.7019 24.4758C65.8768 24.4758 68.4721 23.6532 68.4721 20.2897V12.0637H66.1327V13.1971C65.4199 12.3014 64.4695 11.8444 63.4094 11.8444C61.1797 11.8444 59.5165 13.453 59.5165 16.3412C59.5165 19.2843 61.198 20.8381 63.4094 20.8381C64.4878 20.8381 65.4382 20.3262 66.1327 19.4488V20.3445C66.1327 22.0811 64.8167 22.5747 63.7019 22.5747C62.587 22.5747 61.6549 22.2639 60.9421 21.4779L59.9003 23.1596ZM66.1327 17.7671C65.7489 18.3337 64.9081 18.7725 64.1405 18.7725C62.8246 18.7725 61.9108 17.8585 61.9108 16.3412C61.9108 14.824 62.8246 13.91 64.1405 13.91C64.9081 13.91 65.7489 14.3304 66.1327 14.9154V17.7671Z"}),e("path",{d:"M71.9256 10.7659C72.6933 10.7659 73.3147 10.1443 73.3147 9.37658C73.3147 8.60882 72.6933 7.9873 71.9256 7.9873C71.1763 7.9873 70.5366 8.60882 70.5366 9.37658C70.5366 10.1443 71.1763 10.7659 71.9256 10.7659ZM70.7742 20.8929H73.0953V12.0637H70.7742V20.8929Z"}),e("path",{d:"M74.8303 16.4692C74.8303 19.1929 76.7859 21.1123 79.5092 21.1123C81.3185 21.1123 82.4151 20.3262 83 19.5037L81.483 18.0961C81.0627 18.6811 80.423 19.0467 79.6188 19.0467C78.2115 19.0467 77.2246 18.0047 77.2246 16.4692C77.2246 14.9337 78.2115 13.91 79.6188 13.91C80.423 13.91 81.0627 14.2573 81.483 14.8606L83 13.453C82.4151 12.6304 81.3185 11.8444 79.5092 11.8444C76.7859 11.8444 74.8303 13.7638 74.8303 16.4692Z"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7002 -5.55184e-07C14.0256 1.62362 15.4875 3.13142 17.0683 4.50592C16.0151 7.92275 15.4481 11.5529 15.4481 15.3154C15.4481 19.078 16.0151 22.7082 17.0684 26.125C15.4876 27.4995 14.0257 29.0073 12.7003 30.6309C11.375 29.0075 9.91333 27.4998 8.33271 26.1255C9.38605 22.7085 9.95313 19.0782 9.95313 15.3154C9.95313 11.5527 9.38605 7.92237 8.3327 4.50537C9.9133 3.13103 11.375 1.6234 12.7002 -5.55184e-07ZM5.3107 23.7627C3.63771 22.5899 1.86221 21.5534 0.000311902 20.6694C0.516837 18.976 0.794702 17.1784 0.794702 15.316C0.794702 13.4532 0.516736 11.6553 3.00821e-05 9.9616C1.86203 9.07753 3.63762 8.04101 5.3107 6.86817C5.95048 9.57999 6.28902 12.4082 6.28902 15.3154C6.28902 18.2227 5.95049 21.0509 5.3107 23.7627ZM19.1114 15.3154C19.1114 18.2227 19.4499 21.051 20.0897 23.7628C21.763 22.5898 23.5388 21.5531 25.4011 20.669C24.8847 18.9757 24.6069 17.1783 24.6069 15.3159C24.6069 13.4534 24.8848 11.6557 25.4014 9.96213C23.539 9.07794 21.7631 8.04124 20.0897 6.86817C19.4499 9.57999 19.1114 12.4082 19.1114 15.3154Z"})]})]}),i=t("div",{className:mt("flex items-center justify-center fill-ink-50 dark:fill-ink-70",r&&"hover:fill-[url(#logo-gradient)] active:fill-[url(#logo-gradient)] focus:fill-[url(#logo-gradient)]"),children:[e("p",{className:mt("text-ink-50 dark:text-ink-70 text-xs mr-2",r&&"group-hover:text-text-tertiary"),children:n}),a]});return t("div",{className:mt(r?"cursor-pointer":"cursor-default","group"),children:[r&&e("a",{onClick:e=>{o&&(e.preventDefault(),o())},tabIndex:0,"aria-label":"Secured by Magic",href:"https://magic.link/",target:"_blank",rel:"noopener noreferrer",children:i}),!r&&i]})};Yi.displayName="SecuredByMagic";const Ki=({children:r,showLogo:n=!0,...o})=>t("div",{className:"flex flex-col items-center gap-2.5 w-full p-8",children:[r,n&&e(Yi,{...o})]}),qi=si("div"),Xi=si("div"),Qi=si("div"),Ji=Object.assign(({children:r,position:n="absolute"})=>di(r,r=>{var o,a;return t("div",{className:mt("flex flex-row items-center justify-between gap-2.5 p-4 left-0 right-0 top-0 w-full [&>*:first-child]:min-w-[2rem] [&>*:last-child]:min-w-[2rem]","absolute"===n&&"absolute","relative"===n&&"relative","fixed"===n&&"fixed","sticky"===n&&"sticky","static"===n&&"static"),children:[null!==(o=r.get(Xi))&&void 0!==o?o:e("div",{}),r.get(qi),null!==(a=r.get(Qi))&&void 0!==a?a:e("div",{})]})}),{Content:qi,LeftAction:Xi,RightAction:Qi}),el=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),e("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),e("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6ZM2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12ZM3 17C2.44772 17 2 17.4477 2 18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18C22 17.4477 21.5523 17 21 17H3Z",fill:"currentColor"})]}),tl=si("div"),rl=si("div"),nl=si("div");Object.assign(({children:n,placement:o="right",isOpen:l=!1})=>{const[d,c]=a(l),[u,p]=a(d),f=i(null),m="left"===o;return s(()=>{c(l)},[l]),s(()=>{let e;return d?e=setTimeout(()=>p(!0),10):p(!1),()=>clearTimeout(e)},[d]),s(()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c]),di(n,n=>t(r,{children:[e(Mi,{onPress:()=>c(e=>!e),textStyle:"neutral",variant:"text",children:e(Mi.TrailingIcon,{children:e(el,{})})}),e("div",{className:mt("absolute bottom-0 left-0 right-0 h-full bg-[color-mix(in_srgb,var(--color-text-primary)_20%,transparent)] dark:bg-[rgba(0,0,0,0.7)]",d?"block":"hidden")}),t("div",{ref:f,className:mt("absolute top-0 bottom-0 flex flex-col justify-between bg-surface-primary dark:bg-surface-secondary z-10 p-4 pb-6 w-80 transition-transform duration-300",m?"left-0 rounded-r-2xl":"right-0 rounded-l-2xl",u?"translate-x-0":m?"-translate-x-full":"translate-x-full"),children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"flex flex-col h-full justify-between",children:n.get(tl)}),e("hr",{className:"border-surface-quaternary"}),e("div",{className:"flex flex-col",children:n.get(rl)})]}),n.get(nl)]})]}))},{Header:tl,Content:rl,Footer:nl});const ol=({animate:e,show:t,onHidden:r,onShown:n})=>{const[o,i]=a(t),d=l(()=>n(),[]),c=l(()=>{i(!1),r()},[]);return s(()=>{t?i(!0):e||i(!1)},[t]),{displayed:o,onShow:d,onHide:c}},al=ka({slots:["content","wrapper"],base:{content:"h-full w-full box-border",wrapper:["h-full w-full bg-surface-primary relative overflow-auto","[scrollbar-width:none]"].join(" ")},variants:{fullscreen:{true:{wrapper:"h-screen w-screen"},false:{wrapper:["md:top-12 md:mx-auto md:w-[25rem] md:h-fit","md:shadow-[0px_12px_56px_rgba(119,118,122,0.15)]","md:rounded-container","md:dark:shadow-none"].join(" ")}},animate:{false:{wrapper:"[animation-name:none] scale-100"}},isOpen:{true:{}},paddingType:{none:{wrapper:"p-0"},sm:{wrapper:"p-2 pb-0"},md:{wrapper:"p-4 pb-0"},lg:{wrapper:"p-8 pb-0"}},showBorder:{true:{wrapper:"md:dark:border md:dark:border-solid md:dark:border-neutral-secondary"}},isMobileBrowser:{true:{}},isWidget:{true:{wrapper:"h-auto md:top-0"}}},compoundVariants:[{animate:!0,isOpen:!0,class:{wrapper:"[animation-fill-mode:forwards] [animation-name:scaleIn] [animation-duration:250ms] motion-reduce:scale-100"}},{animate:!0,isOpen:!1,class:{wrapper:"[animation-fill-mode:forwards] [animation-name:scaleOut] [animation-duration:150ms] motion-reduce:scale-100"}},{fullscreen:!0,isMobileBrowser:!0,class:{wrapper:"max-md:h-[100dvh]"}},{fullscreen:!1,isWidget:!0,class:{wrapper:"max-w-[25rem] mx-auto rounded-container dark:border dark:border-solid dark:border-neutral-secondary"}}],defaultVariants:{animate:!0,isOpen:!0,paddingType:"none"}}),il=(()=>{if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/Mobi|Android|iPhone|iPad/i.test(e)})(),ll=({animate:t=!0,paddingType:r="none",gap:n=2.5,isOpen:o=!0,onAnimated:a=()=>{},onClosed:i=()=>{},showBorder:l=!0,fullscreen:d=!1,isWidget:s=!1,children:c})=>{const u=al({animate:t,isOpen:o,paddingType:r,showBorder:l,fullscreen:d,isWidget:s,isMobileBrowser:il}),{displayed:p,onHide:f,onShow:m}=ol({animate:t,show:o,onHidden:i,onShown:a});return p?e("div",{className:u.wrapper,onAnimationEnd:o?m:f,children:e("div",{className:mt(u.content,"flex flex-col items-center"),style:{gap:.25*n+"rem"},children:c})}):null};ll.displayName="Modal";const dl=ka({slots:["bg","container"],base:{bg:"h-full w-full pointer-events-auto fixed top-0 left-0",container:["h-screen w-screen max-w-[100rem] relative mx-auto","md:h-fit"].join(" ")},variants:{fullscreen:{true:{container:"max-w-none"}},animate:{false:{bg:"[animation-name:none]"}},backgroundType:{blurred:{bg:"backdrop-blur-[0.375rem]"},solid:{bg:"bg-surface-tertiary"},transparent:{},none:{}},hide:{false:{}}},compoundVariants:[{animate:!0,hide:!1,class:{bg:"[animation-fill-mode:forwards] [animation-name:fadeIn] [animation-duration:400ms]"}},{animate:!0,hide:!0,class:{bg:"[animation-fill-mode:forwards] [animation-name:fadeOut] [animation-duration:400ms]"}}],defaultVariants:{animate:!0,backgroundType:"none",hide:!1}}),sl=({animate:r=!0,backgroundType:n="none",hide:o=!1,fullscreen:a=!1,onAnimated:i=()=>{},onHidden:l=()=>{},children:d})=>{const s=dl({animate:r,backgroundType:n,hide:o,fullscreen:a}),{displayed:c,onHide:u,onShow:p}=ol({animate:r,show:!o,onHidden:l,onShown:i});if(!c)return null;const f="none"!==n;return t("div",{className:mt(s.container,"flex flex-col items-center"),children:[f&&e("div",{className:s.bg,onAnimationEnd:o?u:p,style:{..."blurred"===n&&{backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)"}}}),d]})};sl.displayName="Overlay";const cl=({title:r,titleId:n,...o})=>t("svg",{width:78,height:24,viewBox:"0 0 78 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M9.41316 1.84616H3.41316C3.02854 1.84616 2.64393 2.15385 2.567 2.53847L0.182389 17.9231C0.105466 18.2308 0.336235 18.4615 0.643928 18.4615H3.49008C3.8747 18.4615 4.25931 18.1539 4.33624 17.7692L4.95162 13.6154C5.02854 13.2308 5.33624 12.9231 5.79777 12.9231H7.72085C11.6439 12.9231 13.9516 11 14.567 7.23078C14.7978 5.61539 14.567 4.3077 13.7978 3.38462C12.9516 2.38462 11.4132 1.84616 9.41316 1.84616ZM10.1055 7.46155C9.79777 9.61539 8.10547 9.61539 6.567 9.61539H5.64393L6.25931 5.61539C6.25931 5.38462 6.49008 5.23078 6.72085 5.23078H7.10547C8.18239 5.23078 9.18239 5.23078 9.72085 5.84616C10.1055 6.15385 10.2593 6.69232 10.1055 7.46155Z",fill:"#003087"}),e("path",{d:"M27.2593 7.38462H24.4131C24.1824 7.38462 23.9516 7.53846 23.9516 7.76923L23.7978 8.53846L23.567 8.23077C22.9516 7.30769 21.567 7 20.1824 7C17.0285 7 14.3362 9.38461 13.7978 12.7692C13.4901 14.4615 13.8747 16.0769 14.8747 17.1538C15.7208 18.1538 17.0285 18.6154 18.4901 18.6154C21.0285 18.6154 22.4901 17 22.4901 17L22.3362 17.7692C22.2593 18.0769 22.4901 18.3846 22.7978 18.3846H25.4131C25.7978 18.3846 26.1824 18.0769 26.2593 17.6923L27.7978 7.84615C27.8747 7.69231 27.567 7.38462 27.2593 7.38462ZM23.3362 12.9231C23.0285 14.5385 21.7978 15.6923 20.1055 15.6923C19.2593 15.6923 18.6439 15.4615 18.1824 14.9231C17.7208 14.3846 17.567 13.6923 17.7208 12.9231C17.9516 11.3077 19.3362 10.1538 20.9516 10.1538C21.7978 10.1538 22.4131 10.4615 22.8747 10.9231C23.2593 11.4615 23.4131 12.1538 23.3362 12.9231Z",fill:"#003087"}),e("path",{d:"M42.5669 7.38461H39.7207C39.413 7.38461 39.1823 7.53846 39.0284 7.76923L35.0284 13.6154L33.3361 8C33.2592 7.61538 32.8746 7.38461 32.5669 7.38461H29.7207C29.413 7.38461 29.1053 7.69231 29.2592 8.07692L32.413 17.3846L29.413 21.5385C29.1823 21.8462 29.413 22.3077 29.7976 22.3077H32.6438C32.9515 22.3077 33.1823 22.1538 33.3361 21.9231L42.9515 8.07692C43.1823 7.84615 42.9515 7.38461 42.5669 7.38461Z",fill:"#003087"}),e("path",{d:"M52.1053 1.84616H46.1053C45.7207 1.84616 45.3361 2.15385 45.2591 2.53847L42.8745 17.8462C42.7976 18.1539 43.0284 18.3846 43.3361 18.3846H46.413C46.7207 18.3846 46.9515 18.1539 46.9515 17.9231L47.6438 13.5385C47.7207 13.1539 48.0284 12.8462 48.4899 12.8462H50.413C54.3361 12.8462 56.6438 10.9231 57.2591 7.15385C57.4899 5.53847 57.2591 4.23078 56.4899 3.3077C55.5668 2.38462 54.1053 1.84616 52.1053 1.84616ZM52.7976 7.46154C52.4899 9.61539 50.7976 9.61539 49.2591 9.61539H48.3361L48.9515 5.61539C48.9515 5.38462 49.1822 5.23078 49.413 5.23078H49.7976C50.8745 5.23078 51.8745 5.23078 52.413 5.84616C52.7976 6.15385 52.8745 6.69231 52.7976 7.46154Z",fill:"#009CDE"}),e("path",{d:"M69.9514 7.38462H67.1053C66.8745 7.38462 66.6437 7.53846 66.6437 7.76923L66.4899 8.53846L66.2591 8.23077C65.6437 7.30769 64.2591 7 62.8745 7C59.7207 7 57.0284 9.38461 56.4899 12.7692C56.1822 14.4615 56.5668 16.0769 57.5668 17.1538C58.413 18.1538 59.7207 18.6154 61.1822 18.6154C63.7207 18.6154 65.1822 17 65.1822 17L65.0284 17.7692C64.9514 18.0769 65.1822 18.3846 65.4899 18.3846H68.1053C68.4899 18.3846 68.8745 18.0769 68.9514 17.6923L70.4899 7.84615C70.4899 7.69231 70.2591 7.38462 69.9514 7.38462ZM65.9514 12.9231C65.6437 14.5385 64.413 15.6923 62.7207 15.6923C61.8745 15.6923 61.2591 15.4615 60.7976 14.9231C60.3361 14.3846 60.1822 13.6923 60.3361 12.9231C60.5668 11.3077 61.9514 10.1538 63.5668 10.1538C64.413 10.1538 65.0284 10.4615 65.4899 10.9231C65.9514 11.4615 66.1053 12.1538 65.9514 12.9231Z",fill:"#009CDE"}),e("path",{d:"M73.3363 2.23078L70.8748 17.8462C70.7978 18.1539 71.0286 18.3846 71.3363 18.3846H73.7978C74.1825 18.3846 74.5671 18.0769 74.644 17.6923L77.1055 2.38462C77.1825 2.07693 76.9517 1.84616 76.644 1.84616H73.8748C73.5671 1.84616 73.4132 2.00001 73.3363 2.23078Z",fill:"#009CDE"})]}),ul=f((r,n)=>{const{disabled:o,validating:a}=r;return e(Ca,{ref:n,className:"bg-[#ffc439] border border-transparent px-6 py-2.5 focus-visible:outline-[#ffc439]","aria-disabled":o,shadow:!0,...r,children:a?e(Ia,{size:24,strokeWidth:2.5,inverted:!0}):t("div",{className:"flex flex-row items-center w-full gap-1 justify-center",children:[e(Ya,{fontWeight:"semibold",styles:{color:"var(--color-ink-90)"},children:"Pay with"}),e("div",{className:"mt-0.5",children:e(cl,{width:60})})]})})});ul.displayName="PayPalButton";const pl=({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M22.556 12.2409C22.556 11.3365 22.4826 10.6766 22.3238 9.99219H11.9968V14.074H18.0585C17.9364 15.0884 17.2764 16.6161 15.8098 17.6426L15.7893 17.7793L19.0545 20.3088L19.2807 20.3314C21.3583 18.4126 22.556 15.5895 22.556 12.2409Z",fill:"#4285F4"}),e("path",{d:"M11.9987 23C14.9684 23 17.4615 22.0223 19.2825 20.3358L15.8117 17.6471C14.8829 18.2948 13.6363 18.747 11.9987 18.747C9.09006 18.747 6.62139 16.8283 5.74137 14.1763L5.61238 14.1873L2.21719 16.8148L2.17279 16.9383C3.98152 20.5313 7.69678 23 11.9987 23Z",fill:"#34A853"}),e("path",{d:"M5.74179 14.1771C5.5096 13.4927 5.37521 12.7594 5.37521 12.0017C5.37521 11.2439 5.5096 10.5107 5.72958 9.82631L5.72343 9.68055L2.28569 7.01077L2.17321 7.06427C1.42775 8.55528 1 10.2296 1 12.0017C1 13.7738 1.42775 15.448 2.17321 16.939L5.74179 14.1771Z",fill:"#FBBC05"}),e("path",{d:"M11.9987 5.25296C14.0641 5.25296 15.4572 6.14511 16.2517 6.89066L19.3558 3.85977C17.4494 2.0877 14.9684 1 11.9987 1C7.69678 1 3.98152 3.46867 2.17279 7.06169L5.72916 9.82373C6.62139 7.17172 9.09006 5.25296 11.9987 5.25296Z",fill:"#EB4335"})]});var fl;(fl||(fl={})).GOOGLE="google",e(pl,{});const ml=({width:t="100px",height:r="20px",speed:n="1.5s",borderRadius:o="24px",backgroundColor:a})=>e("div",{style:{width:t,height:r,borderRadius:o,backgroundColor:a},className:"bg-neutral-tertiary overflow-hidden relative dark:bg-surface-primary",children:e("div",{style:{animation:`slideRight ${n} infinite ease-in-out`},className:"w-full h-full absolute top-0 -left-1/2 skew-x-[-20deg] bg-gradient-to-r from-transparent via-black/10 to-transparent dark:bg-gradient-to-r dark:from-transparent dark:via-white/15 dark:to-transparent"})});ka({slots:["container","portal","toast","icon","dismiss"],base:{portal:"box-border fixed z-max top-0 left-0 h-screen w-screen pointer-events-none",container:"h-full w-full p-5",toast:"py-2 px-4 rounded-[10px] shadow-[4px_8px_20px_0px_rgba(0,0,0,0.15)]",dismiss:"cursor-pointer pointer-events-auto",icon:"text-surface-primary h-4 w-4"},variants:{variant:{branded:{toast:"bg-brand-base"},success:{toast:"bg-positive-darker"},warning:{toast:"bg-warning-darker"},error:{toast:"bg-negative-darker"},neutral:{toast:"bg-text-tertiary dark:bg-text-secondary"}},position:{top:{container:"items-center justify-start"},"top-left":{container:"items-start justify-start"},"top-right":{container:"items-end justify-start"},bottom:{container:"items-center justify-end"},"bottom-left":{container:"items-start justify-end"},"bottom-right":{container:"items-end justify-end"}}},defaultVariants:{position:"top-right",variant:"branded"}});const hl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6508 6.75927C11.0701 6.39985 11.1187 5.76855 10.7593 5.34923C10.3998 4.9299 9.76853 4.88134 9.34921 5.24076L2.34921 11.2408C2.12756 11.4307 2 11.7081 2 12C2 12.2919 2.12756 12.5693 2.34921 12.7593L9.34921 18.7593C9.76853 19.1187 10.3998 19.0701 10.7593 18.6508C11.1187 18.2315 11.0701 17.6002 10.6508 17.2408L5.70324 13H21C21.5523 13 22 12.5523 22 12C22 11.4477 21.5523 11 21 11H5.70328L10.6508 6.75927Z",fill:"currentColor"})]}),gl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3492 6.75927C12.9299 6.39985 12.8813 5.76855 13.2407 5.34923C13.6002 4.9299 14.2315 4.88134 14.6508 5.24076L21.6508 11.2408C21.8724 11.4307 22 11.7081 22 12C22 12.2919 21.8724 12.5693 21.6508 12.7593L14.6508 18.7593C14.2315 19.1187 13.6002 19.0701 13.2407 18.6508C12.8813 18.2315 12.9299 17.6002 13.3492 17.2408L18.2968 13H3C2.44772 13 2 12.5523 2 12C2 11.4477 2.44772 11 3 11H18.2967L13.3492 6.75927Z",fill:"currentColor"})]}),vl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 2C4.23858 2 2 4.23858 2 7V15H1C0.447715 15 0 15.4477 0 16V17C0 19.7614 2.23858 22 5 22H19C21.7614 22 24 19.7614 24 17V16C24 15.4477 23.5523 15 23 15H22V7C22 4.23858 19.7614 2 17 2H7ZM20 15V7C20 5.34315 18.6569 4 17 4H7C5.34315 4 4 5.34315 4 7V15H7.5C7.70188 15 7.89903 15.0611 8.06553 15.1753L9.30432 16.0247C9.47082 16.1389 9.66797 16.2 9.86985 16.2H14.2984C14.5255 16.2 14.7458 16.1227 14.9231 15.9809L15.8753 15.2191C16.0526 15.0773 16.2729 15 16.5 15H20ZM5 20C3.34315 20 2 18.6569 2 17H7.19008L8.17326 17.6742C8.67275 18.0167 9.26421 18.2 9.86985 18.2H14.2984C14.9797 18.2 15.6406 17.9682 16.1725 17.5426L16.8508 17H22C22 18.6569 20.6569 20 19 20H5ZM10.8321 12.5547C11.1384 12.0952 11.0142 11.4743 10.5547 11.168L8.80278 10L10.5547 8.83207C11.0142 8.52571 11.1384 7.90484 10.8321 7.44532C10.5257 6.98579 9.90483 6.86161 9.4453 7.16797L6.4453 9.16797C6.1671 9.35343 6 9.66566 6 10C6 10.3344 6.1671 10.6466 6.4453 10.8321L9.4453 12.8321C9.90483 13.1384 10.5257 13.0142 10.8321 12.5547ZM13.4453 11.168C12.9858 11.4743 12.8616 12.0952 13.1679 12.5547C13.4743 13.0142 14.0952 13.1384 14.5547 12.8321L17.5547 10.8321C17.8329 10.6466 18 10.3344 18 10C18 9.66566 17.8329 9.35343 17.5547 9.16797L14.5547 7.16797C14.0952 6.86161 13.4743 6.98579 13.1679 7.44532C12.8616 7.90484 12.9858 8.52571 13.4453 8.83207L15.1972 10L13.4453 11.168Z",fill:"currentColor"})]}),bl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5.39073C9.05751 3.78449 10.3778 2.5 11.998 2.5H14.053L14.0166 6.47252C14.0013 8.14005 15.3489 9.5 17.0165 9.5H20.998V13.5C20.998 15.1569 19.6549 16.5 17.998 16.5H16H11.998C10.3412 16.5 8.99805 15.1569 8.99805 13.5V7H9V5.39073ZM7.02273 5C7.2736 2.47334 9.40537 0.5 11.998 0.5H15.3412C16.6673 0.5 17.939 1.02678 18.8767 1.96446L21.5336 4.62132C22.4713 5.559 22.998 6.83077 22.998 8.15685V13.5C22.998 16.2614 20.7595 18.5 17.998 18.5H17.9753C17.7245 21.0267 15.5927 23 13 23H7C4.23858 23 2 20.7614 2 18V10C2 7.23858 4.23858 5 7 5H7.02273ZM6.99805 7C5.34209 7.00106 4 8.3438 4 10V18C4 19.6569 5.34315 21 7 21H13C14.4865 21 15.7205 19.9189 15.9585 18.5H11.998C9.23662 18.5 6.99805 16.2614 6.99805 13.5V7ZM16.0165 6.49084L16.0523 2.58548C16.5818 2.71468 17.0707 2.9869 17.4625 3.37868L20.1194 6.03553C20.5245 6.44065 20.8018 6.94969 20.9253 7.5H17.0165C16.4606 7.5 16.0114 7.04668 16.0165 6.49084Z",fill:"currentColor"})]}),yl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM7.24423 7.24408C7.56967 6.91864 8.09732 6.91864 8.42276 7.24408L12.0001 10.8214L15.5774 7.24408C15.9028 6.91864 16.4305 6.91864 16.7559 7.24408C17.0814 7.56952 17.0814 8.09717 16.7559 8.42261L13.1786 11.9999L16.7561 15.5774C17.0815 15.9028 17.0815 16.4305 16.7561 16.7559C16.4306 17.0814 15.903 17.0814 15.5775 16.7559L12.0001 13.1785L8.42261 16.7559C8.09717 17.0814 7.56952 17.0814 7.24408 16.7559C6.91864 16.4305 6.91864 15.9028 7.24408 15.5774L10.8215 11.9999L7.24423 8.42261C6.91879 8.09717 6.91879 7.56952 7.24423 7.24408Z",fill:"currentColor"})]}),wl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7593 1.01286C19.8032 0.913334 20.7881 1.38715 21.7056 2.31092C22.6252 3.23091 23.0901 4.21699 22.9858 5.25765C22.8868 6.24527 22.2941 7.02988 21.7042 7.61965L15.482 13.8409C15.2599 14.0628 14.9809 14.2375 14.7308 14.3606C14.4794 14.4843 14.1756 14.5959 13.8732 14.6391L13.8718 14.6393L11.498 14.9749L11.4956 14.9753C10.8018 15.0716 10.1076 14.8858 9.61095 14.3893C9.11427 13.8927 8.92841 13.1985 9.02479 12.5046L9.02513 12.5022L9.36082 10.1288L9.36102 10.1274C9.40422 9.825 9.51588 9.52118 9.63956 9.26987C9.76267 9.01972 9.93742 8.74076 10.1594 8.51879L16.3817 2.29759C16.9777 1.70167 17.7672 1.10743 18.7593 1.01286ZM18.9491 3.00383C18.6772 3.02975 18.3409 3.19717 17.9151 3.59637C17.9339 3.63918 17.9499 3.68383 17.9629 3.73016C18.2755 4.84553 19.1495 5.72512 20.2683 6.03667C20.316 6.04995 20.3619 6.06647 20.4058 6.08592C20.7998 5.66553 20.9684 5.33079 20.9958 5.05815C21.0203 4.81373 20.9522 4.3858 20.2901 3.72391M18.9491 3.00383C19.1934 2.98053 19.6228 3.05162 20.2875 3.72124L18.9491 3.00383ZM11.5735 9.93312L16.366 5.1415C16.8887 6.22815 17.7679 7.11131 18.8597 7.63554L14.0679 12.4265C14.0501 12.4443 13.9754 12.5033 13.8479 12.566C13.7222 12.6279 13.6247 12.6542 13.5909 12.6591L13.5904 12.6592L11.2205 12.9943L11.2194 12.9944C11.1326 13.0063 11.0798 12.9967 11.0551 12.9893C11.0423 12.9854 11.0348 12.9816 11.0311 12.9794C11.0275 12.9772 11.0258 12.9757 11.025 12.9749C11.0243 12.9742 11.0227 12.9725 11.0206 12.9689C11.0184 12.9652 11.0146 12.9577 11.0108 12.945C11.0033 12.9203 10.9937 12.8676 11.0056 12.7808L11.0058 12.7798L11.3409 10.4103L11.341 10.4099C11.3458 10.3763 11.3721 10.2788 11.434 10.153C11.4967 10.0255 11.5558 9.95088 11.5735 9.93312ZM3 6C3 4.34315 4.34315 3 6 3H12C12.5523 3 13 2.55228 13 2C13 1.44772 12.5523 1 12 1H6C3.23858 1 1 3.23858 1 6V18C1 20.7614 3.23858 23 6 23H18C20.7614 23 23 20.7614 23 18V12C23 11.4477 22.5523 11 22 11C21.4477 11 21 11.4477 21 12V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6Z",fill:"currentColor"})]}),$l=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3C3.23858 3 1 5.23858 1 8V16C1 18.7614 3.23858 21 6 21H18C20.7614 21 23 18.7614 23 16V8C23 5.23858 20.7614 3 18 3H6ZM4.7087 5.29136C5.0998 5.10457 5.53769 5 6 5H18C18.4623 5 18.9002 5.10457 19.2913 5.29136L12.6585 11.0951C12.2815 11.425 11.7185 11.425 11.3415 11.0951L4.7087 5.29136ZM3.29235 6.70663C3.10494 7.09825 3 7.53687 3 8V16C3 17.6569 4.34315 19 6 19H18C19.6569 19 21 17.6569 21 16V8C21 7.53687 20.8951 7.09825 20.7076 6.70662C20.6919 6.72237 20.6755 6.73771 20.6585 6.75259L13.9755 12.6002C12.8444 13.5899 11.1556 13.5899 10.0245 12.6002L3.34149 6.75259C3.32449 6.73771 3.3081 6.72238 3.29235 6.70663Z",fill:"currentColor"})]}),Cl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 4.34315 4.34315 3 6 3H12C12.5523 3 13 2.55228 13 2C13 1.44772 12.5523 1 12 1H6C3.23858 1 1 3.23858 1 6V18C1 20.7614 3.23858 23 6 23H18C20.7614 23 23 20.7614 23 18V12C23 11.4477 22.5523 11 22 11C21.4477 11 21 11.4477 21 12V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6ZM16.2 2C16.2 1.44772 16.6477 1 17.2 1H22C22.5522 1 23 1.44772 23 2V6.8C23 7.35228 22.5522 7.8 22 7.8C21.4477 7.8 21 7.35228 21 6.8V4.41431L13.7071 11.7072C13.3166 12.0977 12.6834 12.0977 12.2929 11.7072C11.9024 11.3166 11.9024 10.6835 12.2929 10.2929L19.5858 3H17.2C16.6477 3 16.2 2.55228 16.2 2Z",fill:"currentColor"})]}),xl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M11.8666 5.73325C11.3716 5.73325 10.8968 5.53659 10.5467 5.18653C10.1967 4.83647 10 4.36169 10 3.86663C10 3.37157 10.1967 2.89678 10.5467 2.54672C10.8968 2.19666 11.3716 2 11.8666 2C12.3617 2 12.8365 2.19666 13.1865 2.54672C13.5366 2.89678 13.7333 3.37157 13.7333 3.86663C13.7333 4.36169 13.5366 4.83647 13.1865 5.18653C12.8365 5.53659 12.3617 5.73325 11.8666 5.73325Z",fill:"currentColor"}),e("path",{d:"M11.8666 13.8665C11.3716 13.8665 10.8968 13.6699 10.5467 13.3198C10.1967 12.9697 10 12.495 10 11.9999C10 11.5048 10.1967 11.0301 10.5467 10.68C10.8968 10.3299 11.3716 10.1333 11.8666 10.1333C12.3617 10.1333 12.8365 10.3299 13.1865 10.68C13.5366 11.0301 13.7333 11.5048 13.7333 11.9999C13.7333 12.495 13.5366 12.9697 13.1865 13.3198C12.8365 13.6699 12.3617 13.8665 11.8666 13.8665Z",fill:"currentColor"}),e("path",{d:"M10 20.1334C10 20.6284 10.1967 21.1032 10.5467 21.4533C10.8968 21.8033 11.3716 22 11.8666 22C12.3617 22 12.8365 21.8033 13.1865 21.4533C13.5366 21.1032 13.7333 20.6284 13.7333 20.1334C13.7333 19.6383 13.5366 19.1635 13.1865 18.8135C12.8365 18.4634 12.3617 18.2668 11.8666 18.2668C11.3716 18.2668 10.8968 18.4634 10.5467 18.8135C10.1967 19.1635 10 19.6383 10 20.1334Z",fill:"currentColor"})]}),El=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M10 15C9.44771 15 9 15.4477 9 16C9 16.5523 9.44771 17 10 17H14C14.5523 17 15 16.5523 15 16C15 15.4477 14.5523 15 14 15H10Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7V9C3.23858 9 1 11.2386 1 14V18C1 20.7614 3.23858 23 6 23H18C20.7614 23 23 20.7614 23 18V14C23 11.2386 20.7614 9 18 9V7C18 3.68629 15.3137 1 12 1C8.68629 1 6 3.68629 6 7ZM12 3C9.79086 3 8 4.79086 8 7V9H16V7C16 4.79086 14.2091 3 12 3ZM6 11C4.34315 11 3 12.3431 3 14V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V14C21 12.3431 19.6569 11 18 11H6Z",fill:"currentColor"})]}),kl=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M9 19C9 18.4477 9.44772 18 10 18H14C14.5523 18 15 18.4477 15 19C15 19.5523 14.5523 20 14 20H10C9.44772 20 9 19.5523 9 19Z",fill:"currentColor"}),e("path",{d:"M8.49451 4.25C7.80415 4.25 7.24451 4.80964 7.24451 5.5C7.24451 6.19036 7.80415 6.75 8.49451 6.75H8.50349C9.19384 6.75 9.75349 6.19036 9.75349 5.5C9.75349 4.80964 9.19384 4.25 8.50349 4.25H8.49451Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5C3 2.23858 5.23858 0 8 0H16C18.7614 0 21 2.23858 21 5V19C21 21.7614 18.7614 24 16 24H8C5.23858 24 3 21.7614 3 19V5ZM8 2C6.34315 2 5 3.34315 5 5V19C5 20.6569 6.34315 22 8 22H16C17.6569 22 19 20.6569 19 19V5C19 3.34315 17.6569 2 16 2H8Z",fill:"currentColor"})]}),Ll=({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M13 13.235C13.6003 12.8898 14.0045 12.2421 14.0045 11.5C14.0045 10.3954 13.109 9.49999 12.0045 9.49999H11.9955C10.8909 9.49999 9.99548 10.3954 9.99548 11.5C9.99548 12.2421 10.3997 12.8899 11 13.235V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V13.235Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.79565 2.08066C11.1665 1.31906 12.8335 1.31906 14.2043 2.08066L20.3574 5.49903C21.3712 6.06226 22 7.13087 22 8.29065V13C22 18.5228 17.5228 23 12 23C6.47715 23 2 18.5228 2 13V8.29065C2 7.13087 2.62877 6.06226 3.6426 5.49903L9.79565 2.08066ZM13.2331 3.82898C12.4662 3.40295 11.5338 3.40295 10.7669 3.82898L4.61388 7.24734C4.23499 7.45784 4 7.85721 4 8.29065V13C4 17.4183 7.58172 21 12 21C16.4183 21 20 17.4183 20 13V8.29065C20 7.85721 19.765 7.45784 19.3861 7.24734L13.2331 3.82898Z",fill:"currentColor"})]}),Nl=({email:r})=>{const n=r.split("@");return t("span",{className:"break-words font-semibold",children:[n[0],e("wbr",{}),"@",n[1]]})};Nl.displayName="EmailWbr";const Ml={sm:"text-sm",md:"text-base"},_l={"text.primary":"text-text-primary","text.secondary":"text-text-secondary","text.tertiary":"text-text-tertiary"},Pl={normal:"font-normal",medium:"font-medium"},Tl=f((n,o)=>{const{address:i,onCopy:d,size:c="md",icon:u,fontColor:p="text.tertiary",fontWeight:f="normal",fontFamily:m="inherit"}=n,[h,g]=a(!1),v=`${i.slice(0,6)}...${i?.slice(-4)}`,b="sm"===c?16:20,y=l(()=>{d&&d(i),g(!0)},[i]);return s(()=>{if(h){const e=setTimeout(()=>{g(!1)},1500);return()=>clearTimeout(e)}},[h]),d?e(Ca,{className:mt(Ml[c],h?"text-positive-base font-medium":mt(_l[p],Pl[f]),"rounded-button [font-variant:no-contextual] transition-none"),style:{fontFamily:m},onPress:y,ref:o,children:t("div",{className:"flex flex-row items-center gap-2",children:[h?u?"Copied":"Copied!":v,u&&e(r,{children:h?e(Sa,{width:b,height:b,color:"var(--color-positive-base)"}):e(bl,{width:b,height:b,color:"var(--color-text-tertiary)"})})]})}):e("span",{className:mt(Ml[c],_l[p],Pl[f],"[font-variant:no-contextual]"),style:{fontFamily:m},children:v})});Tl.displayName="WalletAddress";var Il=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54",{default:"(..) .... ....","/^11/":"(..) .... ....","/^15/":"(..) ... ....","/^(2|3|4|5)/":"(.) .... ....","/^9/":"(.) .... ....."},0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973",".... ...."],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965",".... ...."],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968",".... ...."],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974",".... ...."],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966",".. ... ...."],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971",{default:".. ... ....","/^5[024568]/":".. ... ....","/^[234679]/":". ... ...."}],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Sl=(...e)=>e.filter(e=>!!e).join(" ").trim(),Ol=({addPrefix:e,rawClassNames:t})=>Sl(((...e)=>Sl(...e).split(" ").map(e=>`react-international-phone-${e}`).join(" "))(...e),...t),Al=e=>!!e&&/^\d+$/.test(e),Rl=e=>e.replace(/\D/g,""),Dl=({phone:e,prefix:t})=>e?`${t}${Rl(e)}`:"";function Fl({value:e,country:t,insertDialCodeOnEmpty:r,trimNonDigitsEnd:n,countries:o,prefix:a,charAfterDialCode:i,forceDialCode:l,disableDialCodeAndPrefix:d,defaultMask:s,countryGuessingEnabled:c,disableFormatting:u}){let p=e;d&&(p=p.startsWith(`${a}`)?p:`${a}${t.dialCode}${p}`);let f=c?ad({phone:p,countries:o,currentCountryIso2:t?.iso2}):void 0,m=f?.country??t,h=((e,t)=>{let r=!t.disableDialCodeAndPrefix&&t.forceDialCode,n=!t.disableDialCodeAndPrefix&&t.insertDialCodeOnEmpty,o=e,a=e=>t.trimNonDigitsEnd?e.trim():e;if(!o)return n&&!o.length||r?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(o);if(o=Rl(o),o===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(o)&&!t.disableDialCodeAndPrefix)return a(r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${o}`);if(!o.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(r)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(o.length<t.dialCode.length)return a(`${t.prefix}${o}`)}let{phoneLeftSide:i,phoneRightSide:l}=(()=>{let e=t.dialCode.length;return{phoneLeftSide:o.slice(0,e),phoneRightSide:o.slice(e)}})();return i=`${t.prefix}${i}${t.charAfterDialCode}`,l=(({value:e,mask:t,maskSymbol:r,offset:n=0,trimNonMaskCharsLeftover:o=!1})=>{if(e.length<n)return e;let a=e.slice(0,n),i=e.slice(n),l=a,d=0;for(let e of t.split("")){if(d>=i.length){if(!o&&e!==r){l+=e;continue}break}e===r?(l+=i[d],d+=1):l+=e}return l})({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&0===l.length}),t.disableDialCodeAndPrefix&&(i=""),a(`${i}${l}`)})(p,{prefix:a,mask:rd({phone:p,country:m,defaultMask:s,disableFormatting:u}),maskChar:Bl,dialCode:m.dialCode,trimNonDigitsEnd:n,charAfterDialCode:i,forceDialCode:l,insertDialCodeOnEmpty:r,disableDialCodeAndPrefix:d}),g=c&&!f?.fullDialCodeMatch?t:m;return{phone:Dl({phone:d?`${g.dialCode}${h}`:h,prefix:a}),inputValue:h,country:g}}var Hl=(e,{country:t,insertDialCodeOnEmpty:r,phoneBeforeInput:n,prefix:o,charAfterDialCode:a,forceDialCode:i,disableDialCodeAndPrefix:l,countryGuessingEnabled:d,defaultMask:s,disableFormatting:c,countries:u})=>{let p=e.nativeEvent,f=p.inputType,m=(e=>{if(e?.toLocaleLowerCase().includes("delete"))return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"})(f),h=!!f?.startsWith("insertFrom"),g="insertText"===f,v=p?.data||void 0,b=e.target.value,y=e.target.selectionStart??0;if(f?.includes("history"))return{inputValue:n,phone:Dl({phone:n,prefix:o}),cursorPosition:n.length,country:t};if(g&&!Al(v)&&b!==o)return{inputValue:n,phone:Dl({phone:l?`${t.dialCode}${n}`:n,prefix:o}),cursorPosition:y-(v?.length??0),country:t};if(i&&!b.startsWith(`${o}${t.dialCode}`)&&!h){let e=b?n:`${o}${t.dialCode}${a}`;return{inputValue:e,phone:Dl({phone:e,prefix:o}),cursorPosition:o.length+t.dialCode.length+a.length,country:t}}let{phone:w,inputValue:$,country:C}=Fl({value:b,country:t,trimNonDigitsEnd:"backward"===m,insertDialCodeOnEmpty:r,countryGuessingEnabled:d,countries:u,prefix:o,charAfterDialCode:a,forceDialCode:i,disableDialCodeAndPrefix:l,disableFormatting:c,defaultMask:s}),x=(({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:r,cursorPositionAfterInput:n,leftOffset:o=0,deletion:a})=>{if(n<o)return o;if(!e)return r.length;let i=null;for(let e=n-1;e>=0;e-=1)if(Al(t[e])){i=e;break}if(null===i){for(let e=0;e<t.length;e+=1)if(Al(r[e]))return e;return t.length}let l=0;for(let e=0;e<i;e+=1)Al(t[e])&&(l+=1);let d=0,s=0;for(let e=0;e<r.length&&(d+=1,Al(r[e])&&(s+=1),!(s>=l+1));e+=1);if("backward"!==a)for(;!Al(r[d])&&d<r.length;)d+=1;return d})({cursorPositionAfterInput:y,phoneBeforeInput:n,phoneAfterInput:b,phoneAfterFormatted:$,leftOffset:i?o.length+t.dialCode.length+a.length:0,deletion:m});return{phone:w,inputValue:$,cursorPosition:x,country:C}},jl={size:20,overrideLastItemDebounceMS:-1};function Vl(e,t){let{size:r,overrideLastItemDebounceMS:n,onChange:o}={...jl,...t},[d,s]=a(e),c=i([d]),p=i(0),f=(()=>{let e=i(),t=i(Date.now()),r=l(()=>{let r=Date.now(),n=e.current?r-t.current:void 0;return e.current=t.current,t.current=r,n},[]);return u(()=>({check:r}),[r])})(),m=l((e,t)=>{let a=c.current[p.current];if(e===a||"object"==typeof e&&"object"==typeof a&&((e,t)=>{let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(e[n]!==t[n])return!1;return!0})(e,a))return;let i=n>0,l=f.check(),d=!i||void 0===l||l>n;if(void 0!==t?.overrideLastItem?t.overrideLastItem:!d)c.current=[...c.current.slice(0,p.current),e];else{let t=c.current.length>=r;c.current=[...c.current.slice(t?1:0,p.current+1),e],t||(p.current+=1)}s(e),o?.(e)},[o,n,r,f]),h=l(()=>{if(p.current<=0)return{success:!1};let e=c.current[p.current-1];return s(e),p.current-=1,o?.(e),{success:!0,value:e}},[o]),g=l(()=>{if(p.current+1>=c.current.length)return{success:!1};let e=c.current[p.current+1];return s(e),p.current+=1,o?.(e),{success:!0,value:e}},[o]);return[d,m,h,g]}var Bl=".",zl="us",Gl="",Ul="+",Wl="............",Zl=" ",Yl=200,Kl=!1,ql=!1,Xl=!1,Ql=!1,Jl=!1,ed=Il,td=({defaultCountry:e=zl,value:t=Gl,countries:r=ed,prefix:n=Ul,defaultMask:o=Wl,charAfterDialCode:d=Zl,historySaveDebounceMS:c=Yl,disableCountryGuess:p=Kl,disableDialCodePrefill:f=ql,forceDialCode:m=Xl,disableDialCodeAndPrefix:h=Ql,disableFormatting:g=Jl,onChange:v,inputRef:b})=>{let y={countries:r,prefix:n,charAfterDialCode:d,forceDialCode:!h&&m,disableDialCodeAndPrefix:h,defaultMask:o,countryGuessingEnabled:!p,disableFormatting:g},w=i(null),$=b||w,C=e=>{Promise.resolve().then(()=>{typeof window>"u"||$.current!==document?.activeElement||$.current?.setSelectionRange(e,e)})},x=l(e=>od({value:e,field:"iso2",countries:r}),[r]),E=l(({inputValue:e,phone:t,country:r})=>{if(!v)return;let n=x(r);v({phone:t,inputValue:e,country:n})},[x,v]),[{phone:k,inputValue:L,country:N},M,_,P]=Vl(()=>{let n=od({value:e,field:"iso2",countries:r});n||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let o=n||od({value:"us",field:"iso2",countries:r}),{phone:a,inputValue:i,country:l}=Fl({value:t,country:o,insertDialCodeOnEmpty:!f,...y});return C(i.length),{phone:a,inputValue:i,country:l.iso2}},{overrideLastItemDebounceMS:c,onChange:E}),T=u(()=>x(N),[N,x]);s(()=>{let e=$.current;if(!e)return;let t=e=>{if(!e.key)return;let t=e.ctrlKey,r=e.metaKey,n=e.shiftKey;if("z"===e.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!t)return}else if(!r)return;n?P():_()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[$,_,P]);let I=l((e,t={focusOnInput:!1})=>{let o=od({value:e,field:"iso2",countries:r});if(!o)return void console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let a=h?"":`${n}${o.dialCode}${d}`;M({inputValue:a,phone:`${n}${o.dialCode}`,country:o.iso2}),t.focusOnInput&&Promise.resolve().then(()=>{$.current?.focus()})},[r,h,n,d,M,$]),[S,O]=a(!1);return s(()=>{if(!S)return O(!0),void(t!==k&&v?.({inputValue:L,phone:k,country:T}));if(t===k)return;let{phone:e,inputValue:r,country:n}=Fl({value:t,country:T,insertDialCodeOnEmpty:!f,...y});M({phone:e,inputValue:r,country:n.iso2})},[t]),{phone:k,inputValue:L,country:T,setCountry:I,handlePhoneValueChange:e=>{e.preventDefault();let{phone:r,inputValue:n,country:o,cursorPosition:a}=Hl(e,{country:T,phoneBeforeInput:L,insertDialCodeOnEmpty:!1,...y});return M({inputValue:n,phone:r,country:o.iso2}),C(a),t},inputRef:$}},rd=({phone:e,country:t,defaultMask:r="............",disableFormatting:n=!1})=>{let o=t.format,a=e=>n?e.replace(new RegExp(`[^${Bl}]`,"g"),""):e;if(!o)return a(r);if("string"==typeof o)return a(o);if(!o.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(r);let i=Object.keys(o).find(r=>{if("default"===r)return!1;if("/"!==r.charAt(0)||"/"!==r.charAt(r.length-1))return console.error(`[react-international-phone]: format regex "${r}" for ${t.iso2} is not valid`),!1;let n=new RegExp(r.substring(1,r.length-1)),o=e.replace(t.dialCode,"");return n.test(Rl(o))});return a(i?o[i]:o.default)},nd=e=>{let[t,r,n,o,a,i]=e;return{name:t,iso2:r,dialCode:n,format:o,priority:a,areaCodes:i}},od=({field:e,value:t,countries:r=Il})=>{if(["priority"].includes(e))throw new Error((e=>`Field "${e}" is not supported`)(e));let n=r.find(r=>{let n=nd(r);return t===n[e]});if(n)return nd(n)},ad=({phone:e,countries:t=Il,currentCountryIso2:r})=>{let n={country:void 0,fullDialCodeMatch:!1};if(!e)return n;let o=Rl(e);if(!o)return n;let a=n,i=({country:e,fullDialCodeMatch:t})=>{let r=e.dialCode===a.country?.dialCode,n=(e.priority??0)<(a.country?.priority??0);(!r||n)&&(a={country:e,fullDialCodeMatch:t})};for(let e of t){let t=nd(e),{dialCode:r,areaCodes:n}=t;if(o.startsWith(r)){let e=!a.country||Number(r)>=Number(a.country.dialCode);if(n){let e=o.substring(r.length);for(let r of n)if(e.startsWith(r))return{country:t,fullDialCodeMatch:!0}}(e||r===o||!a.fullDialCodeMatch)&&i({country:t,fullDialCodeMatch:!0})}a.fullDialCodeMatch||o.length<r.length&&r.startsWith(o)&&(!a.country||Number(r)<=Number(a.country.dialCode))&&i({country:t,fullDialCodeMatch:!1})}if(r){let e=od({value:r,field:"iso2",countries:t});if(!e)return a;let n=!!e&&(e=>{if(!e?.areaCodes)return!1;let t=o.substring(e.dialCode.length);return e.areaCodes.some(e=>e.startsWith(t))})(e);a&&a.country?.dialCode===e.dialCode&&a.country!==e&&a.fullDialCodeMatch&&(!e.areaCodes||n)&&(a={country:e,fullDialCodeMatch:!0})}return a},id=(e,t)=>{let r=parseInt(e,16);return Number(r+t).toString(16)},ld="abcdefghijklmnopqrstuvwxyz".split("").reduce((e,t,r)=>({...e,[t]:id("1f1e6",r)}),{}),dd=({iso2:e,size:t,src:r,protocol:n="https",disableLazyLoading:a,className:i,style:l,...d})=>{if(!e)return o.createElement("img",{className:Ol({addPrefix:["flag-emoji"],rawClassNames:[i]}),width:t,height:t,...d});return o.createElement("img",{className:Ol({addPrefix:["flag-emoji"],rawClassNames:[i]}),src:(()=>{if(r)return r;let t=(e=>[ld[e[0]],ld[e[1]]].join("-"))(e);return`${n}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${t}.svg`})(),width:t,height:t,draggable:!1,"data-country":e,loading:a?void 0:"lazy",style:{width:t,height:t,...l},alt:"",...d})},sd=({show:e,dialCodePrefix:t="+",selectedCountry:r,countries:n=Il,preferredCountries:d=[],flags:c,onSelect:p,onClose:f,...m})=>{let h=i(null),g=i(),v=u(()=>{if(!d||!d.length)return n;let e=[],t=[...n];for(let r of d){let n=t.findIndex(e=>nd(e).iso2===r);if(-1!==n){let r=t.splice(n,1)[0];e.push(r)}}return e.concat(t)},[n,d]),b=i({updatedAt:void 0,value:""}),y=l(e=>v.findIndex(t=>nd(t).iso2===e),[v]),[w,$]=a(y(r)),C=()=>{g.current!==r&&$(y(r))},x=l(e=>{$(y(e.iso2)),p?.(e)},[p,y]),E=e=>{let t=v.length-1;$(r=>{let n=(r=>"prev"===e?r-1:"next"===e?r+1:"last"===e?t:0)(r);return n<0?0:n>t?t:n})},k=l(()=>{if(!h.current||void 0===w)return;let e=nd(v[w]).iso2;if(e===g.current)return;let t=h.current.querySelector(`[data-country="${e}"]`);t&&(((e,t)=>{let r=e.style.display;"block"!==r&&(e.style.display="block");let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),a=o.top-n.top,i=n.bottom-o.bottom;a>=0&&i>=0||(Math.abs(a)<Math.abs(i)?e.scrollTop+=a:e.scrollTop-=i),e.style.display=r})(h.current,t),g.current=e)},[w,v]);return s(()=>{k()},[w,k]),s(()=>{h.current&&(e?h.current.focus():C())},[e]),s(()=>{C()},[r]),o.createElement("ul",{ref:h,role:"listbox",className:Ol({addPrefix:["country-selector-dropdown"],rawClassNames:[m.className]}),style:{display:e?"block":"none",...m.style},onKeyDown:e=>{if(e.stopPropagation(),"Enter"===e.key){e.preventDefault();let t=nd(v[w]);return void x(t)}if("Escape"!==e.key)return"ArrowUp"===e.key?(e.preventDefault(),void E("prev")):"ArrowDown"===e.key?(e.preventDefault(),void E("next")):"PageUp"===e.key?(e.preventDefault(),void E("first")):"PageDown"===e.key?(e.preventDefault(),void E("last")):(" "===e.key&&e.preventDefault(),void(1===e.key.length&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&(e=>{let t=b.current.updatedAt&&(new Date).getTime()-b.current.updatedAt.getTime()>1e3;b.current={value:t?e:`${b.current.value}${e}`,updatedAt:new Date};let r=v.findIndex(e=>nd(e).name.toLowerCase().startsWith(b.current.value));-1!==r&&$(r)})(e.key.toLocaleLowerCase())));f?.()},onBlur:f,tabIndex:-1,"aria-activedescendant":`react-international-phone__${nd(v[w]).iso2}-option`},v.map((e,n)=>{let a=nd(e),i=a.iso2===r,l=n===w,s=d.includes(a.iso2),u=n===d.length-1,p=c?.find(e=>e.iso2===a.iso2);return o.createElement(o.Fragment,{key:a.iso2},o.createElement("li",{"data-country":a.iso2,role:"option","aria-selected":i,"aria-label":`${a.name} ${t}${a.dialCode}`,id:`react-international-phone__${a.iso2}-option`,className:Ol({addPrefix:["country-selector-dropdown__list-item",s&&"country-selector-dropdown__list-item--preferred",i&&"country-selector-dropdown__list-item--selected",l&&"country-selector-dropdown__list-item--focused"],rawClassNames:[m.listItemClassName,s&&m.listItemPreferredClassName,i&&m.listItemSelectedClassName,l&&m.listItemFocusedClassName]}),onClick:()=>x(a),style:m.listItemStyle,title:a.name},o.createElement(dd,{iso2:a.iso2,src:p?.src,className:Ol({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[m.listItemFlagClassName]}),style:m.listItemFlagStyle}),o.createElement("span",{className:Ol({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[m.listItemCountryNameClassName]}),style:m.listItemCountryNameStyle},a.name),o.createElement("span",{className:Ol({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[m.listItemDialCodeClassName]}),style:m.listItemDialCodeStyle},t,a.dialCode)),u?o.createElement("hr",{className:Ol({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[m.preferredListDividerClassName]}),style:m.preferredListDividerStyle}):null)}))},cd=o.memo(({selectedCountry:e,onSelect:t,disabled:r,hideDropdown:n,countries:l=Il,preferredCountries:d=[],flags:s,renderButtonWrapper:c,...p})=>{let[f,m]=a(!1),h=u(()=>{if(e)return od({value:e,field:"iso2",countries:l})},[l,e]),g=i(null),v=e=>{e.key&&["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),m(!0))};return o.createElement("div",{className:Ol({addPrefix:["country-selector"],rawClassNames:[p.className]}),style:p.style,ref:g},(()=>{let t={title:h?.name,onClick:()=>m(e=>!e),onMouseDown:e=>e.preventDefault(),onKeyDown:v,disabled:n||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},a=o.createElement("div",{className:Ol({addPrefix:["country-selector-button__button-content"],rawClassNames:[p.buttonContentWrapperClassName]}),style:p.buttonContentWrapperStyle},o.createElement(dd,{iso2:e,src:s?.find(t=>t.iso2===e)?.src,className:Ol({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[p.flagClassName]}),style:{visibility:e?"visible":"hidden",...p.flagStyle}}),!n&&o.createElement("div",{className:Ol({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[p.dropdownArrowClassName]}),style:p.dropdownArrowStyle}));return c?c({children:a,rootProps:t}):o.createElement("button",{...t,type:"button",className:Ol({addPrefix:["country-selector-button",f&&"country-selector-button--active",r&&"country-selector-button--disabled",n&&"country-selector-button--hide-dropdown"],rawClassNames:[p.buttonClassName]}),"data-country":e,style:p.buttonStyle},a)})(),o.createElement(sd,{show:f,countries:l,preferredCountries:d,flags:s,onSelect:e=>{m(!1),t?.(e)},selectedCountry:e,onClose:()=>{m(!1)},...p.dropdownStyleProps}))}),ud=({dialCode:e,prefix:t,disabled:r,style:n,className:a})=>o.createElement("div",{className:Ol({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[a]}),style:n},`${t}${e}`);f(({value:e,onChange:t,countries:r=Il,preferredCountries:n,hideDropdown:a,showDisabledDialCodeAndPrefix:i,disableFocusAfterCountrySelect:d,flags:s,style:c,className:u,inputStyle:p,inputClassName:f,countrySelectorStyleProps:m,dialCodePreviewStyleProps:h,inputProps:g,placeholder:b,disabled:y,name:w,onFocus:$,onBlur:C,required:x,autoFocus:E,...k},L)=>{let N=l(e=>{t?.(e.phone,{country:e.country,inputValue:e.inputValue})},[t]),{phone:M,inputValue:_,inputRef:P,country:T,setCountry:I,handlePhoneValueChange:S}=td({value:e,countries:r,...k,onChange:N}),O=k.disableDialCodeAndPrefix&&i&&T?.dialCode,A=l(e=>{I(e.iso2,{focusOnInput:!d})},[I,d]);return v(L,()=>P.current?Object.assign(P.current,{setCountry:I,state:{phone:M,inputValue:_,country:T}}):null,[P,I,M,_,T]),o.createElement("div",{ref:L,className:Ol({addPrefix:["input-container"],rawClassNames:[u]}),style:c},o.createElement(cd,{onSelect:A,flags:s,selectedCountry:T?.iso2,countries:r,preferredCountries:n,disabled:y,hideDropdown:a,...m}),O&&o.createElement(ud,{dialCode:T.dialCode,prefix:k.prefix??"+",disabled:y,...h}),o.createElement("input",{onChange:S,value:_,type:"tel",ref:P,className:Ol({addPrefix:["input",y&&"input--disabled"],rawClassNames:[f]}),placeholder:b,disabled:y,style:p,name:w,onFocus:$,onBlur:C,autoFocus:E,required:x,...g}))});const pd=({iso2:t})=>e("div",{className:"flex w-[1.125rem] h-[1.125rem] rounded-full border border-neutral-primary overflow-hidden items-center",children:e(dd,{src:`https://flagcdn.com/${t}.svg`,iso2:t,size:16,className:"object-cover"})}),fd=r=>{const{onChange:n,onSubmit:o,autoFocus:d=!0,errorMessage:c,disableSubmit:p,showPlaceholder:f}=r,[m,h]=a(""),[g,v]=a(!1),[b,y]=a(!1),[w,$]=a(0),[C,x]=a(""),E=i(null),k=i(null),L=i(null),N=i([]),M=i(void 0),{country:_,setCountry:P,inputRef:T,handlePhoneValueChange:I,inputValue:S}=td({defaultCountry:"us",value:m,onChange:e=>{h(e.phone),n(e.phone)},disableDialCodeAndPrefix:f}),O=p?.(m,_.iso2),A=u(()=>{const e=Il.find(([,e])=>e===_.iso2);return e?e[2]:"1"},[_.iso2]),R=u(()=>{const e=Il.find(([,e])=>e===_.iso2),t=e&&"string"==typeof e[3]?e[3]:null;return t?t.replace(/\./g,"5"):"(555) 555-5555"},[_.iso2]),D=u(()=>{const e=Il.filter(([,e])=>e!==_.iso2),t=Il.find(([,e])=>e===_.iso2);return t?[t,...e]:[...Il]},[_.iso2]),F=u(()=>D.filter(([,e])=>e!==_.iso2),[_.iso2]),H=l(e=>{var t;P(e),y(!1),null===(t=T.current)||void 0===t||t.focus()},[P]),j=l(()=>{y(!b),b||($(0),setTimeout(()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.focus()}))},[b]),{buttonProps:V}=Qn({onPress:j},E),{focusProps:B,isFocusVisible:z}=yo(),{keyboardProps:G}=Pn({onKeyDown:e=>{var t;if(b)switch(e.key){case"ArrowDown":e.preventDefault(),$(e=>(e+1)%D.length);break;case"ArrowUp":e.preventDefault(),$(e=>(e-1+D.length)%D.length);break;case"Enter":if(e.preventDefault(),w>=0){const[,e]=D[w];H(e)}break;case"Escape":y(!1),null===(t=T.current)||void 0===t||t.focus();break;default:(" "===e.key||e.key.match(/[\w]/i))&&(e.preventDefault(),clearTimeout(M.current),x(t=>t+e.key),M.current=window.setTimeout(()=>{x("")},1e3))}}});s(()=>{var e;d&&(null===(e=T.current)||void 0===e||e.focus());const t=e=>{L.current&&!L.current.contains(e.target)&&(y(!1),v(!1))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[]),s(()=>{var e;if(""!==C){const t=F.findIndex(([e])=>e.toLowerCase().startsWith(C.toLowerCase()));if(-1!==t){const r=D.findIndex(([e])=>e===F[t][0]);$(r),null===(e=N.current[r])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"})}}},[C,D,_.iso2]),s(()=>{var e;w>=0&&N.current[w]&&(null===(e=N.current[w])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"}))},[w]);return t("div",{className:"flex flex-col gap-2 items-center",style:r.containerStyles,children:[t("div",{...Ft(G,B),ref:k,className:mt("flex h-fit w-full items-center justify-center border border-neutral-secondary rounded-input transition-all duration-[120ms] linear outline-offset-[0.125rem] relative hover:border-neutral-primary",g&&!z?"outline outline-brand-base outline-thick":"outline-none"),onFocus:()=>{v(!0)},onBlur:()=>{v(!1)},children:[e("button",{...Ft(V,B),className:mt("flex justify-center items-center rounded-l-input h-12 w-20 px-3 cursor-pointer transition-all duration-[120ms] linear hover:bg-surface-tertiary",z?"outline outline-brand-base outline-thick outline-offset-[0.125rem]":"outline-none"),children:t("div",{className:"flex flex-row items-center gap-2",children:[e(pd,{iso2:_.iso2}),e(Xa,{width:14,height:14,transform:b?"rotate(180)":""})]})}),b&&e("div",{ref:L,tabIndex:-1,className:"bg-surface-primary absolute w-full rounded-input top-[55px] shadow-[4px_8px_20px_0px_rgba(0,0,0,0.15)] max-h-[17.5rem] overflow-y-auto outline-none",children:D.map(([r,n,o],a)=>{const i=_.iso2===n;return t("div",{className:mt("flex flex-row items-center cursor-pointer gap-2 p-4 justify-between",i?"bg-brand-base":w===a?"bg-brand-lightest":"",!i&&"hover:bg-brand-lightest"),role:"option",tabIndex:0,"aria-selected":i,ref:e=>N.current[a]=e,onClick:()=>H(n),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&H(n)},children:[t("div",{className:"flex flex-row items-center gap-4",children:[i?e(Na,{width:18,height:18,color:"var(--color-surface-primary)"}):e(pd,{iso2:n}),e(Ya,{fontColor:i?"text.quaternary":"text.primary",children:r})]}),t(Ya,{fontColor:i?"text.quaternary":"text.tertiary",children:["+",o]})]},n)})}),t("div",{className:"flex flex-row items-center gap-0 flex-1",style:{borderLeftWidth:"thin",borderColor:"var(--color-neutral-secondary)"},children:[f?t("span",{className:"text-text-primary font-medium text-md pl-4 pr-2 select-none",children:["+",A]}):null,e("input",{type:"tel",inputMode:"tel",onChange:I,value:S,ref:T,placeholder:f?R:"",onKeyDown:e=>{"Enter"===e.key&&o&&!O&&(e.preventDefault(),o())},className:"transition-all duration-[120ms] linear w-full box-border rounded-none m-0 min-w-10 font-medium bg-transparent text-text-primary h-12 text-md py-3 pr-4 text-left outline-none placeholder:text-text-tertiary",style:{paddingLeft:f?0:"1rem"}})]}),o&&e("div",{style:{paddingRight:"16px"},children:e(Mi,{"aria-label":"Submit phone number",variant:"text",textStyle:"neutral",onPress:o,disabled:O,children:e(Mi.LeadingIcon,{color:"var(--color-text-tertiary)",children:e(gl,{})})})})]}),c&&e(Ya,{variant:"error",size:"sm",fontWeight:"normal",children:c})]})};fd.displayName="PhoneInput";const md=ka({slots:["container","label","inputContainer","input","description","typeIcon","actionIcon","actionButton"],base:{label:"text-sm font-medium text-text-primary",inputContainer:["bg-transparent border-solid border-thin border-neutral-secondary","rounded-input box-border transition-all duration-[120ms] linear w-full","hover:border-neutral-primary","dark:border-ink-70 dark:hover:border-ink-50","focus-within:outline focus-within:outline-brand-base focus-within:outline-thick focus-within:outline-offset-[0.125rem]"].join(" "),input:["transition-all duration-[120ms] linear w-full box-border","m-0 p-0 outline-none min-w-[2.5rem] font-normal","bg-transparent text-text-primary","placeholder:text-text-tertiary","group-hover:border-neutral-primary"].join(" "),description:"text-sm text-text-primary",typeIcon:"transition-opacity duration-[120ms] linear",actionIcon:"transition-opacity duration-[120ms] linear cursor-pointer",actionButton:"transition-opacity duration-[120ms] linear",container:""},variants:{size:{sm:{input:"text-sm text-left",inputContainer:"h-10 p-3"},md:{input:"text-base text-left",inputContainer:"h-12 p-3"},lg:{input:"text-lg text-left",inputContainer:"h-15 p-4"}},alignText:{left:{input:"text-left",container:"items-start"},center:{input:"text-center",container:"items-center"},right:{input:"text-right",container:"items-end"}},isError:{true:{inputContainer:"border-negative-base"}},char:{true:{input:"text-xl text-center",inputContainer:"h-12 py-2"}},disabled:{true:{container:"opacity-30 pointer-events-none",inputContainer:"hover:border-neutral-secondary"}}}}),hd=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>{var t;return h(e,{...r,color:null!==(t=e.props.color)&&void 0!==t?t:"var(--color-neutral-primary)"})})})),gd=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>{var t;return b(e)?h(e,{...r,color:null!==(t=e.props.color)&&void 0!==t?t:"var(--color-brand-base)"}):null})})),vd=si(Mi),bd=si(Ya),yd=si(Ya),wd=f((r,n)=>{const{label:o,disabled:a,size:l="md",alignText:d="left",attr:s,description:c,autoFocus:u,className:p="",errorMessage:f,required:m}=r,h="sm"===l?16:20,g=i(null),v=n||g,{labelProps:b,inputProps:y,descriptionProps:w,errorMessageProps:$,isInvalid:C,validationErrors:x}=Ao({...r,isDisabled:a??!1,isInvalid:!!f},v),{focusProps:E}=yo({autoFocus:u??!1}),{hoverProps:k}=jn({isDisabled:a??!1});return di(r.children,r=>{const n=r.get(hd),i=r.get(gd),u=r.getProps(vd),g=r.getProps(bd),L=r.getProps(yd),N=md({size:l,alignText:d,disabled:a,isError:C});return t("div",{className:mt(N.container,"flex flex-col gap-2.5",p),children:[o&&t("label",{className:N.label,...b,children:[o," ",m&&e("span",{className:"text-negative-darker",children:"*"})]}),t("div",{className:mt(N.inputContainer,"flex flex-row items-center gap-2 group"),children:[n&&{...n,props:{...n.props,className:N.typeIcon,width:h,height:h}},g&&e(Ya,{...g,fontColor:"text.tertiary"}),e("input",{ref:v,className:N.input,...Ft(y,E,k),...s}),L&&e(Ya,{...L,fontColor:"text.tertiary"}),i&&{...i,props:{...i.props,className:N.actionIcon,width:h,height:h}},u&&e("div",{className:mt(N.actionButton,"flex items-center justify-center"),children:e(Mi,{...u,variant:"text",size:l})})]}),c&&e("div",{className:N.description,...w,children:c}),C&&e(Ya,{variant:"error",...$,size:"sm",fontWeight:"normal",children:x.length>0?x.join(" "):f})]})})}),$d=f((t,r)=>{const{disabled:n,autoFocus:o,className:a="",attr:l}=t,d=i(null),s=r||d,{inputProps:c}=Ao({...t,isDisabled:n??!1},s),{focusProps:u}=yo({autoFocus:o??!1}),{hoverProps:p}=jn({isDisabled:n??!1}),f=md({char:!0,disabled:n});return e("div",{className:mt(f.container,f.inputContainer,a),children:e("input",{ref:s,className:f.input,...Ft(c,u,p),size:1,...l})})}),Cd=Object.assign(wd,{TypeIcon:hd,ActionIcon:gd,ActionButton:vd,Char:$d,Prefix:bd,Suffix:yd});wd.displayName="TextInput",$d.displayName="TextInputChar";const xd=/\D/g,Ed=({pinLength:t,onComplete:r=e=>e,onChange:n=e=>e,id:o="pin-code-input",autoFocus:d=!0,className:c})=>{const[u,p]=a(()=>Array.from({length:t},()=>"")),f=i(Array(t).fill(null));s(()=>{p(e=>t<e.length?e.slice(0,t):t>e.length?[...e,...Array(t-e.length).fill("")]:e)},[t]),s(()=>{var e;d&&f.current[0]&&(null===(e=f.current[0])||void 0===e||e.focus())},[d,t]);const m=(e,o)=>{var a;p(o),n(o);const i=o.join("");i.length===t&&(null===(a=f.current[e])||void 0===a||a.blur(),r(i))},h=l((e,r)=>{const n=[...u];r.replace(xd,"").split("").forEach(r=>{var o,a;e>=t||(n[e]=r,e++,null===(a=null===(o=f?.current)||void 0===o?void 0:o[e])||void 0===a||a.focus())}),m(e,n)},[u,m]),g=l(e=>{var t,r;const n=parseInt(e.currentTarget.dataset.id||"",10),o=e.target.value.replace(xd,"");if(o.length>1)return h(n,o);const a=[...u];a[n]=o,o.length&&(null===(r=null===(t=f?.current)||void 0===t?void 0:t[n+1])||void 0===r||r.focus()),m(n,a)},[m]),v=l(e=>{var r,n,o,a,i;const l=e.currentTarget.value.length,d=parseInt(e.currentTarget.dataset.id||"",10),s=[...u];switch(e.key){case"Backspace":if(l&&(s[d]="",m(d,s)),d){const e=s.reduceRight((e,t,r)=>-1!==e?e:""!==t?r:e,-1);null===(r=f?.current[e>=0?e:0])||void 0===r||r.focus()}return;case"ArrowLeft":{const e=d?d-1:t-1;return void(null===(n=f?.current[e])||void 0===n||n.focus())}case"ArrowRight":{const e=d===t-1?0:d+1;return void(null===(o=f?.current[e])||void 0===o||o.focus())}default:{const t=e.key.replace(xd,"");l&&t.length&&t!==e.currentTarget.value&&(s[d]=t,m(d,s),null===(i=null===(a=f?.current)||void 0===a?void 0:a[d+1])||void 0===i||i.focus())}}},[n,m]);return e("form",{id:o,className:"m-0 min-w-0 flex w-full justify-between max-w-[30rem] gap-2",children:u.map((r,n)=>e(Cd.Char,{id:o?`${o}-${n}`:void 0,"aria-label":`one time password input ${n+1}`,"data-id":n,name:`one time password input ${n+1}`,value:u[n]||"",className:mt("caret-transparent rounded-[0.5rem]",6===t&&2===n?"mr-4":"mr-0",c),attr:{onChange:g,onKeyUp:v,autoComplete:0===n?"one-time-code":"off",inputMode:"numeric"},ref:e=>{f?.current&&(f.current[n]=e)}},`${o||void 0}-${n}`))})},kd="2.625rem",Ld=si(({children:t})=>e(Ji,{children:t})),Nd=si(({children:e})=>m.map(e,e=>{var t,r,n;return h(e,{color:null!==(t=e.props.color)&&void 0!==t?t:"var(--color-brand-base)",width:null!==(r=e.props.width)&&void 0!==r?r:kd,height:null!==(n=e.props.height)&&void 0!==n?n:kd})})),Md=si(({children:t,className:r=""})=>e("div",{className:mt("flex flex-col items-center justify-center shrink-0 pb-0 pt-6 px-8 w-full gap-2.5",r),children:t})),_d=si(Ki),Pd=si(Ti),Td=({children:t,overlay:n,...o})=>{if(n){const{animate:r,backgroundType:n,isOpen:a=!0,onHidden:i,fullscreen:l=!1}=o;return e(sl,{animate:r,backgroundType:n,hide:!a,onHidden:i,fullscreen:l,children:t})}return e(r,{children:t})},Id=Object.assign(({children:r,overlay:n=!0,...o})=>di(r,r=>{const a=r.get(Ld)?8:4,i=r.getProps(_d),l=r.getProps(Pd);return e(Td,{overlay:n,...o,children:e(ll,{paddingType:"md",...o,children:t("div",{className:mt("flex flex-col items-center gap-0 w-full",8===a?"mt-8":"mt-4"),children:[r.get(Ld),r.get(Nd),r.get(Md),i&&e(Ki,{...i}),l&&e(Ti,{...l})]})})})}),{Header:Ld,Icon:Nd,Content:Md,Footer:_d,Drawer:Pd}),Sd=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))})),Od=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))}));Object.assign(({children:r,detailTitle:n,detailMessage:o,title:a,message:i,...l})=>di(r,r=>{const d=r.get(Sd),s=r.get(Od);return t(Id,{...l,children:[e(Id.Icon,{children:d||e(vl,{})}),t(Id.Content,{children:[e(Ya.H3,{styles:{textAlign:"center"},children:a}),e(Ya,{size:"md",styles:{textAlign:"center"},children:i}),o&&t("div",{className:"bg-negative-lightest rounded-lg my-4 p-4 w-full",children:[n&&e(Ya,{variant:"error",children:e("b",{className:"uppercase",children:n})}),e(Ya,{variant:"error",children:o})]}),s]}),e(Id.Footer,{})]})}),{Icon:Sd,Button:Od});const Ad=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))})),Rd=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))})),Dd=f(({className:r,...n},o)=>{const{primaryLabel:a,secondaryLabel:i,isExternalLink:l}=n;return di(n.children,d=>{const s=d.get(Ad),c=d.get(Rd);return e(Ca,{ref:o,className:mt("p-4 bg-neutral-quaternary hover:bg-neutral-secondary",r),borderRadius:"0.5rem",expand:!0,...n,children:t("div",{className:"flex flex-row items-center justify-between w-full",children:[t("div",{className:"flex flex-row items-center gap-2.5",children:[s&&{...s,props:{height:24,...s.props,className:s.props.color?void 0:"text-brand-base"}},t("div",{className:"flex flex-col gap-0 items-start",children:[t("div",{className:"flex flex-row items-center gap-2.5",children:["string"==typeof a?e(Ya,{fontWeight:"medium",children:a}):a,l&&e(Cl,{width:14,height:14,color:"var(--color-neutral-primary)"})]}),i&&e(Ya,{size:"sm",fontColor:"text.tertiary",children:i})]})]}),e("div",{className:"flex flex-row items-center gap-2.5",children:c&&{...c,props:{...c.props,className:c.props.color?void 0:"text-neutral-primary",width:16,height:16}}})]})})})});Dd.displayName="NavigationButton",Object.assign(Dd,{LeadingIcon:Ad,TrailingIcon:Rd});const Fd=({title:r,titleId:n,...o})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0047 25.3341C21.1593 25.3341 25.338 21.1554 25.338 16.0008C25.338 10.8461 21.1593 6.66745 16.0047 6.66745C10.85 6.66745 6.67135 10.8461 6.67135 16.0008C6.67135 21.1554 10.85 25.3341 16.0047 25.3341ZM14.6917 12.8109C15.1258 12.0172 15.3429 11.6204 15.6317 11.4922C15.8727 11.3854 16.1476 11.3854 16.3885 11.4922C16.6774 11.6204 16.8944 12.0172 17.3285 12.8109L17.7788 13.6343C17.8582 13.7794 17.8979 13.852 17.9486 13.9155C17.9918 13.9695 18.0409 14.0186 18.095 14.0618C18.1585 14.1126 18.2311 14.1523 18.3762 14.2316L19.1996 14.682C19.9933 15.1161 20.3901 15.3331 20.5182 15.622C20.6251 15.8629 20.6251 16.1378 20.5182 16.3787C20.3901 16.6676 19.9933 16.8846 19.1996 17.3187L18.3762 17.7691C18.2311 17.8484 18.1585 17.8881 18.095 17.9389C18.0409 17.9821 17.9918 18.0312 17.9486 18.0852C17.8979 18.1488 17.8582 18.2213 17.7788 18.3664L17.3285 19.1898C16.8944 19.9835 16.6774 20.3804 16.3885 20.5085C16.1476 20.6153 15.8727 20.6153 15.6317 20.5085C15.3429 20.3804 15.1258 19.9835 14.6917 19.1898L14.2414 18.3664C14.1621 18.2213 14.1224 18.1488 14.0716 18.0852C14.0284 18.0312 13.9793 17.9821 13.9252 17.9389C13.8617 17.8881 13.7892 17.8484 13.6441 17.7691L12.8207 17.3187C12.027 16.8846 11.6301 16.6676 11.502 16.3787C11.3952 16.1378 11.3952 15.8629 11.502 15.622C11.6301 15.3331 12.027 15.1161 12.8207 14.682L13.6441 14.2316C13.7891 14.1523 13.8617 14.1126 13.9252 14.0618C13.9793 14.0186 14.0284 13.9695 14.0716 13.9155C14.1224 13.852 14.1621 13.7794 14.2414 13.6343L14.6917 12.8109Z",fill:"url(#paint0_linear_10465_20426)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30ZM16.0047 27.2008C22.1903 27.2008 27.2047 22.1864 27.2047 16.0008C27.2047 9.81519 22.1903 4.80078 16.0047 4.80078C9.8191 4.80078 4.80469 9.81519 4.80469 16.0008C4.80469 22.1864 9.8191 27.2008 16.0047 27.2008Z",fill:"url(#paint1_linear_10465_20426)"}),t("defs",{children:[t("linearGradient",{id:"paint0_linear_10465_20426",x1:4.8,y1:1.06667,x2:32.4967,y2:31.1537,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#6851FF"}),e("stop",{offset:1,stopColor:"#CE99FF"})]}),t("linearGradient",{id:"paint1_linear_10465_20426",x1:4.8,y1:1.06667,x2:32.4967,y2:31.1537,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#6851FF"}),e("stop",{offset:1,stopColor:"#CE99FF"})]})]})]}),Hd=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))})),jd=({name:n,fiatBalanceWithSymbol:o,tokenBalanceWithSymbol:a,tokenIcon:i,logoUrl:l,tokenBalanceFirst:d,disabled:s=!1,isLoading:c=!1})=>{const u=d||!o;return t("div",{className:mt("flex flex-row items-center w-full justify-between",s?"opacity-50":"opacity-100"),children:[t("div",{className:"flex flex-row items-center gap-4",children:[i?{...i,props:{...i.props,width:40,height:40}}:l?e("img",{width:40,height:40,src:l,alt:`${n} logo`}):e(Fd,{width:40,height:40}),e(Ya,{fontWeight:"medium",styles:{textTransform:"capitalize",textAlign:"left"},children:n})]}),e("div",{className:"flex flex-col gap-0 items-end",children:t(r,c?{children:[e(ml,{height:"1rem",width:"6rem"}),a&&o&&e("div",{style:{marginTop:"4px"},children:e(ml,{height:"1rem",width:"4rem"})})]}:{children:[e(Ya,{size:"sm",styles:{lineHeight:"1.5rem",textAlign:"right"},children:u?a:o}),e(Ya,{size:"sm",fontColor:"text.secondary",styles:{lineHeight:"1.5rem",textAlign:"right"},children:u?o:a})]})})]})};Object.assign(t=>{const{name:r,fiatBalanceWithSymbol:n,tokenBalanceWithSymbol:o,logoUrl:a,onPress:d,tokenBalanceFirst:s,disabled:c,isLoading:u}=t,p=i(null),f=l(()=>{d?.()},[d]);return di(t.children,t=>{const i=t.get(Hd);return d?e(Ca,{ref:p,className:"dark:bg-surface-tertiary hover:bg-neutral-secondary bg-neutral-quaternary px-4 py-2 min-h-[4rem]",borderRadius:"0.5rem",expand:!0,onPress:c?void 0:f,disabled:c,children:e(jd,{name:r,fiatBalanceWithSymbol:n,tokenBalanceWithSymbol:o,tokenIcon:i,logoUrl:a,tokenBalanceFirst:s,disabled:c,isLoading:u})}):e(jd,{name:r,fiatBalanceWithSymbol:n,tokenBalanceWithSymbol:o,tokenIcon:i,logoUrl:a,tokenBalanceFirst:s,disabled:c,isLoading:u})})},{TokenIcon:Hd});const Vd={send:{title:"Send",primaryTextColor:"var(--color-text-primary)",secondaryTextColor:"var(--color-text-secondary)",icon:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2408 10.6508C17.6002 11.0701 18.2315 11.1187 18.6508 10.7593C19.0701 10.3998 19.1187 9.76853 18.7593 9.34921L12.7593 2.34921C12.5693 2.12756 12.2919 2 12 2C11.7081 2 11.4307 2.12756 11.2408 2.34921L5.24076 9.34921C4.88133 9.76853 4.9299 10.3998 5.34922 10.7593C5.76855 11.1187 6.39985 11.0701 6.75927 10.6508L11 5.70324L11 21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21L13 5.70328L17.2408 10.6508Z",fill:"currentColor"})]}),iconColor:"var(--color-negative-darker)",skeletonWidth:"89px"},receive:{title:"Receive",primaryTextColor:"var(--color-positive-base)",secondaryTextColor:"var(--color-positive-lighter)",icon:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2408 13.3492C17.6002 12.9299 18.2315 12.8813 18.6508 13.2407C19.0701 13.6002 19.1187 14.2315 18.7593 14.6508L12.7593 21.6508C12.5693 21.8724 12.2919 22 12 22C11.7081 22 11.4307 21.8724 11.2408 21.6508L5.24076 14.6508C4.88133 14.2315 4.9299 13.6002 5.34922 13.2407C5.76855 12.8813 6.39985 12.9299 6.75927 13.3492L11 18.2968L11 3C11 2.44772 11.4477 2 12 2C12.5523 2 13 2.44772 13 3L13 18.2967L17.2408 13.3492Z",fill:"currentColor"})]}),iconColor:"var(--color-positive-base)",skeletonWidth:"89px"},networkFee:{title:"Network Fee",primaryTextColor:"var(--color-text-primary)",secondaryTextColor:"var(--color-text-secondary)",icon:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8393 1.18633C16.0191 1.62165 16.0904 2.13337 16.0904 2.67308V9.59219H18.4874C19.3815 9.59219 20.4183 9.86546 20.8417 10.8036C21.2652 11.7417 20.7838 12.6983 20.1937 13.3654L20.1926 13.3668L11.8726 22.8234C11.5162 23.2281 11.1246 23.5652 10.7026 23.7735C10.2763 23.9838 9.741 24.0959 9.20231 23.8936C8.66315 23.6911 8.3341 23.2538 8.15233 22.8137C7.97254 22.3783 7.90123 21.8666 7.90123 21.3269V14.4078H5.50425C4.61648 14.4078 3.58277 14.1378 3.15874 13.2018C2.73585 12.2683 3.21019 11.312 3.79247 10.6408L3.79704 10.6355L12.119 1.17665C12.4754 0.771879 12.8671 0.434796 13.2891 0.226544C13.7154 0.0161889 14.2507 -0.0959383 14.7893 0.106398C15.3285 0.308914 15.6576 0.746213 15.8393 1.18633Z",fill:"currentColor"})]}),iconColor:"var(--color-brand-base)",skeletonWidth:"54px"},spendingCap:{title:"Spending Cap",primaryTextColor:"var(--color-warning-base)",secondaryTextColor:"var(--color-warning-base)",icon:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M13 1C15.7614 1 18 3.23858 18 6C18 6.55228 17.5523 7 17 7C16.4477 7 16 6.55228 16 6C16 4.34315 14.6569 3 13 3H12C9.79086 3 8 4.79086 8 7V9H18C20.7614 9 23 11.2386 23 14V18C23 20.7614 20.7614 23 18 23H6C3.23858 23 1 20.7614 1 18V14C1 11.2386 3.23858 9 6 9V7C6 3.68629 8.68629 1 12 1H13Z",fill:"currentColor"})]}),iconColor:"var(--color-warning-base)",skeletonWidth:"89px"}},Bd=si(({children:t,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(t,e=>h(e,r))}));Object.assign(r=>{const{variant:n,primaryText:o,secondaryText:a,children:d,onPress:s,loading:c,showTitle:u=!0}=r,{title:p,primaryTextColor:f,secondaryTextColor:m,icon:h,iconColor:g,skeletonWidth:v}=Vd[n],b="send"===n||"networkFee"===n,y=i(null),w=l(()=>{s?.()},[s]);return di(d,n=>{const i=n.get(Bd);return t("div",{className:"flex flex-row items-center w-full justify-between",children:[t("div",{className:"flex flex-row items-center gap-2",children:[e(h,{width:16,height:16,color:g}),u&&e(Ya,{size:"sm",fontWeight:"medium",children:p})]}),t("div",{className:"flex flex-row items-center gap-4",children:[a&&e(Ya,{styles:{color:m},children:a}),b?e(Ca,{ref:y,className:"px-4 py-2.5 bg-surface-secondary",borderRadius:"0.75rem",onPress:w,...r,children:t("div",{className:"flex flex-row items-center gap-3",children:[c?e(ml,{width:v}):e(Ya,{styles:{color:f},children:o}),i&&{...i,props:{...i.props,width:32,height:32}}]})}):t("div",{className:"flex flex-row items-center gap-3",children:[c?e(ml,{width:v}):e(Ya,{styles:{color:f},children:o}),i&&{...i,props:{...i.props,width:32,height:32}}]})]})]})})},{TokenIcon:Bd});const zd=si(({backgroundColor:t,children:r})=>e("div",{className:"flex items-center justify-center rounded-[60px] h-11 w-11 overflow-hidden",style:{backgroundColor:t},children:h(m.only(r),{height:24,width:24})})),Gd=si(({backgroundColor:r,children:n})=>t("div",{className:"h-10 w-10 relative",children:[e("div",{className:"flex items-center justify-center absolute h-7 w-7 rounded-[30px]",style:{backgroundColor:r},children:h(n[0],{height:20,width:20})}),e("div",{className:"flex items-center justify-center absolute rounded-[30px] h-7 w-7 bottom-0 right-0",style:{backgroundColor:r},children:h(n[1],{height:20,width:20})})]})),Ud=si(({backgroundColor:t,children:r})=>e("div",{className:"flex items-center justify-center rounded-[30px] border-2 border-neutral-tertiary w-5 h-5",style:{backgroundColor:t},children:h(m.only(r),{height:10,width:10})}));Object.assign(({title:r,subtitle:n,primaryValue:o,primaryValueColor:a,secondaryValue:i,children:l,onPress:d,...s})=>di(l,l=>{const c=l.get(Gd),u=l.get(zd),p=l.get(Ud);return e(Ca,{borderRadius:"0.375rem",expand:!0,onPress:d,children:t("div",{className:mt("flex flex-row items-center p-3 gap-2 w-full relative rounded-md justify-between","active:scale-95 hover:bg-neutral-secondary bg-neutral-tertiary"),...s,children:[t("div",{className:"flex flex-row items-center gap-2.5",children:[c&&c,u&&u,p&&e("div",{className:"absolute left-9 top-11",children:p}),t("div",{children:[e(Ya,{truncate:!0,size:"md",fontWeight:"bold",children:r})," ",n&&e(Ya,{truncate:!0,size:"sm",fontColor:"text.secondary",children:n})]})]}),t("div",{children:[e(Ya,{truncate:!0,size:"md",styles:{textAlign:"end",color:a},...s,children:o}),i&&e(Ya,{truncate:!0,size:"sm",styles:{textAlign:"end"},fontColor:"text.secondary",children:i})]})]})})}),{DoubleIcon:Gd,PrimaryIcon:zd,SecondaryIcon:Ud});const Wd=si(({children:e})=>e),Zd=Object.assign(r=>{const{isPending:n,isSuccess:o,onChange:a,onComplete:i,originName:l,pinLength:d,id:s,autoFocus:c,errorMessage:u,children:p}=r;return di(p,r=>t("div",{className:"flex flex-col gap-3 my-3",children:[e("div",{className:"flex items-center justify-center h-12",children:n?e(Ia,{size:36,strokeWidth:4}):o?e(Na,{color:"var(--color-brand-base)",width:36,height:36}):e(Ed,{originName:l,onChange:a,pinLength:d,onComplete:i,id:s,autoFocus:c})}),u&&e(Ya,{variant:"error",size:"sm",styles:{textAlign:"center"},children:u}),r.get(Wd)]}))},{RetryContent:Wd});function Yd({value:t,ecLevel:r="H",qrStyle:n="dots",eyeRadius:o=0,eyeColor:a="#18171A",size:i=160,logoImage:l,logoHeight:d=32,logoWidth:s=32,logoOpacity:c=1,logoPadding:u=0,logoPaddingStyle:p="square",logoOnLoad:f,removeQrCodeBehindLogo:m=!1,enableCORS:h=!1,quietZone:g=5,bgColor:v="#FFFFFF",fgColor:b="#18171A",style:y,id:w="qr-code"}){return e("div",{className:"flex items-center justify-center shadow-[0.125rem_0.125rem_1.5rem_rgba(119,118,122,0.15)] overflow-hidden p-1 rounded-[1rem]",children:e(zi,{value:t,ecLevel:r,qrStyle:n,eyeRadius:o,eyeColor:a,size:i,logoImage:l,logoHeight:d,logoWidth:s,logoOpacity:c,logoPadding:u,logoPaddingStyle:p,logoOnLoad:f,removeQrCodeBehindLogo:m,enableCORS:h,quietZone:g,bgColor:v,fgColor:b,style:y,id:w,"data-testid":w})})}const Kd={brand:{base:{base:0,lightest:102,lighter:51,darker:-51,darkest:-102},dark:{base:0,lightest:"25%",lighter:"66%",darker:102,darkest:102}},neutral:{base:{primary:0,secondary:51,tertiary:102,quaternary:153},dark:{primary:"16%",secondary:"12%",tertiary:"8%",quaternary:"5%"}},surface:{base:{primary:0,secondary:-51,tertiary:-102},dark:{primary:0,secondary:21,tertiary:42}},text:{base:{primary:0,secondary:51,tertiary:102},dark:{primary:0,secondary:"72%",tertiary:"44%"}}},qd=(e,t)=>{e=e.replace(/[^0-9a-f]/gi,"").slice(0,6);const r=t?Math.round(.01*parseFloat(t)*255).toString(16):void 0;return e.length<3?e:(e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),r?e+r:e)},Xd=(e,t)=>{e=qd(e);const r=parseInt(e,16),n=Math.min(Math.max(0,(r>>16)+t),255);return"#"+("00000"+(Math.min(Math.max(0,(255&r)+t),255)|Math.min(Math.max(0,(r>>8&255)+t),255)<<8|n<<16).toString(16)).slice(-6)};var Qd=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.ConnectionLost="CONNECTION_WAS_LOST",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(Qd||{}),Jd=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(Jd||{}),es=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e[e.DpopInvalidated=-10019]="DpopInvalidated",e))(es||{}),ts=(e=>(e.PROVIDER="magic_3pw_provider",e.ADDRESS="magic_3pw_address",e.CHAIN_ID="magic_3pw_chainId",e))(ts||{}),rs=(e=>(e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e.Web3ModalSelected="web3modal_selected",e))(rs||{}),ns=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e.GetMultichainPublicAddress="magic_get_multichain_public_address",e.Sign7702Authorization="magic_wallet_sign_7702_authorization",e.Send7702Transaction="eth_send7702Transaction",e))(ns||{}),os=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e.MAGIC_PONG="MAGIC_PONG",e.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",e.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",e.MAGIC_THIRD_PARTY_WALLET_REQUEST="MAGIC_THIRD_PARTY_WALLET_REQUEST",e.MAGIC_OPEN_MOBILE_URL="MAGIC_OPEN_MOBILE_URL",e))(os||{}),as=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e.MAGIC_THIRD_PARTY_WALLET_RESPONSE="MAGIC_THIRD_PARTY_WALLET_RESPONSE",e.MAGIC_THIRD_PARTY_WALLET_UPDATE="MAGIC_THIRD_PARTY_WALLET_EVENT",e.MAGIC_PING="MAGIC_PING",e))(as||{}),is=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(is||{}),ls=(e=>(e.Retry="retry",e))(ls||{}),ds=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(ds||{}),ss=(e=>(e.VerifyEmailOtp="verify-email-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e))(ss||{}),cs=(e=>(e.VerifySmsOtp="verify-sms-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e.Retry="retry",e))(cs||{}),us=(e=>(e.SmsOTPSent="sms-otp-sent",e.InvalidSmsOtp="invalid-sms-otp",e.ExpiredSmsOtp="expired-sms-otp",e.MfaSentHandle="mfa-sent-handle",e.InvalidMfaOtp="invalid-mfa-otp",e.LoginThrottled="login-throttled",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e))(us||{}),ps=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.InvalidMfaOtp="invalid-mfa-otp",e.ExpiredEmailOtp="expired-email-otp",e.MfaSentHandle="mfa-sent-handle",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e.LoginThrottled="login-throttled",e.MaxAttemptsReached="max-attempts-reached",e))(ps||{}),fs=(e=>(e.Retry="device-retry",e))(fs||{}),ms=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(ms||{}),hs=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e.VerifyMFACode="Recency/verify-mfa-code",e))(hs||{}),gs=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(gs||{}),vs=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(vs||{}),bs=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(bs||{}),ys=(e=>(e.IDTokenCreated="Auth/id-token-created",e))(ys||{}),ws=(e=>(e.Cancel="Farcaster/cancel",e))(ws||{}),$s=(e=>(e.MFASecretGenerated="mfa-secret-generated",e.InvalidMFAOtp="invalid-mfa-otp",e.MFARecoveryCodes="mfa-recovery-codes",e))($s||{}),Cs=(e=>(e.VerifyMFACode="verify-mfa-code",e.Cancel="cancel-mfa-setup",e))(Cs||{}),xs=(e=>(e.MFACodeRequested="mfa-code-requested",e.InvalidMFAOtp="invalid-mfa-otp",e.InvalidRecoveryCode="invalid-recovery-code",e))(xs||{}),Es=(e=>(e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.Cancel="cancel-mfa-disable",e))(Es||{}),ks=(e=>(e.Harmony="HARMONY",e))(ks||{}),Ls=(e=>(e.ClosedByUser="closed-by-user",e))(Ls||{}),Ns=(e=>(e.ClosedByUser="closed-by-user-on-received",e))(Ns||{}),Ms=(e=>(e.EnterNewPhoneNumber="enter-new-phone-number",e.EnterOtpCode="enter-otp-code",e.RecoveryFactorAlreadyExists="recovery-factor-already-exists",e.MalformedPhoneNumber="malformed-phone-number",e.InvalidOtpCode="invalid-otp-code",e.RecoveryFactorUpdated="recovery-factor-updated",e.RecoveryFactorDeleted="recovery-factor-deleted",e))(Ms||{}),_s=(e=>(e.SendNewPhoneNumber="send-new-phone-number",e.SendOtpCode="send-otp-code",e.Cancel="cancel",e.StartEditPhoneNumber="start-edit-phone-number",e))(_s||{}),Ps=(e=>(e.PhoneNumber="phone_number",e))(Ps||{}),Ts=(e=>(e.SmsOtpSent="sms-otp-sent",e.LoginThrottled="login-throttled",e.InvalidSmsOtp="invalid-sms-otp",e.SmsVerified="sms-verified",e.AccountRecovered="account-recovered",e.UpdateEmailRequired="update-email-required",e))(Ts||{}),Is=(e=>(e.Cancel="cancel",e.VerifyOtp="verify-otp-code",e.ResendSms="resend-sms-otp",e.UpdateEmail="update-email",e))(Is||{}),Ss=(e=>(e.Success="nft-checkout-success",e.Failure="nft-checkout-failure",e.Initiated="nft-checkout-initiated",e.Disconnect="disconnect",e))(Ss||{}),Os=(e=>(e.WalletInfoFetched="Wallet/wallet-info-fetched",e))(Os||{}),As=(e=>(e.CloseMagicWindow="close-magic-window",e))(As||{}),Rs=(e=>(e.Cancel="cancel",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e))(Rs||{}),Ds=(e=>(e.MfaSentHandle="mfa-sent-handle",e.InvalidMfaOtp="invalid-mfa-otp",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e))(Ds||{}),Fs=(e=>(e.PopupUrl="popup-url",e))(Fs||{}),Hs=(e=>(e.PopupEvent="popup-event",e))(Hs||{});const js=[F,H];var Vs;!function(e){e.GenerateNonce="magic_siwe_generate_nonce",e.Login="magic_auth_login_with_siwe"}(Vs||(Vs={}));const Bs="magic-widget";var zs,Gs,Us;!function(e){e.Popup="magic_oauth_login_with_popup"}(zs||(zs={})),function(e){e.GetConfig="magic_client_get_config"}(Gs||(Gs={})),function(e){e.FarcasterShowQR="farcaster_show_QR"}(Us||(Us={}));let Ws=null;function Zs(){if(!Ws)throw new Error("WalletKitExtension has not been initialized. Make sure to create a Magic instance with WalletKitExtension before rendering MagicWidget.");return Ws}class Ys extends _.Internal{name="walletKit";config={};projectId;wagmiConfig;wagmiAdapter;clientConfig=null;configPromise=null;eventsListenerAdded=!1;reconnectPromise=null;isReauthInProgress=!1;onAccountChangedCallback;onAccountChangedErrorCallback;constructor(e){super();const{projectId:t,wagmiAdapter:r,wagmiConfig:n}=function(e){const t=e??"ce9c27dd61e602ccdc9c536b6d624c63",r=new D({projectId:t,networks:js});return{projectId:t,wagmiAdapter:r,wagmiConfig:r.wagmiConfig}}(e?.projectId);this.projectId=t,this.wagmiAdapter=r,this.wagmiConfig=n}init(e){super.init(e),Ws=this;localStorage.getItem(ts.PROVIDER)===Bs&&(this.sdk.thirdPartyWallets.isConnected=!0,this.restoreWalletConnection())}async restoreWalletConnection(){if(this.reconnectPromise)return this.reconnectPromise;if(I(this.wagmiConfig).isConnected)return void this.setupEip1193EventListeners();return localStorage.getItem(ts.PROVIDER)===Bs?(this.reconnectPromise=(async()=>{try{await S(this.wagmiConfig);I(this.wagmiConfig).isConnected&&this.setupEip1193EventListeners()}catch(e){console.error("Failed to reconnect wagmi wallet:",e)}})(),this.reconnectPromise):void 0}setConnectedState(e,t=1){localStorage.setItem(ts.PROVIDER,Bs),localStorage.setItem(ts.ADDRESS,e),localStorage.setItem(ts.CHAIN_ID,t.toString()),this.sdk.thirdPartyWallets.isConnected=!0,this.setupEip1193EventListeners()}clearConnectedState(){this._cleanupWatcher&&this._cleanupWatcher(),this.sdk.thirdPartyWallets.resetThirdPartyWalletState()}async getWalletProvider(){try{await this.restoreWalletConnection();const e=I(this.wagmiConfig);if(!e.isConnected||!e.connector)return null;return await O(this.wagmiConfig)}catch(e){return console.error("Failed to get wallet provider:",e),null}}async walletRequest(e){const t=await this.getWalletProvider();if(!t)throw new P({code:es.InternalError,message:"No wallet connected. Please connect a wallet first."});return t.request({method:e.method,params:e.params})}setupEip1193EventListeners(){if(this.eventsListenerAdded)return;this.eventsListenerAdded=!0;const e=A(this.wagmiConfig,{onChange:t=>{const r=localStorage.getItem(ts.ADDRESS),n=localStorage.getItem(ts.CHAIN_ID);if(!t.isConnected&&r)return this.handleWalletDisconnect(),this.eventsListenerAdded=!1,void e();t.address&&t.address!==r&&(localStorage.setItem(ts.ADDRESS,t.address),this.sdk.rpcProvider.emit("accountsChanged",[t.address]),this.dispatchWalletUpdate({chain:t.chain,address:t.address,addresses:t.addresses,updatedField:"address"}),this.performSilentReauth(t.address,t.chainId??1)),t.chainId&&t.chainId.toString()!==n&&(localStorage.setItem(ts.CHAIN_ID,t.chainId.toString()),this.sdk.rpcProvider.emit("chainChanged",t.chainId),this.dispatchWalletUpdate({chain:t.chain,address:t.address,addresses:t.addresses,updatedField:"chain"}))}});this._cleanupWatcher=()=>{e(),this.eventsListenerAdded=!1}}async handleWalletDisconnect(){this.sdk.thirdPartyWallets.resetThirdPartyWalletState(),this.sdk.rpcProvider.emit("accountsChanged",[]);try{const e=this.utils.createJsonRpcRequestPayload(ns.Logout,[]);await this.request(e)}catch(e){console.error("Failed to invalidate Magic session after wallet disconnect:",e)}}async dispatchWalletUpdate(e){try{this.sdk.overlay.postThirdPartyWalletUpdate(e)}catch(e){console.error("Failed to post third party wallet event:",e)}}setAccountChangedCallbacks(e,t){this.onAccountChangedCallback=e,this.onAccountChangedErrorCallback=t}async performSilentReauth(e,t){if(!this.isReauthInProgress){this.isReauthInProgress=!0;try{const r=await this.generateMessage({address:e,chainId:t}),n=await R(this.wagmiConfig,{message:r});await this.login({message:r,signature:n}),this.onAccountChangedCallback?.({method:"wallet",walletAddress:e})}catch(e){const t=e instanceof Error?e:new Error(String(e),{cause:e});console.error("SIWE re-auth failed for new account:",t),this.onAccountChangedErrorCallback?.(t)}finally{this.isReauthInProgress=!1}}}async generateNonce(e){const t=this.utils.createJsonRpcRequestPayload(Vs.GenerateNonce,[e]);return this.request(t)}async generateMessage(e){const t=await this.generateNonce({address:e.address}),r=function(e){const{domain:t,address:r,statement:n,uri:o,version:a,chainId:i,nonce:l,issuedAt:d}=e;return`${t} wants you to sign in with your Ethereum account:\n${r}\n\n${n}\n\nURI: ${o}\nVersion: ${a}\nChain ID: ${i}\nNonce: ${l}\nIssued At: ${d}`}({domain:window.location.host,address:e.address,statement:e.statement||"By signing, you are proving you own this wallet and logging in.",uri:window.location.origin,version:"1",chainId:e.chainId||1,nonce:t,issuedAt:(new Date).toISOString()});return r}async login(e){const t=this.utils.createJsonRpcRequestPayload(Vs.Login,[e]);return this.request(t)}loginWithPopup(e){const t=this.utils.createJsonRpcRequestPayload(zs.Popup,[{provider:e,showUI:!1,returnTo:window.location.href,apiKey:this.sdk.apiKey,platform:"web"}]),r=T(async(e,n)=>{try{const o=this.request(t);o.on(Ds.MfaSentHandle,()=>{r.emit(Ds.MfaSentHandle)}),o.on(Ds.InvalidMfaOtp,()=>{r.emit(Ds.InvalidMfaOtp)}),o.on(Ds.RecoveryCodeSentHandle,()=>{r.emit(Ds.RecoveryCodeSentHandle)}),o.on(Ds.InvalidRecoveryCode,()=>{r.emit(Ds.InvalidRecoveryCode)}),o.on(Ds.RecoveryCodeSuccess,()=>{r.emit(Ds.RecoveryCodeSuccess)});const a=await o,i=a,l=a;l.error?n(this.createError(l.error,l.error_description??"An error occurred.",{errorURI:l.error_uri,provider:l.provider})):e(i)}catch(e){n(e)}});return r&&(r.on(Rs.VerifyMFACode,e=>{this.createIntermediaryEvent(Rs.VerifyMFACode,t.id)(e)}),r.on(Rs.LostDevice,()=>{this.createIntermediaryEvent(Rs.LostDevice,t.id)()}),r.on(Rs.VerifyRecoveryCode,e=>{this.createIntermediaryEvent(Rs.VerifyRecoveryCode,t.id)(e)}),r.on(Rs.Cancel,()=>{this.createIntermediaryEvent(Rs.Cancel,t.id)()})),r}async fetchConfig(){if(this.clientConfig)return this.clientConfig;if(this.configPromise)return this.configPromise;const e=this.utils.createJsonRpcRequestPayload(Gs.GetConfig,[]);return this.configPromise=this.request(e),this.clientConfig=await this.configPromise,this.clientConfig}getConfig(){return this.clientConfig}loginWithEmailOTP(e){return this.sdk.auth.loginWithEmailOTP({email:e,showUI:!1,deviceCheckUI:!1})}loginWithSMS(e){return this.sdk.auth.loginWithSMS({phoneNumber:e,showUI:!1})}loginWithFarcaster(){const e=this.utils.createJsonRpcRequestPayload(Us.FarcasterShowQR,[{data:{showUI:!1,domain:window.location.host,siweUri:window.location.origin}}]),t=this.request(e);return t.on(ws.Cancel,()=>{this.createIntermediaryEvent(ws.Cancel,e.id)()}),t}}const Ks=({onClick:e})=>{const t=Zs().getConfig(),r="dark"===t?.theme.themeColor;return o.createElement("div",{className:"flex-1"},o.createElement(Ca,{onPress:e,borderRadius:14,className:"w-full px-4 py-3 bg-neutral-quaternary hover:bg-neutral-tertiary"},o.createElement("div",{className:"flex flex-row items-center gap-3 w-full justify-start"},o.createElement(kl,{width:24,height:24,...r?{color:"#77767A"}:{}}),o.createElement(Ya,{styles:{lineHeight:"1.5rem"}},"Continue with SMS"))))},qs=[".cu",".ir",".kp",".sy",".gob.ve"];const Xs={METAMASK:"metamask",WALLETCONNECT:"walletconnect",COINBASE:"coinbase",PHANTOM:"phantom",RABBY:"rabby"};var Qs,Js;!function(e){e.MalformedEmail="Invalid params: Please provide a valid email address.",e.SanEmail="We are unable to create an account with that email.",e.InvalidPhoneNumber="Invalid params: Invalid phone number."}(Qs||(Qs={})),function(e){e.GOOGLE="google",e.APPLE="apple",e.FACEBOOK="facebook",e.GITHUB="github",e.TWITTER="twitter",e.LINKEDIN="linkedin",e.MICROSOFT="microsoft",e.TWITCH="twitch",e.BITBUCKET="bitbucket",e.DISCORD="discord",e.GITLAB="gitlab",e.TELEGRAM="telegram"}(Js||(Js={}));const ec=p(null);function tc({children:e,wallets:t=[],enableFarcaster:r=!1,onSuccess:n,onError:a,onClose:i,closeOnSuccess:d=!1}){const s=l(e=>{n?.(e),d&&i&&setTimeout(()=>{i()},2e3)},[n,d,i]),c={wallets:t,enableFarcaster:r,handleSuccess:s,handleError:l(e=>{a?.(e)},[a]),handleClose:i?()=>{i()}:void 0};return o.createElement(ec.Provider,{value:c},e)}function rc(){const e=d(ec);if(!e)throw new Error("useWidgetConfig must be used within a WidgetConfigProvider");return e}const nc=p(null);function oc({children:e,dispatch:t}){const{handleSuccess:r,handleError:n}=rc(),a=i(null),d=i(null),s=l(e=>{d.current=e,t({type:"OTP_START",identifier:e,loginMethod:"email"});try{const o=Zs().loginWithEmailOTP(e);a.current=o,o.on(ps.EmailOTPSent,()=>{t({type:"OTP_SENT"})}),o.on(ps.InvalidEmailOtp,()=>{t({type:"OTP_INVALID"})}),o.on(ps.ExpiredEmailOtp,()=>{t({type:"OTP_EXPIRED"})}),o.on(ps.LoginThrottled,()=>{t({type:"LOGIN_ERROR",error:"Too many login attempts. Please try again later."})}),o.on(ps.MaxAttemptsReached,()=>{t({type:"OTP_MAX_ATTEMPTS_REACHED"})}),o.on(ms.DeviceNeedsApproval,()=>{t({type:"DEVICE_NEEDS_APPROVAL"})}),o.on(ms.DeviceVerificationEmailSent,()=>{t({type:"DEVICE_VERIFICATION_SENT"})}),o.on(ms.DeviceVerificationLinkExpired,()=>{t({type:"DEVICE_VERIFICATION_EXPIRED"})}),o.on(ms.DeviceApproved,()=>{t({type:"DEVICE_APPROVED"})}),o.on(ps.MfaSentHandle,()=>{t({type:"MFA_REQUIRED"})}),o.on(ps.InvalidMfaOtp,()=>{t({type:"MFA_INVALID"})}),o.on(ps.InvalidRecoveryCode,()=>{t({type:"RECOVERY_CODE_INVALID"})}),o.then(e=>{e&&(t({type:"LOGIN_SUCCESS"}),r({method:"email",didToken:e}))}).catch(e=>{const r=e instanceof Error?e:new Error(e?.message||"Login failed");t({type:"LOGIN_ERROR",error:r.message}),n(r)})}catch(e){const r=e instanceof Error?e:new Error("Failed to start login");t({type:"LOGIN_ERROR",error:r.message}),n(r)}},[t,r,n]),c=l(e=>{a.current&&(t({type:"OTP_VERIFYING"}),a.current.emit(ss.VerifyEmailOtp,e))},[t]),u=l(e=>{a.current&&(t({type:"MFA_VERIFYING"}),a.current.emit(ss.VerifyMFACode,e))},[t]),p=l(()=>{a.current&&(t({type:"LOST_DEVICE"}),a.current.emit(ss.LostDevice))},[t]),f=l(e=>{a.current&&(t({type:"RECOVERY_CODE_VERIFYING"}),a.current.emit(ss.VerifyRecoveryCode,e))},[t]),m=l(()=>{a.current&&a.current.emit(ss.Cancel),a.current=null,d.current=null,t({type:"GO_TO_LOGIN"})},[t]),h=l(()=>{a.current&&a.current.emit(fs.Retry)},[]),g=l(()=>{const e=d.current;if(a.current&&a.current.emit(ss.Cancel),a.current=null,d.current=null,!e)return t({type:"LOGIN_ERROR",error:"Internal error: No email found"});s(e)},[s]),v={startEmailLogin:s,submitOTP:c,submitMFA:u,lostDevice:p,submitRecoveryCode:f,cancelLogin:m,retryDeviceVerification:h,resendEmailOTP:g,email:d.current};return o.createElement(nc.Provider,{value:v},e)}function ac(){const e=d(nc);if(!e)throw new Error("useEmailLogin must be used within an EmailLoginProvider");return e}const ic=({error:e,isLoading:t})=>{const{startEmailLogin:r}=ac(),[n,i]=a(""),[l,d]=a(null),[s,c]=a(!0),u=Zs().getConfig(),p="dark"===u?.theme.themeColor,f=e||l;return o.createElement("form",{onSubmit:e=>{var t;(e.preventDefault(),(t=n)&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t))?!function(e){if(!e)return!1;const t=e.toLowerCase();return!!qs.find(e=>t.endsWith(e))}(n)?(c(!0),r(n)):d(Qs.SanEmail):d(Qs.MalformedEmail)},className:"flex flex-col items-center w-full"},o.createElement("div",{className:"w-full max-w-[25rem]"},o.createElement(Cd,{"aria-label":"email input",value:n,onChange:e=>{d(null),c(!e.length),i(e.trim())},placeholder:"Email address"},o.createElement(Cd.TypeIcon,null,o.createElement($l,{...p?{color:"#77767A"}:{}})),o.createElement(Cd.ActionIcon,{onClick:()=>{}},o.createElement(Mi,{"aria-label":"login-submit-button",variant:"text",textStyle:"neutral",disabled:s,validating:t,type:"submit"},o.createElement(Mi.LeadingIcon,{color:"var(--color-text-tertiary)"},o.createElement(gl,null)))))),f&&o.createElement(Ya,{variant:"error",size:"sm",styles:{textAlign:"center"}},f))},lc=({label:e,Icon:t,onPress:r,hideLabel:n,center:a})=>o.createElement(Ca,{onPress:r,borderRadius:14,className:"w-full px-4 py-3 bg-neutral-quaternary hover:bg-neutral-tertiary"},o.createElement("div",{className:"flex flex-row items-center gap-3 w-full "+(n||a?"justify-center":"justify-start")},o.createElement(t,{width:24,height:24}),!n&&e&&o.createElement(Ya,{fontWeight:"medium",styles:{lineHeight:"1.5rem"}},e))),dc={[Xs.WALLETCONNECT]:{displayName:"WalletConnect",Icon:({title:r,titleId:n,...o})=>t("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M4.91675 7.51605C8.83338 3.68134 15.1835 3.68134 19.1001 7.51605L19.5715 7.97756C19.7673 8.16929 19.7673 8.48016 19.5715 8.6719L17.959 10.2506C17.8611 10.3465 17.7024 10.3465 17.6044 10.2506L16.9558 9.61554C14.2234 6.94035 9.79343 6.94035 7.06109 9.61554L6.36643 10.2957C6.26851 10.3915 6.10976 10.3915 6.01184 10.2957L4.39937 8.71693C4.20354 8.5252 4.20354 8.21433 4.39937 8.0226L4.91675 7.51605ZM22.4349 10.7811L23.87 12.1861C24.0658 12.3779 24.0658 12.6887 23.87 12.8805L17.399 19.2162C17.2032 19.4079 16.8857 19.4079 16.6898 19.2162C16.6898 19.2162 16.6898 19.2162 16.6898 19.2162L12.0971 14.7196C12.0482 14.6716 11.9688 14.6716 11.9198 14.7196L7.32721 19.2162C7.13138 19.4079 6.81387 19.408 6.61804 19.2162C6.61804 19.2162 6.61804 19.2162 6.61804 19.2162L0.146874 12.8804C-0.0489579 12.6887 -0.0489579 12.3778 0.146874 12.1861L1.58198 10.781C1.77781 10.5892 2.09532 10.5892 2.29115 10.781L6.88392 15.2777C6.93288 15.3256 7.01226 15.3256 7.06122 15.2777C7.06121 15.2777 7.06122 15.2777 7.06122 15.2777L11.6538 10.781C11.8496 10.5892 12.1671 10.5892 12.3629 10.781C12.3629 10.781 12.3629 10.781 12.3629 10.781L16.9557 15.2777C17.0047 15.3256 17.084 15.3256 17.133 15.2777L21.7257 10.7811C21.9215 10.5893 22.239 10.5893 22.4349 10.7811Z",fill:"#3B99FC"})]})},[Xs.METAMASK]:{displayName:"MetaMask",Icon:({title:r,titleId:n,...o})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M28.7213 29.0412L22.4653 27.1784L17.7474 29.9987L14.4558 29.9973L9.73516 27.1784L3.48192 29.0412L1.57977 22.6199L3.48192 15.4932L1.57977 9.46778L3.48192 2L13.2531 7.8378H18.9501L28.7213 2L30.6234 9.46778L28.7213 15.4932L30.6234 22.6199L28.7213 29.0412Z",fill:"#FF5C16"}),e("path",{d:"M3.48334 2L13.2546 7.84189L12.866 11.8511L3.48334 2Z",fill:"#FF5C16"}),e("path",{d:"M9.73645 22.6226L14.0357 25.8976L9.73645 27.1783V22.6226Z",fill:"#FF5C16"}),e("path",{d:"M13.6921 17.208L12.8658 11.8538L7.5766 15.4945L7.57385 15.4931V15.4958L7.59021 19.2434L9.73509 17.208H9.73646H13.6921Z",fill:"#FF5C16"}),e("path",{d:"M28.7212 2L18.95 7.84189L19.3373 11.8511L28.7212 2Z",fill:"#FF5C16"}),e("path",{d:"M22.468 22.6226L18.1688 25.8976L22.468 27.1783V22.6226Z",fill:"#FF5C16"}),e("path",{d:"M24.6294 15.4958V15.4931L24.628 15.4945L19.3388 11.8538L18.5125 17.208H22.4682L24.6144 19.2434L24.6294 15.4958Z",fill:"#FF5C16"}),e("path",{d:"M9.73517 27.1782L3.48193 29.041L1.57977 22.6224H9.73517V27.1782Z",fill:"#E34807"}),e("path",{d:"M13.6908 17.2067L14.8853 24.947L13.23 20.6433L7.58759 19.2435L9.73384 17.2067H13.6895H13.6908Z",fill:"#E34807"}),e("path",{d:"M22.468 27.1782L28.7212 29.041L30.6233 22.6224H22.468V27.1782Z",fill:"#E34807"}),e("path",{d:"M18.5123 17.2067L17.3178 24.947L18.9732 20.6433L24.6156 19.2435L22.468 17.2067H18.5123Z",fill:"#E34807"}),e("path",{d:"M1.57977 22.6199L3.48192 15.4932H7.57259L7.58757 19.2421L13.23 20.642L14.8853 24.9457L14.0345 25.8935L9.7352 22.6185H1.57977V22.6199Z",fill:"#FF8D5D"}),e("path",{d:"M30.6234 22.6199L28.7212 15.4932H24.6306L24.6156 19.2421L18.9732 20.642L17.3178 24.9457L18.1687 25.8935L22.468 22.6185H30.6234V22.6199Z",fill:"#FF8D5D"}),e("path",{d:"M18.9502 7.83777H16.1017H13.2532L12.866 11.847L14.8854 24.9416H17.318L19.3388 11.847L18.9502 7.83777Z",fill:"#FF8D5D"}),e("path",{d:"M3.48192 2L1.57977 9.46778L3.48192 15.4932H7.57259L12.8646 11.8511L3.48192 2Z",fill:"#661800"}),e("path",{d:"M12.5086 18.7614H10.6556L9.64655 19.7503L13.2313 20.6393L12.5086 18.76V18.7614Z",fill:"#661800"}),e("path",{d:"M28.7213 2L30.6235 9.46778L28.7213 15.4932H24.6306L19.3387 11.8511L28.7213 2Z",fill:"#661800"}),e("path",{d:"M19.6973 18.7614H21.5531L22.5622 19.7517L18.9733 20.642L19.6973 18.76V18.7614Z",fill:"#661800"}),e("path",{d:"M17.746 27.4441L18.1687 25.8963L17.3178 24.9485H14.8839L14.033 25.8963L14.4557 27.4441",fill:"#661800"}),e("path",{d:"M17.7459 27.444V29.9999H14.4556V27.444H17.7459Z",fill:"#C0C4CD"}),e("path",{d:"M9.73645 27.1756L14.4584 29.9986V27.4427L14.0357 25.8949L9.73645 27.1756Z",fill:"#E7EBF6"}),e("path",{d:"M22.4681 27.1756L17.7461 29.9986V27.4427L18.1688 25.8949L22.4681 27.1756Z",fill:"#E7EBF6"})]})},[Xs.COINBASE]:{displayName:"Coinbase Wallet",Icon:({title:r,titleId:n,...o})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("circle",{cx:16,cy:16,r:16,fill:"url(#paint0_linear_8941_733)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0013 26.666C21.8923 26.666 26.668 21.8903 26.668 15.9993C26.668 10.1083 21.8923 5.33264 16.0013 5.33264C10.1103 5.33264 5.33463 10.1083 5.33463 15.9993C5.33463 21.8903 10.1103 26.666 16.0013 26.666ZM13.8659 12.8613C13.3136 12.8613 12.8659 13.309 12.8659 13.8613V18.1358C12.8659 18.6881 13.3136 19.1358 13.8659 19.1358H18.1404C18.6927 19.1358 19.1404 18.6881 19.1404 18.1358V13.8613C19.1404 13.309 18.6927 12.8613 18.1404 12.8613H13.8659Z",fill:"white"}),e("defs",{children:t("linearGradient",{id:"paint0_linear_8941_733",x1:6.5,y1:3.5,x2:26,y2:29.5,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#2A62F5"}),e("stop",{offset:1,stopColor:"#164EE0"})]})})]})},[Xs.PHANTOM]:{displayName:"Phantom",Icon:({title:r,titleId:n,...o})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("mask",{id:"mask0_10729_1440",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:1,y:1,width:30,height:30,children:e("path",{d:"M31 1H1V31H31V1Z",fill:"white"})}),t("g",{mask:"url(#mask0_10729_1440)",children:[e("path",{d:"M24.5602 1H7.4398C3.8832 1 1 3.8832 1 7.4398V24.5602C1 28.1168 3.8832 31 7.4398 31H24.5602C28.1168 31 31 28.1168 31 24.5602V7.4398C31 3.8832 28.1168 1 24.5602 1Z",fill:"#AB9FF2"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9305 20.4953C12.7525 22.3003 10.7787 24.5844 8.15225 24.5844C6.91065 24.5844 5.7168 24.0733 5.7168 21.853C5.7168 16.1986 13.437 7.44531 20.6001 7.44531C24.6751 7.44531 26.2987 10.2725 26.2987 13.4831C26.2987 17.6042 23.6245 22.3163 20.9662 22.3163C20.1225 22.3163 19.7087 21.853 19.7087 21.1183C19.7087 20.9266 19.7405 20.719 19.8042 20.4953C18.8969 22.0447 17.1459 23.4823 15.5063 23.4823C14.3125 23.4823 13.7076 22.7316 13.7076 21.6773C13.7076 21.294 13.7872 20.8947 13.9305 20.4953ZM23.6091 13.3717C23.6091 14.3073 23.0571 14.775 22.4396 14.775C21.8128 14.775 21.2702 14.3073 21.2702 13.3717C21.2702 12.4362 21.8128 11.9684 22.4396 11.9684C23.0571 11.9684 23.6091 12.4362 23.6091 13.3717ZM20.1008 13.3718C20.1008 14.3073 19.5488 14.7751 18.9313 14.7751C18.3045 14.7751 17.7619 14.3073 17.7619 13.3718C17.7619 12.4362 18.3045 11.9685 18.9313 11.9685C19.5488 11.9685 20.1008 12.4362 20.1008 13.3718Z",fill:"#FFFDF8"})]})]})},[Xs.RABBY]:{displayName:"Rabby",Icon:({title:r,titleId:n,...o})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,t("g",{clipPath:"url(#clip0_12156_1502)",children:[e("path",{d:"M30.9683 17.8945C32.1562 15.2317 26.2834 7.7924 20.6728 4.69301C17.1364 2.29195 13.4513 2.62182 12.705 3.67607C11.0671 5.98968 18.1286 7.95014 22.8511 10.2378C21.836 10.6802 20.8793 11.4741 20.3167 12.4894C18.5561 10.5609 14.6918 8.90006 10.1575 10.2378C7.10193 11.1394 4.56248 13.2647 3.58098 16.4748C3.34252 16.3685 3.07845 16.3094 2.80065 16.3094C1.73836 16.3094 0.877197 17.1735 0.877197 18.2393C0.877197 19.3052 1.73836 20.1693 2.80065 20.1693C2.99755 20.1693 3.61322 20.0368 3.61322 20.0368L13.4513 20.1083C9.51684 26.371 6.40753 27.2865 6.40753 28.3715C6.40753 29.4564 9.38264 29.1624 10.4997 28.758C15.8473 26.822 21.5909 20.7882 22.5765 19.0513C26.7154 19.5694 30.1937 19.6307 30.9683 17.8945Z",fill:"url(#paint0_linear_12156_1502)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.8507 10.2385C22.8509 10.2386 22.8512 10.2387 22.8514 10.2388C23.0704 10.1523 23.0349 9.82791 22.9748 9.57312C22.8367 8.98766 20.453 6.6259 18.2146 5.56811C15.1645 4.12666 12.9185 4.20098 12.5867 4.86535C13.208 6.14298 16.0884 7.34261 19.0965 8.59539C20.38 9.12991 21.6867 9.6741 22.8512 10.2382C22.851 10.2383 22.8508 10.2384 22.8507 10.2385Z",fill:"url(#paint1_linear_12156_1502)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9801 23.0977C18.3632 22.8612 17.6664 22.6441 16.8743 22.4473C17.7189 20.9308 17.8961 18.6858 17.0985 17.2664C15.9789 15.2744 14.5736 14.2141 11.308 14.2141C9.51189 14.2141 4.67598 14.8211 4.59017 18.8717C4.58115 19.2967 4.58993 19.6862 4.62061 20.0443L13.4513 20.1086C12.2608 22.0036 11.1458 23.409 10.1697 24.4776C11.3417 24.779 12.3088 25.032 13.1968 25.2642C14.0393 25.4845 14.8104 25.6863 15.6176 25.8929C16.8352 25.0029 17.9798 24.0324 18.9801 23.0977Z",fill:"url(#paint2_linear_12156_1502)"}),e("path",{d:"M3.4631 19.6282C3.82387 22.7051 5.56671 23.911 9.12801 24.2679C12.6893 24.6247 14.7321 24.3853 17.4518 24.6336C19.7233 24.8409 21.7515 26.0023 22.5039 25.601C23.1809 25.2398 22.8021 23.9348 21.8961 23.0975C20.7216 22.0123 19.096 21.2577 16.2359 20.9899C16.8059 19.424 16.6462 17.2284 15.7609 16.0338C14.4809 14.3066 12.1183 13.5257 9.12801 13.8669C6.00393 14.2233 3.0104 15.7666 3.4631 19.6282Z",fill:"url(#paint3_linear_12156_1502)"})]}),t("defs",{children:[t("linearGradient",{id:"paint0_linear_12156_1502",x1:9.80166,y1:15.5365,x2:30.7229,y2:21.4494,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#8697FF"}),e("stop",{offset:1,stopColor:"#ABB7FF"})]}),t("linearGradient",{id:"paint1_linear_12156_1502",x1:27.1914,y1:15.1379,x2:12.0523,y2:.0128466,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#8697FF"}),e("stop",{offset:1,stopColor:"#5156D8",stopOpacity:0})]}),t("linearGradient",{id:"paint2_linear_12156_1502",x1:19.3999,y1:23.6263,x2:4.88188,y2:15.3076,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#465EED"}),e("stop",{offset:1,stopColor:"#8697FF",stopOpacity:0})]}),t("linearGradient",{id:"paint3_linear_12156_1502",x1:11.0501,y1:15.3802,x2:20.8875,y2:27.8377,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#8898FF"}),e("stop",{offset:.983895,stopColor:"#6277F1"})]}),e("clipPath",{id:"clip0_12156_1502",children:e("rect",{width:31.5,height:28,fill:"white",transform:"translate(0.25 2)"})})]})]})}},sc={[Js.GOOGLE]:{displayName:"Google",Icon:pl},[Js.APPLE]:{displayName:"Apple",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M17.4523 11.6262C17.4417 9.82294 18.2587 8.46385 19.9087 7.46173C18.9859 6.13967 17.5898 5.41253 15.7495 5.27239C14.007 5.1349 12.1006 6.28774 11.4025 6.28774C10.6648 6.28774 8.97785 5.31999 7.6505 5.31999C4.91119 5.36229 2 7.50403 2 11.8616C2 13.1492 2.23533 14.4792 2.70598 15.8489C3.33528 17.6522 5.60395 22.0705 7.97044 21.9991C9.20789 21.9701 10.0831 21.1213 11.6934 21.1213C13.2561 21.1213 14.0652 21.9991 15.4454 21.9991C17.833 21.9648 19.8849 17.9483 20.4825 16.1398C17.2804 14.63 17.4523 11.7188 17.4523 11.6262ZM14.6733 3.56164C16.0139 1.96988 15.8923 0.520893 15.8526 0C14.668 0.0687473 13.2984 0.806459 12.5183 1.71339C11.659 2.68643 11.154 3.88951 11.2624 5.24595C12.5421 5.34378 13.7108 4.68539 14.6733 3.56164Z",fill:"black"})]})},[Js.FACEBOOK]:{displayName:"Facebook",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M17.9214 14.3997L18.582 10.0883H14.4467V7.29096C14.4467 6.11245 15.0234 4.96121 16.8771 4.96121H18.7581V1.29148C18.7581 1.29148 17.0512 1 15.4197 1C12.0142 1 9.78718 3.06343 9.78718 6.80236V10.0883H6V14.3997H9.78718V24.8197C10.5463 24.9392 11.3243 25 12.1169 25C12.9096 25 13.6876 24.9371 14.4467 24.8197V14.3997H17.9214Z",fill:"#1977F3"})]})},[Js.GITHUB]:{displayName:"GitHub",Icon:({title:r,titleId:n,...o})=>t("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3159 6.36074e-06C9.39213 -0.00296524 6.5629 1.03535 4.33518 2.92889C2.10746 4.82242 0.626879 7.4474 0.158754 10.3334C-0.30937 13.2194 0.265566 16.1778 1.78053 18.6784C3.29549 21.179 5.65146 23.0584 8.42622 23.9798C9.04554 24.0931 9.26457 23.7079 9.26457 23.3831C9.26457 23.0584 9.26457 22.3182 9.26457 21.291C5.8281 22.0387 5.10304 19.637 5.10304 19.637C4.87506 18.8926 4.39073 18.2531 3.73601 17.8319C2.62576 17.0766 3.82664 17.0766 3.82664 17.0766C4.21583 17.1316 4.5874 17.2744 4.91323 17.4942C5.23905 17.7141 5.51058 18.0052 5.70726 18.3455C5.87437 18.6485 6.09967 18.9155 6.37023 19.1312C6.64079 19.347 6.95129 19.5071 7.28391 19.6026C7.61653 19.698 7.96472 19.7268 8.3085 19.6874C8.65228 19.6479 8.98488 19.541 9.28723 19.3726C9.33463 18.7513 9.60249 18.1674 10.0425 17.7262C7.30843 17.4165 4.43841 16.3591 4.43841 11.684C4.41963 10.4627 4.87123 9.28099 5.6997 8.38349C5.33072 7.3216 5.37385 6.15988 5.82055 5.12828C5.82055 5.12828 6.85526 4.79596 9.20415 6.38958C11.2212 5.83579 13.3501 5.83579 15.3671 6.38958C17.716 4.79596 18.7432 5.12828 18.7432 5.12828C19.1961 6.14897 19.25 7.30235 18.8942 8.36083C19.7227 9.25834 20.1743 10.4401 20.1555 11.6614C20.1555 16.3893 17.278 17.424 14.5363 17.7035C14.8303 17.999 15.0573 18.3543 15.202 18.7452C15.3466 19.1361 15.4055 19.5536 15.3747 19.9693C15.3747 21.6158 15.3747 22.9451 15.3747 23.3454C15.3747 23.7456 15.5937 24.0553 16.2206 23.9345C18.9638 22.9888 21.2844 21.1041 22.7727 18.6132C24.2609 16.1223 24.8208 13.1856 24.3536 10.3219C23.8864 7.45814 22.4221 4.85167 20.2194 2.96295C18.0167 1.07422 15.2173 0.024771 12.3159 6.36074e-06Z",fill:"#191717"})]})},[Js.TWITTER]:{displayName:"Twitter",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("g",{clipPath:"url(#clip0_8934_240)",children:e("path",{d:"M13.6408 10.4643L20.9224 2H19.1969L12.8743 9.34942L7.82442 2H2L9.63638 13.1136L2 21.9897H3.72561L10.4025 14.2285L15.7355 21.9897H21.5599L13.6404 10.4643H13.6408ZM11.2773 13.2115L10.5036 12.1049L4.34737 3.29901H6.9978L11.966 10.4056L12.7397 11.5123L19.1977 20.7498H16.5473L11.2773 13.212V13.2115Z",fill:"black"})}),e("defs",{children:e("clipPath",{id:"clip0_8934_240",children:e("rect",{width:19.5599,height:20,fill:"white",transform:"translate(2 2)"})})})]})},[Js.LINKEDIN]:{displayName:"LinkedIn",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2946 21H21.028L21.0296 14.4043C21.0296 11.1664 20.3319 8.6775 16.548 8.6775C15.1034 8.62385 13.6913 9.37184 12.9615 10.6195V8.97649H9.37758V20.9995H13.1109V15.0518C13.1109 13.4834 13.4084 11.9644 15.3529 11.9644C17.2697 11.9644 17.2946 13.7591 17.2946 15.1533V21ZM2.99811 5.16657C2.99811 6.3551 3.97657 7.33299 5.1651 7.33299C6.3534 7.33288 7.33118 6.35442 7.33118 5.16612C7.33096 3.97781 6.35306 3.00003 5.16464 3.00003C3.97611 3.00003 2.99811 3.97804 2.99811 5.16657ZM3.29451 21H7.03174V8.97649H3.29451V21Z",fill:"#0A66C2"})]})},[Js.MICROSOFT]:{displayName:"Microsoft",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,t("g",{clipPath:"url(#clip0_8934_233)",children:[e("path",{d:"M1.95654 1.95651H11.5218V11.5217H1.95654V1.95651Z",fill:"#F35325"}),e("path",{d:"M12.4782 1.95651H22.0435V11.5217H12.4782V1.95651Z",fill:"#81BC06"}),e("path",{d:"M1.95654 12.4783H11.5218V22.0435H1.95654V12.4783Z",fill:"#05A6F0"}),e("path",{d:"M12.4782 12.4783H22.0435V22.0435H12.4782V12.4783Z",fill:"#FFBA08"})]}),e("defs",{children:e("clipPath",{id:"clip0_8934_233",children:e("rect",{width:22,height:22,fill:"white",transform:"translate(1 1)"})})})]})},[Js.TWITCH]:{displayName:"Twitch",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M20.8571 11.1428L17.4286 14.5714H14L11 17.5714V14.5714H7.14285V1.71426H20.8571V11.1428Z",fill:"white"}),e("path",{d:"M6.28571 0L2 4.28571V19.7143H7.14286V24L11.4286 19.7143H14.8571L22.5714 12V0H6.28571ZM20.8571 11.1429L17.4286 14.5714H14L11 17.5714V14.5714H7.14286V1.71429H20.8571V11.1429Z",fill:"#9146FF"}),e("path",{d:"M18.2857 4.71429H16.5714V9.85715H18.2857V4.71429Z",fill:"#9146FF"}),e("path",{d:"M13.5714 4.71429H11.8571V9.85715H13.5714V4.71429Z",fill:"#9146FF"})]})},[Js.BITBUCKET]:{displayName:"Bitbucket",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M1.71397 2.00006C1.6111 1.99873 1.50919 2.01994 1.41539 2.06219C1.32159 2.10444 1.23817 2.16672 1.171 2.24464C1.10382 2.32256 1.05452 2.41424 1.02655 2.51324C0.998581 2.61225 0.992621 2.71617 1.00909 2.81772L4.00132 20.9826C4.03861 21.2049 4.15302 21.4069 4.32447 21.5532C4.49592 21.6995 4.71344 21.7808 4.93882 21.7826H19.2938C19.4627 21.7848 19.6269 21.7262 19.7562 21.6175C19.8856 21.5089 19.9717 21.3573 19.9987 21.1905L22.9909 2.82125C23.0074 2.7197 23.0014 2.61577 22.9734 2.51677C22.9455 2.41776 22.8962 2.32608 22.829 2.24816C22.7618 2.17024 22.6784 2.10797 22.5846 2.06572C22.4908 2.02346 22.3889 2.00226 22.286 2.00358L1.71397 2.00006ZM14.3138 15.1285H9.73203L8.49144 8.64712H15.424L14.3138 15.1285Z",fill:"#2684FF"}),e("path",{d:"M22.0389 8.64706H15.4236L14.3134 15.1285H9.73166L4.32167 21.55C4.49314 21.6982 4.71176 21.7807 4.93844 21.7826H19.2969C19.4659 21.7848 19.63 21.7262 19.7594 21.6175C19.8888 21.5088 19.9748 21.3573 20.0018 21.1905L22.0389 8.64706Z",fill:"url(#paint0_linear_8934_282)"}),e("defs",{children:t("linearGradient",{id:"paint0_linear_8934_282",x1:23.5685,y1:10.4621,x2:12.6358,y2:18.9948,gradientUnits:"userSpaceOnUse",children:[e("stop",{offset:.18,stopColor:"#0052CC"}),e("stop",{offset:1,stopColor:"#2684FF"})]})})]})},[Js.DISCORD]:{displayName:"Discord",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M20.3303 4.52336C18.7535 3.80145 17.0888 3.2893 15.3789 3C15.1449 3.41829 14.9332 3.84865 14.7446 4.28928C12.9232 4.01482 11.071 4.01482 9.24961 4.28928C9.06095 3.84869 8.84924 3.41834 8.61535 3C6.90433 3.29174 5.2386 3.80511 3.66019 4.52713C0.526644 9.16327 -0.322811 13.6843 0.101917 18.1411C1.937 19.4969 3.99098 20.5281 6.17458 21.1897C6.66626 20.5284 7.10134 19.8268 7.47519 19.0925C6.76511 18.8273 6.07975 18.5001 5.42706 18.1146C5.59884 17.9901 5.76684 17.8617 5.92918 17.7371C7.82837 18.6303 9.90124 19.0933 12 19.0933C14.0987 19.0933 16.1715 18.6303 18.0707 17.7371C18.235 17.8711 18.403 17.9995 18.5729 18.1146C17.9189 18.5007 17.2323 18.8285 16.5209 19.0944C16.8943 19.8284 17.3294 20.5293 17.8216 21.1897C20.007 20.5307 22.0626 19.5001 23.898 18.143C24.3963 12.9745 23.0467 8.49503 20.3303 4.52336ZM8.01318 15.4002C6.82961 15.4002 5.85179 14.3261 5.85179 13.0047C5.85179 11.6833 6.79563 10.5998 8.0094 10.5998C9.22318 10.5998 10.1934 11.6833 10.1727 13.0047C10.1519 14.3261 9.21941 15.4002 8.01318 15.4002ZM15.9867 15.4002C14.8013 15.4002 13.8272 14.3261 13.8272 13.0047C13.8272 11.6833 14.7711 10.5998 15.9867 10.5998C17.2024 10.5998 18.1651 11.6833 18.1444 13.0047C18.1236 14.3261 17.193 15.4002 15.9867 15.4002Z",fill:"#5865F2"})]})},[Js.GITLAB]:{displayName:"GitLab",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M22.6338 9.38662L22.6029 9.30758L19.6085 1.49288C19.5476 1.33972 19.4397 1.20979 19.3004 1.12174C19.1609 1.03518 18.9983 0.993493 18.8344 1.0023C18.6705 1.01111 18.5133 1.06999 18.3839 1.171C18.256 1.2749 18.1632 1.41569 18.1182 1.57422L16.0964 7.75999H7.90937L5.88754 1.57422C5.84369 1.41483 5.75069 1.27333 5.62178 1.16985C5.49243 1.06885 5.3352 1.00996 5.17132 1.00116C5.00744 0.992348 4.8448 1.03404 4.70537 1.12059C4.56633 1.209 4.45855 1.33882 4.39722 1.49174L1.39712 9.303L1.36734 9.38204C0.936285 10.5083 0.883079 11.7442 1.21574 12.9034C1.5484 14.0625 2.2489 15.0821 3.21162 15.8084L3.22193 15.8164L3.24942 15.8359L7.81085 19.2518L10.0675 20.9597L11.4421 21.9976C11.6029 22.1197 11.7993 22.1858 12.0011 22.1858C12.203 22.1858 12.3994 22.1197 12.5602 21.9976L13.9348 20.9597L16.1914 19.2518L20.7804 15.8152L20.7918 15.8061C21.7524 15.0797 22.4512 14.0611 22.7834 12.9035C23.1156 11.746 23.0631 10.5118 22.6338 9.38662Z",fill:"#E24329"}),e("path",{d:"M22.6338 9.38663L22.6029 9.30759C21.1438 9.60707 19.7689 10.2251 18.5764 11.1175L12 16.0902C14.2395 17.7844 16.1891 19.2564 16.1891 19.2564L20.7781 15.8198L20.7895 15.8107C21.7515 15.0843 22.4514 14.0651 22.784 12.9065C23.1166 11.7479 23.0639 10.5127 22.6338 9.38663Z",fill:"#FC6D26"}),e("path",{d:"M7.81085 19.2564L10.0675 20.9643L11.4421 22.0022C11.6029 22.1243 11.7993 22.1903 12.0011 22.1903C12.203 22.1903 12.3994 22.1243 12.5602 22.0022L13.9348 20.9643L16.1914 19.2564C16.1914 19.2564 14.2395 17.7798 12 16.0902C9.76052 17.7798 7.81085 19.2564 7.81085 19.2564Z",fill:"#FCA326"}),e("path",{d:"M5.42246 11.1175C4.23089 10.2233 2.85628 9.60363 1.39712 9.30301L1.36734 9.38205C0.936285 10.5083 0.883079 11.7442 1.21574 12.9034C1.5484 14.0625 2.2489 15.0821 3.21162 15.8084L3.22193 15.8164L3.24942 15.8359L7.81085 19.2518C7.81085 19.2518 9.75823 17.7798 12 16.0856L5.42246 11.1175Z",fill:"#FC6D26"})]})},[Js.TELEGRAM]:{displayName:"Telegram",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,t("g",{clipPath:"url(#clip0_11541_21172)",children:[e("path",{d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23Z",fill:"url(#paint0_linear_11541_21172)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.97918 11.8839C9.18591 10.4868 11.3242 9.56571 12.3941 9.1207C15.449 7.85009 16.0837 7.62938 16.4974 7.62209C16.5884 7.62048 16.7919 7.64304 16.9237 7.74998C17.035 7.84028 17.0656 7.96226 17.0803 8.04787C17.0949 8.13348 17.1132 8.32851 17.0986 8.4809C16.9331 10.2203 16.2168 14.4412 15.8524 16.3893C15.6982 17.2137 15.3946 17.4901 15.1007 17.5171C14.4619 17.5759 13.9768 17.0949 13.3581 16.6894C12.39 16.0548 11.843 15.6597 10.9033 15.0404C9.81722 14.3247 10.5213 13.9314 11.1402 13.2885C11.3022 13.1203 14.1167 10.5603 14.1712 10.328C14.178 10.299 14.1843 10.1907 14.12 10.1335C14.0557 10.0764 13.9607 10.0959 13.8922 10.1115C13.7951 10.1335 12.2485 11.1558 9.25237 13.1782C8.81337 13.4797 8.41573 13.6266 8.05946 13.6189C7.66671 13.6104 6.9112 13.3968 6.34956 13.2142C5.66068 12.9903 5.11318 12.8719 5.16085 12.4916C5.18569 12.2935 5.45846 12.091 5.97918 11.8839Z",fill:"white"})]}),t("defs",{children:[t("linearGradient",{id:"paint0_linear_11541_21172",x1:1101,y1:1,x2:1101,y2:2184.68,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#2AABEE"}),e("stop",{offset:1,stopColor:"#229ED9"})]}),e("clipPath",{id:"clip0_11541_21172",children:e("rect",{width:22,height:22,fill:"white",transform:"translate(1 1)"})})]})]})}},cc={[Js.APPLE]:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{d:"M17.4523 11.6262C17.4417 9.82294 18.2587 8.46385 19.9087 7.46173C18.9859 6.13967 17.5898 5.41253 15.7495 5.27239C14.007 5.1349 12.1006 6.28774 11.4025 6.28774C10.6648 6.28774 8.97785 5.31999 7.6505 5.31999C4.91119 5.36229 2 7.50403 2 11.8616C2 13.1492 2.23533 14.4792 2.70598 15.8489C3.33528 17.6522 5.60395 22.0705 7.97044 21.9991C9.20789 21.9701 10.0831 21.1213 11.6934 21.1213C13.2561 21.1213 14.0652 21.9991 15.4454 21.9991C17.833 21.9648 19.8849 17.9483 20.4825 16.1398C17.2804 14.63 17.4523 11.7188 17.4523 11.6262ZM14.6733 3.56164C16.0139 1.96988 15.8923 0.520893 15.8526 0C14.668 0.0687473 13.2984 0.806459 12.5183 1.71339C11.659 2.68643 11.154 3.88951 11.2624 5.24595C12.5421 5.34378 13.7108 4.68539 14.6733 3.56164Z",fill:"currentColor"})]}),[Js.TWITTER]:({color:r,title:n,titleId:o,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("g",{clipPath:"url(#clip0_10091_39020)",children:e("path",{d:"M13.6408 10.4643L20.9224 2H19.1969L12.8743 9.34942L7.82442 2H2L9.63638 13.1136L2 21.9897H3.72561L10.4025 14.2285L15.7355 21.9897H21.5599L13.6404 10.4643H13.6408ZM11.2773 13.2115L10.5036 12.1049L4.34737 3.29901H6.9978L11.966 10.4056L12.7397 11.5123L19.1977 20.7498H16.5473L11.2773 13.212V13.2115Z",fill:"currentColor"})}),e("defs",{children:e("clipPath",{id:"clip0_10091_39020",children:e("rect",{width:19.5599,height:20,fill:"currentColor",transform:"translate(2 2)"})})})]}),[Js.GITHUB]:({color:r,title:n,titleId:o,...a})=>t("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r||"var(--color-text-primary)","aria-labelledby":o,...a,children:[n?e("title",{id:o,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3159 6.36074e-06C9.39213 -0.00296524 6.5629 1.03535 4.33518 2.92889C2.10746 4.82242 0.626879 7.4474 0.158754 10.3334C-0.30937 13.2194 0.265566 16.1778 1.78053 18.6784C3.29549 21.179 5.65146 23.0584 8.42622 23.9798C9.04554 24.0931 9.26457 23.7079 9.26457 23.3831C9.26457 23.0584 9.26457 22.3182 9.26457 21.291C5.8281 22.0387 5.10304 19.637 5.10304 19.637C4.87506 18.8926 4.39073 18.2531 3.73601 17.8319C2.62576 17.0766 3.82664 17.0766 3.82664 17.0766C4.21583 17.1316 4.5874 17.2744 4.91323 17.4942C5.23905 17.7141 5.51058 18.0052 5.70726 18.3455C5.87437 18.6485 6.09967 18.9155 6.37023 19.1312C6.64079 19.347 6.95129 19.5071 7.28391 19.6026C7.61653 19.698 7.96472 19.7268 8.3085 19.6874C8.65228 19.6479 8.98488 19.541 9.28723 19.3726C9.33463 18.7513 9.60249 18.1674 10.0425 17.7262C7.30843 17.4165 4.43841 16.3591 4.43841 11.684C4.41963 10.4627 4.87123 9.28099 5.6997 8.38349C5.33072 7.3216 5.37385 6.15988 5.82055 5.12828C5.82055 5.12828 6.85526 4.79596 9.20415 6.38958C11.2212 5.83579 13.3501 5.83579 15.3671 6.38958C17.716 4.79596 18.7432 5.12828 18.7432 5.12828C19.1961 6.14897 19.25 7.30235 18.8942 8.36083C19.7227 9.25834 20.1743 10.4401 20.1555 11.6614C20.1555 16.3893 17.278 17.424 14.5363 17.7035C14.8303 17.999 15.0573 18.3543 15.202 18.7452C15.3466 19.1361 15.4055 19.5536 15.3747 19.9693C15.3747 21.6158 15.3747 22.9451 15.3747 23.3454C15.3747 23.7456 15.5937 24.0553 16.2206 23.9345C18.9638 22.9888 21.2844 21.1041 22.7727 18.6132C24.2609 16.1223 24.8208 13.1856 24.3536 10.3219C23.8864 7.45814 22.4221 4.85167 20.2194 2.96295C18.0167 1.07422 15.2173 0.024771 12.3159 6.36074e-06Z",fill:"currentColor"})]})},uc={displayName:"Farcaster",Icon:({title:r,titleId:n,...o})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...o,children:[r?e("title",{id:n,children:r}):null,e("rect",{width:24,height:24,rx:4,fill:"#855DCD"}),e("path",{d:"M6.18667 3.73334H17.8133V20.2667H16.1067V12.6933H16.0899C15.9013 10.6002 14.1422 8.96 12 8.96C9.8578 8.96 8.0987 10.6002 7.91008 12.6933H7.89334V20.2667H6.18667V3.73334Z",fill:"white"}),e("path",{d:"M3.09334 6.08L3.78667 8.42667H4.37334V17.92C4.07879 17.92 3.84 18.1588 3.84 18.4533V19.0933H3.73334C3.43879 19.0933 3.2 19.3321 3.2 19.6267V20.2667H9.17334V19.6267C9.17334 19.3321 8.93456 19.0933 8.64 19.0933H8.53334V18.4533C8.53334 18.1588 8.29456 17.92 8 17.92H7.36V6.08H3.09334Z",fill:"white"}),e("path",{d:"M16.2133 17.92C15.9188 17.92 15.68 18.1588 15.68 18.4533V19.0933H15.5733C15.2788 19.0933 15.04 19.3321 15.04 19.6267V20.2667H21.0133V19.6267C21.0133 19.3321 20.7746 19.0933 20.48 19.0933H20.3733V18.4533C20.3733 18.1588 20.1346 17.92 19.84 17.92V8.42667H20.4267L21.12 6.08H16.8533V17.92H16.2133Z",fill:"white"})]})},pc="#855DCD",fc=o.forwardRef(({className:e,children:t,...r},n)=>o.createElement("div",{ref:n,...r,className:mt("flex flex-col items-center justify-start",e)},t));fc.displayName="VStack";const mc=o.forwardRef(({className:e,children:t,...r},n)=>o.createElement("div",{ref:n,...r,className:mt("flex flex-row items-center justify-start",e)},t));mc.displayName="HStack";const hc=o.forwardRef(({className:e,children:t,...r},n)=>o.createElement("div",{ref:n,...r,className:mt("flex items-center justify-center",e)},t));hc.displayName="Center";const gc=()=>o.createElement(xl,{className:"rotate-90"}),vc=({providers:e,onPress:t,dispatch:r,enableFarcaster:n})=>{const a=Zs().getConfig(),i="dark"===a?.theme.themeColor,l=e.length+(n?1:0),d=l>5,s=d?4-(n?1:0):e.length,c=e.slice(0,s),u=l>1;return o.createElement(mc,{className:"gap-2 w-full"},c.map(e=>o.createElement(lc,{key:e,hideLabel:u,label:`Continue with ${sc[e].displayName}`,Icon:i&&cc[e]||sc[e].Icon,onPress:()=>t(e)})),n&&o.createElement(lc,{key:"farcaster",hideLabel:u,label:`Continue with ${uc.displayName}`,Icon:uc.Icon,onPress:()=>r({type:"SELECT_FARCASTER"})}),d&&o.createElement(lc,{key:"more-providers",hideLabel:u,label:"More options",Icon:gc,onPress:()=>{r({type:"GO_TO_ADDITIONAL_PROVIDERS"})}}))};function bc({showHeaderText:e=!0,onPressBack:t}){const{handleClose:r}=rc();return o.createElement(Ji,{position:"relative"},!!t&&o.createElement(Ji.LeftAction,null,o.createElement(Mi,{size:"sm",variant:"neutral",onPress:t},o.createElement(Mi.LeadingIcon,null,o.createElement(hl,null)))),e&&o.createElement(Ji.Content,null,o.createElement(Ya,{size:"sm",fontColor:"text.tertiary"},"Log in or sign up")),r&&o.createElement(Ji.RightAction,null,o.createElement(Mi,{size:"sm",variant:"neutral",onPress:r},o.createElement(Mi.TrailingIcon,null,o.createElement(Ea,null)))))}const yc=({dispatch:e,state:t})=>{const r=Zs().getConfig(),{wallets:n,enableFarcaster:a}=rc(),{primary:i,social:l}=r?.authProviders??{},d=i?.includes("email"),s=i?.includes("sms"),c=l?.map(e=>e)??[],u=s,p=(d||s||c.length>0||a)&&n.length>0;return o.createElement(o.Fragment,null,o.createElement(bc,null),o.createElement(fc,{className:"w-full gap-10 mt-2 px-7"},r?.theme.assetUri&&o.createElement("img",{src:r.theme.assetUri,alt:"Logo",width:80,height:80}),o.createElement(fc,{className:"w-full max-w-[25rem] gap-4"},d&&o.createElement(ic,{error:"email"===t.loginMethod?t.error:void 0,isLoading:"email"===t.loginMethod&&"sending"===t.otpLoginStatus}),u&&o.createElement("div",{className:"flex flex-row gap-2 w-full justify-center"},s&&o.createElement(Ks,{onClick:()=>{e({type:"GO_TO_SMS_LOGIN"})}})),(c.length>0||a)&&o.createElement(vc,{providers:Object.values(c),onPress:t=>{e({type:"SELECT_PROVIDER",provider:t})},dispatch:e,enableFarcaster:a}),p&&o.createElement(mc,{className:"mb-3 w-full"},o.createElement("div",{className:"flex-1 h-px bg-surface-quaternary"}),o.createElement(Ya,{"aria-label":"or",fontColor:"text.tertiary"},"or"),o.createElement("div",{className:"flex-1 h-px bg-surface-quaternary"})),n.length>0&&o.createElement("div",{className:`flex ${p?"flex-row":"flex-col"} gap-2 w-full justify-center items-center`},n.map(t=>o.createElement(lc,{key:t,hideLabel:n.length>1&&p,label:dc[t].displayName,Icon:dc[t].Icon,onPress:()=>(t=>{e({type:"SELECT_WALLET",provider:t})})(t)}))))))};function wc(e){if("farcaster"===e)return{title:`Sign in with ${uc.displayName}`,description:"Scan QR code with Farcaster",Icon:uc.Icon};const t=Object.values(Js).includes(e),r=t?sc[e]:dc[e],{displayName:n,Icon:o}=r;return t?{title:`Log in with ${n}`,description:`Continue in ${n}`,Icon:o}:{title:`Continue in ${n}`,description:`Approve request in ${n}`,Icon:o}}const $c={[Xs.METAMASK]:"metaMaskSDK",[Xs.COINBASE]:"coinbaseWalletSDK",[Xs.WALLETCONNECT]:"walletConnect",[Xs.PHANTOM]:"app.phantom",[Xs.RABBY]:"io.rabby"},Cc={[Xs.METAMASK]:"metamask",[Xs.COINBASE]:"coinbase",[Xs.WALLETCONNECT]:"walletconnect",[Xs.PHANTOM]:"phantom",[Xs.RABBY]:"rabby"};let xc=null;function Ec(e){xc=e}function kc(){return xc}const Lc="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",Nc=({onPressBack:e,title:t,description:r,Icon:n,isPending:a,errorMessage:i})=>o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:a||i?e:void 0,showHeaderText:!1}),o.createElement(fc,{className:"gap-6 pt-4"},o.createElement("div",{className:"relative h-20 w-20"},a&&o.createElement(Ia,{size:80,strokeWidth:8,neutral:!0,progress:40}),a?o.createElement(n,{width:36,height:36,className:Lc}):i?o.createElement(yl,{width:36,height:36,color:"var(--color-negative-darker)",className:Lc}):o.createElement(Na,{width:36,height:36,color:"var(--color-brand-base)",className:Lc})),o.createElement(fc,{className:"gap-2 px-7"},o.createElement(Ya.H4,{styles:{textAlign:"center"}},t),o.createElement(Ya,{fontColor:"text.tertiary",styles:{textAlign:"center"}},r),i&&o.createElement(Ya,{variant:"error",styles:{textAlign:"center"}},i)))),Mc=({provider:e,state:t,dispatch:r})=>{if("wallet_pending"!==t.view)return null;const{connectWallet:n,isPending:d,error:c,address:p,isConnectedToSelectedProvider:f}=function(e){const{connect:t,connectors:r,isPending:n}=$(),{address:o,isConnected:i,connector:d}=C(),{disconnect:s}=x(),[c,p]=a(null),f=u(()=>{if(!i||!d)return!1;const t=$c[e],r=Cc[e],n=d.name.toLowerCase(),o=d.id===t,a=n===r||n.startsWith(r);return o||a},[i,d,e]),m=l(async()=>{p(null);try{const n=$c[e],o=Cc[e],a=r.find(e=>e.id===n),l=r.find(e=>{const t=e.name.toLowerCase();return t===o||t.startsWith(o)}),d=a||l;if(!d)throw new Error(`${e} connector not found. Please install the wallet extension.`);i&&(s(),await new Promise(e=>setTimeout(e,100))),await new Promise((e,r)=>{t({connector:d},{onSuccess:()=>e(),onError:e=>r(e)})})}catch(t){const r=t instanceof Error?t:new Error(`Failed to connect to ${e}`);throw p(r),r}},[t,r,e,i,s]);return{connectWallet:m,isPending:n,error:c,address:o,isConnected:i,isConnectedToSelectedProvider:f,disconnect:s}}(e),{isConnected:m}=C(),h=e===Xs.WALLETCONNECT,g=h&&t.walletAddress||p,{performSiweLogin:v,isLoading:b,error:y,isSuccess:w}=function(){const{signMessageAsync:e}=E(),t=k(),{handleSuccess:r,handleError:n}=rc(),[o,i]=a(!1),[d,s]=a(null),[c,u]=a(!1),[p,f]=a(null);return{performSiweLogin:l(async(o,a)=>{i(!0),s(null),u(!1),f(null);try{const n=Zs(),l=a||t||1,d=await n.generateMessage({address:o,chainId:l});let s;const c=kc();if(c&&c.accounts&&c.accounts[0]?.toLowerCase()===o.toLowerCase()){if(!c.session||!c.session.topic)throw new Error("WalletConnect session not established");const e=j(d);s=await c.request({method:"personal_sign",params:[e,o]})}else s=await e({message:d});return await n.login({message:d,signature:s}),n.setConnectedState(o,l),u(!0),f(o),i(!1),r({method:"wallet",walletAddress:o}),o}catch(e){const t=e instanceof Error?e:new Error("SIWE login failed");throw s(t),i(!1),n(t),t}},[e,t,r,n]),isLoading:o,error:d,isSuccess:c,walletAddress:p}}(),{title:L,description:N,Icon:M}=wc(e),_=i(!1),P=i(null),[T,I]=a(null);s(()=>{if(!_.current&&!h&&e&&"wallet_pending"===t.view){if(_.current=!0,f&&g)return;n().catch(e=>{const t=(e?.message||"").toLowerCase();t.includes("connector not connected")||t.includes("connectornotconnectederror")||(t.includes("user rejected")||t.includes("user denied")||t.includes("rejected the request")||t.includes("user cancelled")||t.includes("user canceled")?r({type:"GO_TO_LOGIN"}):I(e?.message||"Failed to connect wallet"))})}},[n,f,g,e,h]),s(()=>{if("wallet_pending"!==t.view)return;const e=h?kc():null,n=h&&g&&e&&e.session,o=h&&g&&t.walletAddress&&m&&!e;(n||o||f&&g)&&P.current!==g&&!b&&(P.current=g,I(null),v(g).catch(e=>{const t=(e?.message||"").toLowerCase();t.includes("connector not connected")||t.includes("connectornotconnectederror")||(t.includes("user rejected")||t.includes("user denied")||t.includes("rejected the request")||t.includes("user cancelled")||t.includes("user canceled")?r({type:"GO_TO_LOGIN"}):I(e?.message||"SIWE login failed"))}))},[f,g,b,v,e,h,t.walletAddress,m]),s(()=>{c&&_.current&&!h&&I(c.message)},[c,h]),s(()=>{if(y&&P.current){const e=(y.message||"").toLowerCase();if(h&&(e.includes("connector not connected")||e.includes("connectornotconnectederror")))return;I(y.message)}},[y,h]);const S=!T&&(!h&&d||b||!w&&!c&&!y);return o.createElement(Nc,{onPressBack:()=>r({type:"GO_TO_LOGIN"}),title:L,description:N,Icon:M,isPending:S,errorMessage:T})},_c={view:"login",otpLoginStatus:"idle"};function Pc(e,t){switch(t.type){case"GO_TO_LOGIN":return{..._c,selectedProvider:void 0,walletAddress:void 0,identifier:void 0,error:void 0,farcasterUrl:e.farcasterUrl};case"GO_TO_SMS_LOGIN":return{...e,view:"sms_login",error:void 0};case"OTP_START":return{...e,identifier:t.identifier,loginMethod:t.loginMethod||"email",otpLoginStatus:"sending",error:void 0};case"OTP_SENT":return{...e,view:"otp_pending",otpLoginStatus:"otp_sent",error:void 0};case"OTP_VERIFYING":return{...e,otpLoginStatus:"verifying_otp",error:void 0};case"OTP_INVALID":return{...e,otpLoginStatus:"invalid_otp",error:"Invalid code. Please try again."};case"OTP_EXPIRED":return{...e,otpLoginStatus:"expired_otp",error:"Code expired. Please request a new one."};case"OTP_MAX_ATTEMPTS_REACHED":return{...e,otpLoginStatus:"max_attempts_reached",error:"Max attempts reached. Please request a new code."};case"DEVICE_NEEDS_APPROVAL":return{...e,view:"device_verification",otpLoginStatus:"device_needs_approval",error:void 0};case"DEVICE_VERIFICATION_SENT":return{...e,view:"device_verification",otpLoginStatus:"device_verification_sent",error:void 0};case"DEVICE_VERIFICATION_EXPIRED":return{...e,otpLoginStatus:"device_verification_expired",error:"Verification link expired. Please try again."};case"DEVICE_APPROVED":return{...e,otpLoginStatus:"device_approved",error:void 0};case"MFA_REQUIRED":return{...e,view:"mfa_pending",otpLoginStatus:"mfa_required",error:void 0};case"MFA_VERIFYING":return{...e,otpLoginStatus:"mfa_verifying",error:void 0};case"MFA_INVALID":return{...e,otpLoginStatus:"mfa_invalid",error:"Invalid code. Please try again."};case"LOST_DEVICE":return{...e,view:"recovery_code",otpLoginStatus:"recovery_code",error:void 0};case"RECOVERY_CODE_VERIFYING":return{...e,otpLoginStatus:"recovery_code_verifying",error:void 0};case"RECOVERY_CODE_INVALID":return{...e,otpLoginStatus:"recovery_code",error:"Invalid recovery code. Please try again."};case"LOST_RECOVERY_CODE":return{...e,view:"lost_recovery_code",otpLoginStatus:"lost_recovery_code",error:void 0};case"LOGIN_SUCCESS":return{...e,view:"login_success",otpLoginStatus:"success",error:void 0};case"LOGIN_ERROR":return{...e,otpLoginStatus:"error",error:t.error};case"RESET_OTP_ERROR":return{...e,error:void 0};case"SELECT_WALLET":{const r=t.provider===Xs.WALLETCONNECT||"walletconnect"===t.provider.toLowerCase()?"walletconnect_pending":"wallet_pending";return{...e,view:r,selectedProvider:t.provider,error:void 0}}case"WALLETCONNECT_CONNECTED":return{...e,view:"wallet_pending",walletAddress:t.address,selectedProvider:Xs.WALLETCONNECT};case"SELECT_PROVIDER":return{...e,view:"oauth_pending",selectedProvider:t.provider,error:void 0};case"GO_TO_ADDITIONAL_PROVIDERS":return{...e,view:"additional_providers",error:void 0};case"SELECT_FARCASTER":return{...e,view:"farcaster_pending",farcasterUsername:void 0,error:void 0};case"FARCASTER_CHANNEL_RECEIVED":return{...e,farcasterUrl:t.url};case"FARCASTER_SUCCESS":return{...e,view:"farcaster_success",farcasterUsername:t.username,error:void 0};case"FARCASTER_FAILED":return{...e,view:"farcaster_failed",error:t.error||"Farcaster login failed"};default:return e}}const Tc=p(null);function Ic({children:e,dispatch:t}){const{handleSuccess:r,handleError:n}=rc(),d=i(null),[s,c]=a(!1),u=l(e=>{try{d.current&&(d.current.removeAllListeners(),d.current=null);const o=Zs().loginWithPopup(e);d.current=o,o.on(Ds.MfaSentHandle,()=>{d.current===o&&(c(!0),t({type:"MFA_REQUIRED"}))}),o.on(Ds.InvalidMfaOtp,()=>{d.current===o&&t({type:"MFA_INVALID"})}),o.on(Ds.InvalidRecoveryCode,()=>{d.current===o&&t({type:"RECOVERY_CODE_INVALID"})}),o.on(Ds.RecoveryCodeSentHandle,()=>{d.current===o&&t({type:"LOST_DEVICE"})}),o.on(Ds.RecoveryCodeSuccess,()=>{}),o.then(e=>{if(d.current!==o)return;if(e.error){const r=e,a=new Error(r.error_description||r.error);return t({type:"LOGIN_ERROR",error:a.message}),n(a),o.removeAllListeners(),d.current=null,void c(!1)}const a=e;t({type:"LOGIN_SUCCESS"}),r({method:"oauth",magic:a.magic,oauth:a.oauth}),o.removeAllListeners(),d.current=null,c(!1)}).catch(e=>{if(d.current!==o)return;const r=e instanceof Error?e:new Error(e?.message||"OAuth login failed"),a=(r.message||"").toLowerCase();if(a.includes("user rejected")||a.includes("user denied")||a.includes("access_denied")||a.includes("user closed")||a.includes("popup closed")||a.includes("cancelled")||a.includes("canceled"))return d.current=null,c(!1),void t({type:"GO_TO_LOGIN"});t({type:"LOGIN_ERROR",error:r.message}),n(r),o.removeAllListeners(),d.current=null,c(!1)})}catch(e){const r=e instanceof Error?e:new Error("Failed to start OAuth login");t({type:"LOGIN_ERROR",error:r.message}),n(r)}},[t,r,n,c]),p={startOAuthLogin:u,submitMFA:l(e=>{d.current&&(t({type:"MFA_VERIFYING"}),d.current.emit(Rs.VerifyMFACode,e))},[t]),lostDevice:l(()=>{d.current&&d.current.emit(Rs.LostDevice)},[t]),submitRecoveryCode:l(e=>{d.current&&(t({type:"RECOVERY_CODE_VERIFYING"}),d.current.emit(Rs.VerifyRecoveryCode,e))},[t]),cancelLogin:l(()=>{d.current&&(d.current.emit(Rs.Cancel),d.current.removeAllListeners()),d.current=null,c(!1),t({type:"GO_TO_LOGIN"})},[t,c]),isMfaActive:s};return o.createElement(Tc.Provider,{value:p},e)}function Sc(){const e=d(Tc);if(!e)throw new Error("useOAuthLogin must be used within an OAuthLoginProvider");return e}const Oc=({provider:e,state:t,dispatch:r})=>{const{title:n,description:a,Icon:l}=wc(e),d=Zs().getConfig(),c="dark"===d?.theme.themeColor&&cc[e]||l,{startOAuthLogin:u}=Sc(),p=i(!1),f="error"===t.otpLoginStatus,m=t.error??null;return s(()=>{p.current||(p.current=!0,u(e))},[u,e]),o.createElement(Nc,{onPressBack:()=>r({type:"GO_TO_LOGIN"}),title:n,description:a,Icon:c,isPending:!f,errorMessage:f?m:null})};function Ac({dispatch:e}){const t=Zs().getConfig(),r="dark"===t?.theme.themeColor,n=t?.authProviders?.social??[];return o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:()=>{e({type:"GO_TO_LOGIN"})},showHeaderText:!1}),o.createElement(fc,{className:"w-full"},o.createElement("div",{className:"mt-4 mb-2 w-full px-4 overflow-y-auto [scrollbar-width:thin] [&::-webkit-scrollbar]:bg-transparent [&::-webkit-scrollbar-track]:bg-transparent",style:{scrollbarColor:"rgba(143, 147, 153, 0.4) transparent"}},o.createElement("div",{className:"flex flex-col gap-2 max-h-[384px] w-full px-2"},n.map(t=>o.createElement(lc,{key:t,label:sc[t].displayName,Icon:r&&cc[t]||sc[t].Icon,onPress:()=>(t=>{e({type:"SELECT_PROVIDER",provider:t})})(t)}))))))}const Rc=p(null);function Dc({children:e,dispatch:t}){const{handleSuccess:r,handleError:n}=rc(),d=i(null),s=i(null),[c,u]=a(!1),p=l(e=>{s.current=e,u(!0),t({type:"OTP_START",identifier:e,loginMethod:"sms"});try{const o=Zs().loginWithSMS(e);d.current=o,o.on(us.SmsOTPSent,()=>{t({type:"OTP_SENT"})}),o.on(us.InvalidSmsOtp,()=>{t({type:"OTP_INVALID"})}),o.on(us.ExpiredSmsOtp,()=>{t({type:"OTP_EXPIRED"})}),o.on(us.LoginThrottled,()=>{t({type:"LOGIN_ERROR",error:"Too many login attempts. Please try again later."})}),o.on(ms.DeviceNeedsApproval,()=>{t({type:"DEVICE_NEEDS_APPROVAL"})}),o.on(ms.DeviceVerificationEmailSent,()=>{t({type:"DEVICE_VERIFICATION_SENT"})}),o.on(ms.DeviceVerificationLinkExpired,()=>{t({type:"DEVICE_VERIFICATION_EXPIRED"})}),o.on(ms.DeviceApproved,()=>{t({type:"DEVICE_APPROVED"})}),o.on(us.MfaSentHandle,()=>{t({type:"MFA_REQUIRED"})}),o.on(us.InvalidMfaOtp,()=>{t({type:"MFA_INVALID"})}),o.on(us.InvalidRecoveryCode,()=>{t({type:"RECOVERY_CODE_INVALID"})}),o.then(e=>{e&&(t({type:"LOGIN_SUCCESS"}),r({method:"sms",didToken:e}))}).catch(e=>{const r=e instanceof Error?e:new Error(e?.message||"Login failed");t({type:"LOGIN_ERROR",error:r.message}),n(r)})}catch(e){const r=e instanceof Error?e:new Error("Failed to start login");t({type:"LOGIN_ERROR",error:r.message}),n(r)}},[t,r,n]),f=l(e=>{d.current&&(t({type:"OTP_VERIFYING"}),d.current.emit(cs.VerifySmsOtp,e))},[t]),m=l(e=>{d.current&&(t({type:"MFA_VERIFYING"}),d.current.emit(cs.VerifyMFACode,e))},[t]),h=l(()=>{d.current&&(t({type:"LOST_DEVICE"}),d.current.emit(cs.LostDevice))},[t]),g=l(e=>{d.current&&(t({type:"RECOVERY_CODE_VERIFYING"}),d.current.emit(cs.VerifyRecoveryCode,e))},[t]),v=l(()=>{d.current&&d.current.emit(cs.Cancel),d.current=null,s.current=null,u(!1),t({type:"GO_TO_LOGIN"})},[t]),b=l(()=>{d.current&&d.current.emit(fs.Retry)},[]),y=l(()=>{const e=s.current;if(d.current&&d.current.emit(cs.Cancel),d.current=null,s.current=null,!e)return t({type:"LOGIN_ERROR",error:"Internal error: No phone number found"});p(e)},[p,t]),w={startSmsLogin:p,submitOTP:f,submitMFA:m,lostDevice:h,submitRecoveryCode:g,cancelLogin:v,retryDeviceVerification:b,resendSmsOTP:y,phoneNumber:s.current,isSmsLoginActive:c};return o.createElement(Rc.Provider,{value:w},e)}function Fc(){const e=d(Rc);if(!e)throw new Error("useSmsLogin must be used within a SmsLoginProvider");return e}var Hc={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,[["(?:(?:241|349)0\\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)|91(?:(?:[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}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\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]|3[23]|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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\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}"]]],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-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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|8(?:28[235-7]|3))|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])\\d|8(?:[14-6]\\d|2[0-79]))|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",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[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|427|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",["[47]"],"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","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["20"]],["(\\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]"]],["(\\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",["20"]]],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{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\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",["[67]"],"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","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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",["3[289]|4[246-8]|61|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,"[3489]",0,"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","[25-7]\\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",["[25-7]"]],["(\\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|66)\\d{7}",[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",["\\d"]]],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,[["(?:274[27]|(?: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-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],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 jc(e,t){var r=Array.prototype.slice.call(t);return r.push(Hc),e.apply(this,r)}function Vc(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),o=0;o<3;o++){var a=Number(r[o]),i=Number(n[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))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 Bc={}.constructor;function zc(e){return null!=e&&e.constructor===Bc}function Gc(e){return Gc="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},Gc(e)}function Uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zc(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zc(e){var t=function(e,t){if("object"!=Gc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Gc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Gc(t)?t:t+""}var Yc=" ext. ",Kc=/^\d+$/,qc=function(){return Wc(function e(t){Uc(this,e),ru(t),this.metadata=t,au.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&&Kc.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Xc(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Xc(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 r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[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}}])}(),Xc=function(){return Wc(function e(t,r){Uc(this,e),this.globalMetadataObject=r,this.metadata=t,au.call(this,r.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,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map(function(t){return new Qc(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()&&tu(this.types(),e))return new eu(tu(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Yc:this.metadata[13]||Yc}}])}(),Qc=function(){return Wc(function e(t,r){Uc(this,e),this._format=t,this.metadata=r},[{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()||Jc.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),Jc=/^\(?\$1\)?$/,eu=function(){return Wc(function e(t,r){Uc(this,e),this.type=t,this.metadata=r},[{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 tu(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 ru(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!zc(e)||!zc(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(zc(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+nu(e)+": "+e,"."))}var nu=function(e){return Gc(e)};function ou(e,t){if((t=new qc(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function au(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===Vc(t,"1.2.0")?this.v2=!0:-1===Vc(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function iu(e,t,r){return function(e,t,r,n){t&&(n=new qc(n.metadata)).selectNumberingPlan(t);var o=n.type(r),a=o&&o.possibleLengths()||n.possibleLengths();if(!a)return"IS_POSSIBLE";var i=e.length,l=a[0];if(l===i)return"IS_POSSIBLE";if(l>i)return"TOO_SHORT";if(a[a.length-1]<i)return"TOO_LONG";return a.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,void 0,r)}function lu(e,t,r){return"IS_POSSIBLE"===iu(e,t,r)}function du(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function su(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return cu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cu(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 cu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var uu=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function pu(e,t,r){if(t=t||{},e.country||e.countryCallingCode){(r=new qc(r)).selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(du(n,r.nationalNumberPattern())){if(fu(n,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":r.type("MOBILE")?fu(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o,a=su(uu);!(o=a()).done;){var i=o.value;if(fu(n,i,r))return i}}}}function fu(e,t,r){var n=r.type(t);return!(!n||!n.pattern())&&(!(n.possibleLengths()&&n.possibleLengths().indexOf(e.length)<0)&&du(e,n.pattern()))}function mu(e,t,r){var n=new qc(r).getCountryCodesForCallingCode(e);return n?n.filter(function(e){return function(e,t,r){var n=new qc(r);if(n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,r)}):[]}var hu="0-90-9٠-٩۰-۹",gu="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),vu=new RegExp("(["+hu+"])");function bu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return yu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yu(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function wu(e,t){var r=t.nationalNumber,n=t.metadata,o=n.getCountryCodesForCallingCode(e);if(o)return 1===o.length?o[0]:function(e,t){var r=t.countries,n=t.metadata;n=new qc(n);for(var o,a=bu(r);!(o=a()).done;){var i=o.value;if(n.selectNumberingPlan(i),n.leadingDigits()){if(e&&0===e.search(n.leadingDigits()))return i}else if(pu({phone:e,country:i},void 0,n.metadata))return i}}(r,{countries:o,metadata:n.metadata})}function $u(e,t,r){var n=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var o,a,i,l=n.length-1,d=l>0&&n[l];if(t.nationalPrefixTransformRule()&&d)o=e.replace(r,t.nationalPrefixTransformRule()),l>1&&(a=n[1]);else{var s=n[0];o=e.slice(s.length),d&&(a=n[1])}if(d){var c=e.indexOf(n[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=n[0];return{nationalNumber:o,nationalPrefix:i,carrierCode:a}}}return{nationalNumber:e}}(e,r),o=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!function(e,t,r){if(du(e,r.nationalNumberPattern())&&!du(t,r.nationalNumberPattern()))return!1;return!0}(e,a,r))return{nationalNumber:e};if(r.numberingPlan.possibleLengths()&&(t||(t=wu(r.numberingPlan.callingCode(),{nationalNumber:a,metadata:r})),!function(e,t,r){switch(iu(e,t,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(a,t,r)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:o}}function Cu(e,t,r,n,o){if(!e)return{};var a;if("+"!==e[0]){var i=function(e,t,r,n){if(t){var o=new qc(n);o.selectNumberingPlan(t,r);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var i=(e=e.slice(e.match(a)[0].length)).match(vu);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}(e,r,n,o);if(!i||i===e){if(r||n){var l=function(e,t,r,n,o){var a=r?ou(r,o):n;if(0===e.indexOf(a)){(o=new qc(o)).selectNumberingPlan(r,a);var i=e.slice(a.length),l=$u(i,t,o).nationalNumber,d=$u(e,t,o).nationalNumber;if(!du(d,o.nationalNumberPattern())&&du(l,o.nationalNumberPattern())||"TOO_LONG"===iu(d,t,o))return{countryCallingCode:a,number:i}}return{number:e}}(e,t,r,n,o),d=l.countryCallingCode,s=l.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:s}}return{number:e}}a=!0,e="+"+i}if("0"===e[1])return{};o=new qc(o);for(var c=2;c-1<=3&&c<=e.length;){var u=e.slice(1,c);if(o.hasCallingCode(u))return o.selectNumberingPlan(u),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(c)};c++}return{}}var xu=/(\$\d)/;function Eu(e,t,r){var n=r.useInternationalFormat,o=r.withNationalPrefix,a=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(xu,t.nationalPrefixFormattingRule()):t.format());return n?function(e){return e.replace(new RegExp("[".concat(gu,"]+"),"g")," ").trim()}(a):a}var ku=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var Lu=function(e){return"([".concat(hu,"]{1,").concat(e,"})")};function Nu(e){var t="[  \\t,]*",r="[:\\..]?[  \\t,-]*",n="#?",o="[  \\t]*";return";ext="+Lu("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+r+Lu("20")+n)+"|"+(t+"(?:[xx##~~]|int|int)"+r+Lu("9")+n)+"|"+("[- ]+"+Lu("6")+"#")+"|"+(o+"(?:,{2}|;)"+r+Lu("15")+n)+"|"+(o+"(?:,)+"+r+Lu("9")+n)}var Mu="["+hu+"]{2}",_u="[++]{0,1}(?:["+gu+"]*["+hu+"]){3,}["+gu+hu+"]*",Pu=new RegExp("^[++]{0,1}(?:["+gu+"]*["+hu+"]){1,2}$","i"),Tu=_u+"(?:"+Nu()+")?",Iu=new RegExp("^"+Mu+"$|^"+Tu+"$","i");var Su={formatExtension:function(e,t,r){return"".concat(e).concat(r.ext()).concat(t)}};function Ou(e,t,r,n){if(r=r?function(){for(var e=1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(;e<r.length;){if(r[e])for(var o in r[e])r[0][o]=r[e][o];e++}return r[0]}({},Su,r):Su,n=new qc(n),e.country&&"001"!==e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";n.selectNumberingPlan(e.countryCallingCode)}var o,a=n.countryCallingCode(),i=r.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?Ru(o=Au(i,e.carrierCode,"NATIONAL",n,r),e.ext,n,r.formatExtension):"";case"INTERNATIONAL":return i?(o=Au(i,null,"INTERNATIONAL",n,r),Ru(o="+".concat(a," ").concat(o),e.ext,n,r.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return function(e){var t=e.number,r=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(r?";ext="+r:"")}({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!r.fromCountry)return;var l=function(e,t,r,n,o){var a=ou(n,o.metadata);if(a===r){var i=Au(e,t,"NATIONAL",o);return"1"===r?r+" "+i:i}var l=function(e,t,r){var n=new qc(r);return n.selectNumberingPlan(e,t),n.defaultIDDPrefix()?n.defaultIDDPrefix():ku.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,void 0,o.metadata);if(l)return"".concat(l," ").concat(r," ").concat(Au(e,null,"INTERNATIONAL",o))}(i,e.carrierCode,a,r.fromCountry,n);if(!l)return;return Ru(l,e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Au(e,t,r,n,o){var a,i,l=(a=n.formats(),i=e,function(e,t){for(var r=0;r<e.length;){if(t(e[r]))return e[r];r++}}(a,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==i.search(t))return!1}return du(i,e.pattern())}));return l?Eu(e,l,{useInternationalFormat:"INTERNATIONAL"===r,withNationalPrefix:!l.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix}):e}function Ru(e,t,r,n){return t?n(e,t,r):e}function Du(e){return Du="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},Du(e)}function Fu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Hu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(r),!0).forEach(function(t){ju(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ju(e,t,r){return(t=Bu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vu(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bu(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bu(e){var t=function(e,t){if("object"!=Du(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Du(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Du(t)?t:t+""}var zu=function(){return Vu(function e(t,r,n){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]&&!r)throw new TypeError("`metadata` argument not passed");if(zc(r)&&zc(r.countries)){n=r;var o=t;if(!Uu.test(o))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Cu(o,void 0,void 0,void 0,n);if(t=a.countryCallingCode,!(r=a.number))throw new Error("Invalid `number` argument passed: too short")}if(!r)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof r)throw new TypeError("`nationalNumber` argument must be a string");ru(n);var i=function(e,t){var r,n,o=new qc(t);Gu(e)?(r=e,o.selectNumberingPlan(r),n=o.countryCallingCode()):n=e;return{country:r,countryCallingCode:n}}(t,n),l=i.country,d=i.countryCallingCode;this.country=l,this.countryCallingCode=d,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}},[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:mu(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,r){if(void 0===t&&(t={}),r=new qc(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return lu(e.phone||e.nationalNumber,e.country,r);if(e.countryCallingCode&&r.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 function(e,t,r){return t=t||{},(r=new qc(r)).selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes()?void 0!==pu(e,t,r.metadata):du(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new qc(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return pu(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return Ou(this,e,t?Hu(Hu({},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)}}])}(),Gu=function(e){return/^[A-Z]{2}$/.test(e)};var Uu=/^\+\d+$/;function Wu(e){return Wu="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},Wu(e)}function Zu(e,t,r){return t=Xu(t),function(e,t){if(t&&("object"==Wu(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,Ku()?Reflect.construct(t,r||[],Xu(e).constructor):t.apply(e,r))}function Yu(e){var t="function"==typeof Map?new Map:void 0;return Yu=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,r)}function r(){return function(e,t,r){if(Ku())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&qu(o,r.prototype),o}(e,arguments,Xu(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),qu(r,e)},Yu(e)}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ku=function(){return!!e})()}function qu(e,t){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qu(e,t)}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xu(e)}var Qu=function(){function e(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=Zu(this,e,[t]),Object.setPrototypeOf(r,e.prototype),r.name=r.constructor.name,r}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&&qu(e,t)}(e,Yu(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),Ju=new RegExp("(?:"+Nu()+")$","i");var ep={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 tp(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return rp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rp(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 rp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function np(e){for(var t,r="",n=tp(e.split(""));!(t=n()).done;){r+=op(t.value,r)||""}return r}function op(e,t,r){if("+"===e){if(t)return;return"+"}return function(e){return ep[e]}(e)}var ap="(["+hu+"]|[\\-\\.\\(\\)]?)",ip=new RegExp("^\\+"+ap+"*["+hu+"]"+ap+"*$","g"),lp=new RegExp("^("+("["+hu+"]+((\\-)*["+hu+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+hu+"])*")+"\\.?$","g"),dp="tel:",sp=";phone-context=";function cp(e,t){var r,n=t.extractFormattedPhoneNumber,o=function(e){var t=e.indexOf(sp);if(t<0)return null;var r=t+15;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}(e);if(!function(e){return null===e||0!==e.length&&(ip.test(e)||lp.test(e))}(o))throw new Qu("NOT_A_NUMBER");if(null===o)r=n(e)||"";else{r="","+"===o.charAt(0)&&(r+=o);var a,i=e.indexOf(dp);a=i>=0?i+4:0;var l=e.indexOf(sp);r+=e.substring(a,l)}var d=r.indexOf(";isub=");if(d>0&&(r=r.substring(0,d)),""!==r)return r}var up=new RegExp("[++"+hu+"]"),pp=new RegExp("[^"+hu+"#]+$");function fp(e,t,r){if(t=t||{},r=new qc(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry)){if(t.v2)throw new Qu("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var n=function(e,t,r){var n=cp(e,{extractFormattedPhoneNumber:function(e){return function(e,t,r){if(!e)return;if(e.length>250){if(r)throw new Qu("TOO_LONG");return}if(!1===t)return e;var n=e.search(up);if(n<0)return;return e.slice(n).replace(pp,"")}(e,r,t)}});if(!n)return{};if(!function(e){return e.length>=2&&Iu.test(e)}(n))return function(e){return Pu.test(e)}(n)?{error:"TOO_SHORT"}:{};var o=function(e){var t=e.search(Ju);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(Ju),o=1;o<n.length;){if(n[o])return{number:r,ext:n[o]};o++}}(n);if(o.ext)return o;return{number:n}}(e,t.v2,t.extract),o=n.number,a=n.ext,i=n.error;if(!o){if(t.v2){if("TOO_SHORT"===i)throw new Qu("TOO_SHORT");throw new Qu("NOT_A_NUMBER")}return{}}var l=function(e,t,r,n){var o,a=Cu(np(e),void 0,t,r,n.metadata),i=a.countryCallingCodeSource,l=a.countryCallingCode,d=a.number;if(l)n.selectNumberingPlan(l);else{if(!d||!t&&!r)return{};n.selectNumberingPlan(t,r),t&&(o=t),l=r||ou(t,n.metadata)}if(!d)return{countryCallingCodeSource:i,countryCallingCode:l};var s=$u(np(d),o,n),c=s.nationalNumber,u=s.carrierCode,p=wu(l,{nationalNumber:c,metadata:n});p&&(o=p,"001"===p||n.selectNumberingPlan(o));return{country:o,countryCallingCode:l,countryCallingCodeSource:i,nationalNumber:c,carrierCode:u}}(o,t.defaultCountry,t.defaultCallingCode,r),d=l.country,s=l.nationalNumber,c=l.countryCallingCode,u=l.countryCallingCodeSource,p=l.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Qu("INVALID_COUNTRY");return{}}if(!s||s.length<2){if(t.v2)throw new Qu("TOO_SHORT");return{}}if(s.length>17){if(t.v2)throw new Qu("TOO_LONG");return{}}if(t.v2){var f=new zu(c,s,r.metadata);return d&&(f.country=d),p&&(f.carrierCode=p),a&&(f.ext=a),f.__countryCallingCodeSource=u,f}var m=!!(t.extended?r.hasSelectedNumberingPlan():d)&&du(s,r.nationalNumberPattern());return t.extended?{country:d,countryCallingCode:c,carrierCode:p,valid:m,possible:!!m||!(!0!==t.extended||!r.possibleLengths()||!lu(s,d,r)),phone:s,ext:a}:m?function(e,t,r){var n={country:e,phone:t};r&&(n.ext=r);return n}(d,s,a):{}}function mp(e){return mp="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},mp(e)}function hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(r),!0).forEach(function(t){vp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=mp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bp(e){return bp="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},bp(e)}function yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=bp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],d=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(d=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(e){s=!0,o=e}finally{try{if(!d&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cp(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 Cp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xp(e){var t,r,n,o=$p(Array.prototype.slice.call(e),4),a=o[0],i=o[1],l=o[2],d=o[3];if("string"!=typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,i&&"string"!=typeof i){if(!zc(i))throw new Error("Invalid second argument: ".concat(i));l?(r=i,n=l):n=i}else d?(r=l,n=d):(r=void 0,n=l),i&&(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(r),!0).forEach(function(t){wp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({defaultCountry:i},r));return{text:t,options:r,metadata:n}}function Ep(e){return Ep="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},Ep(e)}function kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Lp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(r),!0).forEach(function(t){Np(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Np(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ep(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Ep(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ep(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mp(e,t,r){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,r)&&(t=Lp(Lp({},t),{},{defaultCountry:void 0}));try{return function(e,t,r){return fp(e,gp(gp({},t),{},{v2:!0}),r)}(e,t,r)}catch(e){if(!(e instanceof Qu))throw e}}function _p(){var e=xp(arguments);return Mp(e.text,e.options,e.metadata)}function Pp(e){return Pp="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},Pp(e)}function Tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ip(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tp(Object(r),!0).forEach(function(t){Sp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Op(){var e=xp(arguments),t=e.text,r=e.options,n=e.metadata,o=Mp(t,r=Ip(Ip({},r),{},{extract:!1}),n);return o&&o.isValid()||!1}function Ap(){return jc(_p,arguments)}function Rp(){return jc(Op,arguments)}const Dp=({state:e,dispatch:t})=>{const r=ac(),n=Fc(),{otpLoginStatus:i,identifier:l,error:d,loginMethod:c}=e,[p,f]=a(!1),[m,h]=a(!1),g="sms"===c,v=g?n.submitOTP:r.submitOTP,b=g?n.cancelLogin:r.cancelLogin,y=g?n.resendSmsOTP:r.resendEmailOTP,w="verifying_otp"===i,$="success"===i,C=u(()=>{if(!l||!g)return l;try{const e=Ap(l);return e?e.formatInternational():l}catch{return l}},[l,g]);s(()=>{"otp_sent"===i&&f(!1),"expired_otp"!==i&&"max_attempts_reached"!==i||h(!0)},[i]);return o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:b,showHeaderText:!1}),o.createElement(fc,null,o.createElement(fc,{className:"gap-6"},g?o.createElement(kl,{width:60,height:60,color:"var(--color-brand-base)"}):o.createElement($l,{width:60,height:60,color:"var(--color-brand-base)"}),o.createElement(fc,{className:"gap-0"},o.createElement(Ya.H4,{fontWeight:"normal",styles:{textAlign:"center"}},"Please enter the code sent to"),o.createElement(Ya.H4,{styles:{textAlign:"center"}},l&&(g?C:o.createElement(Nl,{email:l}))))),o.createElement(Zd,{originName:g?"sms":"email",pinLength:6,isPending:w||p,isSuccess:$,onChange:()=>{t({type:"RESET_OTP_ERROR"})},onComplete:v,errorMessage:p?"":d??""},o.createElement(Zd.RetryContent,null,m&&o.createElement(Mi,{variant:"text",onPress:()=>{f(!0),y(),h(!1)},label:"Request a new code"})))))};const Fp=({state:e,dispatch:t})=>{const{cancelLogin:r}=function(){const e=Sc(),t=ac(),r=Fc();return e.isMfaActive?{cancelLogin:e.cancelLogin}:r.isSmsLoginActive?{cancelLogin:r.cancelLogin}:{cancelLogin:t.cancelLogin}}(),{otpLoginStatus:n,identifier:a,loginMethod:i}=e;s(()=>{"device_approved"===n&&t({type:"OTP_SENT"})},[n]);const l="sms"===i;return o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:r,showHeaderText:!1}),o.createElement(fc,{className:"gap-6"},o.createElement(Ll,{width:60,height:60,color:"var(--color-brand-base)"}),o.createElement(Ya.H4,{styles:{textAlign:"center"}},"Please register this device to continue."),o.createElement(fc,{className:"gap-0"},o.createElement(Ya,{styles:{textAlign:"center",lineHeight:1.8}},"We sent a device registration link to"),o.createElement(mc,{className:"gap-2"},o.createElement(Ya,{styles:{textAlign:"center",fontWeight:"600"}},l?"your phone":a),o.createElement("button",{className:"cursor-pointer",onClick:r},o.createElement(wl,{height:18,width:18,color:"var(--color-brand-base)"})))),o.createElement("div",{className:"mt-4"},o.createElement(Ya,{styles:{textAlign:"center"}},"This quick one-time approval will help keep your account secure."))))},Hp=({state:e})=>{const{identifier:t,loginMethod:r}=e,n="sms"===r,a=u(()=>{if(!t||!n)return t;try{const e=Ap(t);return e?e.formatInternational():t}catch{return t}},[t,n]);return o.createElement(o.Fragment,null,o.createElement(bc,{showHeaderText:!1}),o.createElement(fc,{className:"gap-8"},o.createElement(Na,{width:40,height:40,color:"var(--color-brand-base)"}),o.createElement(fc,{className:"gap-1"},o.createElement(Ya,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"You have successfully logged in"),t&&o.createElement(Ya,{fontWeight:"semibold",styles:{textAlign:"center"}},a))))};function jp(){const e=Sc(),t=ac(),r=Fc();return e.isMfaActive?{submitMFA:e.submitMFA,lostDevice:e.lostDevice,submitRecoveryCode:e.submitRecoveryCode,cancelLogin:e.cancelLogin}:r.isSmsLoginActive?{submitMFA:r.submitMFA,lostDevice:r.lostDevice,submitRecoveryCode:r.submitRecoveryCode,cancelLogin:r.cancelLogin}:{submitMFA:t.submitMFA,lostDevice:t.lostDevice,submitRecoveryCode:t.submitRecoveryCode,cancelLogin:t.cancelLogin}}const Vp=({state:e,dispatch:t})=>{const{submitMFA:r,cancelLogin:n,lostDevice:a}=jp(),{otpLoginStatus:i,error:l}=e,d="mfa_verifying"===i,s="success"===i;return o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:n,showHeaderText:!1}),o.createElement(fc,null,o.createElement(fc,{className:"gap-6"},o.createElement(El,{width:60,height:60,color:"var(--color-brand-base)"}),o.createElement(Ya.H4,{styles:{textAlign:"center",fontWeight:"normal"}},"Please enter the 6-digit code from your authenticator app.")),o.createElement(Zd,{originName:"mfa",pinLength:6,isPending:d,isSuccess:s,onChange:()=>{t({type:"RESET_OTP_ERROR"})},onComplete:r,errorMessage:l??""}),o.createElement(Mi,{label:"I lost my device",variant:"text",textStyle:"neutral",onPress:a,disabled:d,size:"sm"})))},Bp=({state:e,dispatch:t})=>{const{submitRecoveryCode:r}=jp(),{otpLoginStatus:n,error:a}=e,i="recovery_code_verifying"===n,l="success"===n;s(()=>{l&&t({type:"LOGIN_SUCCESS"})},[l]);return o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:()=>{t({type:"MFA_REQUIRED"})},showHeaderText:!1}),o.createElement(fc,null,o.createElement(fc,{className:"gap-6"},o.createElement(El,{width:60,height:60,color:"var(--color-brand-base)"}),o.createElement(Ya.H4,{styles:{textAlign:"center",fontWeight:"normal"}},"Enter your recovery code to log in.")),i?o.createElement(hc,{className:"h-12"},o.createElement(Ia,{size:36,strokeWidth:4})):o.createElement(o.Fragment,null,o.createElement(Cd,{"aria-label":"8-character code",attr:{size:35},placeholder:"8-character code",onChange:e=>{t({type:"RESET_OTP_ERROR"}),8===e.length&&r(e)},alignText:"center",errorMessage:a??"",disabled:i}),o.createElement(Ta,{label:"Two-Factor Authentication will be disabled.",variant:"warning"})),!i&&!l&&o.createElement(Mi,{label:"I lost my recovery code",variant:"text",textStyle:"neutral",onPress:()=>{t({type:"LOST_RECOVERY_CODE"})},disabled:i||l,size:"sm"})))},zp=({dispatch:e})=>{const t=Zs().getConfig(),{appName:r}=t?.theme??{};return o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:()=>{e({type:"LOST_DEVICE"})},showHeaderText:!1}),o.createElement(fc,{className:"gap-6 px-6"},o.createElement(El,{width:60,height:60,color:"var(--color-brand-base)"}),o.createElement(fc,null,o.createElement(Ya.H4,{styles:{textAlign:"center"}},"Contact ",r," support"),o.createElement(Ya,{styles:{textAlign:"center"}},"For help recovering your account, please contact the ",r," support team."))))};function Gp(){return"undefined"!=typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!=typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function Up(){return"undefined"!=typeof navigator&&/android/i.test(navigator.userAgent)||Gp()}const Wp=({dispatch:e})=>{const{address:t,isConnected:r}=C(),{disconnect:n}=x(),d=i(null),[c,p]=a(null),[f,m]=a(null),h=i(!1),[g,v]=a(null),{Icon:b}=dc[Xs.WALLETCONNECT],y="undefined"!=typeof window&&Up(),w=u(()=>{if("undefined"==typeof window)return null;if(!y)return null;const e=Zs();return B({adapters:[e.wagmiAdapter],networks:js,projectId:e.projectId})},[y]),$=l(()=>{if(!h.current&&w){h.current=!0,m(null);try{r&&n(),w.open()}catch(e){const t=e;m(t?.message||"Failed to open wallet selection")}}},[w,r,n]),E=l(async()=>{if(!h.current){h.current=!0,m(null);try{r&&(n(),await new Promise(e=>setTimeout(e,100)));const e=js.map(e=>Number(e.id)),t=await V.init({projectId:Zs().projectId,chains:e,optionalChains:e,showQrModal:!1});d.current=t,Ec(t),t.on("display_uri",e=>{p(e)}),await t.connect();const o=t.accounts;o&&o.length>0&&v(o[0])}catch(t){const r=t,n=(r?.message||"").toLowerCase();if(n.includes("user rejected")||n.includes("user denied")||n.includes("rejected the request")||n.includes("user cancelled")||n.includes("user canceled"))return void e({type:"GO_TO_LOGIN"});m(r?.message||"Failed to connect wallet")}}},[r,n,e]);s(()=>{y?$():E()},[y,$,E]),s(()=>{y&&r&&t&&e({type:"WALLETCONNECT_CONNECTED",address:t})},[y,r,t,e]),s(()=>{!y&&g&&e({type:"WALLETCONNECT_CONNECTED",address:g})},[y,g,e]);const k=()=>{d.current&&(d.current.disconnect().catch(()=>{}),d.current=null,Ec(null)),w&&w.close(),e({type:"GO_TO_LOGIN"})};return f?o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:k,showHeaderText:!1}),o.createElement(fc,{className:"gap-6 pt-4 items-center"},o.createElement(b,{width:60,height:60}),o.createElement(fc,{className:"gap-2 items-center px-7"},o.createElement(Ya.H4,{styles:{textAlign:"center"}},"Connection Failed"),o.createElement(Ya,{variant:"error",styles:{textAlign:"center"}},f)))):y?o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:k,showHeaderText:!1}),o.createElement(fc,{className:"gap-6 pt-4 items-center"},o.createElement(b,{width:60,height:60}),o.createElement(fc,{className:"gap-2 items-center px-7"},o.createElement(Ya.H4,{styles:{textAlign:"center"}},"Select your wallet"),o.createElement(Ya,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Choose a wallet app to connect")))):o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:k,showHeaderText:!1}),o.createElement(fc,{className:"gap-6 pt-4 items-center"},c?o.createElement(Yd,{eyeRadius:8,value:c,qrStyle:"dots",size:262,logoImage:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuOTE2NzUgNy41MTYwNUM4LjgzMzM4IDMuNjgxMzQgMTUuMTgzNSAzLjY4MTM0IDE5LjEwMDEgNy41MTYwNUwxOS41NzE1IDcuOTc3NTZDMTkuNzY3MyA4LjE2OTI5IDE5Ljc2NzMgOC40ODAxNiAxOS41NzE1IDguNjcxOUwxNy45NTkgMTAuMjUwNkMxNy44NjExIDEwLjM0NjUgMTcuNzAyNCAxMC4zNDY1IDE3LjYwNDQgMTAuMjUwNkwxNi45NTU4IDkuNjE1NTRDMTQuMjIzNCA2Ljk0MDM1IDkuNzkzNDMgNi45NDAzNSA3LjA2MTA5IDkuNjE1NTRMNi4zNjY0MyAxMC4yOTU3QzYuMjY4NTEgMTAuMzkxNSA2LjEwOTc2IDEwLjM5MTUgNi4wMTE4NCAxMC4yOTU3TDQuMzk5MzcgOC43MTY5M0M0LjIwMzU0IDguNTI1MiA0LjIwMzU0IDguMjE0MzMgNC4zOTkzNyA4LjAyMjZMNC45MTY3NSA3LjUxNjA1Wk0yMi40MzQ5IDEwLjc4MTFMMjMuODcgMTIuMTg2MUMyNC4wNjU4IDEyLjM3NzkgMjQuMDY1OCAxMi42ODg3IDIzLjg3IDEyLjg4MDVMMTcuMzk5IDE5LjIxNjJDMTcuMjAzMiAxOS40MDc5IDE2Ljg4NTcgMTkuNDA3OSAxNi42ODk4IDE5LjIxNjJDMTYuNjg5OCAxOS4yMTYyIDE2LjY4OTggMTkuMjE2MiAxNi42ODk4IDE5LjIxNjJMMTIuMDk3MSAxNC43MTk2QzEyLjA0ODIgMTQuNjcxNiAxMS45Njg4IDE0LjY3MTYgMTEuOTE5OCAxNC43MTk2TDcuMzI3MjEgMTkuMjE2MkM3LjEzMTM4IDE5LjQwNzkgNi44MTM4NyAxOS40MDggNi42MTgwNCAxOS4yMTYyQzYuNjE4MDQgMTkuMjE2MiA2LjYxODA0IDE5LjIxNjIgNi42MTgwNCAxOS4yMTYyTDAuMTQ2ODc0IDEyLjg4MDRDLTAuMDQ5NTc5IDEyLjY4ODcgLTAuMDQ5NTc5IDEyLjM3NzggMC4xNDY4NzQgMTIuMTg2MUwxLjU4MTk4IDEwLjc4MUMxLjc3NzgxIDEwLjU4OTIgMi4wOTUzMiAxMC41ODkyIDIuMjkxMTUgMTAuNzgxTDYuODgzOTIgMTUuMjc3N0M2LjkzMjg4IDE1LjMyNTYgNy4wMTIyNiAxNS4zMjU2IDcuMDYxMjIgMTUuMjc3N0M3LjA2MTIxIDE1LjI3NzcgNy4wNjEyMiAxNS4yNzc3IDcuMDYxMjIgMTUuMjc3N0wxMS42NTM4IDEwLjc4MUMxMS44NDk2IDEwLjU4OTIgMTIuMTY3MSAxMC41ODkyIDEyLjM2MjkgMTAuNzgxQzEyLjM2MjkgMTAuNzgxIDEyLjM2MjkgMTAuNzgxIDEyLjM2MjkgMTAuNzgxTDE2Ljk1NTcgMTUuMjc3N0MxNy4wMDQ3IDE1LjMyNTYgMTcuMDg0IDE1LjMyNTYgMTcuMTMzIDE1LjI3NzdMMjEuNzI1NyAxMC43ODExQzIxLjkyMTUgMTAuNTg5MyAyMi4yMzkgMTAuNTg5MyAyMi40MzQ5IDEwLjc4MTFaIiBmaWxsPSIjM0I5OUZDIi8+Cjwvc3ZnPgo=",logoHeight:52,logoWidth:52,logoPadding:12,style:{borderRadius:16},quietZone:12}):o.createElement(hc,{className:"w-[294px] h-[294px]"},o.createElement(ml,{width:286,height:286,borderRadius:16,backgroundColor:"surface.secondary"})),o.createElement(fc,{className:"gap-2 items-center px-7"},o.createElement(Ya.H4,{styles:{textAlign:"center"}},"Scan with your wallet"),o.createElement(Ya,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Open your mobile wallet and scan this QR code to connect"))))},Zp=({state:e})=>{const{cancelLogin:t,startSmsLogin:r}=Fc(),[n,i]=a(""),[l,d]=a(null),s="sms"===e.loginMethod&&"sending"===e.otpLoginStatus,c=("sms"===e.loginMethod?e.error:void 0)||l||void 0;return s?o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:t}),o.createElement("div",{className:"h-2"}),o.createElement(Ia,{size:60,strokeWidth:6,neutral:!0})):o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:t}),o.createElement(fc,{className:"w-full gap-10 mt-2 px-7"},o.createElement(fc,{className:"gap-10"},o.createElement(kl,{width:60,height:60,color:"var(--color-brand-base)"}),o.createElement(Ya.H4,{fontWeight:"medium",styles:{textAlign:"center"}},"Enter phone number")),o.createElement(fd,{onChange:e=>{d(null),i(e.trim())},onSubmit:()=>{Rp(n)?r(n):d(Qs.InvalidPhoneNumber)},disableSubmit:()=>!(n.length>0&&Rp(n)),containerStyles:{width:"100%"},errorMessage:c,showPlaceholder:!0})))};function Yp(e){const{handleSuccess:t,handleError:r}=rc(),n=i(null),o=l(()=>{const o=Zs().loginWithFarcaster();n.current=o,o.on("channel",t=>{e({type:"FARCASTER_CHANNEL_RECEIVED",url:t.url}),Up()&&"undefined"!=typeof window&&window===window.top&&(window.location.href=t.url)}),o.on("success",r=>{o.then(n=>{const o={method:"farcaster",didToken:n,farcaster:{fid:r.fid,username:r.username,displayName:r.displayName,pfpUrl:r.pfpUrl,bio:r.bio}};e({type:"FARCASTER_SUCCESS",username:r.username}),t(o)}).catch(()=>{e({type:"FARCASTER_SUCCESS",username:r.username})})}),o.on("failed",t=>{e({type:"FARCASTER_FAILED",error:t?.message||"Farcaster login failed"}),r(t instanceof Error?t:new Error("Farcaster login failed"))})},[e,t,r]);return{startFarcasterLogin:o,cancel:l(()=>{n.current&&(n.current.emit(ws.Cancel),n.current=null),e({type:"GO_TO_LOGIN"})},[e]),retry:l(()=>{n.current&&(n.current.emit(ws.Cancel),n.current=null),e({type:"SELECT_FARCASTER"})},[e])}}let Kp=0;const qp="usableReactClipboardHook";async function Xp(e){var t;if(e)try{await navigator.clipboard.writeText(e)}catch{const r=document.activeElement,n=document.createElement("textarea");n.dataset[qp]="clipboard-"+ ++Kp,n.style.position="absolute",n.style.left="-2147483647em",n.setAttribute("readonly","true"),document.body.appendChild(n),n.value=e;const o=(document.getSelection()?.rangeCount??NaN)>0&&document.getSelection()?.getRangeAt(0);if(/ipad|ipod|iphone/i.test(navigator.userAgent)){const e=n.contentEditable;n.contentEditable="true";const t=document.createRange();t.selectNodeContents(n);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(t),n.setSelectionRange(0,999999),n.contentEditable=e}else n.select();document.execCommand("copy"),o&&(document.getSelection()?.removeAllRanges(),document.getSelection()?.addRange(o)),r?.focus&&(t=document.activeElement,t?.dataset?.[qp])&&r.focus()}}const Qp=({state:e,dispatch:t})=>{const{startFarcasterLogin:r,cancel:n}=Yp(t),[i,l]=a(!1),{farcasterUrl:d}=e;s(()=>{r()},[]);return o.createElement(o.Fragment,null,o.createElement(bc,{onPressBack:n,showHeaderText:!1}),o.createElement(fc,{className:"gap-6 pt-4 items-center"},d?o.createElement(Yd,{eyeRadius:8,value:d,qrStyle:"dots",size:262,eyeColor:pc,logoImage:"https://bafybeidkwvzd7ae6jsi23qztuuhvpextec5qks7dv2weww6c7olgeqqx7q.ipfs.dweb.link",logoHeight:52,logoWidth:52,logoPadding:12,style:{borderRadius:16},quietZone:12}):o.createElement(hc,{className:"w-[294px] h-[294px]"},o.createElement(ml,{width:286,height:286,borderRadius:16,backgroundColor:"surface.secondary"})),o.createElement(fc,{className:"gap-2 items-center px-7"},o.createElement(Ya.H4,{styles:{textAlign:"center"}},"Sign in with Farcaster"),o.createElement(Ya,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Scan the QR code with your phone or enter the link on a mobile browser")),d&&o.createElement(Mi,{variant:"neutral",size:"sm",onPress:async()=>{d&&(await Xp(d),l(!0),setTimeout(()=>l(!1),2e3))},label:i?"Copied!":"Copy link"},o.createElement(Mi.LeadingIcon,null,i?o.createElement(Sa,null):o.createElement(bl,null)))))},Jp=({state:e})=>{const{farcasterUsername:t}=e;return o.createElement(o.Fragment,null,o.createElement(bc,{showHeaderText:!1}),o.createElement(fc,{className:"gap-8"},o.createElement(Na,{width:48,height:48,color:pc}),o.createElement(fc,{className:"gap-1"},o.createElement(Ya.H4,{styles:{textAlign:"center"}},"You're all set"),o.createElement(Ya,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Successfully signed in",t?` with ${t}`:""))))},ef=({state:e,dispatch:t})=>{const{cancel:r,retry:n}=Yp(t),{error:a}=e;return o.createElement(o.Fragment,null,o.createElement(bc,{showHeaderText:!1}),o.createElement(fc,{className:"gap-8"},o.createElement(yl,{width:48,height:48,color:"var(--color-negative-darker)"}),o.createElement(fc,{className:"gap-1"},o.createElement(Ya.H4,{styles:{textAlign:"center"}},"Request Denied"),o.createElement(Ya,{fontColor:"text.tertiary",styles:{textAlign:"center"}},a||"Farcaster login was denied or failed")),o.createElement(mc,{className:"gap-2 w-full"},o.createElement(Mi,{variant:"primary",expand:!0,onPress:n,label:"Try again"}),o.createElement(Mi,{variant:"neutral",expand:!0,onPress:r,label:"Cancel"}))))};const tf=new N;let rf=!1;function nf({state:e,dispatch:t,showFooterLogo:r,isModal:n}){const i=function(e){const[t,r]=a(!1);return s(()=>{function t(e){r(e.matches)}const n=matchMedia(e);return n.addEventListener("change",t),r(n.matches),()=>n.removeEventListener("change",t)},[e]),t}("(max-width: 768px)");return o.createElement(oc,{dispatch:t},o.createElement(Dc,{dispatch:t},o.createElement(Ic,{dispatch:t},o.createElement(ll,{isWidget:!0,fullscreen:n&&i},o.createElement(fc,{className:"w-full min-w-[380px]"},(()=>{switch(e.view){case"login":default:return o.createElement(yc,{dispatch:t,state:e});case"sms_login":return o.createElement(Zp,{state:e});case"wallet_pending":return e.selectedProvider?o.createElement(Mc,{key:`wallet-${e.selectedProvider}`,provider:e.selectedProvider,state:e,dispatch:t}):o.createElement(yc,{dispatch:t,state:e});case"walletconnect_pending":return o.createElement(Wp,{key:"walletconnect",dispatch:t});case"oauth_pending":return e.selectedProvider?o.createElement(Oc,{key:`oauth-${e.selectedProvider}`,provider:e.selectedProvider,state:e,dispatch:t}):o.createElement(yc,{dispatch:t,state:e});case"additional_providers":return o.createElement(Ac,{dispatch:t});case"otp_pending":return o.createElement(Dp,{state:e,dispatch:t});case"device_verification":return o.createElement(Fp,{state:e,dispatch:t});case"mfa_pending":return o.createElement(Vp,{state:e,dispatch:t});case"recovery_code":return o.createElement(Bp,{state:e,dispatch:t});case"lost_recovery_code":return o.createElement(zp,{dispatch:t});case"login_success":return o.createElement(Hp,{state:e});case"farcaster_pending":return o.createElement(Qp,{state:e,dispatch:t});case"farcaster_success":return o.createElement(Jp,{state:e});case"farcaster_failed":return o.createElement(ef,{state:e,dispatch:t})}})(),o.createElement(Ki,{showLogo:r}))))))}const of={position:"fixed",top:0,left:0,right:0,bottom:0,backdropFilter:"blur(0.375rem)",WebkitBackdropFilter:"blur(0.375rem)",display:"flex",alignItems:"flex-start",justifyContent:"center",zIndex:9999},af={position:"relative"};function lf({displayMode:e="inline",isOpen:t=!0,onClose:r,closeOnSuccess:n=!1,closeOnClickOutside:i=!1,wallets:l=[],enableFarcaster:d=!1,onSuccess:u,onError:p,onAccountChanged:f,onReady:m}){const[h,g]=c(Pc,_c),[v,b]=a(()=>null===Zs().getConfig()),{setColors:y,setRadius:w}=(({onError:e})=>{const[t,r]=a(null);return s(()=>{r(document?.documentElement)},[]),{setColors:(r,n)=>{const o=Kd[r].base,a=Kd[r].dark;let i;try{for(const[e,a]of Object.entries(o))i=Xd(n,a),t?.style.setProperty(`--${r}-${e}`,i);for(const[e,o]of Object.entries(a))i="string"==typeof o?"#"+qd(n,o):Xd(n,o),t?.style.setProperty(`--${r}-${e}-dark`,i)}catch(t){e?.(t)}},setFont:r=>{try{t?.style.setProperty("--brand-font",r)}catch(t){e?.(t)}},setRadius:(r,n)=>{try{t?.style.setProperty(`--${r}-radius`,n)}catch(t){e?.(t)}}}})({}),[$,C]=a(null),[x,E]=a(!1);s(()=>{!function(){if(rf||"undefined"==typeof document)return;const e=document.createElement("style");e.id="magic-widget-styles",e.textContent='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--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-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--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-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-1\\\\/2{left:-50%}.-left-6{left:-1.5rem}.-right-6{right:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\\\\/2{left:50%}.left-6{left:1.5rem}.left-9{left:2.25rem}.left-full{left:100%}.right-0{right:0}.right-full{right:100%}.top-0{top:0}.top-1\\\\/2{top:50%}.top-11{top:2.75rem}.top-\\\\[55px\\\\]{top:55px}.z-0{z-index:0}.z-10{z-index:10}.z-\\\\[1\\\\]{z-index:1}.z-max{z-index:2147483647}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mt-\\\\[3px\\\\]{margin-top:-3px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-3{margin-left:.75rem}.ml-7{margin-left:1.75rem}.ml-\\\\[0\\\\.9rem\\\\]{margin-left:.9rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-7{margin-right:1.75rem}.mr-\\\\[0\\\\.9rem\\\\]{margin-right:.9rem}.mt-0\\\\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\\\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-15{height:3.75rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\\\[1\\\\.125rem\\\\]{height:1.125rem}.h-\\\\[10\\\\.75rem\\\\]{height:10.75rem}.h-\\\\[2\\\\.625rem\\\\]{height:2.625rem}.h-\\\\[294px\\\\]{height:294px}.h-\\\\[3\\\\.25rem\\\\]{height:3.25rem}.h-\\\\[3\\\\.875rem\\\\]{height:3.875rem}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\\\[17\\\\.5rem\\\\]{max-height:17.5rem}.max-h-\\\\[384px\\\\]{max-height:384px}.min-h-\\\\[4rem\\\\]{min-height:4rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-15{width:3.75rem}.w-2\\\\.5{width:.625rem}.w-20{width:5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\\\\[1\\\\.125rem\\\\]{width:1.125rem}.w-\\\\[10\\\\.75rem\\\\]{width:10.75rem}.w-\\\\[18rem\\\\]{width:18rem}.w-\\\\[2\\\\.625rem\\\\]{width:2.625rem}.w-\\\\[294px\\\\]{width:294px}.w-\\\\[3\\\\.875rem\\\\]{width:3.875rem}.w-\\\\[40\\\\%\\\\]{width:40%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-10{min-width:2.5rem}.min-w-\\\\[15rem\\\\]{min-width:15rem}.min-w-\\\\[2\\\\.5rem\\\\]{min-width:2.5rem}.min-w-\\\\[380px\\\\]{min-width:380px}.max-w-52{max-width:13rem}.max-w-\\\\[100rem\\\\]{max-width:100rem}.max-w-\\\\[18rem\\\\]{max-width:18rem}.max-w-\\\\[25rem\\\\]{max-width:25rem}.max-w-\\\\[29\\\\.125rem\\\\]{max-width:29.125rem}.max-w-\\\\[30rem\\\\]{max-width:30rem}.max-w-full{max-width:100%}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.-translate-x-1\\\\/2{--tw-translate-x:-50%}.-translate-x-1\\\\/2,.-translate-x-full{transform:translate(var(--tw-translate-x),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))}.-translate-x-full{--tw-translate-x:-100%}.-translate-y-1\\\\/2{--tw-translate-y:-50%}.-translate-y-1\\\\/2,.translate-x-0{transform:translate(var(--tw-translate-x),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))}.translate-x-0{--tw-translate-x:0px}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.translate-y-0{transform:translate(var(--tw-translate-x),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))}.translate-y-0{--tw-translate-y:0px}.translate-y-full{--tw-translate-y:100%}.rotate-90,.translate-y-full{transform:translate(var(--tw-translate-x),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))}.rotate-90{--tw-rotate:90deg}.skew-x-\\\\[-20deg\\\\]{--tw-skew-x:-20deg}.scale-100,.skew-x-\\\\[-20deg\\\\]{transform:translate(var(--tw-translate-x),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))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.transform{transform:translate(var(--tw-translate-x),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))}@keyframes animateSpinnerLarge{0%{stroke-dasharray:.875,175;stroke-dashoffset:0}50%{stroke-dasharray:78.75,131.25;stroke-dashoffset:-31}to{stroke-dasharray:.875,175;stroke-dashoffset:-158}}.animate-\\\\[animateSpinnerLarge_2s_ease-in-out_infinite\\\\]{animation:animateSpinnerLarge 2s ease-in-out infinite}@keyframes animateSpinnerSmall{0%{stroke-dasharray:.4,60;stroke-dashoffset:0}50%{stroke-dasharray:36,60;stroke-dashoffset:-14}to{stroke-dasharray:36,60;stroke-dashoffset:-52}}.animate-\\\\[animateSpinnerSmall_2s_ease-in-out_infinite\\\\]{animation:animateSpinnerSmall 2s ease-in-out infinite}@keyframes moveLeft{0%{transform:translateX(0)}80%{transform:translateX(-1.25rem)}to{transform:translateX(-1.2rem)}}.animate-\\\\[fadeIn_0\\\\.5s\\\\2c moveLeft_1s_0\\\\.5s_forwards\\\\]{animation:fadeIn .5s,moveLeft 1s .5s forwards}@keyframes fadeIn{0%{opacity:0}}@keyframes moveRight{0%{transform:translateX(0)}80%{transform:translateX(1.25rem)}to{transform:translateX(1.2rem)}}.animate-\\\\[fadeIn_0\\\\.5s\\\\2c moveRight_1s_0\\\\.5s_forwards\\\\]{animation:fadeIn .5s,moveRight 1s .5s forwards}@keyframes popIn{0%{scale:0}to{scale:1}}.animate-\\\\[popIn_150ms\\\\]{animation:popIn .15s}@keyframes popOut{0%{scale:1}to{scale:0}}.animate-\\\\[popOut_150ms\\\\]{animation:popOut .15s}.animate-\\\\[spin_1\\\\.5s_linear_infinite\\\\]{animation:spin 1.5s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-1\\\\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-2\\\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\\\[0\\\\.5rem\\\\]{border-radius:.5rem}.rounded-\\\\[10px\\\\]{border-radius:10px}.rounded-\\\\[1rem\\\\]{border-radius:1rem}.rounded-\\\\[2rem\\\\]{border-radius:2rem}.rounded-\\\\[30px\\\\]{border-radius:30px}.rounded-\\\\[60px\\\\]{border-radius:60px}.rounded-\\\\[inherit\\\\]{border-radius:inherit}.rounded-button{border-radius:var(--button-radius,9999px)}.rounded-container{border-radius:var(--container-radius,1.75rem)}.rounded-full{border-radius:9999px}.rounded-input{border-radius:var(--input-radius,.875rem)}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-l-input{border-top-left-radius:var(--input-radius,.875rem);border-bottom-left-radius:var(--input-radius,.875rem)}.rounded-r-2xl{border-top-right-radius:1rem;border-bottom-right-radius:1rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-\\\\[3px\\\\]{border-width:3px}.border-thick{border-width:.125rem}.border-thin{border-width:.0625rem}.border-l{border-left-width:1px}.border-solid{border-style:solid}.border-brand-base{border-color:var(--color-brand-base)}.border-negative-base{border-color:var(--color-negative-base)}.border-neutral-primary{border-color:var(--color-neutral-primary)}.border-neutral-secondary{border-color:var(--color-neutral-secondary)}.border-neutral-tertiary{border-color:var(--color-neutral-tertiary)}.border-surface-primary{border-color:var(--color-surface-primary)}.border-surface-quaternary{border-color:var(--color-surface-quaternary)}.border-text-tertiary{border-color:var(--color-text-tertiary)}.border-transparent{border-color:transparent}.bg-\\\\[\\\\#ffc439\\\\]{--tw-bg-opacity:1;background-color:rgb(255 196 57/var(--tw-bg-opacity,1))}.bg-\\\\[\\\\#ffffff14\\\\]{background-color:#ffffff14}.bg-\\\\[color-mix\\\\(in_srgb\\\\2c var\\\\(--color-text-primary\\\\)_20\\\\%\\\\2c transparent\\\\)\\\\]{background-color:color-mix(in srgb,var(--color-text-primary) 20%,transparent)}.bg-brand-base{background-color:var(--color-brand-base)}.bg-brand-lightest{background-color:var(--color-brand-lightest)}.bg-ink-10{background-color:rgb(248 248 250/var(--tw-bg-opacity,1))}.bg-ink-10,.bg-ink-90{--tw-bg-opacity:1}.bg-ink-90{background-color:rgb(24 23 26/var(--tw-bg-opacity,1))}.bg-magic-10{--tw-bg-opacity:1;background-color:rgb(237 235 255/var(--tw-bg-opacity,1))}.bg-negative-darker{background-color:var(--color-negative-darker)}.bg-negative-lightest{background-color:var(--color-negative-lightest)}.bg-neutral-primary{background-color:var(--color-neutral-primary)}.bg-neutral-quaternary{background-color:var(--color-neutral-quaternary)}.bg-neutral-secondary{background-color:var(--color-neutral-secondary)}.bg-neutral-tertiary{background-color:var(--color-neutral-tertiary)}.bg-paper{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-positive-darker{background-color:var(--color-positive-darker)}.bg-positive-lightest{background-color:var(--color-positive-lightest)}.bg-slate-1{--tw-bg-opacity:1;background-color:rgb(37 37 37/var(--tw-bg-opacity,1))}.bg-surface-primary{background-color:var(--color-surface-primary)}.bg-surface-quaternary{background-color:var(--color-surface-quaternary)}.bg-surface-secondary{background-color:var(--color-surface-secondary)}.bg-surface-tertiary{background-color:var(--color-surface-tertiary)}.bg-text-secondary{background-color:var(--color-text-secondary)}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-transparent{background-color:transparent}.bg-warning-darker{background-color:var(--color-warning-darker)}.bg-warning-lightest{background-color:var(--color-warning-lightest)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-transparent{--tw-gradient-from:transparent var(--tw-gradient-from-position);--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-black\\\\/10{--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(0,0,0,.1) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.fill-ink-50{fill:#b6b4ba}.stroke-brand-base{stroke:var(--color-brand-base)}.stroke-surface-primary{stroke:var(--color-surface-primary)}.stroke-text-primary{stroke:var(--color-text-primary)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\\\.5{padding:.375rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-0\\\\.5{padding-left:.125rem;padding-right:.125rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\\\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-0{padding-bottom:0}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.tracking-\\\\[0\\\\.06rem\\\\]{letter-spacing:.06rem}.text-brand-base{color:var(--color-brand-base)}.text-brand-darker{color:var(--color-brand-darker)}.text-brand-darkest{color:var(--color-brand-darkest)}.text-chalk{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-ink-50{--tw-text-opacity:1;color:rgb(182 180 186/var(--tw-text-opacity,1))}.text-ink-90{--tw-text-opacity:1;color:rgb(24 23 26/var(--tw-text-opacity,1))}.text-negative-base{color:var(--color-negative-base)}.text-negative-darker{color:var(--color-negative-darker)}.text-negative-darkest{color:var(--color-negative-darkest)}.text-neutral-primary{color:var(--color-neutral-primary)}.text-positive-base{color:var(--color-positive-base)}.text-positive-darkest{color:var(--color-positive-darkest)}.text-surface-primary{color:var(--color-surface-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-quaternary{color:var(--color-text-quaternary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-warning-base{color:var(--color-warning-base)}.text-warning-darkest{color:var(--color-warning-darkest)}.caret-transparent{caret-color:transparent}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-\\\\[0\\\\.12\\\\]{opacity:.12}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\\\\[0\\\\.125rem_0\\\\.125rem_1\\\\.5rem_rgba\\\\(119\\\\2c 118\\\\2c 122\\\\2c 0\\\\.15\\\\)\\\\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\\\[0\\\\.125rem_0\\\\.125rem_1\\\\.5rem_rgba\\\\(119\\\\2c 118\\\\2c 122\\\\2c 0\\\\.15\\\\)\\\\]{--tw-shadow:0.125rem 0.125rem 1.5rem hsla(255,2%,47%,.15);--tw-shadow-colored:0.125rem 0.125rem 1.5rem var(--tw-shadow-color)}.shadow-\\\\[0px_-12px_56px_0px_rgba\\\\(119\\\\2c 118\\\\2c 122\\\\2c 0\\\\.15\\\\)\\\\]{--tw-shadow:0px -12px 56px 0px hsla(255,2%,47%,.15);--tw-shadow-colored:0px -12px 56px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\\\[0px_1px_2px_rgba\\\\(189\\\\2c 189\\\\2c 189\\\\2c 0\\\\.3\\\\)\\\\]{--tw-shadow:0px 1px 2px hsla(0,0%,74%,.3);--tw-shadow-colored:0px 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\\\[0px_4px_20px_0px_rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c 0\\\\.10\\\\)\\\\]{--tw-shadow:0px 4px 20px 0px rgba(0,0,0,.1);--tw-shadow-colored:0px 4px 20px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\\\[0px_4px_20px_0px_rgba\\\\(24\\\\2c 23\\\\2c 26\\\\2c 0\\\\.1\\\\)\\\\]{--tw-shadow:0px 4px 20px 0px rgba(24,23,26,.1);--tw-shadow-colored:0px 4px 20px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\\\[4px_8px_20px_0px_rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c 0\\\\.15\\\\)\\\\]{--tw-shadow:4px 8px 20px 0px rgba(0,0,0,.15);--tw-shadow-colored:4px 8px 20px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\\\[8px_8px_48px_rgba\\\\(16\\\\2c 15\\\\2c 17\\\\2c 0\\\\.14\\\\)\\\\]{--tw-shadow:8px 8px 48px rgba(16,15,17,.14);--tw-shadow-colored:8px 8px 48px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-dashed{outline-style:dashed}.outline-dotted{outline-style:dotted}.outline-double{outline-style:double}.outline-thick{outline-width:.125rem}.outline-offset-\\\\[0\\\\.125rem\\\\]{outline-offset:.125rem}.outline-brand-base{outline-color:var(--color-brand-base)}.outline-transparent{outline-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.blur-\\\\[10px\\\\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\\\\[10px\\\\]{--tw-blur:blur(10px)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\\\[0\\\\.375rem\\\\]{--tw-backdrop-blur:blur(0.375rem)}.backdrop-blur-\\\\[0\\\\.375rem\\\\],.backdrop-blur-\\\\[3px\\\\]{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-\\\\[3px\\\\]{--tw-backdrop-blur:blur(3px)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\\\[background-color\\\\2c border-color\\\\]{transition-property:background-color,border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\\\[left\\\\]{transition-property:left;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\\\[transform\\\\2c opacity\\\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-\\\\[120ms\\\\]{transition-duration:.12s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-\\\\[transform\\\\2c opacity\\\\]{will-change:transform,opacity}.\\\\[animation-duration\\\\:150ms\\\\]{animation-duration:.15s}.\\\\[animation-duration\\\\:250ms\\\\]{animation-duration:.25s}.\\\\[animation-duration\\\\:400ms\\\\]{animation-duration:.4s}.\\\\[animation-fill-mode\\\\:forwards\\\\]{animation-fill-mode:forwards}.\\\\[animation-name\\\\:fadeIn\\\\]{animation-name:fadeIn}.\\\\[animation-name\\\\:fadeOut\\\\]{animation-name:fadeOut}.\\\\[animation-name\\\\:none\\\\]{animation-name:none}.\\\\[animation-name\\\\:scaleIn\\\\]{animation-name:scaleIn}.\\\\[animation-name\\\\:scaleOut\\\\]{animation-name:scaleOut}.\\\\[font-variant\\\\:no-contextual\\\\]{font-variant:no-contextual}.\\\\[scrollbar-width\\\\:none\\\\]{scrollbar-width:none}.\\\\[scrollbar-width\\\\:thin\\\\]{scrollbar-width:thin}.\\\\[transform\\\\:translateX\\\\(-0\\\\.75rem\\\\)_translateY\\\\(-50\\\\%\\\\)\\\\]{transform:translateX(-.75rem) translateY(-50%)}.\\\\[transform\\\\:translateX\\\\(-10\\\\%\\\\)_translateY\\\\(calc\\\\(-100\\\\%-0\\\\.75rem\\\\)\\\\)\\\\]{transform:translateX(-10%) translateY(calc(-100% - .75rem))}.\\\\[transform\\\\:translateX\\\\(-10\\\\%\\\\)_translateY\\\\(calc\\\\(100\\\\%\\\\+0\\\\.75rem\\\\)\\\\)\\\\]{transform:translateX(-10%) translateY(calc(100% + .75rem))}.\\\\[transform\\\\:translateX\\\\(-50\\\\%\\\\)_translateY\\\\(-0\\\\.75rem\\\\)\\\\]{transform:translateX(-50%) translateY(-.75rem)}.\\\\[transform\\\\:translateX\\\\(-50\\\\%\\\\)_translateY\\\\(0\\\\.75rem\\\\)\\\\]{transform:translateX(-50%) translateY(.75rem)}.\\\\[transform\\\\:translateX\\\\(-50\\\\%\\\\)_translateY\\\\(calc\\\\(-100\\\\%-0\\\\.75rem\\\\)\\\\)\\\\]{transform:translateX(-50%) translateY(calc(-100% - .75rem))}.\\\\[transform\\\\:translateX\\\\(-50\\\\%\\\\)_translateY\\\\(calc\\\\(100\\\\%\\\\+0\\\\.75rem\\\\)\\\\)\\\\]{transform:translateX(-50%) translateY(calc(100% + .75rem))}.\\\\[transform\\\\:translateX\\\\(0\\\\.75rem\\\\)_translateY\\\\(-50\\\\%\\\\)\\\\]{transform:translateX(.75rem) translateY(-50%)}.\\\\[transform\\\\:translateX\\\\(10\\\\%\\\\)_translateY\\\\(calc\\\\(-100\\\\%-0\\\\.75rem\\\\)\\\\)\\\\]{transform:translateX(10%) translateY(calc(-100% - .75rem))}.\\\\[transform\\\\:translateX\\\\(10\\\\%\\\\)_translateY\\\\(calc\\\\(100\\\\%\\\\+0\\\\.75rem\\\\)\\\\)\\\\]{transform:translateX(10%) translateY(calc(100% + .75rem))}.\\\\[transform\\\\:translateX\\\\(calc\\\\(-100\\\\%-0\\\\.75rem\\\\)\\\\)_translateY\\\\(-25\\\\%\\\\)\\\\]{transform:translateX(calc(-100% - .75rem)) translateY(-25%)}.\\\\[transform\\\\:translateX\\\\(calc\\\\(-100\\\\%-0\\\\.75rem\\\\)\\\\)_translateY\\\\(-50\\\\%\\\\)\\\\]{transform:translateX(calc(-100% - .75rem)) translateY(-50%)}.\\\\[transform\\\\:translateX\\\\(calc\\\\(-100\\\\%-0\\\\.75rem\\\\)\\\\)_translateY\\\\(-75\\\\%\\\\)\\\\]{transform:translateX(calc(-100% - .75rem)) translateY(-75%)}.\\\\[transform\\\\:translateX\\\\(calc\\\\(100\\\\%\\\\+0\\\\.75rem\\\\)\\\\)_translateY\\\\(-25\\\\%\\\\)\\\\]{transform:translateX(calc(100% + .75rem)) translateY(-25%)}.\\\\[transform\\\\:translateX\\\\(calc\\\\(100\\\\%\\\\+0\\\\.75rem\\\\)\\\\)_translateY\\\\(-50\\\\%\\\\)\\\\]{transform:translateX(calc(100% + .75rem)) translateY(-50%)}.\\\\[transform\\\\:translateX\\\\(calc\\\\(100\\\\%\\\\+0\\\\.75rem\\\\)\\\\)_translateY\\\\(-75\\\\%\\\\)\\\\]{transform:translateX(calc(100% + .75rem)) translateY(-75%)}.\\\\[will-change\\\\:transform\\\\2c opacity\\\\]{will-change:transform,opacity}.placeholder\\\\:text-text-tertiary::-moz-placeholder{color:var(--color-text-tertiary)}.placeholder\\\\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.before\\\\:absolute:before{content:var(--tw-content);position:absolute}.before\\\\:inset-0:before{content:var(--tw-content);inset:0}.before\\\\:bottom-0:before{content:var(--tw-content);bottom:0}.before\\\\:left-0:before{content:var(--tw-content);left:0}.before\\\\:right-0:before{content:var(--tw-content);right:0}.before\\\\:top-0:before{content:var(--tw-content);top:0}.before\\\\:hidden:before{content:var(--tw-content);display:none}.before\\\\:rounded-\\\\[inherit\\\\]:before{content:var(--tw-content);border-radius:inherit}.before\\\\:bg-\\\\[linear-gradient\\\\(rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c 0\\\\.05\\\\)\\\\2c rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c 0\\\\.05\\\\)\\\\)\\\\]:before{content:var(--tw-content);background-image:linear-gradient(rgba(0,0,0,.05),rgba(0,0,0,.05))}.before\\\\:bg-\\\\[linear-gradient\\\\(rgba\\\\(255\\\\2c 255\\\\2c 255\\\\2c 0\\\\.05\\\\)\\\\2c rgba\\\\(255\\\\2c 255\\\\2c 255\\\\2c 0\\\\.05\\\\)\\\\)\\\\]:before{content:var(--tw-content);background-image:linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,.05))}.before\\\\:opacity-0:before{content:var(--tw-content);opacity:0}.before\\\\:transition-opacity:before{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.before\\\\:duration-100:before{content:var(--tw-content);transition-duration:.1s}.before\\\\:ease-in-out:before{content:var(--tw-content);transition-timing-function:cubic-bezier(.4,0,.2,1)}.before\\\\:content-\\\\[\\\\"\\\\"\\\\]:before{--tw-content:"";content:var(--tw-content)}.focus-within\\\\:outline:focus-within{outline-style:solid}.focus-within\\\\:outline-thick:focus-within{outline-width:.125rem}.focus-within\\\\:outline-offset-\\\\[0\\\\.125rem\\\\]:focus-within{outline-offset:.125rem}.focus-within\\\\:outline-brand-base:focus-within{outline-color:var(--color-brand-base)}.hover\\\\:cursor-pointer:hover{cursor:pointer}.hover\\\\:border-brand-base:hover{border-color:var(--color-brand-base)}.hover\\\\:border-neutral-primary:hover{border-color:var(--color-neutral-primary)}.hover\\\\:border-neutral-secondary:hover{border-color:var(--color-neutral-secondary)}.hover\\\\:bg-\\\\[\\\\#ffffff4d\\\\]:hover{background-color:#ffffff4d}.hover\\\\:bg-brand-base:hover{background-color:var(--color-brand-base)}.hover\\\\:bg-brand-lightest:hover{background-color:var(--color-brand-lightest)}.hover\\\\:bg-ink-20:hover{--tw-bg-opacity:1;background-color:rgb(237 237 243/var(--tw-bg-opacity,1))}.hover\\\\:bg-ink-70:hover{--tw-bg-opacity:1;background-color:rgb(119 118 122/var(--tw-bg-opacity,1))}.hover\\\\:bg-neutral-secondary:hover{background-color:var(--color-neutral-secondary)}.hover\\\\:bg-neutral-tertiary:hover{background-color:var(--color-neutral-tertiary)}.hover\\\\:bg-surface-tertiary:hover{background-color:var(--color-surface-tertiary)}.hover\\\\:bg-transparent:hover{background-color:transparent}.hover\\\\:fill-\\\\[url\\\\(\\\\#logo-gradient\\\\)\\\\]:hover{fill:url(#logo-gradient)}.hover\\\\:opacity-80:hover{opacity:.8}.hover\\\\:shadow-\\\\[0_6px_8px_2px_rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c \\\\.18\\\\)\\\\]:hover{--tw-shadow:0 6px 8px 2px rgba(0,0,0,.18);--tw-shadow-colored:0 6px 8px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\\\:brightness-90:hover{--tw-brightness:brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\\\:before\\\\:opacity-0:hover:before{content:var(--tw-content);opacity:0}.hover\\\\:before\\\\:opacity-100:hover:before{content:var(--tw-content);opacity:1}.focus\\\\:fill-\\\\[url\\\\(\\\\#logo-gradient\\\\)\\\\]:focus{fill:url(#logo-gradient)}.focus-visible\\\\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\\\\:outline:focus-visible{outline-style:solid}.focus-visible\\\\:outline-thick:focus-visible{outline-width:.125rem}.focus-visible\\\\:outline-offset-\\\\[0\\\\.125rem\\\\]:focus-visible{outline-offset:.125rem}.focus-visible\\\\:outline-\\\\[\\\\#ffc439\\\\]:focus-visible{outline-color:#ffc439}.focus-visible\\\\:outline-brand-base:focus-visible{outline-color:var(--color-brand-base)}.focus-visible\\\\:outline-brand-lightest:focus-visible{outline-color:var(--color-brand-lightest)}.focus-visible\\\\:outline-negative-lightest:focus-visible{outline-color:var(--color-negative-lightest)}.focus-visible\\\\:outline-positive-lightest:focus-visible{outline-color:var(--color-positive-lightest)}.focus-visible\\\\:outline-surface-secondary:focus-visible{outline-color:var(--color-surface-secondary)}.focus-visible\\\\:outline-warning-lightest:focus-visible{outline-color:var(--color-warning-lightest)}.active\\\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),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))}.active\\\\:fill-\\\\[url\\\\(\\\\#logo-gradient\\\\)\\\\]:active{fill:url(#logo-gradient)}.disabled\\\\:pointer-events-none:disabled{pointer-events:none}.disabled\\\\:opacity-30:disabled{opacity:.3}.disabled\\\\:opacity-80:disabled{opacity:.8}.group:hover .group-hover\\\\:border-neutral-primary{border-color:var(--color-neutral-primary)}.group:hover .group-hover\\\\:text-brand-darkest{color:var(--color-brand-darkest)}.group:hover .group-hover\\\\:text-brand-lighter{color:var(--color-brand-lighter)}.group:hover .group-hover\\\\:text-negative-darkest{color:var(--color-negative-darkest)}.group:hover .group-hover\\\\:text-positive-darker{color:var(--color-positive-darker)}.group:hover .group-hover\\\\:text-text-secondary{color:var(--color-text-secondary)}.group:hover .group-hover\\\\:text-text-tertiary{color:var(--color-text-tertiary)}@media (prefers-reduced-motion:reduce){.motion-reduce\\\\:scale-100{--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),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))}}@media not all and (min-width:768px){.max-md\\\\:h-\\\\[100dvh\\\\]{height:100dvh}}@media (min-width:768px){.md\\\\:top-0{top:0}.md\\\\:top-12{top:3rem}.md\\\\:mx-auto{margin-left:auto;margin-right:auto}.md\\\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\\\:w-\\\\[25rem\\\\]{width:25rem}.md\\\\:max-w-full{max-width:100%}.md\\\\:rounded-container{border-radius:var(--container-radius,1.75rem)}.md\\\\:shadow-\\\\[0px_12px_56px_rgba\\\\(119\\\\2c 118\\\\2c 122\\\\2c 0\\\\.15\\\\)\\\\]{--tw-shadow:0px 12px 56px hsla(255,2%,47%,.15);--tw-shadow-colored:0px 12px 56px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}.dark\\\\:border:where([data-color-mode=dark],[data-color-mode=dark] *){border-width:1px}.dark\\\\:border-solid:where([data-color-mode=dark],[data-color-mode=dark] *){border-style:solid}.dark\\\\:border-ink-70:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-border-opacity:1;border-color:rgb(119 118 122/var(--tw-border-opacity,1))}.dark\\\\:border-neutral-secondary:where([data-color-mode=dark],[data-color-mode=dark] *){border-color:var(--color-neutral-secondary)}.dark\\\\:bg-\\\\[\\\\#ffffff29\\\\]:where([data-color-mode=dark],[data-color-mode=dark] *){background-color:#ffffff29}.dark\\\\:bg-\\\\[rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c 0\\\\.7\\\\)\\\\]:where([data-color-mode=dark],[data-color-mode=dark] *){background-color:rgba(0,0,0,.7)}.dark\\\\:bg-paper:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\\\\:bg-slate-2:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(48 48 48/var(--tw-bg-opacity,1))}.dark\\\\:bg-slate-4:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(71 71 71/var(--tw-bg-opacity,1))}.dark\\\\:bg-surface-primary:where([data-color-mode=dark],[data-color-mode=dark] *){background-color:var(--color-surface-primary)}.dark\\\\:bg-surface-secondary:where([data-color-mode=dark],[data-color-mode=dark] *){background-color:var(--color-surface-secondary)}.dark\\\\:bg-surface-tertiary:where([data-color-mode=dark],[data-color-mode=dark] *){background-color:var(--color-surface-tertiary)}.dark\\\\:bg-text-secondary:where([data-color-mode=dark],[data-color-mode=dark] *){background-color:var(--color-text-secondary)}.dark\\\\:bg-gradient-to-r:where([data-color-mode=dark],[data-color-mode=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\\\\:from-transparent:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-gradient-from:transparent var(--tw-gradient-from-position);--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\\\:via-white\\\\/15:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.15) var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\\\\:to-transparent:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-gradient-to:transparent var(--tw-gradient-to-position)}.dark\\\\:fill-ink-70:where([data-color-mode=dark],[data-color-mode=dark] *){fill:#77767a}.dark\\\\:text-ink-70:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-text-opacity:1;color:rgb(119 118 122/var(--tw-text-opacity,1))}.dark\\\\:text-ink-90:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-text-opacity:1;color:rgb(24 23 26/var(--tw-text-opacity,1))}.dark\\\\:text-negative-base:where([data-color-mode=dark],[data-color-mode=dark] *){color:var(--color-negative-base)}.dark\\\\:mix-blend-normal:where([data-color-mode=dark],[data-color-mode=dark] *){mix-blend-mode:normal}.dark\\\\:before\\\\:bg-\\\\[linear-gradient\\\\(rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c 0\\\\.05\\\\)\\\\2c rgba\\\\(0\\\\2c 0\\\\2c 0\\\\2c 0\\\\.05\\\\)\\\\)\\\\]:where([data-color-mode=dark],[data-color-mode=dark] *):before{content:var(--tw-content);background-image:linear-gradient(rgba(0,0,0,.05),rgba(0,0,0,.05))}.dark\\\\:before\\\\:bg-\\\\[linear-gradient\\\\(rgba\\\\(255\\\\2c 255\\\\2c 255\\\\2c 0\\\\.05\\\\)\\\\2c rgba\\\\(255\\\\2c 255\\\\2c 255\\\\2c 0\\\\.05\\\\)\\\\)\\\\]:where([data-color-mode=dark],[data-color-mode=dark] *):before{content:var(--tw-content);background-image:linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,.05))}.dark\\\\:hover\\\\:border-ink-50:hover:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-border-opacity:1;border-color:rgb(182 180 186/var(--tw-border-opacity,1))}.dark\\\\:hover\\\\:bg-slate-1:hover:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(37 37 37/var(--tw-bg-opacity,1))}.dark\\\\:hover\\\\:bg-slate-4:hover:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(71 71 71/var(--tw-bg-opacity,1))}.dark\\\\:hover\\\\:bg-transparent:hover:where([data-color-mode=dark],[data-color-mode=dark] *){background-color:transparent}.group:hover .dark\\\\:group-hover\\\\:text-brand-lighter:where([data-color-mode=dark],[data-color-mode=dark] *){color:var(--color-brand-lighter)}.group:hover .dark\\\\:group-hover\\\\:text-negative-lighter:where([data-color-mode=dark],[data-color-mode=dark] *){color:var(--color-negative-lighter)}.group:hover .dark\\\\:group-hover\\\\:text-positive-darker:where([data-color-mode=dark],[data-color-mode=dark] *){color:var(--color-positive-darker)}.group:hover .dark\\\\:group-hover\\\\:text-text-secondary:where([data-color-mode=dark],[data-color-mode=dark] *){color:var(--color-text-secondary)}@media (min-width:768px){.md\\\\:dark\\\\:border:where([data-color-mode=dark],[data-color-mode=dark] *){border-width:1px}.md\\\\:dark\\\\:border-solid:where([data-color-mode=dark],[data-color-mode=dark] *){border-style:solid}.md\\\\:dark\\\\:border-neutral-secondary:where([data-color-mode=dark],[data-color-mode=dark] *){border-color:var(--color-neutral-secondary)}.md\\\\:dark\\\\:shadow-none:where([data-color-mode=dark],[data-color-mode=dark] *){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}.\\\\[\\\\&\\\\:\\\\:-webkit-scrollbar-track\\\\]\\\\:bg-transparent::-webkit-scrollbar-track,.\\\\[\\\\&\\\\:\\\\:-webkit-scrollbar\\\\]\\\\:bg-transparent::-webkit-scrollbar{background-color:transparent}.\\\\[\\\\&\\\\>\\\\*\\\\:first-child\\\\]\\\\:min-w-\\\\[2rem\\\\]>:first-child,.\\\\[\\\\&\\\\>\\\\*\\\\:last-child\\\\]\\\\:min-w-\\\\[2rem\\\\]>:last-child{min-width:2rem}@media(min-width:769px){.\\\\[\\\\@media\\\\(min-width\\\\:769px\\\\)\\\\]\\\\:pt-\\\\[15vh\\\\]{padding-top:15vh}}',document.head.appendChild(e),rf=!0}(),v&&Zs().fetchConfig().then(e=>{C(e.theme),E(2!==e.theme.customBrandingType),b(!1)}).catch(e=>{console.error("Failed to fetch config:",e),b(!1)})},[]),s(()=>(Zs().setAccountChangedCallbacks(f,p),()=>Zs().setAccountChangedCallbacks(void 0,void 0)),[f,p]),s(()=>{if(!$)return;(async()=>{try{const e="dark"===$.themeColor?"dark":"light",{textColor:t,buttonColor:r,buttonRadius:n,containerRadius:o,backgroundColor:a,neutralColor:i}=$;document.documentElement.setAttribute("data-color-mode",e),t&&y("text",t),n&&w("button",n),o&&w("container",o),a&&y("surface",a),i&&y("neutral",i),r&&y("brand",r),m?.()}catch(e){console.error("Error setting client theme",e)}})()},[$]);const k=o.useRef(t);if(s(()=>{!t&&k.current&&g({type:"GO_TO_LOGIN"}),t&&!k.current&&g({type:"GO_TO_LOGIN"}),k.current=t},[t,g]),!t)return null;const N="modal"===e,_=e=>{i&&e.target===e.currentTarget&&r&&r()};if(v)return null;const P=o.createElement(tc,{wallets:l,enableFarcaster:d,onSuccess:u,onError:p,onClose:r,closeOnSuccess:n},o.createElement(L,{config:Zs().wagmiConfig},o.createElement(M,{client:tf},o.createElement("div",{id:"magic-widget-container"},o.createElement(nf,{state:h,dispatch:g,showFooterLogo:x,isModal:N})))));return N?o.createElement("div",{style:of,className:"[@media(min-width:769px)]:pt-[15vh]",onClick:_},o.createElement("div",{style:af},P)):P}export{Bs as MAGIC_WIDGET_PROVIDER,lf as MagicWidget,Js as OAuthProvider,Xs as ThirdPartyWallets,Ys as WalletKitExtension,Zs as getExtensionInstance};
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from"react";import a,{forwardRef as o,useMemo as i,createElement as l,useState as d,useRef as s,useCallback as c,useContext as u,useEffect as v,useReducer as f,createContext as p,Children as g,cloneElement as h,useLayoutEffect as m,useImperativeHandle as b,isValidElement as y}from"react";import C,{flushSync as $}from"react-dom";import{useConnect as w,useAccount as x,useDisconnect as E,useSignMessage as k,useChainId as L,WagmiProvider as S}from"wagmi";import{QueryClient as I,QueryClientProvider as M}from"@tanstack/react-query";import{Extension as P,MagicRPCError as T,createPromiEvent as _}from"@magic-sdk/provider";import{getAccount as N,reconnect as O,getConnectorClient as A,watchAccount as R,signMessage as F}from"@wagmi/core";import{WagmiAdapter as D}from"@reown/appkit-adapter-wagmi";import{mainnet as j,sepolia as B}from"@reown/appkit/networks";import{toHex as V}from"viem";import{EthereumProvider as H}from"@walletconnect/ethereum-provider";import{createAppKit as z}from"@reown/appkit";function W(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}function U(e){return Object.fromEntries(Object.entries(e??{}).filter(([e,t])=>void 0!==t))}function G(e){return String.fromCharCode(e+(e>25?39:97))}function Y(e){return function(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=G(t%52)+r;return G(t%52)+r}(function(e,t){let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e}(5381,e)>>>0)}var Z=/\s*!(important)?/i;function q(e){return"string"==typeof e?e.replaceAll(" ","_"):e}var K=e=>{const t=new Map;return(...r)=>{const n=JSON.stringify(r);if(t.has(n))return t.get(n);const a=e(...r);return t.set(n,a),a}};function X(...e){return e.filter(Boolean).reduce((e,t)=>(Object.keys(t).forEach(r=>{const n=e[r],a=t[r];W(n)&&W(a)?e[r]=X(n,a):e[r]=a}),e),{})}var Q=e=>null!=e;function J(e,t,r={}){const{stop:n,getKey:a}=r;return function e(r,o=[]){if(W(r)||Array.isArray(r)){const i={};for(const[l,d]of Object.entries(r)){const s=a?.(l,d)??l,c=[...o,s];if(n?.(r,c))return t(r,o);const u=e(d,c);Q(u)&&(i[s]=u)}return i}return t(r,o)}(e)}function ee(e,t,r=!0){const{utility:n,conditions:a}=t,{hasShorthand:o,resolveShorthand:i}=n;return J(e,e=>{return Array.isArray(e)?(t=e,r=a.breakpoints.keys,t.reduce((e,t,n)=>{const a=r[n];return null!=t&&(e[a]=t),e},{})):e;var t,r},{stop:e=>Array.isArray(e),getKey:r?e=>o?i(e):e:void 0})}var te={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}};var re=/([A-Z])/g,ne=/^ms-/,ae=K(e=>e.startsWith("--")?e:e.replace(re,"-$1").replace(ne,"-ms-").toLowerCase()),oe=new RegExp(`^(${["min","max","clamp","calc"].join("|")})\\(.*\\)`),ie=`(?:${"cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%".split(",").join("|")})`,le=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${ie}$`),de={map:function(e,t){return Array.isArray(e)?e.map(e=>t(e)):W(e)?J(e,e=>t(e)):t(e)},isCssFunction:e=>"string"==typeof e&&oe.test(e),isCssVar:e=>"string"==typeof e&&/^var\(--.+\)$/.test(e),isCssUnit:e=>"string"==typeof e&&le.test(e)},se=(e,t)=>{if(!e.defaultValues)return t;const r="function"==typeof e.defaultValues?e.defaultValues(t):e.defaultValues;return Object.assign({},r,U(t))},ce=(e,t)=>e.filter(e=>e.css[t]).map(e=>({...e,css:e.css[t]}));function ue(e,...t){const r=Object.getOwnPropertyDescriptors(e),n=Object.keys(r),a=e=>{const t={};for(let n=0;n<e.length;n++){const a=e[n];r[a]&&(Object.defineProperty(t,a,r[a]),delete r[a])}return t};return t.map(e=>a(Array.isArray(e)?e:n.filter(e))).concat(a(n))}var ve=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function fe(e){return ve.includes(e)?e.replace("html","").toLowerCase():e}function pe(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[fe(e),t]))}pe.keys=ve;const ge=new Set("_light,_dark,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,base".split(","));function he(e){return ge.has(e)||/^@|&|&$/.test(e)}const me=/^_/,be=/&|@/;const ye=new Map,Ce=new Map;"aspectRatio:aspect,boxDecorationBreak:decoration,zIndex:z,boxSizing:box,objectPosition:object,objectFit:object,overscrollBehavior:overscroll,overscrollBehaviorX:overscroll-x,overscrollBehaviorY:overscroll-y,position:pos/1,top:top,left:left,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,inset:inset,insetBlockEnd:inset-b,insetBlockStart:inset-t,insetInlineEnd:end/insetEnd/1,insetInlineStart:start/insetStart/1,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:basis,flex:flex,flexDirection:flex/flexDir,flexGrow:grow,flexShrink:shrink,gridTemplateColumns:grid-cols,gridTemplateRows:grid-rows,gridColumn:col-span,gridRow:row-span,gridColumnStart:col-start,gridColumnEnd:col-end,gridAutoFlow:grid-flow,gridAutoColumns:auto-cols,gridAutoRows:auto-rows,gap:gap,gridGap:gap,gridRowGap:gap-x,gridColumnGap:gap-y,rowGap:gap-x,columnGap:gap-y,justifyContent:justify,alignContent:content,alignItems:items,alignSelf:self,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pb,paddingBlockStart:pt,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mb,marginBlockStart:mt,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,outlineWidth:ring/ringWidth,outlineColor:ring/ringColor,outline:ring/1,outlineOffset:ring/ringOffset,divideX:divide-x,divideY:divide-y,divideColor:divide,divideStyle:divide,width:w/1,inlineSize:w,minWidth:min-w/minW,minInlineSize:min-w,maxWidth:max-w/maxW,maxInlineSize:max-w,height:h/1,blockSize:h,minHeight:min-h/minH,minBlockSize:min-h,maxHeight:max-h/maxH,maxBlockSize:max-b,color:text,fontFamily:font,fontSize:fs,fontWeight:font,fontSmoothing:smoothing,fontVariantNumeric:numeric,letterSpacing:tracking,lineHeight:leading,textAlign:text,textDecoration:text-decor,textDecorationColor:text-decor,textEmphasisColor:text-emphasis,textDecorationStyle:decoration,textDecorationThickness:decoration,textUnderlineOffset:underline-offset,textTransform:text,textIndent:indent,textShadow:text-shadow,textShadowColor:text-shadow/textShadowColor,textOverflow:text,verticalAlign:align,wordBreak:break,textWrap:text,truncate:truncate,lineClamp:clamp,listStyleType:list,listStylePosition:list,listStyleImage:list-img,backgroundPosition:bg/bgPosition,backgroundPositionX:bg-x/bgPositionX,backgroundPositionY:bg-y/bgPositionY,backgroundAttachment:bg/bgAttachment,backgroundClip:bg-clip/bgClip,background:bg/1,backgroundColor:bg/bgColor,backgroundOrigin:bg-origin/bgOrigin,backgroundImage:bg-img/bgImage,backgroundRepeat:bg-repeat/bgRepeat,backgroundBlendMode:bg-blend/bgBlendMode,backgroundSize:bg/bgSize,backgroundGradient:bg-gradient/bgGradient,textGradient:text-gradient,gradientFrom:from,gradientTo:to,gradientVia:via,borderRadius:rounded/1,borderTopLeftRadius:rounded-tl/roundedTopLeft,borderTopRightRadius:rounded-tr/roundedTopRight,borderBottomRightRadius:rounded-br/roundedBottomRight,borderBottomLeftRadius:rounded-bl/roundedBottomLeft,borderTopRadius:rounded-t/roundedTop,borderRightRadius:rounded-r/roundedRight,borderBottomRadius:rounded-b/roundedBottom,borderLeftRadius:rounded-l/roundedLeft,borderStartStartRadius:rounded-ss/roundedStartStart,borderStartEndRadius:rounded-se/roundedStartEnd,borderStartRadius:rounded-s/roundedStart,borderEndStartRadius:rounded-es/roundedEndStart,borderEndEndRadius:rounded-ee/roundedEndEnd,borderEndRadius:rounded-e/roundedEnd,border:border,borderWidth:border-w,borderTopWidth:border-tw,borderLeftWidth:border-lw,borderRightWidth:border-rw,borderBottomWidth:border-bw,borderColor:border,borderInline:border-x/borderX,borderInlineWidth:border-x/borderXWidth,borderInlineColor:border-x/borderXColor,borderBlock:border-y/borderY,borderBlockWidth:border-y/borderYWidth,borderBlockColor:border-y/borderYColor,borderLeft:border-l,borderLeftColor:border-l,borderInlineStart:border-s/borderStart,borderInlineStartWidth:border-s/borderStartWidth,borderInlineStartColor:border-s/borderStartColor,borderRight:border-r,borderRightColor:border-r,borderInlineEnd:border-e/borderEnd,borderInlineEndWidth:border-e/borderEndWidth,borderInlineEndColor:border-e/borderEndColor,borderTop:border-t,borderTopColor:border-t,borderBottom:border-b,borderBottomColor:border-b,borderBlockEnd:border-be,borderBlockEndColor:border-be,borderBlockStart:border-bs,borderBlockStartColor:border-bs,boxShadow:shadow/1,boxShadowColor:shadow/shadowColor,mixBlendMode:mix-blend,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:backdrop,backdropBlur:backdrop-blur,backdropBrightness:backdrop-brightness,backdropContrast:backdrop-contrast,backdropGrayscale:backdrop-grayscale,backdropHueRotate:backdrop-hue-rotate,backdropInvert:backdrop-invert,backdropOpacity:backdrop-opacity,backdropSaturate:backdrop-saturate,backdropSepia:backdrop-sepia,borderCollapse:border,borderSpacing:border-spacing,borderSpacingX:border-spacing-x,borderSpacingY:border-spacing-y,tableLayout:table,transitionTimingFunction:ease,transitionDelay:delay,transitionDuration:duration,transitionProperty:transition-prop,transition:transition,animation:animation,animationName:animation-name,animationDelay:animation-delay,transformOrigin:origin,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,accentColor:accent,caretColor:caret,scrollBehavior:scroll,scrollbar:scrollbar,scrollMargin:scroll-m,scrollMarginLeft:scroll-ml,scrollMarginRight:scroll-mr,scrollMarginTop:scroll-mt,scrollMarginBottom:scroll-mb,scrollMarginBlock:scroll-my/scrollMarginY,scrollMarginBlockEnd:scroll-mb,scrollMarginBlockStart:scroll-mt,scrollMarginInline:scroll-mx/scrollMarginX,scrollMarginInlineEnd:scroll-me,scrollMarginInlineStart:scroll-ms,scrollPadding:scroll-p,scrollPaddingBlock:scroll-pb/scrollPaddingY,scrollPaddingBlockStart:scroll-pt,scrollPaddingBlockEnd:scroll-pb,scrollPaddingInline:scroll-px/scrollPaddingX,scrollPaddingInlineEnd:scroll-pe,scrollPaddingInlineStart:scroll-ps,scrollPaddingLeft:scroll-pl,scrollPaddingRight:scroll-pr,scrollPaddingTop:scroll-pt,scrollPaddingBottom:scroll-pb,scrollSnapAlign:snap,scrollSnapStop:snap,scrollSnapType:snap,scrollSnapStrictness:strictness,scrollSnapMargin:snap-m,scrollSnapMarginTop:snap-mt,scrollSnapMarginBottom:snap-mb,scrollSnapMarginLeft:snap-ml,scrollSnapMarginRight:snap-mr,touchAction:touch,userSelect:select,fill:fill,stroke:stroke,strokeWidth:stroke-w,srOnly:sr,debug:debug,appearance:appearance,backfaceVisibility:backface,clipPath:clip-path,hyphens:hyphens,mask:mask,maskImage:mask-image,maskSize:mask-size,textSizeAdjust:text-size-adjust,container:cq,containerName:cq-name,containerType:cq-type,textStyle:textStyle".split(",").forEach(e=>{const[t,r]=e.split(":"),[n,...a]=r.split("/");ye.set(t,n),a.length&&a.forEach(e=>{Ce.set("1"===e?n:e,t)})});const $e=e=>Ce.get(e)||e,we={conditions:{shift:function(e){return e.sort((e,t)=>{const r=he(e),n=he(t);return r&&!n?1:!r&&n?-1:0})},finalize:function(e){return e.map(e=>ge.has(e)?e.replace(me,""):be.test(e)?`[${q(e.trim())}]`:e)},breakpoints:{keys:["base","sm","md","lg","xl","2xl"]}},utility:{transform:(e,t)=>{const r=$e(e);return{className:`${ye.get(r)||ae(r)}_${q(t)}`}},hasShorthand:!0,toHash:(e,t)=>t(e.join(":")),resolveShorthand:$e}},xe=function(e){const{utility:t,conditions:r=te}=e,n=(e,n)=>{let a;{const i=[...r.finalize(e),n];o=t.toHash(i,Y),a=[t.prefix,o].filter(Boolean).join("-")}var o;return a};return K(({base:a,...o}={})=>{const i=ee(Object.assign(o,a),e),l=new Set;return J(i,(e,a)=>{const o=function(e){return"string"==typeof e&&Z.test(e)}(e);if(null==e)return;const[i,...d]=r.shift(a),s=function(e){return e.slice().filter(e=>!(e=>"base"===e)(e))}(d),c=t.transform(i,function(e){return"string"==typeof e?e.replace(Z,"").trim():e}((e=>"string"==typeof e?e.replaceAll(/[\n\s]+/g," "):e)(e)));let u=n(s,c.className);o&&(u=`${u}!`),l.add(u)}),Array.from(l).join(" ")})}(we),Ee=(...e)=>xe(ke(...e));Ee.raw=(...e)=>ke(...e);const{mergeCss:ke}=function(e){function t(t){const r=function(...e){return e.filter(e=>W(e)&&Object.keys(U(e)).length>0)}(...t);return 1===r.length?r:r.map(t=>ee(t,e))}return{mergeCss:K(function(...e){return X(...t(e))}),assignCss:function(...e){return Object.assign({},...t(e))}}}(we);function Le(){let e,t="",r=0;for(;r<arguments.length;)(e=arguments[r++])&&"string"==typeof e&&(t&&(t+=" "),t+=e);return t}const Se=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function Ie(e){const{base:t,variants:r,defaultVariants:n,compoundVariants:a}=Se(e);function o(e={}){const o={...n,...U(e)};let i={...t};for(const[e,t]of Object.entries(o))r[e]?.[t]&&(i=ke(i,r[e][t]));const l=function(e,t){let r={};return e.forEach(e=>{Object.entries(e).every(([e,r])=>{if("css"===e)return!0;return(Array.isArray(r)?r:[r]).some(r=>t[e]===r)})&&(r=ke(r,e.css))}),r}(a,o);return ke(i,l)}const i=Object.keys(r);const l=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(K(function(e){return Ee(o(e))}),{__cva__:!0,variantMap:l,variantKeys:i,raw:o,config:e,merge:function(e){const o=Se(e.config),i=((...e)=>e.filter(Boolean).reduce((e,t)=>Array.from(new Set([...e,...t])),[]))(e.variantKeys,Object.keys(r));return Ie({base:ke(t,o.base),variants:Object.fromEntries(i.map(e=>[e,ke(r[e],o.variants[e])])),defaultVariants:X(n,o.defaultVariants),compoundVariants:[...a,...o.compoundVariants]})},splitVariantProps:function(e){return ue(e,i)}})}const Me=(e,t)=>e+"__"+t;function Pe(e){const t=Object.entries(((e={})=>{const t=t=>({className:[e.className,t].filter(Boolean).join("__"),base:e.base?.[t]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?ce(e.compoundVariants,t):[]}),r=(e.slots??[]).map(e=>[e,t(e)]);for(const[t,n]of Object.entries(e.variants??{}))for(const[e,a]of Object.entries(n))r.forEach(([r,n])=>{n.variants[t]??={},n.variants[t][e]=a[r]??{}});return Object.fromEntries(r)})(e)).map(([e,t])=>[e,Ie(t)]);const r=e.variants??{},n=Object.keys(r);const a=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(K(function(r){const n=t.map(([t,n])=>[t,Le(n(r),e.className&&Me(e.className,t))]);return Object.fromEntries(n)}),{__cva__:!1,raw:function(e){const r=t.map(([t,r])=>[t,r.raw(e)]);return Object.fromEntries(r)},variantMap:a,variantKeys:n,splitVariantProps:function(e){return ue(e,n)}})}var Te="css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,insetInline,insetBlock,inset,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontWeight,fontSmoothing,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFrom,gradientTo,gradientVia,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationDelay,transformOrigin,scale,scaleX,scaleY,translate,translateX,translateY,accentColor,caretColor,scrollBehavior,scrollbar,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,touchAction,userSelect,fill,stroke,strokeWidth,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,colorPalette,_light,_dark,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,textStyle".split(","),_e="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect".split(",").concat(Te),Ne=new Map(_e.map(e=>[e,!0])),Oe=/&|@/,Ae=K(e=>Ne.has(e)||e.startsWith("--")||Oe.test(e));const Re=(e,t)=>!t.includes(e)&&!Ae(e);function Fe(e,t={},r={}){const n=t.__cva__||t.__recipe__?t:Ie(t),a=r.shouldForwardProp||Re,d=e=>a(e,n.variantKeys),s=Object.assign(r.dataAttr&&t.__name__?{"data-recipe":t.__name__}:{},r.defaultProps),c=((e,t)=>{if(e&&!t)return e;if(!e&&t)return t;if(e.__cva__&&t.__cva__||e.__recipe__&&t.__recipe__)return e.merge(t);const r=new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");throw TypeError.captureStackTrace?.(r),r})(e.__cva__,n),u=((e,t)=>e.__shouldForwardProps__&&t?r=>e.__shouldForwardProps__(r)&&t(r):t)(e,d),v=e.__base__||e,f=o(function(e,r){const{as:n=v,children:a,...o}=e,d=i(()=>Object.assign({},s,o),[o]),[f,p,g,h,m]=i(()=>ue(d,pe.keys,u,c.variantKeys,Ae),[d]);const b=t.__recipe__?function(){const{css:e,...t}=h,r=c.__getCompoundVariantCss__?.(g);return Le(c(g,!1),Ee(r,t,e),d.className)}:function(){const{css:e,...t}=h,r=c.raw(g);return Le(Ee(r,t,e),d.className)};return l(n,{ref:r,...p,...m,...pe(f),className:b()},d.children??a)}),p="string"==typeof(g=v)?g:g?.displayName||g?.name||"Component";var g;return f.displayName=`styled.${p}`,f.__cva__=c,f.__base__=v,f.__shouldForwardProps__=d,f}function De(){const e=new Map;return new Proxy(Fe,{apply:(e,t,r)=>Fe(...r),get:(t,r)=>(e.has(r)||e.set(r,Fe(r)),e.get(r))})}const je=De(),Be={transform:e=>e},Ve=o(function(e,t){const[r,n]=ue(e,[]),a={ref:t,...((e={})=>{const t=se(Be,e);return Be.transform(t,de)})(r),...n};return l(je.div,a)}),He={transform(e){const{direction:t,align:r,justify:n,wrap:a,basis:o,grow:i,shrink:l,...d}=e;return{display:"flex",flexDirection:t,alignItems:r,justifyContent:n,flexWrap:a,flexBasis:o,flexGrow:i,flexShrink:l,...d}}},ze=(e={})=>{const t=se(He,e);return He.transform(t,de)},We=e=>Ee(ze(e));We.raw=ze;const Ue=o(function(e,t){const[r,n]=ue(e,["align","justify","direction","wrap","basis","grow","shrink"]),a={ref:t,...ze(r),...n};return l(je.div,a)}),Ge={transform(e){const{align:t,justify:r,direction:n,gap:a,...o}=e;return{display:"flex",flexDirection:n,alignItems:t,justifyContent:r,gap:a,...o}},defaultValues:{direction:"column",gap:"10px"}},Ye=o(function(e,t){const[r,n]=ue(e,["align","justify","direction","gap"]),a={ref:t,...((e={})=>{const t=se(Ge,e);return Ge.transform(t,de)})(r),...n};return l(je.div,a)}),Ze={transform(e){const{justify:t,gap:r,...n}=e;return{display:"flex",alignItems:"center",justifyContent:t,gap:r,flexDirection:"column",...n}},defaultValues:{gap:"10px"}},qe=(e={})=>{const t=se(Ze,e);return Ze.transform(t,de)},Ke=e=>Ee(qe(e));Ke.raw=qe;const Xe=o(function(e,t){const[r,n]=ue(e,["justify","gap"]),a={ref:t,...qe(r),...n};return l(je.div,a)}),Qe={transform(e){const{justify:t,gap:r,...n}=e;return{display:"flex",alignItems:"center",justifyContent:t,gap:r,flexDirection:"row",...n}},defaultValues:{gap:"10px"}},Je=o(function(e,t){const[r,n]=ue(e,["justify","gap"]),a={ref:t,...((e={})=>{const t=se(Qe,e);return Qe.transform(t,de)})(r),...n};return l(je.div,a)}),et={transform(e,{map:t}){const{size:r,...n}=e;return{alignSelf:"stretch",justifySelf:"stretch",flex:t(r,e=>null==e?"1":`0 0 ${e}`),...n}}},tt=o(function(e,t){const[r,n]=ue(e,["size"]),a={ref:t,...((e={})=>{const t=se(et,e);return et.transform(t,de)})(r),...n};return l(je.div,a)}),rt={transform(e){const{size:t,...r}=e;return{display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 auto",width:t,height:t,borderRadius:"9999px",...r}}},nt=(e={})=>{const t=se(rt,e);return rt.transform(t,de)},at=e=>Ee(nt(e));at.raw=nt;const ot=o(function(e,t){const[r,n]=ue(e,["size"]),a={ref:t,...nt(r),...n};return l(je.div,a)}),it={transform(e){const{inline:t,...r}=e;return{display:t?"inline-flex":"flex",alignItems:"center",justifyContent:"center",...r}}},lt=o(function(e,t){const[r,n]=ue(e,["inline"]),a={ref:t,...((e={})=>{const t=se(it,e);return it.transform(t,de)})(r),...n};return l(je.div,a)}),dt={transform(e,{map:t}){const{orientation:r,thickness:n,color:a,...o}=e;return{"--thickness":n,width:t(r,e=>"vertical"===e?void 0:"100%"),height:t(r,e=>"horizontal"===e?void 0:"100%"),borderBlockEndWidth:t(r,e=>"horizontal"===e?"var(--thickness)":void 0),borderInlineEndWidth:t(r,e=>"vertical"===e?"var(--thickness)":void 0),borderColor:a,...o}},defaultValues:{orientation:"horizontal",thickness:"1px"}},st=o(function(e,t){const[r,n]=ue(e,["orientation","thickness","color"]),a={ref:t,...((e={})=>{const t=se(dt,e);return dt.transform(t,de)})(r),...n};return l(je.div,a)}),ct={"aspectRatios.square":{value:"1 / 1",variable:"var(--cUJial)"},"aspectRatios.landscape":{value:"4 / 3",variable:"var(--joSgrv)"},"aspectRatios.portrait":{value:"3 / 4",variable:"var(--dXjFHz)"},"aspectRatios.wide":{value:"16 / 9",variable:"var(--gqpqIn)"},"aspectRatios.ultrawide":{value:"18 / 5",variable:"var(--lixcAJ)"},"aspectRatios.golden":{value:"1.618 / 1",variable:"var(--hSWVDT)"},"borders.none":{value:"none",variable:"var(--dzOvWn)"},"easings.default":{value:"cubic-bezier(0.4, 0, 0.2, 1)",variable:"var(--drrWcF)"},"easings.linear":{value:"linear",variable:"var(--hgfxJf)"},"easings.in":{value:"cubic-bezier(0.4, 0, 1, 1)",variable:"var(--hCLxzh)"},"easings.out":{value:"cubic-bezier(0, 0, 0.2, 1)",variable:"var(--byCBno)"},"easings.in-out":{value:"cubic-bezier(0.4, 0, 0.2, 1)",variable:"var(--gSAVQW)"},"durations.fastest":{value:"50ms",variable:"var(--fuVfvZ)"},"durations.faster":{value:"100ms",variable:"var(--fVBMec)"},"durations.fast":{value:"150ms",variable:"var(--mUhz)"},"durations.normal":{value:"200ms",variable:"var(--cWTXGg)"},"durations.slow":{value:"300ms",variable:"var(--cifMdM)"},"durations.slower":{value:"400ms",variable:"var(--goNNlj)"},"durations.slowest":{value:"500ms",variable:"var(--bPXfWW)"},"fontWeights.thin":{value:"100",variable:"var(--dRPRGd)"},"fontWeights.extralight":{value:"200",variable:"var(--dooANa)"},"fontWeights.light":{value:"300",variable:"var(--fVSZDc)"},"fontWeights.normal":{value:"400",variable:"var(--llFanx)"},"fontWeights.medium":{value:"500",variable:"var(--leEsKL)"},"fontWeights.semibold":{value:"600",variable:"var(--hmvyHR)"},"fontWeights.bold":{value:"700",variable:"var(--ghWdwL)"},"fontWeights.extrabold":{value:"800",variable:"var(--janwPd)"},"fontWeights.black":{value:"900",variable:"var(--bvnjIx)"},"lineHeights.none":{value:"1",variable:"var(--ekeMrS)"},"lineHeights.tight":{value:"1.25",variable:"var(--jyTpIu)"},"lineHeights.snug":{value:"1.375",variable:"var(--ipEwfb)"},"lineHeights.normal":{value:"1.5",variable:"var(--lomeBD)"},"lineHeights.relaxed":{value:"1.625",variable:"var(--kwMYUX)"},"lineHeights.loose":{value:"2",variable:"var(--dVGecO)"},"fonts.sans":{value:'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"',variable:"var(--dywXPJ)"},"fonts.serif":{value:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',variable:"var(--guQdxN)"},"fonts.mono":{value:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',variable:"var(--gxQaAd)"},"letterSpacings.tighter":{value:"-0.05em",variable:"var(--jrseCf)"},"letterSpacings.tight":{value:"-0.025em",variable:"var(--glKTKc)"},"letterSpacings.normal":{value:"0em",variable:"var(--knaPyh)"},"letterSpacings.wide":{value:"0.025em",variable:"var(--jwdARF)"},"letterSpacings.wider":{value:"0.05em",variable:"var(--eUSVTv)"},"letterSpacings.widest":{value:"0.1em",variable:"var(--lhSeXO)"},"fontSizes.2xs":{value:"0.5rem",variable:"var(--kWjDjq)"},"fontSizes.xs":{value:"0.75rem",variable:"var(--loLyxA)"},"fontSizes.sm":{value:"0.875rem",variable:"var(--eRgJXV)"},"fontSizes.md":{value:"1rem",variable:"var(--daFrau)"},"fontSizes.lg":{value:"1.125rem",variable:"var(--gKFLFQ)"},"fontSizes.xl":{value:"1.25rem",variable:"var(--gFqSQX)"},"fontSizes.2xl":{value:"1.5rem",variable:"var(--dllMvh)"},"fontSizes.3xl":{value:"1.875rem",variable:"var(--jaXqkI)"},"fontSizes.4xl":{value:"2.25rem",variable:"var(--cLogVb)"},"fontSizes.5xl":{value:"3rem",variable:"var(--izMrAu)"},"fontSizes.6xl":{value:"3.75rem",variable:"var(--hdlyfR)"},"fontSizes.7xl":{value:"4.5rem",variable:"var(--bDBsww)"},"fontSizes.8xl":{value:"6rem",variable:"var(--fwhTbD)"},"fontSizes.9xl":{value:"8rem",variable:"var(--lkGdGW)"},"shadows.xs":{value:"0 1px 2px 0 rgb(0 0 0 / 0.05)",variable:"var(--bUWovs)"},"shadows.sm":{value:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",variable:"var(--cDhNnp)"},"shadows.md":{value:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",variable:"var(--jMKUKK)"},"shadows.lg":{value:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",variable:"var(--kNVcRA)"},"shadows.xl":{value:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",variable:"var(--bnVgij)"},"shadows.2xl":{value:"0 25px 50px -12px rgb(0 0 0 / 0.25)",variable:"var(--IghlV)"},"shadows.inner":{value:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",variable:"var(--gmhFEB)"},"blurs.sm":{value:"4px",variable:"var(--aZLOC)"},"blurs.base":{value:"8px",variable:"var(--jDYzax)"},"blurs.md":{value:"12px",variable:"var(--kMMDaR)"},"blurs.lg":{value:"16px",variable:"var(--dyIDQb)"},"blurs.xl":{value:"24px",variable:"var(--TtVDs)"},"blurs.2xl":{value:"40px",variable:"var(--btncja)"},"blurs.3xl":{value:"64px",variable:"var(--esAhmv)"},"spacing.0":{value:"0rem",variable:"var(--fcTUxn)"},"spacing.1":{value:"0.25rem",variable:"var(--dacYEG)"},"spacing.2":{value:"0.5rem",variable:"var(--ebuyxV)"},"spacing.3":{value:"0.75rem",variable:"var(--bYDCFo)"},"spacing.4":{value:"1rem",variable:"var(--hIimNX)"},"spacing.5":{value:"1.25rem",variable:"var(--fFrqVq)"},"spacing.6":{value:"1.5rem",variable:"var(--gGIQOF)"},"spacing.7":{value:"1.75rem",variable:"var(--eDRUVY)"},"spacing.8":{value:"2rem",variable:"var(--flZesP)"},"spacing.9":{value:"2.25rem",variable:"var(--djiiAi)"},"spacing.10":{value:"2.5rem",variable:"var(--ieMJEa)"},"spacing.11":{value:"2.75rem",variable:"var(--cBFxYr)"},"spacing.12":{value:"3rem",variable:"var(--uyqLg)"},"spacing.14":{value:"3.5rem",variable:"var(--hXmVPi)"},"spacing.16":{value:"4rem",variable:"var(--mYCWo)"},"spacing.20":{value:"5rem",variable:"var(--jgejxp)"},"spacing.24":{value:"6rem",variable:"var(--iYEvIx)"},"spacing.28":{value:"7rem",variable:"var(--dzpWeZ)"},"spacing.32":{value:"8rem",variable:"var(--fifqnK)"},"spacing.36":{value:"9rem",variable:"var(--faFCyS)"},"spacing.40":{value:"10rem",variable:"var(--bxwoov)"},"spacing.44":{value:"11rem",variable:"var(--huPzrf)"},"spacing.48":{value:"12rem",variable:"var(--hgdKvb)"},"spacing.52":{value:"13rem",variable:"var(--cZMJbQ)"},"spacing.56":{value:"14rem",variable:"var(--iXfUeA)"},"spacing.60":{value:"15rem",variable:"var(--vWSpd)"},"spacing.64":{value:"16rem",variable:"var(--gtqdrN)"},"spacing.72":{value:"18rem",variable:"var(--hNtIEu)"},"spacing.80":{value:"20rem",variable:"var(--kqIPsj)"},"spacing.96":{value:"24rem",variable:"var(--wdMRQ)"},"spacing.0.5":{value:"0.125rem",variable:"var(--gEfgCY)"},"spacing.1.5":{value:"0.375rem",variable:"var(--jJIQbV)"},"spacing.2.5":{value:"0.625rem",variable:"var(--cqwGG)"},"spacing.3.5":{value:"0.875rem",variable:"var(--dhUgfD)"},"animations.spin":{value:"spin 1s linear infinite",variable:"var(--bJeTGz)"},"animations.ping":{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",variable:"var(--cxTetH)"},"animations.pulse":{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",variable:"var(--jjLJjo)"},"animations.bounce":{value:"bounce 1s infinite",variable:"var(--eUTuJH)"},"colors.current":{value:"currentColor",variable:"var(--bLinLB)"},"colors.black":{value:"#000",variable:"var(--qLIrn)"},"colors.white":{value:"#fff",variable:"var(--RiClf)"},"colors.transparent":{value:"rgb(0 0 0 / 0)",variable:"var(--edNtiq)"},"colors.rose.50":{value:"#fff1f2",variable:"var(--cQacUT)"},"colors.rose.100":{value:"#ffe4e6",variable:"var(--fFtaKH)"},"colors.rose.200":{value:"#fecdd3",variable:"var(--eUoFZM)"},"colors.rose.300":{value:"#fda4af",variable:"var(--bPMUxN)"},"colors.rose.400":{value:"#fb7185",variable:"var(--bvZVli)"},"colors.rose.500":{value:"#f43f5e",variable:"var(--jGTTif)"},"colors.rose.600":{value:"#e11d48",variable:"var(--iVPyxk)"},"colors.rose.700":{value:"#be123c",variable:"var(--fRnMVl)"},"colors.rose.800":{value:"#9f1239",variable:"var(--hxzBoW)"},"colors.rose.900":{value:"#881337",variable:"var(--esXPMX)"},"colors.rose.950":{value:"#4c0519",variable:"var(--epiLsK)"},"colors.pink.50":{value:"#fdf2f8",variable:"var(--hPYfGc)"},"colors.pink.100":{value:"#fce7f3",variable:"var(--ioAkJk)"},"colors.pink.200":{value:"#fbcfe8",variable:"var(--eyVWNz)"},"colors.pink.300":{value:"#f9a8d4",variable:"var(--nXIqK)"},"colors.pink.400":{value:"#f472b6",variable:"var(--hGgStN)"},"colors.pink.500":{value:"#ec4899",variable:"var(--dviDWY)"},"colors.pink.600":{value:"#db2777",variable:"var(--kUZZAj)"},"colors.pink.700":{value:"#be185d",variable:"var(--gKbLdu)"},"colors.pink.800":{value:"#9d174d",variable:"var(--UhnuV)"},"colors.pink.900":{value:"#831843",variable:"var(--hYEIxc)"},"colors.pink.950":{value:"#500724",variable:"var(--dPgAHx)"},"colors.fuchsia.50":{value:"#fdf4ff",variable:"var(--kpTESD)"},"colors.fuchsia.100":{value:"#fae8ff",variable:"var(--jfJgr)"},"colors.fuchsia.200":{value:"#f5d0fe",variable:"var(--gZeVto)"},"colors.fuchsia.300":{value:"#f0abfc",variable:"var(--gfHpEZ)"},"colors.fuchsia.400":{value:"#e879f9",variable:"var(--dSTUoK)"},"colors.fuchsia.500":{value:"#d946ef",variable:"var(--cZwoAv)"},"colors.fuchsia.600":{value:"#c026d3",variable:"var(--jPvANs)"},"colors.fuchsia.700":{value:"#a21caf",variable:"var(--iVXUZd)"},"colors.fuchsia.800":{value:"#86198f",variable:"var(--hYKnEO)"},"colors.fuchsia.900":{value:"#701a75",variable:"var(--hfmHQz)"},"colors.fuchsia.950":{value:"#4a044e",variable:"var(--cYPdae)"},"colors.purple.50":{value:"#faf5ff",variable:"var(--ksTgfC)"},"colors.purple.100":{value:"#f3e8ff",variable:"var(--iCdJRO)"},"colors.purple.200":{value:"#e9d5ff",variable:"var(--dWAXWh)"},"colors.purple.300":{value:"#d8b4fe",variable:"var(--jcWlLI)"},"colors.purple.400":{value:"#c084fc",variable:"var(--eLlnzT)"},"colors.purple.500":{value:"#a855f7",variable:"var(--jRGBpu)"},"colors.purple.600":{value:"#9333ea",variable:"var(--fmdPtN)"},"colors.purple.700":{value:"#7e22ce",variable:"var(--kszdjo)"},"colors.purple.800":{value:"#6b21a8",variable:"var(--kMigIv)"},"colors.purple.900":{value:"#581c87",variable:"var(--eDhKZa)"},"colors.purple.950":{value:"#3b0764",variable:"var(--eadxYH)"},"colors.violet.50":{value:"#f5f3ff",variable:"var(--elZfLV)"},"colors.violet.100":{value:"#ede9fe",variable:"var(--jcWAkV)"},"colors.violet.200":{value:"#ddd6fe",variable:"var(--gHfMHa)"},"colors.violet.300":{value:"#c4b5fd",variable:"var(--jSzuYT)"},"colors.violet.400":{value:"#a78bfa",variable:"var(--jDVPUQ)"},"colors.violet.500":{value:"#8b5cf6",variable:"var(--bzTONN)"},"colors.violet.600":{value:"#7c3aed",variable:"var(--ktyKIO)"},"colors.violet.700":{value:"#6d28d9",variable:"var(--cpwJBL)"},"colors.violet.800":{value:"#5b21b6",variable:"var(--foWeJc)"},"colors.violet.900":{value:"#4c1d95",variable:"var(--iApNaV)"},"colors.violet.950":{value:"#2e1065",variable:"var(--cfTfyk)"},"colors.indigo.50":{value:"#eef2ff",variable:"var(--kbclAu)"},"colors.indigo.100":{value:"#e0e7ff",variable:"var(--gAzkHe)"},"colors.indigo.200":{value:"#c7d2fe",variable:"var(--gRHwoJ)"},"colors.indigo.300":{value:"#a5b4fc",variable:"var(--iYtjYI)"},"colors.indigo.400":{value:"#818cf8",variable:"var(--jCTsMf)"},"colors.indigo.500":{value:"#6366f1",variable:"var(--ujwXi)"},"colors.indigo.600":{value:"#4f46e5",variable:"var(--LrIEN)"},"colors.indigo.700":{value:"#4338ca",variable:"var(--cSdwoM)"},"colors.indigo.800":{value:"#3730a3",variable:"var(--irwviH)"},"colors.indigo.900":{value:"#312e81",variable:"var(--kyiiSG)"},"colors.indigo.950":{value:"#1e1b4b",variable:"var(--hgSANP)"},"colors.blue.50":{value:"#eff6ff",variable:"var(--glmLoi)"},"colors.blue.100":{value:"#dbeafe",variable:"var(--bYrJpO)"},"colors.blue.200":{value:"#bfdbfe",variable:"var(--hoTvPd)"},"colors.blue.300":{value:"#93c5fd",variable:"var(--bMEoOM)"},"colors.blue.400":{value:"#60a5fa",variable:"var(--hIEEwj)"},"colors.blue.500":{value:"#3b82f6",variable:"var(--cgpxvS)"},"colors.blue.600":{value:"#2563eb",variable:"var(--hwRjVh)"},"colors.blue.700":{value:"#1d4ed8",variable:"var(--bUCcUQ)"},"colors.blue.800":{value:"#1e40af",variable:"var(--golFsv)"},"colors.blue.900":{value:"#1e3a8a",variable:"var(--LWyse)"},"colors.blue.950":{value:"#172554",variable:"var(--eJQij)"},"colors.cyan.50":{value:"#ecfeff",variable:"var(--dyXAhp)"},"colors.cyan.100":{value:"#cffafe",variable:"var(--eeWoox)"},"colors.cyan.200":{value:"#a5f3fc",variable:"var(--fnHbwe)"},"colors.cyan.300":{value:"#67e8f9",variable:"var(--cLmYYf)"},"colors.cyan.400":{value:"#22d3ee",variable:"var(--bpLSHw)"},"colors.cyan.500":{value:"#06b6d4",variable:"var(--kcNzIt)"},"colors.cyan.600":{value:"#0891b2",variable:"var(--llymQa)"},"colors.cyan.700":{value:"#0e7490",variable:"var(--iJeksb)"},"colors.cyan.800":{value:"#155e75",variable:"var(--jTKpqw)"},"colors.cyan.900":{value:"#164e63",variable:"var(--hrqmSx)"},"colors.cyan.950":{value:"#083344",variable:"var(--bcqAnE)"},"colors.teal.50":{value:"#f0fdfa",variable:"var(--jqQOis)"},"colors.teal.100":{value:"#ccfbf1",variable:"var(--hsCMHs)"},"colors.teal.200":{value:"#99f6e4",variable:"var(--jcJhxj)"},"colors.teal.300":{value:"#5eead4",variable:"var(--czjDVi)"},"colors.teal.400":{value:"#2dd4bf",variable:"var(--kfgCt)"},"colors.teal.500":{value:"#14b8a6",variable:"var(--eWbmzo)"},"colors.teal.600":{value:"#0d9488",variable:"var(--gGhHpf)"},"colors.teal.700":{value:"#0f766e",variable:"var(--cIdNe)"},"colors.teal.800":{value:"#115e59",variable:"var(--catTvB)"},"colors.teal.900":{value:"#134e4a",variable:"var(--gMpZsw)"},"colors.teal.950":{value:"#042f2e",variable:"var(--bnTNlF)"},"colors.emerald.50":{value:"#ecfdf5",variable:"var(--jVPfey)"},"colors.emerald.100":{value:"#d1fae5",variable:"var(--gSyYHy)"},"colors.emerald.200":{value:"#a7f3d0",variable:"var(--dOyJRJ)"},"colors.emerald.300":{value:"#6ee7b7",variable:"var(--jOMcLk)"},"colors.emerald.400":{value:"#34d399",variable:"var(--bLsBkr)"},"colors.emerald.500":{value:"#10b981",variable:"var(--hLFUdS)"},"colors.emerald.600":{value:"#059669",variable:"var(--eHFFod)"},"colors.emerald.700":{value:"#047857",variable:"var(--kHSYhE)"},"colors.emerald.800":{value:"#065f46",variable:"var(--iuBcgT)"},"colors.emerald.900":{value:"#064e3b",variable:"var(--dfsLBy)"},"colors.emerald.950":{value:"#022c22",variable:"var(--jJEloz)"},"colors.green.50":{value:"#f0fdf4",variable:"var(--hXozqf)"},"colors.green.100":{value:"#dcfce7",variable:"var(--iDDIAz)"},"colors.green.200":{value:"#bbf7d0",variable:"var(--khfuXU)"},"colors.green.300":{value:"#86efac",variable:"var(--hypAVx)"},"colors.green.400":{value:"#4ade80",variable:"var(--wGfza)"},"colors.green.500":{value:"#22c55e",variable:"var(--jdlUVz)"},"colors.green.600":{value:"#16a34a",variable:"var(--kGNHsU)"},"colors.green.700":{value:"#15803d",variable:"var(--hXXNqx)"},"colors.green.800":{value:"#166534",variable:"var(--bAQeLK)"},"colors.green.900":{value:"#14532d",variable:"var(--khvUij)"},"colors.green.950":{value:"#052e16",variable:"var(--cbdKOS)"},"colors.lime.50":{value:"#f7fee7",variable:"var(--dhEleJ)"},"colors.lime.100":{value:"#ecfccb",variable:"var(--gFFbyh)"},"colors.lime.200":{value:"#d9f99d",variable:"var(--fjFsBy)"},"colors.lime.300":{value:"#bef264",variable:"var(--cfdGZz)"},"colors.lime.400":{value:"#a3e635",variable:"var(--bxLPEk)"},"colors.lime.500":{value:"#84cc16",variable:"var(--jIFNBh)"},"colors.lime.600":{value:"#65a30d",variable:"var(--imGeEy)"},"colors.lime.700":{value:"#4d7c0f",variable:"var(--fietcz)"},"colors.lime.800":{value:"#3f6212",variable:"var(--crovfQ)"},"colors.lime.900":{value:"#365314",variable:"var(--kCitcN)"},"colors.lime.950":{value:"#1a2e05",variable:"var(--gEQkrg)"},"colors.yellow.50":{value:"#fefce8",variable:"var(--cLFWMs)"},"colors.yellow.100":{value:"#fef9c3",variable:"var(--kxGpio)"},"colors.yellow.200":{value:"#fef08a",variable:"var(--cbZZGT)"},"colors.yellow.300":{value:"#fde047",variable:"var(--fwcFBW)"},"colors.yellow.400":{value:"#facc15",variable:"var(--hUTJsd)"},"colors.yellow.500":{value:"#eab308",variable:"var(--loWpng)"},"colors.yellow.600":{value:"#ca8a04",variable:"var(--cTpZLL)"},"colors.yellow.700":{value:"#a16207",variable:"var(--gnsFGO)"},"colors.yellow.800":{value:"#854d0e",variable:"var(--ByZWN)"},"colors.yellow.900":{value:"#713f12",variable:"var(--dVBFRQ)"},"colors.yellow.950":{value:"#422006",variable:"var(--iLqZUR)"},"colors.amber.50":{value:"#fffbeb",variable:"var(--kVxzTd)"},"colors.amber.100":{value:"#fef3c7",variable:"var(--jZPQXp)"},"colors.amber.200":{value:"#fde68a",variable:"var(--hCWpXC)"},"colors.amber.300":{value:"#fcd34d",variable:"var(--bCKrrD)"},"colors.amber.400":{value:"#fbbf24",variable:"var(--wuHbc)"},"colors.amber.500":{value:"#f59e0b",variable:"var(--fLErTZ)"},"colors.amber.600":{value:"#d97706",variable:"var(--doKQUm)"},"colors.amber.700":{value:"#b45309",variable:"var(--iDUBNj)"},"colors.amber.800":{value:"#92400e",variable:"var(--iOnUJo)"},"colors.amber.900":{value:"#78350f",variable:"var(--cObWdp)"},"colors.amber.950":{value:"#451a03",variable:"var(--frxesg)"},"colors.orange.50":{value:"#fff7ed",variable:"var(--NQTLQ)"},"colors.orange.100":{value:"#ffedd5",variable:"var(--JsfmQ)"},"colors.orange.200":{value:"#fed7aa",variable:"var(--gBjjlD)"},"colors.orange.300":{value:"#fdba74",variable:"var(--QMCLK)"},"colors.orange.400":{value:"#fb923c",variable:"var(--ijESlZ)"},"colors.orange.500":{value:"#f97316",variable:"var(--czilMg)"},"colors.orange.600":{value:"#ea580c",variable:"var(--iqZpKT)"},"colors.orange.700":{value:"#c2410c",variable:"var(--cGCJla)"},"colors.orange.800":{value:"#9a3412",variable:"var(--dUhLNN)"},"colors.orange.900":{value:"#7c2d12",variable:"var(--jzgOMQ)"},"colors.orange.950":{value:"#431407",variable:"var(--igBpVl)"},"colors.red.50":{value:"#fef2f2",variable:"var(--bINrJX)"},"colors.red.100":{value:"#fee2e2",variable:"var(--fKgVwH)"},"colors.red.200":{value:"#fecaca",variable:"var(--bLdQLg)"},"colors.red.300":{value:"#fca5a5",variable:"var(--fMUQaR)"},"colors.red.400":{value:"#f87171",variable:"var(--hwCQam)"},"colors.red.500":{value:"#ef4444",variable:"var(--iYfRb)"},"colors.red.600":{value:"#dc2626",variable:"var(--hzqKEw)"},"colors.red.700":{value:"#b91c1c",variable:"var(--lMavl)"},"colors.red.800":{value:"#991b1b",variable:"var(--bLDcWa)"},"colors.red.900":{value:"#7f1d1d",variable:"var(--fNuclL)"},"colors.red.950":{value:"#450a0a",variable:"var(--jHDsLG)"},"colors.neutral.50":{value:"#fafafa",variable:"var(--kltIHN)"},"colors.neutral.100":{value:"#f5f5f5",variable:"var(--hzpwrB)"},"colors.neutral.200":{value:"#e5e5e5",variable:"var(--lbfZji)"},"colors.neutral.300":{value:"#d4d4d4",variable:"var(--fcfsVb)"},"colors.neutral.400":{value:"#a3a3a3",variable:"var(--kPKNfw)"},"colors.neutral.500":{value:"#737373",variable:"var(--eQKgRp)"},"colors.neutral.600":{value:"#525252",variable:"var(--isAJIW)"},"colors.neutral.700":{value:"#404040",variable:"var(--ctAduP)"},"colors.neutral.800":{value:"#262626",variable:"var(--bqFRBA)"},"colors.neutral.900":{value:"#171717",variable:"var(--gHaUMp)"},"colors.neutral.950":{value:"#0a0a0a",variable:"var(--fhFoEQ)"},"colors.stone.50":{value:"#fafaf9",variable:"var(--NNaBX)"},"colors.stone.100":{value:"#f5f5f4",variable:"var(--juQpUX)"},"colors.stone.200":{value:"#e7e5e4",variable:"var(--jjsRgY)"},"colors.stone.300":{value:"#d6d3d1",variable:"var(--hxarzx)"},"colors.stone.400":{value:"#a8a29e",variable:"var(--dmyqvy)"},"colors.stone.500":{value:"#78716c",variable:"var(--bAfQNX)"},"colors.stone.600":{value:"#57534e",variable:"var(--boIrZY)"},"colors.stone.700":{value:"#44403c",variable:"var(--kRLBRt)"},"colors.stone.800":{value:"#292524",variable:"var(--iKBpmW)"},"colors.stone.900":{value:"#1c1917",variable:"var(--gYiPFv)"},"colors.stone.950":{value:"#0c0a09",variable:"var(--kshUcS)"},"colors.zinc.50":{value:"#fafafa",variable:"var(--dhFdXS)"},"colors.zinc.100":{value:"#f4f4f5",variable:"var(--dGhjba)"},"colors.zinc.200":{value:"#e4e4e7",variable:"var(--efoVXJ)"},"colors.zinc.300":{value:"#d4d4d8",variable:"var(--ljOqfc)"},"colors.zinc.400":{value:"#a1a1aa",variable:"var(--cXLRGr)"},"colors.zinc.500":{value:"#71717a",variable:"var(--kcllNK)"},"colors.zinc.600":{value:"#52525b",variable:"var(--kBsYKt)"},"colors.zinc.700":{value:"#3f3f46",variable:"var(--gqwJsQ)"},"colors.zinc.800":{value:"#27272a",variable:"var(--ylgyn)"},"colors.zinc.900":{value:"#18181b",variable:"var(--hCKAFG)"},"colors.zinc.950":{value:"#09090b",variable:"var(--dtmsQb)"},"colors.gray.50":{value:"#f9fafb",variable:"var(--dcmCJN)"},"colors.gray.100":{value:"#f3f4f6",variable:"var(--ePJGsV)"},"colors.gray.200":{value:"#e5e7eb",variable:"var(--dnVpUm)"},"colors.gray.300":{value:"#d1d5db",variable:"var(--bMJKSL)"},"colors.gray.400":{value:"#9ca3af",variable:"var(--jSiOQk)"},"colors.gray.500":{value:"#6b7280",variable:"var(--iqXjOJ)"},"colors.gray.600":{value:"#4b5563",variable:"var(--gPiTqa)"},"colors.gray.700":{value:"#374151",variable:"var(--fnXooz)"},"colors.gray.800":{value:"#1f2937",variable:"var(--fKIyfA)"},"colors.gray.900":{value:"#111827",variable:"var(--ejwTdZ)"},"colors.gray.950":{value:"#030712",variable:"var(--jympbw)"},"colors.slate.0":{value:"#19191A",variable:"var(--oXohi)"},"colors.slate.1":{value:"#252525",variable:"var(--gyKIIT)"},"colors.slate.2":{value:"#303030",variable:"var(--eSphig)"},"colors.slate.3":{value:"#383838",variable:"var(--lccBJR)"},"colors.slate.4":{value:"#474747",variable:"var(--lfBdGG)"},"colors.slate.50":{value:"#f8fafc",variable:"var(--kcXOlL)"},"colors.slate.100":{value:"#f1f5f9",variable:"var(--kbRDfH)"},"colors.slate.200":{value:"#e2e8f0",variable:"var(--ivwbEU)"},"colors.slate.300":{value:"#cbd5e1",variable:"var(--dpNMHJ)"},"colors.slate.400":{value:"#94a3b8",variable:"var(--dtmoEy)"},"colors.slate.500":{value:"#64748b",variable:"var(--jCZJgj)"},"colors.slate.600":{value:"#475569",variable:"var(--hWEhFw)"},"colors.slate.700":{value:"#334155",variable:"var(--cQVSIl)"},"colors.slate.800":{value:"#1e293b",variable:"var(--hVLXiS)"},"colors.slate.900":{value:"#0f172a",variable:"var(--cQdIlH)"},"colors.slate.950":{value:"#020617",variable:"var(--iFDdka)"},"colors.ink.10":{value:"#F8F8FA",variable:"var(--izlnso)"},"colors.ink.20":{value:"#EDEDF3",variable:"var(--eRgqfH)"},"colors.ink.30":{value:"#E2E0E5",variable:"var(--KVTme)"},"colors.ink.40":{value:"#CCCAD0",variable:"var(--dkJQoR)"},"colors.ink.50":{value:"#B6B4BA",variable:"var(--ktVcUk)"},"colors.ink.60":{value:"#97959A",variable:"var(--gLQfHD)"},"colors.ink.70":{value:"#77767A",variable:"var(--cFFIOa)"},"colors.ink.80":{value:"#4E4D52",variable:"var(--cJEYlt)"},"colors.ink.90":{value:"#18171A",variable:"var(--jSQkQM)"},"colors.magic.10":{value:"#EDEBFF",variable:"var(--hLOWYd)"},"colors.magic.20":{value:"#CAC2FF",variable:"var(--bVhZHK)"},"colors.magic.30":{value:"#A799FF",variable:"var(--jYNVEH)"},"colors.magic.40":{value:"#8875FF",variable:"var(--emDeSE)"},"colors.magic.50":{value:"#6851FF",variable:"var(--aNrqF)"},"colors.magic.60":{value:"#5D40EA",variable:"var(--gzCdzi)"},"colors.magic.70":{value:"#522FD4",variable:"var(--dnMpXj)"},"colors.magic.80":{value:"#4421C3",variable:"var(--cLqlCI)"},"colors.magic.90":{value:"#3512B2",variable:"var(--kOWhzF)"},"colors.leaf.10":{value:"#E3FAF3",variable:"var(--dNokDG)"},"colors.leaf.20":{value:"#BAF5E3",variable:"var(--fIEsRl)"},"colors.leaf.30":{value:"#90F0D3",variable:"var(--kuAyOg)"},"colors.leaf.40":{value:"#48DEB1",variable:"var(--hUmnXD)"},"colors.leaf.50":{value:"#00CC8F",variable:"var(--bqMKvC)"},"colors.leaf.60":{value:"#00AA77",variable:"var(--dmcSJh)"},"colors.leaf.70":{value:"#00875F",variable:"var(--hXYYGc)"},"colors.leaf.80":{value:"#007753",variable:"var(--domHof)"},"colors.leaf.90":{value:"#006647",variable:"var(--iaiNla)"},"colors.ruby.10":{value:"#FFEAE5",variable:"var(--dDaZDc)"},"colors.ruby.20":{value:"#FFC3B3",variable:"var(--bYjnoT)"},"colors.ruby.30":{value:"#FF9B80",variable:"var(--jcIHwm)"},"colors.ruby.40":{value:"#FE7C58",variable:"var(--iuhUtx)"},"colors.ruby.50":{value:"#FC5C30",variable:"var(--ejlFbU)"},"colors.ruby.60":{value:"#E84718",variable:"var(--cEtSNL)"},"colors.ruby.70":{value:"#D43100",variable:"var(--jITmVe)"},"colors.ruby.80":{value:"#C12E02",variable:"var(--hhKBFJ)"},"colors.ruby.90":{value:"#AD2B03",variable:"var(--cWOmog)"},"colors.gold.10":{value:"#FCF4E5",variable:"var(--loKVxo)"},"colors.gold.20":{value:"#FEE5BD",variable:"var(--crbXrL)"},"colors.gold.30":{value:"#FFD594",variable:"var(--eXQnMG)"},"colors.gold.40":{value:"#EDBD72",variable:"var(--dYBcpd)"},"colors.gold.50":{value:"#DBA550",variable:"var(--gFpsJY)"},"colors.gold.60":{value:"#BF8832",variable:"var(--iXcedr)"},"colors.gold.70":{value:"#A36B14",variable:"var(--ouKZq)"},"colors.gold.80":{value:"#97630C",variable:"var(--kXQUUR)"},"colors.gold.90":{value:"#8A5A03",variable:"var(--cpjBQQ)"},"colors.sky.10":{value:"#EBF0FE",variable:"var(--dpZiSB)"},"colors.sky.20":{value:"#AFC4FF",variable:"var(--bZrrvu)"},"colors.sky.30":{value:"#7398FF",variable:"var(--cGNUcb)"},"colors.sky.40":{value:"#5482FB",variable:"var(--cGWcRs)"},"colors.sky.50":{value:"#346BF7",variable:"var(--dosFxZ)"},"colors.sky.60":{value:"#295EE7",variable:"var(--bXKOaS)"},"colors.sky.70":{value:"#1E50D6",variable:"var(--cFhqHz)"},"colors.sky.80":{value:"#1344C7",variable:"var(--cvyBYk)"},"colors.sky.90":{value:"#0737B8",variable:"var(--dcVeER)"},"colors.sky.100":{value:"#e0f2fe",variable:"var(--bMxFwZ)"},"colors.sky.200":{value:"#bae6fd",variable:"var(--vPNZS)"},"colors.sky.300":{value:"#7dd3fc",variable:"var(--bdmqGz)"},"colors.sky.400":{value:"#38bdf8",variable:"var(--bduzvQ)"},"colors.sky.500":{value:"#0ea5e9",variable:"var(--bKRccx)"},"colors.sky.600":{value:"#0284c7",variable:"var(--ujkFq)"},"colors.sky.700":{value:"#0369a1",variable:"var(--bbFNlX)"},"colors.sky.800":{value:"#075985",variable:"var(--RWYCI)"},"colors.sky.900":{value:"#0c4a6e",variable:"var(--bztBjp)"},"colors.sky.950":{value:"#082f49",variable:"var(--iNVpnc)"},"colors.chalk":{value:"#FFFFFF",variable:"var(--cemPJF)"},"colors.paper":{value:"#FFFFFF",variable:"var(--iTjmdu)"},"borderWidths.thin":{value:"0.0625rem",variable:"var(--fFEzoc)"},"borderWidths.medium":{value:"0.09375rem",variable:"var(--fCuVLy)"},"borderWidths.thick":{value:"0.125rem",variable:"var(--hiYFxW)"},"radii.xs":{value:"0.125rem",variable:"var(--ixNmpi)"},"radii.sm":{value:"0.25rem",variable:"var(--bewZvn)"},"radii.md":{value:"0.375rem",variable:"var(--kLOfAE)"},"radii.lg":{value:"0.5rem",variable:"var(--dxfumK)"},"radii.xl":{value:"0.75rem",variable:"var(--UXfgJ)"},"radii.2xl":{value:"1rem",variable:"var(--bphCwb)"},"radii.3xl":{value:"1.5rem",variable:"var(--eougbK)"},"radii.full":{value:"9999px",variable:"var(--kkkBVq)"},"radii.button":{value:"var(--button-radius, 9999px)",variable:"var(--cDRSmz)"},"radii.container":{value:"var(--container-radius, 1.75rem)",variable:"var(--insZoq)"},"radii.input":{value:"var(--input-radius, 0.5rem)",variable:"var(--hxxJkr)"},"sizes.0":{value:"0rem",variable:"var(--kTdGYg)"},"sizes.1":{value:"0.25rem",variable:"var(--cCUBeV)"},"sizes.2":{value:"0.5rem",variable:"var(--gsUKim)"},"sizes.3":{value:"0.75rem",variable:"var(--jshnNX)"},"sizes.4":{value:"1rem",variable:"var(--juMtMc)"},"sizes.5":{value:"1.25rem",variable:"var(--beDnSR)"},"sizes.6":{value:"1.5rem",variable:"var(--eUDwWi)"},"sizes.7":{value:"1.75rem",variable:"var(--hTQaBT)"},"sizes.8":{value:"2rem",variable:"var(--cAmzCM)"},"sizes.9":{value:"2.25rem",variable:"var(--fzzdix)"},"sizes.10":{value:"2.5rem",variable:"var(--dDnfaV)"},"sizes.11":{value:"2.75rem",variable:"var(--cpjPHA)"},"sizes.12":{value:"3rem",variable:"var(--ckODEv)"},"sizes.13":{value:"3.25rem",variable:"var(--WLola)"},"sizes.14":{value:"3.5rem",variable:"var(--hTmzdp)"},"sizes.15":{value:"3.75rem",variable:"var(--gFjjJU)"},"sizes.16":{value:"4rem",variable:"var(--gANXGP)"},"sizes.20":{value:"5rem",variable:"var(--htnoem)"},"sizes.24":{value:"6rem",variable:"var(--tQYHK)"},"sizes.28":{value:"7rem",variable:"var(--kcGldO)"},"sizes.32":{value:"8rem",variable:"var(--gMkTEx)"},"sizes.36":{value:"9rem",variable:"var(--lcknGR)"},"sizes.40":{value:"10rem",variable:"var(--kveXIc)"},"sizes.44":{value:"11rem",variable:"var(--gsriJI)"},"sizes.48":{value:"12rem",variable:"var(--bPcliI)"},"sizes.52":{value:"13rem",variable:"var(--Mxqsr)"},"sizes.56":{value:"14rem",variable:"var(--hZfkST)"},"sizes.60":{value:"15rem",variable:"var(--fUWaSi)"},"sizes.64":{value:"16rem",variable:"var(--bSilTO)"},"sizes.72":{value:"18rem",variable:"var(--fnTGst)"},"sizes.80":{value:"20rem",variable:"var(--dAFdyM)"},"sizes.96":{value:"24rem",variable:"var(--jxszKr)"},"sizes.0.5":{value:"0.125rem",variable:"var(--hghuKL)"},"sizes.1.5":{value:"0.375rem",variable:"var(--drtIxO)"},"sizes.2.5":{value:"0.625rem",variable:"var(--siblR)"},"sizes.3.5":{value:"0.875rem",variable:"var(--hSPYxQ)"},"sizes.xs":{value:"20rem",variable:"var(--izvCpj)"},"sizes.sm":{value:"24rem",variable:"var(--aTIGG)"},"sizes.md":{value:"28rem",variable:"var(--kMQJUV)"},"sizes.lg":{value:"32rem",variable:"var(--dyNKmL)"},"sizes.xl":{value:"36rem",variable:"var(--ToPgI)"},"sizes.2xl":{value:"42rem",variable:"var(--btoFLe)"},"sizes.3xl":{value:"48rem",variable:"var(--esBjqP)"},"sizes.4xl":{value:"56rem",variable:"var(--hrOPNc)"},"sizes.5xl":{value:"64rem",variable:"var(--krbtsN)"},"sizes.6xl":{value:"72rem",variable:"var(--cRFSXi)"},"sizes.7xl":{value:"80rem",variable:"var(--fQSwCT)"},"sizes.8xl":{value:"90rem",variable:"var(--iQceEA)"},"sizes.prose":{value:"65ch",variable:"var(--jAesVz)"},"sizes.full":{value:"100%",variable:"var(--khWApH)"},"sizes.min":{value:"min-content",variable:"var(--eOXrSu)"},"sizes.max":{value:"max-content",variable:"var(--jNBRbM)"},"sizes.fit":{value:"fit-content",variable:"var(--UhpHH)"},"sizes.breakpoint-sm":{value:"640px",variable:"var(--eomHOU)"},"sizes.breakpoint-md":{value:"768px",variable:"var(--iujnmj)"},"sizes.breakpoint-lg":{value:"1024px",variable:"var(--gThSgZ)"},"sizes.breakpoint-xl":{value:"1280px",variable:"var(--cssArG)"},"sizes.breakpoint-2xl":{value:"1536px",variable:"var(--jESPPc)"},"zIndex.max":{value:"2147483647",variable:"var(--exvVve)"},"breakpoints.sm":{value:"640px",variable:"var(--ikokJA)"},"breakpoints.md":{value:"768px",variable:"var(--kSvAmr)"},"breakpoints.lg":{value:"1024px",variable:"var(--uwdhN)"},"breakpoints.xl":{value:"1280px",variable:"var(--eyfDzy)"},"breakpoints.2xl":{value:"1536px",variable:"var(--dgHGKE)"},"colors.surface.primary":{value:"var(--jlmaOs)",variable:"var(--jlmaOs)"},"colors.surface.secondary":{value:"var(--Iycdi)",variable:"var(--Iycdi)"},"colors.surface.tertiary":{value:"var(--crPUBo)",variable:"var(--crPUBo)"},"colors.surface.quaternary":{value:"var(--kJiqPO)",variable:"var(--kJiqPO)"},"colors.text.primary":{value:"var(--iagzVE)",variable:"var(--iagzVE)"},"colors.text.secondary":{value:"var(--YyYdq)",variable:"var(--YyYdq)"},"colors.text.tertiary":{value:"var(--kFAOBM)",variable:"var(--kFAOBM)"},"colors.text.quaternary":{value:"var(--iodyUC)",variable:"var(--iodyUC)"},"colors.neutral.primary":{value:"var(--DLYOY)",variable:"var(--DLYOY)"},"colors.neutral.secondary":{value:"var(--gfUEye)",variable:"var(--gfUEye)"},"colors.neutral.tertiary":{value:"var(--qsPVo)",variable:"var(--qsPVo)"},"colors.neutral.quaternary":{value:"var(--kyjnqS)",variable:"var(--kyjnqS)"},"colors.brand.lightest":{value:"var(--iAjuTO)",variable:"var(--iAjuTO)"},"colors.brand.lighter":{value:"var(--gzHfkH)",variable:"var(--gzHfkH)"},"colors.brand.base":{value:"var(--gBHQLb)",variable:"var(--gBHQLb)"},"colors.brand.darker":{value:"var(--etZyR)",variable:"var(--etZyR)"},"colors.brand.darkest":{value:"var(--enVPNY)",variable:"var(--enVPNY)"},"colors.positive.lightest":{value:"var(--itfeCm)",variable:"var(--itfeCm)"},"colors.positive.lighter":{value:"var(--qkXv)",variable:"var(--qkXv)"},"colors.positive.base":{value:"var(--gHzsmL)",variable:"var(--gHzsmL)"},"colors.positive.darker":{value:"var(--cOyFst)",variable:"var(--cOyFst)"},"colors.positive.darkest":{value:"var(--fKbyps)",variable:"var(--fKbyps)"},"colors.negative.lightest":{value:"var(--dxaFjW)",variable:"var(--dxaFjW)"},"colors.negative.lighter":{value:"var(--dnTPVf)",variable:"var(--dnTPVf)"},"colors.negative.base":{value:"var(--bWuoqD)",variable:"var(--bWuoqD)"},"colors.negative.darker":{value:"var(--iqIoUR)",variable:"var(--iqIoUR)"},"colors.negative.darkest":{value:"var(--iZlvjY)",variable:"var(--iZlvjY)"},"colors.warning.lightest":{value:"var(--ldafrz)",variable:"var(--ldafrz)"},"colors.warning.lighter":{value:"var(--leQkZS)",variable:"var(--leQkZS)"},"colors.warning.base":{value:"var(--jmTbXW)",variable:"var(--jmTbXW)"},"colors.warning.darker":{value:"var(--dLLYUY)",variable:"var(--dLLYUY)"},"colors.warning.darkest":{value:"var(--dZIprB)",variable:"var(--dZIprB)"},"colors.dedicated.lightest":{value:"var(--gaBiDO)",variable:"var(--gaBiDO)"},"colors.dedicated.lighter":{value:"var(--fxHMpn)",variable:"var(--fxHMpn)"},"colors.dedicated.base":{value:"var(--fQFmqL)",variable:"var(--fQFmqL)"},"colors.dedicated.darker":{value:"var(--dUMcYZ)",variable:"var(--dUMcYZ)"},"colors.dedicated.darkest":{value:"var(--dntrJc)",variable:"var(--dntrJc)"},"spacing.-1":{value:"calc(var(--dacYEG) * -1)",variable:"var(--dacYEG)"},"spacing.-2":{value:"calc(var(--ebuyxV) * -1)",variable:"var(--ebuyxV)"},"spacing.-3":{value:"calc(var(--bYDCFo) * -1)",variable:"var(--bYDCFo)"},"spacing.-4":{value:"calc(var(--hIimNX) * -1)",variable:"var(--hIimNX)"},"spacing.-5":{value:"calc(var(--fFrqVq) * -1)",variable:"var(--fFrqVq)"},"spacing.-6":{value:"calc(var(--gGIQOF) * -1)",variable:"var(--gGIQOF)"},"spacing.-7":{value:"calc(var(--eDRUVY) * -1)",variable:"var(--eDRUVY)"},"spacing.-8":{value:"calc(var(--flZesP) * -1)",variable:"var(--flZesP)"},"spacing.-9":{value:"calc(var(--djiiAi) * -1)",variable:"var(--djiiAi)"},"spacing.-10":{value:"calc(var(--ieMJEa) * -1)",variable:"var(--ieMJEa)"},"spacing.-11":{value:"calc(var(--cBFxYr) * -1)",variable:"var(--cBFxYr)"},"spacing.-12":{value:"calc(var(--uyqLg) * -1)",variable:"var(--uyqLg)"},"spacing.-14":{value:"calc(var(--hXmVPi) * -1)",variable:"var(--hXmVPi)"},"spacing.-16":{value:"calc(var(--mYCWo) * -1)",variable:"var(--mYCWo)"},"spacing.-20":{value:"calc(var(--jgejxp) * -1)",variable:"var(--jgejxp)"},"spacing.-24":{value:"calc(var(--iYEvIx) * -1)",variable:"var(--iYEvIx)"},"spacing.-28":{value:"calc(var(--dzpWeZ) * -1)",variable:"var(--dzpWeZ)"},"spacing.-32":{value:"calc(var(--fifqnK) * -1)",variable:"var(--fifqnK)"},"spacing.-36":{value:"calc(var(--faFCyS) * -1)",variable:"var(--faFCyS)"},"spacing.-40":{value:"calc(var(--bxwoov) * -1)",variable:"var(--bxwoov)"},"spacing.-44":{value:"calc(var(--huPzrf) * -1)",variable:"var(--huPzrf)"},"spacing.-48":{value:"calc(var(--hgdKvb) * -1)",variable:"var(--hgdKvb)"},"spacing.-52":{value:"calc(var(--cZMJbQ) * -1)",variable:"var(--cZMJbQ)"},"spacing.-56":{value:"calc(var(--iXfUeA) * -1)",variable:"var(--iXfUeA)"},"spacing.-60":{value:"calc(var(--vWSpd) * -1)",variable:"var(--vWSpd)"},"spacing.-64":{value:"calc(var(--gtqdrN) * -1)",variable:"var(--gtqdrN)"},"spacing.-72":{value:"calc(var(--hNtIEu) * -1)",variable:"var(--hNtIEu)"},"spacing.-80":{value:"calc(var(--kqIPsj) * -1)",variable:"var(--kqIPsj)"},"spacing.-96":{value:"calc(var(--wdMRQ) * -1)",variable:"var(--wdMRQ)"},"spacing.-0.5":{value:"calc(var(--gEfgCY) * -1)",variable:"var(--gEfgCY)"},"spacing.-1.5":{value:"calc(var(--jJIQbV) * -1)",variable:"var(--jJIQbV)"},"spacing.-2.5":{value:"calc(var(--cqwGG) * -1)",variable:"var(--cqwGG)"},"spacing.-3.5":{value:"calc(var(--dhUgfD) * -1)",variable:"var(--dhUgfD)"},"colors.colorPalette":{value:"var(--idUrcU)",variable:"var(--idUrcU)"},"colors.colorPalette.50":{value:"var(--bgowFI)",variable:"var(--bgowFI)"},"colors.colorPalette.100":{value:"var(--iSScQY)",variable:"var(--iSScQY)"},"colors.colorPalette.200":{value:"var(--bdPmBD)",variable:"var(--bdPmBD)"},"colors.colorPalette.300":{value:"var(--EuecW)",variable:"var(--EuecW)"},"colors.colorPalette.400":{value:"var(--dIdJaV)",variable:"var(--dIdJaV)"},"colors.colorPalette.500":{value:"var(--iOGEjQ)",variable:"var(--iOGEjQ)"},"colors.colorPalette.600":{value:"var(--ZDNUv)",variable:"var(--ZDNUv)"},"colors.colorPalette.700":{value:"var(--AiFvO)",variable:"var(--AiFvO)"},"colors.colorPalette.800":{value:"var(--iCIPjV)",variable:"var(--iCIPjV)"},"colors.colorPalette.900":{value:"var(--ctQaTU)",variable:"var(--ctQaTU)"},"colors.colorPalette.950":{value:"var(--eHAyIp)",variable:"var(--eHAyIp)"},"colors.colorPalette.0":{value:"var(--fWGYml)",variable:"var(--fWGYml)"},"colors.colorPalette.1":{value:"var(--ldjTvg)",variable:"var(--ldjTvg)"},"colors.colorPalette.2":{value:"var(--dohdfL)",variable:"var(--dohdfL)"},"colors.colorPalette.3":{value:"var(--cOLUHe)",variable:"var(--cOLUHe)"},"colors.colorPalette.4":{value:"var(--fSvzFd)",variable:"var(--fSvzFd)"},"colors.colorPalette.10":{value:"var(--bkzVmQ)",variable:"var(--bkzVmQ)"},"colors.colorPalette.20":{value:"var(--eKSOwr)",variable:"var(--eKSOwr)"},"colors.colorPalette.30":{value:"var(--elxFXK)",variable:"var(--elxFXK)"},"colors.colorPalette.40":{value:"var(--hphkVJ)",variable:"var(--hphkVJ)"},"colors.colorPalette.60":{value:"var(--eGHpPj)",variable:"var(--eGHpPj)"},"colors.colorPalette.70":{value:"var(--ehmhqC)",variable:"var(--ehmhqC)"},"colors.colorPalette.80":{value:"var(--UqHFN)",variable:"var(--UqHFN)"},"colors.colorPalette.90":{value:"var(--gaTCOI)",variable:"var(--gaTCOI)"},"colors.colorPalette.primary":{value:"var(--gbCbhR)",variable:"var(--gbCbhR)"},"colors.colorPalette.secondary":{value:"var(--dDofdL)",variable:"var(--dDofdL)"},"colors.colorPalette.tertiary":{value:"var(--fMuFOV)",variable:"var(--fMuFOV)"},"colors.colorPalette.quaternary":{value:"var(--eTxsRn)",variable:"var(--eTxsRn)"},"colors.colorPalette.lightest":{value:"var(--cKrWrJ)",variable:"var(--cKrWrJ)"},"colors.colorPalette.lighter":{value:"var(--jxGibo)",variable:"var(--jxGibo)"},"colors.colorPalette.base":{value:"var(--fEVzA)",variable:"var(--fEVzA)"},"colors.colorPalette.darker":{value:"var(--bHCqTC)",variable:"var(--bHCqTC)"},"colors.colorPalette.darkest":{value:"var(--iPnjZj)",variable:"var(--iPnjZj)"}};function ut(e,t){return ct[e]?.value||t}ut.var=function(e,t){return ct[e]?.variable||t};const vt="undefined"!=typeof document?a.useLayoutEffect:()=>{};const ft={prefix:String(Math.round(1e10*Math.random())),current:0},pt=a.createContext(ft),gt=a.createContext(!1);let ht=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),mt=new WeakMap;const bt="function"==typeof a.useId?function(e){let t=a.useId(),[r]=d(wt()),n=r||"test"===process.env.NODE_ENV?"react-aria":`react-aria${ft.prefix}`;return e||`${n}-${t}`}:function(e){let t=u(pt);t!==ft||ht||"production"===process.env.NODE_ENV||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=function(e=!1){let t=u(pt),r=s(null);if(null===r.current&&!e){var n,o;let e=null===(o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(n=o.ReactCurrentOwner)||void 0===n?void 0:n.current;if(e){let r=mt.get(e);null==r?mt.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,mt.delete(e))}r.current=++t.current}return r.current}(!!e),n=t===ft&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`};function yt(){return!1}function Ct(){return!0}function $t(e){return()=>{}}function wt(){return"function"==typeof a.useSyncExternalStore?a.useSyncExternalStore($t,yt,Ct):u(gt)}let xt,Et=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),kt=new Map;function Lt(e){let[t,r]=d(e),n=s(null),a=bt(t),o=s(null);if(xt&&xt.register(o,a),Et){const e=kt.get(a);e&&!e.includes(n)?e.push(n):kt.set(a,[n])}return vt(()=>{let e=a;return()=>{xt&&xt.unregister(o),kt.delete(e)}},[a]),v(()=>{let e=n.current;return e&&r(e),()=>{e&&(n.current=null)}}),a}function St(e,t){if(e===t)return e;let r=kt.get(e);if(r)return r.forEach(e=>e.current=t),t;let n=kt.get(t);return n?(n.forEach(t=>t.current=e),e):t}function It(e=[]){let t=Lt(),[r,n]=function(e){let[t,r]=d(e),n=s(t),a=s(null),o=s(()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:n.current===e.value?o.current():r(e.value)});vt(()=>{n.current=t,a.current&&o.current()});let i=c(e=>{a.current=e(n.current),o.current()},[o]);return[t,i]}(t),a=c(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return vt(a,[t,a,...e]),r}function Mt(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}"undefined"!=typeof FinalizationRegistry&&(xt=new FinalizationRegistry(e=>{kt.delete(e)}));const Pt=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Tt=e=>{if(e&&"window"in e&&e.window===e)return e;return Pt(e).defaultView||window};function _t(e,t){return!(!t||!e)&&e.contains(t)}const Nt=(e=document)=>e.activeElement;function Ot(e){return e.target}function At(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=At(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=At(e))&&(n&&(n+=" "),n+=t);return n}function Ft(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],a=n[e];"function"==typeof r&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Mt(r,a):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof a?"id"===e&&r&&a?t.id=St(r,a):t[e]=void 0!==a?a:r:t[e]=Rt(r,a)}}return t}const Dt=new Set(["id"]),jt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Bt=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Vt=new Set(["dir","lang","hidden","inert","translate"]),Ht=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),zt=/^(data-.*)$/;function Wt(e,t={}){let{labelable:r,isLink:n,global:a,events:o=a,propNames:i}=t,l={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Dt.has(t)||r&&jt.has(t)||n&&Bt.has(t)||a&&Vt.has(t)||o&&(Ht.has(t)||t.endsWith("Capture")&&Ht.has(t.slice(0,-7)))||(null==i?void 0:i.has(t))||zt.test(t))&&(l[t]=e[t]);return l}function Ut(e){if(function(){if(null==Gt){Gt=!1;try{document.createElement("div").focus({get preventScroll(){return Gt=!0,!0}})}catch{}}return Gt}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft});return r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}let Gt=null;function Yt(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let r=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Zt(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function qt(e){if("test"===process.env.NODE_ENV)return e;let t=null;return()=>(null==t&&(t=e()),t)}const Kt=qt(function(){return Zt(/^Mac/i)}),Xt=qt(function(){return Zt(/^iPhone/i)}),Qt=qt(function(){return Zt(/^iPad/i)||Kt()&&navigator.maxTouchPoints>1}),Jt=qt(function(){return Xt()||Qt()});qt(function(){return Kt()||Jt()});const er=qt(function(){return Yt(/AppleWebKit/i)&&!tr()}),tr=qt(function(){return Yt(/Chrome/i)}),rr=qt(function(){return Yt(/Android/i)}),nr=qt(function(){return Yt(/Firefox/i)});function ar(e,t,r=!0){var n,a;let{metaKey:o,ctrlKey:i,altKey:l,shiftKey:d}=t;nr()&&(null===(a=window.event)||void 0===a||null===(n=a.type)||void 0===n?void 0:n.startsWith("key"))&&"_blank"===e.target&&(Kt()?o=!0:i=!0);let s=er()&&Kt()&&!Qt()&&"test"!==process.env.NODE_ENV?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:i,altKey:l,shiftKey:d}):new MouseEvent("click",{metaKey:o,ctrlKey:i,altKey:l,shiftKey:d,detail:1,bubbles:!0,cancelable:!0});ar.isOpening=r,Ut(e),e.dispatchEvent(s),ar.isOpening=!1}ar.isOpening=!1;let or=new Map,ir=new Set;function lr(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=r=>{if(!e(r)||!r.target)return;let n=or.get(r.target);if(n&&(n.delete(r.propertyName),0===n.size&&(r.target.removeEventListener("transitioncancel",t),or.delete(r.target)),0===or.size)){for(let e of ir)e();ir.clear()}};document.body.addEventListener("transitionrun",r=>{if(!e(r)||!r.target)return;let n=or.get(r.target);n||(n=new Set,or.set(r.target,n),r.target.addEventListener("transitioncancel",t,{once:!0})),n.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function dr(e){requestAnimationFrame(()=>{!function(){for(const[e]of or)"isConnected"in e&&!e.isConnected&&or.delete(e)}(),0===or.size?e():ir.add(e)})}function sr(){let e=s(new Map),t=c((t,r,n,a)=>{let o=(null==a?void 0:a.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:a}),t.addEventListener(r,o,a)},[]),r=c((t,r,n,a)=>{var o;let i=(null===(o=e.current.get(n))||void 0===o?void 0:o.fn)||n;t.removeEventListener(r,i,a),e.current.delete(n)},[]),n=c(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return v(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}var cr;"undefined"!=typeof document&&("loading"!==document.readyState?lr():document.addEventListener("DOMContentLoaded",lr));const ur=null!==(cr=a.useInsertionEffect)&&void 0!==cr?cr:vt;function vr(e){const t=s(null);return ur(()=>{t.current=e},[e]),c((...e)=>{const r=t.current;return null==r?void 0:r(...e)},[])}function fr(e){const{ref:t,box:r,onResize:n}=e;let a=vr(n);v(()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)};{const t=new window.ResizeObserver(e=>{e.length&&a()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}},[t,r])}function pr(e,t){vt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function gr(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function hr(e,t){let r=e;for(gr(r,t)&&(r=r.parentElement);r&&!gr(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}const mr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function br(e){return e instanceof HTMLInputElement&&!mr.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function yr(e){return!(""!==e.pointerType||!e.isTrusted)||(rr()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Cr(e,t,r){let n=vr(()=>{r&&r(t)});v(()=>{var t;let r=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==r||r.addEventListener("reset",n),()=>{null==r||r.removeEventListener("reset",n)}},[e])}const $r="undefined"!=typeof Element&&"checkVisibility"in Element.prototype;function wr(e,t){return $r?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){const t=Tt(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a="none"!==r&&"hidden"!==n&&"collapse"!==n;if(a){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:r,visibility:n}=t(e);a="none"!==r&&"hidden"!==n&&"collapse"!==n}return a}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||wr(e.parentElement,e))}const xr=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Er=xr.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xr.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const kr=xr.join(':not([hidden]):not([tabindex="-1"]),');function Lr(e){return e.matches(Er)&&wr(e)&&!Ir(e)}function Sr(e){return e.matches(kr)&&wr(e)&&!Ir(e)}function Ir(e){let t=e;for(;null!=t;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Mr;const Pr="undefined"!=typeof document?null!==(Mr=a.useInsertionEffect)&&void 0!==Mr?Mr:a.useLayoutEffect:()=>{};function Tr(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function _r(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Nr(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Or(e){let t=s({isFocused:!1,observer:null});return vt(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),c(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,a=r=>{if(t.current.isFocused=!1,n.disabled){let t=_r(r);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ar=!1;function Rr(e){for(;e&&!Lr(e);)e=e.parentElement;let t=Tt(e),r=t.document.activeElement;if(!r||r===e)return;Ar=!0;let n=!1,a=e=>{(e.target===r||n)&&e.stopImmediatePropagation()},o=t=>{(t.target===r||n)&&(t.stopImmediatePropagation(),e||n||(n=!0,Ut(r),d()))},i=t=>{(t.target===e||n)&&t.stopImmediatePropagation()},l=t=>{(t.target===e||n)&&(t.stopImmediatePropagation(),n||(n=!0,Ut(r),d()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let d=()=>{cancelAnimationFrame(s),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),Ar=!1,n=!1},s=requestAnimationFrame(d);return d}let Fr="default",Dr="",jr=new WeakMap;function Br(e){if(Jt()){if("default"===Fr){const t=Pt(e);Dr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Fr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";jr.set(e,e.style[t]),e.style[t]="none"}}function Vr(e){if(Jt()){if("disabled"!==Fr)return;Fr="restoring",setTimeout(()=>{dr(()=>{if("restoring"===Fr){const t=Pt(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=Dr||""),Dr="",Fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&jr.has(e)){let t=jr.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[r]&&(e.style[r]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),jr.delete(e)}}const Hr=a.createContext({register:()=>{}});function zr(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Wr(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function Ur(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,zr(e,t,"set"),r),r}Hr.displayName="PressResponderContext";var Gr=new WeakMap;class Yr{continuePropagation(){Ur(this,Gr,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,zr(e,Gr,"get"));var e}constructor(e,t,r,n){var a;Wr(this,Gr,{writable:!0,value:void 0}),Ur(this,Gr,!0);let o=null!==(a=null==n?void 0:n.target)&&void 0!==a?a:r.currentTarget;const i=null==o?void 0:o.getBoundingClientRect();let l,d,s=0,c=null;null!=r.clientX&&null!=r.clientY&&(d=r.clientX,c=r.clientY),i&&(null!=d&&null!=c?(l=d-i.left,s=c-i.top):(l=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}}const Zr=Symbol("linkClicked"),qr="react-aria-pressable-style",Kr="data-react-aria-pressable";function Xr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:o,onClick:l,isDisabled:f,isPressed:p,preventFocusOnPress:g,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:b,...y}=function(e){let t=u(Hr);if(t){let{register:r,...n}=t;e=Ft(n,e),r()}return pr(t,e.ref),e}(e),[C,w]=d(!1),x=s({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:k,removeGlobalListener:L}=sr(),S=c((e,t)=>{let a=x.current;if(f||a.didFirePressStart)return!1;let o=!0;if(a.isTriggeringEvent=!0,n){let r=new Yr("pressstart",t,e);n(r),o=r.shouldStopPropagation}return r&&r(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,w(!0),o},[f,n,r]),I=c((e,n,o=!0)=>{let i=x.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let l=!0;if(a){let t=new Yr("pressend",n,e);a(t),l=t.shouldStopPropagation}if(r&&r(!1),w(!1),t&&o&&!f){let r=new Yr("press",n,e);t(r),l&&(l=r.shouldStopPropagation)}return i.isTriggeringEvent=!1,l},[f,a,r,t]),M=vr(I),P=c((e,t)=>{let r=x.current;if(f)return!1;if(o){r.isTriggeringEvent=!0;let n=new Yr("pressup",t,e);return o(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0},[f,o]),T=vr(P),_=c(e=>{let t=x.current;if(t.isPressed&&t.target){t.didFirePressStart&&null!=t.pointerType&&I(rn(t.target,e),t.pointerType,!1),t.isPressed=!1,V(null),t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,k(),m||Vr(t.target);for(let e of t.disposables)e();t.disposables=[]}},[m,k,I]),N=vr(_),O=c(e=>{h&&_(e)},[h,_]),A=c(e=>{f||null==l||l(e)},[f,l]),R=c((e,t)=>{if(!f&&l){let r=new MouseEvent("click",e);Nr(r,t),l(_r(r))}},[f,l]),F=vr(R),[D,j]=d(!1);vt(()=>{let e=x.current;if(D){let t=t=>{var r;if(e.isPressed&&e.target&&Jr(t,e.target)){var n;an(Ot(t),t.key)&&t.preventDefault();let r=Ot(t),a=_t(e.target,Ot(t));M(rn(e.target,t),"keyboard",a),a&&F(t,e.target),k(),"Enter"!==t.key&&Qr(e.target)&&_t(e.target,r)&&!t[Zr]&&(t[Zr]=!0,ar(e.target,t,!1)),e.isPressed=!1,j(!1),null===(n=e.metaKeyEvents)||void 0===n||n.delete(t.key)}else if("Meta"===t.key&&(null===(r=e.metaKeyEvents)||void 0===r?void 0:r.size)){var a;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let r of t.values())null===(a=e.target)||void 0===a||a.dispatchEvent(new KeyboardEvent("keyup",r))}},r=e.target,n=t=>{r&&Jr(t,r)&&!t.repeat&&_t(r,Ot(t))&&e.target&&T(rn(e.target,t),"keyboard")},a=Mt(n,t);return E(Pt(e.target),"keyup",a,!0),()=>{L(Pt(e.target),"keyup",a,!0)}}},[D,E,k,L]);let[B,V]=d(null);vt(()=>{let e=x.current;if("pointer"===B){let t=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(_t(e.target,Ot(t))&&null!=e.pointerType){let r=!1,n=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(r?N(t):(Ut(e.target),e.target.click()))},80);E(t.currentTarget,"click",()=>r=!0,!0),e.disposables.push(()=>clearTimeout(n))}else N(t);e.isOverTarget=!1}},r=e=>{N(e)};return E(Pt(e.target),"pointerup",t,!1),E(Pt(e.target),"pointercancel",r,!1),()=>{L(Pt(e.target),"pointerup",t,!1),L(Pt(e.target),"pointercancel",r,!1)}}if("mouse"===B&&"test"===process.env.NODE_ENV){let t=t=>{0===t.button&&(e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&e.target.contains(t.target)&&null!=e.pointerType||N(t),e.isOverTarget=!1))};return E(Pt(e.target),"mouseup",t,!1),()=>{L(Pt(e.target),"mouseup",t,!1)}}if("touch"===B&&"test"===process.env.NODE_ENV){let t=t=>{e.isPressed&&_t(Ot(t),e.target)&&N({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return E(Tt(e.target),"scroll",t,!0),()=>{L(Tt(e.target),"scroll",t,!0)}}},[B,E,L]);let H=i(()=>{let e=x.current,t={onKeyDown(t){if(Jr(t.nativeEvent,t.currentTarget)&&_t(t.currentTarget,Ot(t.nativeEvent))){var r;an(Ot(t.nativeEvent),t.key)&&t.preventDefault();let n=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,j(!0),e.pointerType="keyboard",n=S(t,"keyboard")),n&&t.stopPropagation(),t.metaKey&&Kt()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||_t(t.currentTarget,Ot(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!ar.isOpening){let r=!0;if(f&&t.preventDefault(),e.ignoreEmulatedMouseEvents||e.isPressed||"virtual"!==e.pointerType&&!yr(t.nativeEvent)){if(e.isPressed&&"keyboard"!==e.pointerType){let n=e.pointerType||t.nativeEvent.pointerType||"virtual",a=P(rn(t.currentTarget,t),n),o=I(rn(t.currentTarget,t),n,!0);r=a&&o,e.isOverTarget=!1,A(t),_(t)}}else{let e=S(t,"virtual"),n=P(t,"virtual"),a=I(t,"virtual");A(t),r=e&&n&&a}e.ignoreEmulatedMouseEvents=!1,r&&t.stopPropagation()}}};return"undefined"!=typeof PointerEvent?(t.onPointerDown=t=>{if(0!==t.button||!_t(t.currentTarget,Ot(t.nativeEvent)))return;if(r=t.nativeEvent,!rr()&&0===r.width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType)return void(e.pointerType="virtual");var r;e.pointerType=t.pointerType;let n=!0;if(!e.isPressed){e.isPressed=!0,V("pointer"),e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,m||Br(e.target),n=S(t,e.pointerType);let r=Ot(t.nativeEvent);"releasePointerCapture"in r&&r.releasePointerCapture(t.pointerId)}n&&t.stopPropagation()},t.onMouseDown=t=>{if(_t(t.currentTarget,Ot(t.nativeEvent))&&0===t.button){if(g){let r=Rr(t.target);r&&e.disposables.push(r)}t.stopPropagation()}},t.onPointerUp=t=>{_t(t.currentTarget,Ot(t.nativeEvent))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||P(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,S(rn(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,I(rn(e.target,t),e.pointerType,!1),O(t))},t.onDragStart=e=>{_t(e.currentTarget,Ot(e.nativeEvent))&&_(e)}):"test"===process.env.NODE_ENV&&(t.onMouseDown=t=>{if(0!==t.button||!_t(t.currentTarget,Ot(t.nativeEvent)))return;if(e.ignoreEmulatedMouseEvents)return void t.stopPropagation();if(e.isPressed=!0,V("mouse"),e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=yr(t.nativeEvent)?"virtual":"mouse",$(()=>S(t,e.pointerType))&&t.stopPropagation(),g){let r=Rr(t.target);r&&e.disposables.push(r)}},t.onMouseEnter=t=>{if(!_t(t.currentTarget,Ot(t.nativeEvent)))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,r=S(t,e.pointerType)),r&&t.stopPropagation()},t.onMouseLeave=t=>{if(!_t(t.currentTarget,Ot(t.nativeEvent)))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,r=I(t,e.pointerType,!1),O(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{_t(t.currentTarget,Ot(t.nativeEvent))&&(e.ignoreEmulatedMouseEvents||0!==t.button||e.isPressed||P(t,e.pointerType||"mouse"))},t.onTouchStart=t=>{if(!_t(t.currentTarget,Ot(t.nativeEvent)))return;let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,V("touch"),e.target=t.currentTarget,e.pointerType="touch",m||Br(e.target),S(tn(e.target,t),e.pointerType)&&t.stopPropagation())},t.onTouchMove=t=>{if(!_t(t.currentTarget,Ot(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let r=en(t.nativeEvent,e.activePointerId),n=!0;r&&nn(r,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=S(tn(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=I(tn(e.target,t),e.pointerType,!1),O(tn(e.target,t))),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!_t(t.currentTarget,Ot(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let r=en(t.nativeEvent,e.activePointerId),n=!0;r&&nn(r,t.currentTarget)&&null!=e.pointerType?(P(tn(e.target,t),e.pointerType),n=I(tn(e.target,t),e.pointerType),R(t.nativeEvent,e.target)):e.isOverTarget&&null!=e.pointerType&&(n=I(tn(e.target,t),e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,V(null),e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!m&&Vr(e.target),k()},t.onTouchCancel=t=>{_t(t.currentTarget,Ot(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&_(tn(e.target,t)))},t.onDragStart=e=>{_t(e.currentTarget,Ot(e.nativeEvent))&&_(e)}),t},[f,g,k,m,_,O,I,S,P,A,R]);return v(()=>{if(!b||"test"===process.env.NODE_ENV)return;const e=Pt(b.current);if(!e||!e.head||e.getElementById(qr))return;const t=e.createElement("style");t.id=qr,t.textContent=`\n@layer {\n [${Kr}] {\n touch-action: pan-x pan-y pinch-zoom;\n }\n}\n `.trim(),e.head.prepend(t)},[b]),v(()=>{let e=x.current;return()=>{var t;m||Vr(null!==(t=e.target)&&void 0!==t?t:void 0);for(let t of e.disposables)t();e.disposables=[]}},[m]),{isPressed:p||C,pressProps:Ft(y,H,{[Kr]:!0})}}function Qr(e){return"A"===e.tagName&&e.hasAttribute("href")}function Jr(e,t){const{key:r,code:n}=e,a=t,o=a.getAttribute("role");return!("Enter"!==r&&" "!==r&&"Spacebar"!==r&&"Space"!==n||a instanceof Tt(a).HTMLInputElement&&!ln(a,r)||a instanceof Tt(a).HTMLTextAreaElement||a.isContentEditable||("link"===o||!o&&Qr(a))&&"Enter"!==r)}function en(e,t){const r=e.changedTouches;for(let e=0;e<r.length;e++){const n=r[e];if(n.identifier===t)return n}return null}function tn(e,t){let r=0,n=0;return t.targetTouches&&1===t.targetTouches.length&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function rn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function nn(e,t){let r=t.getBoundingClientRect(),n=function(e){let t=0,r=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?r=e.height/2:void 0!==e.radiusY&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(r,n)}function an(e,t){return e instanceof HTMLInputElement?!ln(e,t):function(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:Qr(e)))}(e)}const on=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ln(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:on.has(e.type)}let dn=null,sn=new Set,cn=new Map,un=!1,vn=!1;const fn={Tab:!0,Escape:!0};function pn(e,t){for(let r of sn)r(e,t)}function gn(e){un=!0,!ar.isOpening&&function(e){return!(e.metaKey||!Kt()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(dn="keyboard",pn("keyboard",e))}function hn(e){dn="pointer",!("pointerType"in e)||e.pointerType,"mousedown"!==e.type&&"pointerdown"!==e.type||(un=!0,pn("pointer",e))}function mn(e){!ar.isOpening&&yr(e)&&(un=!0,dn="virtual")}function bn(e){e.target!==window&&e.target!==document&&!Ar&&e.isTrusted&&(un||vn||(dn="virtual",pn("virtual",e)),un=!1,vn=!1)}function yn(){Ar||(un=!1,vn=!0)}function Cn(e){if("undefined"==typeof window||"undefined"==typeof document||cn.get(Tt(e)))return;const t=Tt(e),r=Pt(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){un=!0,n.apply(this,arguments)},r.addEventListener("keydown",gn,!0),r.addEventListener("keyup",gn,!0),r.addEventListener("click",mn,!0),t.addEventListener("focus",bn,!0),t.addEventListener("blur",yn,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",hn,!0),r.addEventListener("pointermove",hn,!0),r.addEventListener("pointerup",hn,!0)):"test"===process.env.NODE_ENV&&(r.addEventListener("mousedown",hn,!0),r.addEventListener("mousemove",hn,!0),r.addEventListener("mouseup",hn,!0)),t.addEventListener("beforeunload",()=>{$n(e)},{once:!0}),cn.set(t,{focus:n})}const $n=(e,t)=>{const r=Tt(e),n=Pt(e);t&&n.removeEventListener("DOMContentLoaded",t),cn.has(r)&&(r.HTMLElement.prototype.focus=cn.get(r).focus,n.removeEventListener("keydown",gn,!0),n.removeEventListener("keyup",gn,!0),n.removeEventListener("click",mn,!0),r.removeEventListener("focus",bn,!0),r.removeEventListener("blur",yn,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",hn,!0),n.removeEventListener("pointermove",hn,!0),n.removeEventListener("pointerup",hn,!0)):"test"===process.env.NODE_ENV&&(n.removeEventListener("mousedown",hn,!0),n.removeEventListener("mousemove",hn,!0),n.removeEventListener("mouseup",hn,!0)),cn.delete(r))};function wn(){return"pointer"!==dn}function xn(){return dn}"undefined"!=typeof document&&function(e){const t=Pt(e);let r;"loading"!==t.readyState?Cn(e):(r=()=>{Cn(e)},t.addEventListener("DOMContentLoaded",r))}();const En=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kn(e,t,r){Cn(),v(()=>{let t=(t,n)=>{(function(e,t,r){let n=Pt(null==r?void 0:r.target);const a="undefined"!=typeof window?Tt(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Tt(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,i="undefined"!=typeof window?Tt(null==r?void 0:r.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?Tt(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||n.activeElement instanceof a&&!En.has(n.activeElement.type)||n.activeElement instanceof o||n.activeElement instanceof i&&n.activeElement.isContentEditable)&&"keyboard"===t&&r instanceof l&&!fn[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(wn())};return sn.add(t),()=>{sn.delete(t)}},t)}function Ln(e){const t=Pt(e);if("virtual"===xn()){let r=Nt(t);dr(()=>{const n=Nt(t);n!==r&&n!==t.body||!e.isConnected||Ut(e)})}else Ut(e)}function Sn(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e;const o=c(e=>{if(e.target===e.currentTarget)return n&&n(e),a&&a(!1),!0},[n,a]),i=Or(o),l=c(e=>{const t=Pt(e.target),n=t?Nt(t):Nt();e.target===e.currentTarget&&n===Ot(e.nativeEvent)&&(r&&r(e),a&&a(!0),i(e))},[a,r,i]);return{focusProps:{onFocus:!t&&(r||a||n)?l:void 0,onBlur:t||!n&&!a?void 0:o}}}function In(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){t&&"production"!==process.env.NODE_ENV?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t};e(n),t&&r.stopPropagation()}}function Mn(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:In(e.onKeyDown),onKeyUp:In(e.onKeyUp)}}}let Pn=a.createContext(null);function Tn(e,t){let{focusProps:r}=Sn(e),{keyboardProps:n}=Mn(e),a=Ft(r,n),o=function(e){let t=u(Pn)||{};pr(t,e);let{ref:r,...n}=t;return n}(t),i=e.isDisabled?{}:o,l=s(e.autoFocus);v(()=>{l.current&&t.current&&Ln(t.current),l.current=!1},[t]);let d=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(d=void 0),{focusableProps:Ft({...a,tabIndex:d},i)}}function _n({children:e}){let t=i(()=>({register:()=>{}}),[]);return a.createElement(Hr.Provider,{value:t},e)}function Nn(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=s({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=sr(),d=c(e=>{e.currentTarget.contains(e.target)&&o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,l(),r&&r(e),a&&a(!1))},[r,a,o,l]),u=Or(d),v=c(e=>{if(!e.currentTarget.contains(e.target))return;const t=Pt(e.target),r=Nt(t);if(!o.current.isFocusWithin&&r===Ot(e.nativeEvent)){n&&n(e),a&&a(!0),o.current.isFocusWithin=!0,u(e);let r=e.currentTarget;i(t,"focus",e=>{if(o.current.isFocusWithin&&!_t(r,e.target)){let n=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Nr(n,r);let a=_r(n);d(a)}},{capture:!0})}},[n,a,u,i,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:d}}}let On=!1,An=0;function Rn(){On=!0,setTimeout(()=>{On=!1},50)}function Fn(e){"touch"===e.pointerType&&Rn()}function Dn(){if("undefined"!=typeof document)return 0===An&&("undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Fn):"test"===process.env.NODE_ENV&&document.addEventListener("touchend",Rn)),An++,()=>{An--,An>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Fn):"test"===process.env.NODE_ENV&&document.removeEventListener("touchend",Rn))}}function jn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[o,l]=d(!1),c=s({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v(Dn,[]);let{addGlobalListener:u,removeAllGlobalListeners:f}=sr(),{hoverProps:p,triggerHoverEnd:g}=i(()=>{let e=(e,n)=>{if(c.pointerType=n,a||"touch"===n||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let i=e.currentTarget;c.target=i,u(Pt(e.target),"pointerover",e=>{c.isHovered&&c.target&&!_t(c.target,e.target)&&o(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:i,pointerType:n}),r&&r(!0),l(!0)},o=(e,t)=>{let a=c.target;c.pointerType="",c.target=null,"touch"!==t&&c.isHovered&&a&&(c.isHovered=!1,f(),n&&n({type:"hoverend",target:a,pointerType:t}),r&&r(!1),l(!1))},i={};return"undefined"!=typeof PointerEvent?(i.onPointerEnter=t=>{On&&"mouse"===t.pointerType||e(t,t.pointerType)},i.onPointerLeave=e=>{!a&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):"test"===process.env.NODE_ENV&&(i.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},i.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||On||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},i.onMouseLeave=e=>{!a&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:i,triggerHoverEnd:o}},[t,r,n,a,c,u,f]);return v(()=>{a&&g({currentTarget:c.target},c.pointerType)},[a]),{hoverProps:p,isHovered:o}}function Bn(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}const Vn=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Hn=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zn(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return Vn.has(t.script)}let t=e.split("-")[0];return Hn.has(t)}const Wn=Symbol.for("react-aria.i18n.locale");function Un(){let e="undefined"!=typeof window&&window[Wn]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zn(e)?"rtl":"ltr"}}let Gn=Un(),Yn=new Set;function Zn(){Gn=Un();for(let e of Yn)e(Gn)}const qn=a.createContext(null);function Kn(){let e=function(){let e=wt(),[t,r]=d(Gn);if(v(()=>(0===Yn.size&&window.addEventListener("languagechange",Zn),Yn.add(r),()=>{Yn.delete(r),0===Yn.size&&window.removeEventListener("languagechange",Zn)}),[]),e)return{locale:"undefined"!=typeof window&&window[Wn]||"en-US",direction:"ltr"};return t}();return u(qn)||e}function Xn(e,t){let r,{elementType:n="button",isDisabled:a,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:d,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:v,href:f,target:p,rel:g,type:h="button"}=e;r="button"===n?{type:h,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==n||a?void 0:f,target:"a"===n?p:void 0,type:"input"===n?h:void 0,disabled:"input"===n?a:void 0,"aria-disabled":a&&"input"!==n?a:void 0,rel:"a"===n?g:void 0};let{pressProps:m,isPressed:b}=Xr({onPressStart:i,onPressEnd:l,onPressChange:s,onPress:o,onPressUp:d,onClick:v,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:y}=Tn(e,t);u&&(y.tabIndex=a?-1:y.tabIndex);let C=Ft(y,m,Wt(e,{labelable:!0}));return{isPressed:b,buttonProps:Ft(r,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const Qn=a.createContext(null),Jn="react-aria-focus-scope-restore";let ea=null;function ta(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,l=s(null),d=s(null),c=s([]),{parentNode:f}=u(Qn)||{},p=i(()=>new ga({scopeRef:c}),[c]);vt(()=>{let e=f||ha.root;if(ha.getTreeNode(e.scopeRef)&&ea&&!la(ea,e.scopeRef)){let t=ha.getTreeNode(ea);t&&(e=t)}e.addChild(p),ha.addNode(p)},[p,f]),vt(()=>{let e=ha.getTreeNode(c);e&&(e.contain=!!r)},[r]),vt(()=>{var e;let t=null===(e=l.current)||void 0===e?void 0:e.nextSibling,r=[],n=e=>e.stopPropagation();for(;t&&t!==d.current;)r.push(t),t.addEventListener(Jn,n),t=t.nextSibling;return c.current=r,()=>{for(let e of r)e.removeEventListener(Jn,n)}},[t]),function(e,t,r){vt(()=>{if(t||r)return;let n=e.current;const a=Pt(n?n[0]:void 0);let o=t=>{let r=Ot(t);oa(r,e.current)?ea=e:aa(r)||(ea=null)};return a.addEventListener("focusin",o,!1),null==n||n.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",o,!1))}},[e,t,r])}(c,n,r),function(e,t){let r=s(void 0),n=s(void 0);vt(()=>{let a=e.current;if(!t)return void(n.current&&(cancelAnimationFrame(n.current),n.current=void 0));const o=Pt(a?a[0]:void 0);let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!na(e)||t.isComposing)return;let r=Nt(o),n=e.current;if(!n||!oa(r,n))return;let a=fa(ra(n),{tabbable:!0},n);if(!r)return;a.currentNode=r;let i=t.shiftKey?a.previousNode():a.nextNode();i||(a.currentNode=t.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,i=t.shiftKey?a.previousNode():a.nextNode()),t.preventDefault(),i&&da(i,!0)},l=t=>{ea&&!la(ea,e)||!oa(Ot(t),e.current)?na(e)&&!ia(Ot(t),e)?r.current?r.current.focus():ea&&ea.current&&ca(ea.current):na(e)&&(r.current=Ot(t)):(ea=e,r.current=Ot(t))},d=t=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let n=xn(),a=("virtual"===n||null===n)&&rr()&&tr(),i=Nt(o);if(!a&&i&&na(e)&&!ia(i,e)){ea=e;let n=Ot(t);var l;if(n&&n.isConnected)r.current=n,null===(l=r.current)||void 0===l||l.focus();else ea.current&&ca(ea.current)}})};return o.addEventListener("keydown",i,!1),o.addEventListener("focusin",l,!1),null==a||a.forEach(e=>e.addEventListener("focusin",l,!1)),null==a||a.forEach(e=>e.addEventListener("focusout",d,!1)),()=>{o.removeEventListener("keydown",i,!1),o.removeEventListener("focusin",l,!1),null==a||a.forEach(e=>e.removeEventListener("focusin",l,!1)),null==a||a.forEach(e=>e.removeEventListener("focusout",d,!1))}},[e,t]),vt(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}(c,r),function(e,t,r){const n=s("undefined"!=typeof document?Nt(Pt(e.current?e.current[0]:void 0)):null);vt(()=>{let n=e.current;const a=Pt(n?n[0]:void 0);if(!t||r)return;let o=()=>{ea&&!la(ea,e)||!oa(Nt(a),e.current)||(ea=e)};return a.addEventListener("focusin",o,!1),null==n||n.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",o,!1))}},[e,r]),vt(()=>{const n=Pt(e.current?e.current[0]:void 0);if(!t)return;let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!na(e)||t.isComposing)return;let r=n.activeElement;if(!ia(r,e)||!ua(e))return;let a=ha.getTreeNode(e);if(!a)return;let o=a.nodeToRestore,i=fa(n.body,{tabbable:!0});i.currentNode=r;let l=t.shiftKey?i.previousNode():i.nextNode();if(o&&o.isConnected&&o!==n.body||(o=void 0,a.nodeToRestore=void 0),(!l||!ia(l,e))&&o){i.currentNode=o;do{l=t.shiftKey?i.previousNode():i.nextNode()}while(ia(l,e));t.preventDefault(),t.stopPropagation(),l?da(l,!0):aa(o)?da(o,!0):r.blur()}};return r||n.addEventListener("keydown",a,!0),()=>{r||n.removeEventListener("keydown",a,!0)}},[e,t,r]),vt(()=>{const r=Pt(e.current?e.current[0]:void 0);if(!t)return;let a=ha.getTreeNode(e);var o;return a?(a.nodeToRestore=null!==(o=n.current)&&void 0!==o?o:void 0,()=>{let n=ha.getTreeNode(e);if(!n)return;let a=n.nodeToRestore,o=Nt(r);if(t&&a&&(o&&ia(o,e)||o===r.body&&ua(e))){let t=ha.clone();requestAnimationFrame(()=>{if(r.activeElement===r.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected)return void va(r.nodeToRestore);r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&ha.getTreeNode(r.scopeRef)){return void va(sa(r.scopeRef.current,!0))}r=r.parent}}})}}):void 0},[e,t])}(c,n,r),function(e,t){const r=a.useRef(t);v(()=>{if(r.current){ea=e;const t=Pt(e.current?e.current[0]:void 0);!oa(Nt(t),ea.current)&&e.current&&ca(e.current)}r.current=!1},[e])}(c,o),v(()=>{const e=Nt(Pt(c.current?c.current[0]:void 0));let t=null;if(oa(e,c.current)){for(let r of ha.traverse())r.scopeRef&&oa(e,r.scopeRef.current)&&(t=r);t===ha.getTreeNode(c)&&(ea=t.scopeRef)}},[c]),vt(()=>()=>{var e,t,r;let n=null!==(r=null===(t=ha.getTreeNode(c))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;c!==ea&&!la(c,ea)||n&&!ha.getTreeNode(n)||(ea=n),ha.removeTreeNode(c)},[c]);let g=i(()=>function(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:a,wrap:o,accept:i}=t;var l;let d=n||Nt(Pt(null!==(l=r[0])&&void 0!==l?l:void 0)),s=r[0].previousElementSibling,c=fa(ra(r),{tabbable:a,accept:i},r);c.currentNode=oa(d,r)?d:s;let u=c.nextNode();return!u&&o&&(c.currentNode=s,u=c.nextNode()),u&&da(u,!0),u},focusPrevious(t={}){let r=e.current,{from:n,tabbable:a,wrap:o,accept:i}=t;var l;let d=n||Nt(Pt(null!==(l=r[0])&&void 0!==l?l:void 0)),s=r[r.length-1].nextElementSibling,c=fa(ra(r),{tabbable:a,accept:i},r);c.currentNode=oa(d,r)?d:s;let u=c.previousNode();return!u&&o&&(c.currentNode=s,u=c.previousNode()),u&&da(u,!0),u},focusFirst(t={}){let r=e.current,{tabbable:n,accept:a}=t,o=fa(ra(r),{tabbable:n,accept:a},r);o.currentNode=r[0].previousElementSibling;let i=o.nextNode();return i&&da(i,!0),i},focusLast(t={}){let r=e.current,{tabbable:n,accept:a}=t,o=fa(ra(r),{tabbable:n,accept:a},r);o.currentNode=r[r.length-1].nextElementSibling;let i=o.previousNode();return i&&da(i,!0),i}}}(c),[]),h=i(()=>({focusManager:g,parentNode:p}),[p,g]);return a.createElement(Qn.Provider,{value:h},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:d}))}function ra(e){return e[0].parentElement}function na(e){let t=ha.getTreeNode(ea);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function aa(e){return ia(e)}function oa(e,t){return!!e&&(!!t&&t.some(t=>t.contains(e)))}function ia(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ha.traverse(ha.getTreeNode(t)))if(r&&oa(e,r.current))return!0;return!1}function la(e,t){var r;let n=null===(r=ha.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function da(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{Ln(e)}catch{}}function sa(e,t=!0){let r=e[0].previousElementSibling,n=ra(e),a=fa(n,{tabbable:t},e);a.currentNode=r;let o=a.nextNode();return t&&!o&&(n=ra(e),a=fa(n,{tabbable:!1},e),a.currentNode=r,o=a.nextNode()),o}function ca(e,t=!0){da(sa(e,t))}function ua(e){let t=ha.getTreeNode(ea);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function va(e){e.dispatchEvent(new CustomEvent(Jn,{bubbles:!0,cancelable:!0}))&&da(e)}function fa(e,t,r){let n=(null==t?void 0:t.tabbable)?Sr:Lr,a=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,o=Pt(a),i=function(e,t,r,n){return e.createTreeWalker(t,r,n)}(o,e||o,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var a;if(null==t||null===(a=t.from)||void 0===a?void 0:a.contains(e))return NodeFilter.FILTER_REJECT;if((null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")){if(!function(e){if(e.checked)return!0;let t=[];if(e.form){var r,n;let a=null===(n=e.form)||void 0===n||null===(r=n.elements)||void 0===r?void 0:r.namedItem(e.name);t=[...null!=a?a:[]]}else t=[...Pt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e))return NodeFilter.FILTER_REJECT;if("INPUT"===i.currentNode.tagName&&"radio"===i.currentNode.type&&i.currentNode.name===e.name)return NodeFilter.FILTER_REJECT}return!n(e)||r&&!oa(e,r)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class pa{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let a=new ga({scopeRef:e});n.addChild(a),a.parent=n,this.fastMap.set(e,a),r&&(a.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&oa(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new pa;var r;for(let n of this.traverse())t.addTreeNode(n.scopeRef,null!==(r=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new ga({scopeRef:null}),this.fastMap.set(null,this.root)}}class ga{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ha=new pa;function ma(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,a=s({isFocused:!1,isFocusVisible:t||wn()}),[o,i]=d(!1),[l,u]=d(()=>a.current.isFocused&&a.current.isFocusVisible),v=c(()=>u(a.current.isFocused&&a.current.isFocusVisible),[]),f=c(e=>{a.current.isFocused=e,i(e),v()},[v]);kn(e=>{a.current.isFocusVisible=e,v()},[],{isTextInput:r});let{focusProps:p}=Sn({isDisabled:n,onFocusChange:f}),{focusWithinProps:g}=Nn({isDisabled:!n,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:l,focusProps:n?g:p}}const ba={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ya={...ba,customError:!0,valid:!1},Ca={isInvalid:!1,validationDetails:ba,validationErrors:[]},$a=p({}),wa="__formValidationState"+Date.now();function xa(e){if(e[wa]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}=e[wa];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}}return function(e){let{isInvalid:t,validationState:r,name:n,value:a,builtinValidation:o,validate:l,validationBehavior:c="aria"}=e;r&&(t||(t="invalid"===r));let f=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:ya}:null,p=i(()=>{if(!l||null==a)return null;let e=function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return Ea(r)}return[]}(l,a);return ka(e)},[l,a]);(null==o?void 0:o.validationDetails.valid)&&(o=void 0);let g=u($a),h=i(()=>n?Array.isArray(n)?n.flatMap(e=>Ea(g[e])):Ea(g[n]):[],[g,n]),[m,b]=d(g),[y,C]=d(!1);g!==m&&(b(g),C(!1));let $=i(()=>ka(y?[]:h),[y,h]),w=s(Ca),[x,E]=d(Ca),k=s(Ca),L=()=>{if(!S)return;I(!1);let e=p||o||w.current;La(e,k.current)||(k.current=e,E(e))},[S,I]=d(!1);return v(L),{realtimeValidation:f||$||p||o||Ca,displayValidation:"native"===c?f||$||x:f||$||p||o||x,updateValidation(e){"aria"!==c||La(x,e)?w.current=e:E(e)},resetValidation(){let e=Ca;La(e,k.current)||(k.current=e,E(e)),"native"===c&&I(!1),C(!0)},commitValidation(){"native"===c&&I(!0),C(!0)}}}(e)}function Ea(e){return e?Array.isArray(e)?e:[e]:[]}function ka(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ya}:null}function La(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}function Sa(e,t,r){let{validationBehavior:n,focus:a}=e;vt(()=>{if("native"===n&&(null==r?void 0:r.current)&&!r.current.disabled){let n=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(n),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:Ia(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e});let o=s(!1),i=vr(()=>{o.current||t.resetValidation()}),l=vr(e=>{var n;t.displayValidation.isInvalid||t.commitValidation();let o=null==r||null===(n=r.current)||void 0===n?void 0:n.form;var i,l;!e.defaultPrevented&&r&&o&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}(o)===r.current&&(a?a():null===(i=r.current)||void 0===i||i.focus(),dn=l="keyboard",pn(l,null));e.preventDefault()}),d=vr(()=>{t.commitValidation()});v(()=>{let e=null==r?void 0:r.current;if(!e)return;let t=e.form,n=null==t?void 0:t.reset;return t&&(t.reset=()=>{o.current=!window.event||"message"===window.event.type&&window.event.target instanceof MessagePort,null==n||n.call(t),o.current=!1}),e.addEventListener("invalid",l),e.addEventListener("change",d),null==t||t.addEventListener("reset",i),()=>{e.removeEventListener("invalid",l),e.removeEventListener("change",d),null==t||t.removeEventListener("reset",i),t&&(t.reset=n)}},[r,n])}function Ia(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Ma(e,t,r){let n=xa({...e,value:t.isSelected}),{isInvalid:a,validationErrors:o,validationDetails:l}=n.displayValidation,{labelProps:d,inputProps:s,isSelected:c,isPressed:u,isDisabled:f,isReadOnly:p}=function(e,t,r){let{isDisabled:n=!1,isReadOnly:a=!1,value:o,name:i,form:l,children:d,"aria-label":s,"aria-labelledby":c,validationState:u="valid",isInvalid:v,onPressStart:f,onPressEnd:p,onPressChange:g,onPress:h,onPressUp:m,onClick:b}=e;null!=d||null!=s||null!=c||"production"===process.env.NODE_ENV||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:C}=Xr({onPressStart:f,onPressEnd:p,onPressChange:g,onPress:h,onPressUp:m,onClick:b,isDisabled:n}),{pressProps:$,isPressed:w}=Xr({onPressStart:f,onPressEnd:p,onPressChange:g,onPressUp:m,onClick:b,onPress(e){var n;null==h||h(e),t.toggle(),null===(n=r.current)||void 0===n||n.focus()},isDisabled:n||a}),{focusableProps:x}=Tn(e,r),E=Ft(y,x),k=Wt(e,{labelable:!0});return Cr(r,t.defaultSelected,t.setSelected),{labelProps:Ft($,{onClick:e=>e.preventDefault()}),inputProps:Ft(k,{"aria-invalid":v||"invalid"===u||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":a||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:n,...null==o?{}:{value:o},name:i,form:l,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:C||w,isDisabled:n,isReadOnly:a,isInvalid:v||"invalid"===u}}({...e,isInvalid:a},t,r);Sa(e,n,r);let{isIndeterminate:g,isRequired:h,validationBehavior:m="aria"}=e;v(()=>{r.current&&(r.current.indeterminate=!!g)});let{pressProps:b}=Xr({isDisabled:f||p,onPress(){let{[wa]:t}=e,{commitValidation:r}=t||n;r()}});return{labelProps:Ft(d,b,i(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:{...s,checked:c,"aria-required":h&&"aria"===m||void 0,required:h&&"native"===m},isSelected:c,isPressed:u,isDisabled:f,isReadOnly:p,isInvalid:a,validationErrors:o,validationDetails:l}}function Pa(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:o="label"}=e;t=Lt(t);let i=Lt(),l={};r?(n=n?`${i} ${n}`:i,l={id:i,htmlFor:"label"===o?t:void 0}):n||a||"production"===process.env.NODE_ENV||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=function(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;if(r=Lt(r),a&&n){let e=new Set([r,...a.trim().split(/\s+/)]);a=[...e].join(" ")}else a&&(a=a.trim().split(/\s+/).join(" "));return n||a||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:l,fieldProps:d}}const Ta={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function _a(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...l}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:r}=e,[n,a]=d(!1),{focusWithinProps:o}=Nn({isDisabled:!r,onFocusWithinChange:e=>a(e)});return{visuallyHiddenProps:{...o,style:i(()=>n?t:t?{...Ta,...t}:Ta,[n])}}}(e);return a.createElement(r,Ft(l,s),t)}function Na(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:u="aria"}=e,[p,g]=function(e,t,r){let[n,a]=d(e||t),o=s(n),i=s(void 0!==e),l=void 0!==e;v(()=>{let e=i.current;e!==l&&"production"!==process.env.NODE_ENV&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let u=l?e:n;Pr(()=>{o.current=u});let[,p]=f(()=>({}),{}),g=c((e,...t)=>{let n="function"==typeof e?e(o.current):e;Object.is(o.current,n)||(o.current=n,a(n),p(),null==r||r(n,...t))},[r]);return[u,g]}(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=Tn(e,t),m=xa({...e,value:p}),{isInvalid:b,validationErrors:y,validationDetails:C}=m.displayValidation,{labelProps:$,fieldProps:w,descriptionProps:x,errorMessageProps:E}=function(e){let{description:t,errorMessage:r,isInvalid:n,validationState:a}=e,{labelProps:o,fieldProps:i}=Pa(e),l=It([Boolean(t),Boolean(r),n,a]),d=It([Boolean(t),Boolean(r),n,a]);return i=Ft(i,{"aria-describedby":[l,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:l},errorMessageProps:{id:d}}}({...e,isInvalid:b,errorMessage:e.errorMessage||y}),k=Wt(e,{labelable:!0});const L={type:l,pattern:e.pattern};let[S]=d(p);var I;return Cr(t,null!==(I=e.defaultValue)&&void 0!==I?I:S,g),Sa(e,m,t),{labelProps:$,inputProps:Ft(k,"input"===r?L:void 0,{disabled:n,readOnly:i,required:o&&"native"===u,"aria-required":o&&"aria"===u||void 0,"aria-invalid":b||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:p,onChange:e=>g(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(a.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...w}),descriptionProps:x,errorMessageProps:E,isInvalid:b,validationErrors:y,validationDetails:C}}const Oa={top:"top",bottom:"top",left:"left",right:"left"},Aa={top:"bottom",bottom:"top",left:"right",right:"left"},Ra={top:"left",left:"top"},Fa={top:"height",left:"width"},Da={width:"totalWidth",height:"totalHeight"},ja={};function Ba(e,t){let r=0,n=0,a=0,o=0,i=0,l=0,d={};var s;let c=(null!==(s=null==t?void 0:t.scale)&&void 0!==s?s:1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let s=document.documentElement;var u,v;a=s.clientWidth,o=s.clientHeight,r=null!==(u=null==t?void 0:t.width)&&void 0!==u?u:a,n=null!==(v=null==t?void 0:t.height)&&void 0!==v?v:o,d.top=s.scrollTop||e.scrollTop,d.left=s.scrollLeft||e.scrollLeft,t&&(i=t.offsetTop,l=t.offsetLeft)}else({width:r,height:n,top:i,left:l}=Za(e,!1)),d.top=e.scrollTop,d.left=e.scrollLeft,a=r,o=n;var f,p;er()&&("BODY"===e.tagName||"HTML"===e.tagName)&&c&&(d.top=0,d.left=0,i=null!==(f=null==t?void 0:t.pageTop)&&void 0!==f?f:0,l=null!==(p=null==t?void 0:t.pageLeft)&&void 0!==p?p:0);return{width:r,height:n,totalWidth:a,totalHeight:o,scroll:d,top:i,left:l}}function Va(e,t,r,n,a,o,i){var l;let d=null!==(l=a.scroll[e])&&void 0!==l?l:0,s=n[Fa[e]],c=i[e]+n.scroll[Oa[e]]+o,u=i[e]+n.scroll[Oa[e]]+s-o,v=t-d+n.scroll[Oa[e]]+i[e]-n[Oa[e]],f=t-d+r+n.scroll[Oa[e]]+i[e]-n[Oa[e]];return v<c?c-v:f>u?Math.max(u-f,c-v):0}function Ha(e){if(ja[e])return ja[e];let[t,r]=e.split(" "),n=Oa[t]||"right",a=Ra[n];Oa[r]||(r="center");let o=Fa[n],i=Fa[a];return ja[e]={placement:t,crossPlacement:r,axis:n,crossAxis:a,size:o,crossSize:i},ja[e]}function za(e,t,r,n,a,o,i,l,d,s,c){let{placement:u,crossPlacement:v,axis:f,crossAxis:p,size:g,crossSize:h}=n,m={};var b,y,C,$,w;m[p]=null!==(b=e[p])&&void 0!==b?b:0,"center"===v?m[p]+=((null!==(y=e[h])&&void 0!==y?y:0)-(null!==(C=r[h])&&void 0!==C?C:0))/2:v!==p&&(m[p]+=(null!==($=e[h])&&void 0!==$?$:0)-(null!==(w=r[h])&&void 0!==w?w:0)),m[p]+=o;const x=e[p]-r[h]+d+s,E=e[p]+e[h]-d-s;if(m[p]=Tr(m[p],x,E),u===f){let t=l?c[g]:c[Da[g]];m[Aa[f]]=Math.floor(t-e[f]+a)}else m[f]=Math.floor(e[f]+e[g]+a);return m}function Wa(e,t,r,n,a,o,i,l){let{placement:d,axis:s,size:c}=o;var u,v,f,p;return d===s?Math.max(0,r[s]-(null!==(u=i.scroll[s])&&void 0!==u?u:0)-(e[s]+(l?t[s]:0))-(null!==(v=n[s])&&void 0!==v?v:0)-n[Aa[s]]-a):Math.max(0,e[c]+e[s]+(l?t[s]:0)-r[s]-r[c]+(null!==(f=i.scroll[s])&&void 0!==f?f:0)-(null!==(p=n[s])&&void 0!==p?p:0)-n[Aa[s]]-a)}function Ua(e,t,r,n,a,o,i,l,d,s,c,u,v,f,p,g,h,m){let b=Ha(e),{size:y,crossAxis:C,crossSize:$,placement:w,crossPlacement:x}=b,E=za(t,0,r,b,c,u,0,v,p,g,d),k=c,L=Wa(l,s,t,a,o+c,b,d,h);if(i&&r[y]>L){let e=Ha(`${Aa[w]} ${x}`),n=za(t,0,r,e,c,u,0,v,p,g,d);Wa(l,s,t,a,o+c,e,d,h)>L&&(b=e,E=n,k=c)}let S="bottom";"top"===b.axis?"top"===b.placement?S="top":"bottom"===b.placement&&(S="bottom"):"top"===b.crossAxis&&("top"===b.crossPlacement?S="bottom":"bottom"===b.crossPlacement&&(S="top"));let I=Va(C,E[C],r[$],l,d,o,s);E[C]+=I;let M=function(e,t,r,n,a,o,i,l,d,s,c){var u,v;let f=(null!=e.top?e.top:d[Da.height]-(null!==(u=e.bottom)&&void 0!==u?u:0)-i)-(null!==(v=d.scroll.top)&&void 0!==v?v:0),p=s?r.top:0;var g,h,m;let b=Math.max(t.top+p,(null!==(g=null==c?void 0:c.offsetTop)&&void 0!==g?g:t.top)+p),y=Math.min(t.top+t.height+p,(null!==(h=null==c?void 0:c.offsetTop)&&void 0!==h?h:0)+(null!==(m=null==c?void 0:c.height)&&void 0!==m?m:0));var C,$,w,x;return"top"!==l?Math.max(0,y-f-((null!==(C=a.top)&&void 0!==C?C:0)+(null!==($=a.bottom)&&void 0!==$?$:0)+o)):Math.max(0,f+i-b-((null!==(w=a.top)&&void 0!==w?w:0)+(null!==(x=a.bottom)&&void 0!==x?x:0)+o))}(E,l,s,0,a,o,r.height,S,d,h,m);f&&f<M&&(M=f),r.height=Math.min(r.height,M),E=za(t,0,r,b,k,u,0,v,p,g,d),I=Va(C,E[C],r[$],l,d,o,s),E[C]+=I;let P={},T=t[C]-E[C]-a[Oa[C]],_=T+.5*t[$];const N=p/2+g;var O,A,R,F;const D="left"===Oa[C]?(null!==(O=a.left)&&void 0!==O?O:0)+(null!==(A=a.right)&&void 0!==A?A:0):(null!==(R=a.top)&&void 0!==R?R:0)+(null!==(F=a.bottom)&&void 0!==F?F:0),j=r[$]-D-p/2-g,B=Tr(_,t[C]+p/2-(E[C]+a[Oa[C]]),t[C]+t[$]-p/2-(E[C]+a[Oa[C]]));P[C]=Tr(B,N,j),({placement:w,crossPlacement:x}=b),p?T=P[C]:"right"===x?T+=t[$]:"center"===x&&(T+=t[$]/2);let V="left"===w||"top"===w?r[y]:0,H={x:"top"===w||"bottom"===w?T:V,y:"left"===w||"right"===w?T:V};return{position:E,maxHeight:M,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:w,triggerAnchorPoint:H}}function Ga(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:a,padding:o,shouldFlip:i,boundaryElement:l,offset:d,crossOffset:s,maxHeight:c,arrowSize:u=0,arrowBoundaryOffset:v=0}=e,f="undefined"!=typeof document?window.visualViewport:null,p=n instanceof HTMLElement?function(e){let t=e.offsetParent;t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!Ka(t)&&(t=document.documentElement);if(null==t)for(t=e.parentElement;t&&!Ka(t);)t=t.parentElement;return t||document.documentElement}(n):document.documentElement,g=p===document.documentElement;const h=window.getComputedStyle(p).position;let m=!!h&&"static"!==h,b=g?Za(r,!1):qa(r,p,!1);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(r);b.top+=parseInt(e,10)||0,b.left+=parseInt(t,10)||0}let y=Za(n,!0),C=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(n);var $,w,x,E;y.width+=(null!==($=C.left)&&void 0!==$?$:0)+(null!==(w=C.right)&&void 0!==w?w:0),y.height+=(null!==(x=C.top)&&void 0!==x?x:0)+(null!==(E=C.bottom)&&void 0!==E?E:0);(k=a).scrollTop,k.scrollLeft,k.scrollWidth,k.scrollHeight;var k;return Ua(t,b,y,0,C,o,i,Ba(l,f),Ba(p,f),qa(l,p,!1),d,s,m,c,u,v,l.contains(p),f)}function Ya(e,t){let{top:r,left:n,width:a,height:o}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,o=e.offsetHeight),{top:r,left:n,width:a,height:o}}function Za(e,t){let{top:r,left:n,width:a,height:o}=Ya(e,t),{scrollTop:i,scrollLeft:l,clientTop:d,clientLeft:s}=document.documentElement;return{top:r+i-d,left:n+l-s,width:a,height:o}}function qa(e,t,r){let n,a=window.getComputedStyle(e);if("fixed"===a.position)n=Ya(e,r);else{n=Za(e,r);let a=Za(t,r),o=window.getComputedStyle(t);a.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=a.top,n.left-=a.left}return n.top-=parseInt(a.marginTop,10)||0,n.left-=parseInt(a.marginLeft,10)||0,n}function Ka(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}const Xa=new WeakMap;let Qa="undefined"!=typeof document?window.visualViewport:null;function Ja(e){let{direction:t}=Kn(),{arrowSize:r,targetRef:n,overlayRef:a,arrowRef:o,scrollRef:i=a,placement:l="bottom",containerPadding:u=12,shouldFlip:f=!0,boundaryElement:p=("undefined"!=typeof document?document.body:null),offset:g=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:b=!0,onClose:y,maxHeight:C,arrowBoundaryOffset:$=0}=e,[w,x]=d(null),E=[m,l,a.current,n.current,null==o?void 0:o.current,i.current,u,f,p,g,h,b,t,C,$,r],k=s(null==Qa?void 0:Qa.scale);v(()=>{b&&(k.current=null==Qa?void 0:Qa.scale)},[b]);let L=c(()=>{if(!(!1!==m&&b&&a.current&&n.current&&p))return;if((null==Qa?void 0:Qa.scale)!==k.current)return;let e=null;if(i.current&&i.current.contains(document.activeElement)){var d;let t=null===(d=document.activeElement)||void 0===d?void 0:d.getBoundingClientRect(),r=i.current.getBoundingClientRect();var s,c;if(e={type:"top",offset:(null!==(s=null==t?void 0:t.top)&&void 0!==s?s:0)-r.top},e.offset>r.height/2)e.type="bottom",e.offset=(null!==(c=null==t?void 0:t.bottom)&&void 0!==c?c:0)-r.bottom}let v=a.current;var y,w;!C&&a.current&&(v.style.top="0px",v.style.bottom="",v.style.maxHeight=(null!==(w=null===(y=window.visualViewport)||void 0===y?void 0:y.height)&&void 0!==w?w:window.innerHeight)+"px");let E=Ga({placement:eo(l,t),overlayNode:a.current,targetNode:n.current,scrollNode:i.current||a.current,padding:u,shouldFlip:f,boundaryElement:p,offset:g,crossOffset:h,maxHeight:C,arrowSize:null!=r?r:(null==o?void 0:o.current)?Ya(o.current,!0).width:0,arrowBoundaryOffset:$});if(E.position){if(v.style.top="",v.style.bottom="",v.style.left="",v.style.right="",Object.keys(E.position).forEach(e=>v.style[e]=E.position[e]+"px"),v.style.maxHeight=null!=E.maxHeight?E.maxHeight+"px":"",e&&document.activeElement&&i.current){let t=document.activeElement.getBoundingClientRect(),r=i.current.getBoundingClientRect(),n=t[e.type]-r[e.type];i.current.scrollTop+=n-e.offset}x(E)}},E);var S;vt(L,E),vt(()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)}),[S=L]),fr({ref:a,onResize:L}),fr({ref:n,onResize:L});let I=s(!1);vt(()=>{let e,t=()=>{I.current=!0,clearTimeout(e),e=setTimeout(()=>{I.current=!1},500),L()},r=()=>{I.current&&t()};return null==Qa||Qa.addEventListener("resize",t),null==Qa||Qa.addEventListener("scroll",r),()=>{null==Qa||Qa.removeEventListener("resize",t),null==Qa||Qa.removeEventListener("scroll",r)}},[L]);let M=c(()=>{I.current||null==y||y()},[y,I]);var P,T,_;return function(e){let{triggerRef:t,isOpen:r,onClose:n}=e;v(()=>{if(!r||null===n)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let a=n||Xa.get(t.current);a&&a()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[r,n,t])}({triggerRef:n,isOpen:b,onClose:y&&M}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...null==w?void 0:w.position,maxHeight:null!==(P=null==w?void 0:w.maxHeight)&&void 0!==P?P:"100vh"}},placement:null!==(T=null==w?void 0:w.placement)&&void 0!==T?T:null,triggerAnchorPoint:null!==(_=null==w?void 0:w.triggerAnchorPoint)&&void 0!==_?_:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==w?void 0:w.arrowOffsetLeft,top:null==w?void 0:w.arrowOffsetTop}},updatePosition:L}}function eo(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const to=[];function ro(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;v(()=>{if(a&&!to.includes(t))return to.push(t),()=>{let e=to.indexOf(t);e>=0&&to.splice(e,1)}},[a,t]);let d=()=>{to[to.length-1]===t&&r&&r()};!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:a}=e,o=s({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=vr(e=>{r&&Bn(e,t)&&(a&&a(e),o.current.isPointerDown=!0)}),l=vr(e=>{r&&r(e)});v(()=>{let e=o.current;if(n)return;const r=t.current,a=Pt(r);if("undefined"!=typeof PointerEvent){let r=r=>{e.isPointerDown&&Bn(r,t)&&l(r),e.isPointerDown=!1};return a.addEventListener("pointerdown",i,!0),a.addEventListener("click",r,!0),()=>{a.removeEventListener("pointerdown",i,!0),a.removeEventListener("click",r,!0)}}if("test"===process.env.NODE_ENV){let r=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&Bn(r,t)&&l(r),e.isPointerDown=!1},n=r=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&Bn(r,t)&&l(r),e.isPointerDown=!1};return a.addEventListener("mousedown",i,!0),a.addEventListener("mouseup",r,!0),a.addEventListener("touchstart",i,!0),a.addEventListener("touchend",n,!0),()=>{a.removeEventListener("mousedown",i,!0),a.removeEventListener("mouseup",r,!0),a.removeEventListener("touchstart",i,!0),a.removeEventListener("touchend",n,!0)}}},[t,n])}({ref:t,onInteractOutside:o&&a?e=>{l&&!l(e.target)||(to[to.length-1]===t&&(e.stopPropagation(),e.preventDefault()),d())}:void 0,onInteractOutsideStart:e=>{l&&!l(e.target)||to[to.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=Nn({isDisabled:!n,onBlurWithin:e=>{e.relatedTarget&&!ia(e.relatedTarget,ea)&&(l&&!l(e.relatedTarget)||null==r||r())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||i||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),d())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const no="undefined"!=typeof document&&window.visualViewport;let ao,oo=0;function io(e={}){let{isDisabled:t}=e;vt(()=>{if(!t)return oo++,1===oo&&(ao=Jt()?function(){let e,t=!1,r=r=>{let n=r.target;e=gr(n)?n:hr(n,!0),t=!1;let a=n.ownerDocument.defaultView.getSelection();a&&!a.isCollapsed&&a.containsNode(n,!0)&&(t=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(t=!0)},n=document.createElement("style");n.textContent="\n@layer {\n * {\n overscroll-behavior: contain;\n }\n}".trim(),document.head.prepend(n);let a=r=>{2===r.touches.length||t||(e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&r.preventDefault():r.preventDefault())},o=e=>{let t=e.target,r=e.relatedTarget;if(r&&br(r))r.focus({preventScroll:!0}),co(r,br(t));else if(!r){var n;let e=null===(n=t.parentElement)||void 0===n?void 0:n.closest("[tabindex]");null==e||e.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=null!=document.activeElement&&br(document.activeElement);i.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||co(this,t)};let l=Mt(so(document,"touchstart",r,{passive:!1,capture:!0}),so(document,"touchmove",a,{passive:!1,capture:!0}),so(document,"blur",o,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=i}}():function(){let e=window.innerWidth-document.documentElement.clientWidth;return Mt(e>0&&("scrollbarGutter"in document.documentElement.style?lo(document.documentElement,"scrollbarGutter","stable"):lo(document.documentElement,"paddingRight",`${e}px`)),lo(document.documentElement,"overflow","hidden"))}()),()=>{oo--,0===oo&&ao()}},[t])}function lo(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function so(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function co(e,t){t||!no?uo(e):no.addEventListener("resize",()=>uo(e),{once:!0})}function uo(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let e=hr(r);if(e!==document.documentElement&&e!==document.body&&e!==r){let t=e.getBoundingClientRect(),n=r.getBoundingClientRect();if(n.top<t.top||n.bottom>t.top+r.clientHeight){let r=t.bottom;no&&(r=Math.min(r,no.offsetTop+no.height));let a=n.top-t.top-((r-t.top)/2-n.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+a)),behavior:"smooth"})}}r=e.parentElement}}const vo=p({});const fo="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype;let po=new WeakMap,go=[];function ho(e,t){let r=Tt(null==e?void 0:e[0]),n=t instanceof r.Element?{root:t}:t;var a;let o=null!==(a=null==n?void 0:n.root)&&void 0!==a?a:document.body,i=(null==n?void 0:n.shouldUseInert)&&fo,l=new Set(e),d=new Set,s=(e,t)=>{i&&e instanceof r.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof r.HTMLElement&&(e.inert=!1))},c=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(d.has(e)||l.has(e)||e.parentElement&&d.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&u(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)u(e),e=r.nextNode()}},u=e=>{var t;let n=null!==(t=po.get(e))&&void 0!==t?t:0;var a;(a=e,(i&&a instanceof r.HTMLElement?a.inert:"true"===a.getAttribute("aria-hidden"))&&0===n)||(0===n&&s(e,!0),d.add(e),po.set(e,n+1))};go.length&&go[go.length-1].disconnect(),c(o);let v=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&![...l,...d].some(e=>e.contains(t.target)))for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&c(e):l.add(e)});v.observe(o,{childList:!0,subtree:!0});let f={visibleNodes:l,hiddenNodes:d,observe(){v.observe(o,{childList:!0,subtree:!0})},disconnect(){v.disconnect()}};return go.push(f),()=>{v.disconnect();for(let e of d){let t=po.get(e);null!=t&&(1===t?(s(e,!1),po.delete(e)):po.set(e,t-1))}f===go[go.length-1]?(go.pop(),go.length&&go[go.length-1].observe()):go.splice(go.indexOf(f),1)}}function mo(e,t){let{triggerRef:r,popoverRef:n,groupRef:a,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...d}=e,s="SubmenuTrigger"===d.trigger,{overlayProps:c,underlayProps:u}=ro({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o||s,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},null!=a?a:n),{overlayProps:f,arrowProps:p,placement:g,triggerAnchorPoint:h}=Ja({...d,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:o&&!s?t.close:null});return io({isDisabled:o||!t.isOpen}),v(()=>{var e,r;if(t.isOpen&&n.current)return o?function(e){let t=go[go.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}(null!==(e=null==a?void 0:a.current)&&void 0!==e?e:n.current):ho([null!==(r=null==a?void 0:a.current)&&void 0!==r?r:n.current],{shouldUseInert:!0})},[o,t.isOpen,n,a]),{popoverProps:Ft(c,f),arrowProps:p,underlayProps:u,placement:g,triggerAnchorPoint:h}}const bo=a.createContext(null);function yo(e){let t=wt(),{portalContainer:r=(t?null:document.body),isExiting:n}=e,[o,l]=d(!1),s=i(()=>({contain:o,setContain:l}),[o,l]),{getContainer:c}=null!==(v=u(vo))&&void 0!==v?v:{};var v;if(!e.portalContainer&&c&&(r=c()),!r)return null;let f=e.children;return e.disableFocusManagement||(f=a.createElement(ta,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},f)),f=a.createElement(bo.Provider,{value:s},a.createElement(_n,null,f)),C.createPortal(f,r)}var Co="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};const $o=o(({children:t,className:r,borderRadius:n,disabled:a,expand:o,onHover:i,shadow:l,...d},c)=>{const u=s(null),v=c||u,{buttonProps:f}=Xn({...d,isDisabled:a??!1},v),{hoverProps:p}=jn({isDisabled:a??!1}),{isFocusVisible:g,focusProps:h}=ma();return e("button",{ref:v,className:Le(Ee({_active:{transform:"scale(0.95)"},_disabled:{opacity:"0.8",pointerEvents:"none"},cursor:"pointer",h:"auto",outline:"none",position:"relative",transition:"all 0.1s ease",willChange:"transform, opacity",...o?{w:"full"}:{},...l?{_before:{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05))",_dark:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"},opacity:0,transition:"opacity 0.1s ease"},_hover:{_before:{opacity:1}}}:{}}),g&&Ee({outlineColor:"brand.base",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5}),r),style:{borderRadius:n??ut("radii.button")},...Ft(f,p,h),"aria-disabled":a,onMouseEnter:i,onTouchStart:i,children:e(Xe,{children:t})})});$o.displayName="ButtonContainer";const wo=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0164 14.1589C18.3279 12.9836 18.3279 11.0163 17.0164 9.84113L9.66738 3.25527C9.25608 2.88669 8.62386 2.92132 8.25528 3.33261C7.8867 3.74391 7.92132 4.37613 8.33262 4.74471L15.6817 11.3306C16.1061 11.7109 16.1061 12.2891 15.6817 12.6694L8.33262 19.2553C7.92132 19.6239 7.8867 20.2561 8.25528 20.6674C8.62386 21.0787 9.25608 21.1133 9.66738 20.7447L17.0164 14.1589Z",fill:"currentColor"})]})},xo=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7069 5.70735C20.0974 5.31683 20.0974 4.68366 19.7069 4.29314C19.3163 3.90261 18.6832 3.90261 18.2926 4.29314L12 10.5858L5.70735 4.29314C5.31682 3.90261 4.68366 3.90261 4.29314 4.29314C3.90261 4.68366 3.90261 5.31683 4.29314 5.70735L10.5858 12L4.29295 18.2928C3.90242 18.6834 3.90242 19.3165 4.29295 19.7071C4.68347 20.0976 5.31664 20.0976 5.70716 19.7071L12 13.4142L18.2928 19.7071C18.6834 20.0976 19.3165 20.0976 19.707 19.7071C20.0976 19.3165 20.0976 18.6834 19.707 18.2928L13.4142 12L19.7069 5.70735Z",fill:"currentColor"})]})},Eo=Pe({slots:["container","label","description","icon","button","focus"],base:{container:{px:4,py:3,rounded:10,w:"full"},button:{cursor:"pointer",outline:"none",_focusVisible:{outlineColor:"brand.base",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5,rounded:2}},label:{textAlign:"left"}},variants:{size:{sm:{label:{fontSize:"sm"}},md:{label:{fontSize:"md"}},lg:{label:{fontSize:"lg"}}},variant:{branded:{container:{bg:"brand.lightest",_focusVisible:{outlineColor:"brand.lightest"}},label:{color:"brand.darkest"},description:{color:"brand.darkest"},icon:{color:"brand.darkest"},button:{color:"brand.darkest"}},success:{container:{bg:"positive.lightest",_focusVisible:{outlineColor:"positive.lightest"}},label:{color:"positive.darkest"},description:{color:"positive.darkest"},icon:{color:"positive.darkest"},button:{color:"positive.darkest"}},error:{container:{bg:"negative.lightest",_focusVisible:{outlineColor:"negative.lightest"}},label:{color:"negative.darkest",_dark:{color:"negative.base"}},description:{color:"negative.darkest",_dark:{color:"negative.base"}},icon:{color:"negative.darkest",_dark:{color:"negative.base"}},button:{color:"negative.darkest",_dark:{color:"negative.base"}}},warning:{container:{bg:"warning.lightest",_focusVisible:{outlineColor:"warning.lightest"}},label:{color:"warning.darkest"},description:{color:"warning.darkest"},icon:{color:"warning.darkest"},button:{color:"warning.darkest"}},neutral:{container:{bg:"surface.secondary",_focusVisible:{outlineColor:"surface.secondary"}},label:{color:"text.secondary"},description:{color:"text.secondary"},icon:{color:"text.secondary"},button:{color:"text.secondary"}}},icon:{true:{description:{ml:7}}},dismissible:{true:{description:{mr:7}}},interactive:{true:{container:{cursor:"pointer",transition:"transform 0.2s ease, opacity 0.2s ease",_active:{transform:"scale(0.95)"},_hover:{opacity:.8},_focusVisible:{outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5}}}},description:{true:{label:{textTransform:"uppercase",fontSize:"xs",fontWeight:"semibold",letterSpacing:"0.06rem"}}},isDismissed:{true:{container:{animationFillMode:"forwards",animationName:"scaleOut",animationDuration:"150ms",_motionReduce:{scale:1}}}}}}),ko=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM17.7731 8.63425C18.1234 8.20725 18.0612 7.57715 17.6342 7.22688C17.2072 6.87661 16.5771 6.93881 16.2268 7.36581L10.4197 14.445L7.75841 11.3483C7.39844 10.9294 6.76708 10.8817 6.34822 11.2416C5.92936 11.6016 5.88161 12.233 6.24157 12.6518L9.67907 16.6518C9.87165 16.8759 10.1535 17.0033 10.4489 17C10.7444 16.9966 11.0232 16.8627 11.2106 16.6343L17.7731 8.63425Z",fill:"currentColor"})]})},Lo={branded:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2628 0.239095C7.79128 -1.14294 1.99999 3.65189 1.99999 9.83699C1.99999 13.2747 4.14256 16.424 6.77979 18.1918V18.9377C6.77979 18.9839 6.77854 19.0279 6.77689 19.0861L6.77576 19.1265C6.77382 19.197 6.77152 19.2924 6.7751 19.3913C6.78188 19.579 6.81104 19.8992 7.00168 20.2136C7.4269 20.9149 8.24323 21.005 8.87914 20.9998H15.1605C15.9708 20.9998 16.6864 20.7352 17.0486 20.0545C17.2016 19.7671 17.2421 19.4859 17.2542 19.294C17.2604 19.1958 17.2597 19.1085 17.2585 19.0454C17.2576 19.003 17.2569 18.9807 17.2564 18.9653C17.2559 18.9499 17.2557 18.9413 17.2557 18.9265V18.1804C21.0065 15.6598 23.5296 10.3805 20.9575 5.31469C19.6385 2.71676 17.1206 0.858741 14.2659 0.239749L14.2628 0.239095ZM12.599 6.19416C13.0441 6.52115 13.1399 7.14703 12.8129 7.59211L11.4112 9.50004H13.0859C13.6185 9.50004 14.3124 9.64028 14.7256 10.209C15.215 10.8828 14.9729 11.6331 14.6277 12.0985L12.8155 14.5885C12.4905 15.035 11.8651 15.1336 11.4185 14.8086C10.972 14.4836 10.8735 13.8581 11.1984 13.4116L12.5897 11.5H10.9109C10.3791 11.5 9.69468 11.356 9.28221 10.7972C8.79008 10.1305 9.01522 9.37741 9.37068 8.89946L11.2011 6.40799C11.5281 5.96291 12.154 5.86717 12.599 6.19416ZM13.033 10.89C13.033 10.89 13.0326 10.8907 13.0317 10.8921L13.033 10.89ZM10.9656 10.1074C10.9656 10.1074 10.9658 10.1071 10.9661 10.1065L10.9668 10.1055L10.9656 10.1074ZM8.49998 22C7.9477 22 7.49998 22.4477 7.49998 23C7.49998 23.5523 7.9477 24 8.49998 24H15.5C16.0522 24 16.5 23.5523 16.5 23C16.5 22.4477 16.0522 22 15.5 22H8.49998Z",fill:"currentColor"})]})},success:ko,error:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 4.69686e-07 18.6274 1.04907e-06 12C1.62846e-06 5.37258 5.37259 -1.62846e-06 12 -1.04907e-06C18.6274 -4.69686e-07 24 5.37258 24 12ZM13.5 17C13.5 17.8284 12.8284 18.5 12 18.5L11.991 18.5C11.1626 18.5 10.491 17.8284 10.491 17C10.491 16.1716 11.1626 15.5 11.991 15.5L12 15.5C12.8284 15.5 13.5 16.1716 13.5 17ZM11.9946 13C11.4423 13 10.9946 12.5523 10.9946 12L10.9946 6C10.9946 5.44771 11.4423 5 11.9946 5C12.5469 5 12.9946 5.44771 12.9946 6L12.9946 12C12.9946 12.5523 12.5469 13 11.9946 13Z",fill:"currentColor"})]})},warning:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36635 3.74008C10.5034 1.65549 13.4967 1.65548 14.6337 3.74008L23.2646 19.5634C24.355 21.5626 22.9081 24 20.6309 24H3.36909C1.09191 24 -0.355028 21.5625 0.735407 19.5634L9.36635 3.74008L10.2442 4.21893L9.36635 3.74008ZM12 9C12.5523 9 13 9.44772 13 10V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V10C11 9.44772 11.4477 9 12 9ZM10.4946 19C10.4946 18.1716 11.1662 17.5 11.9946 17.5H12.0036C12.832 17.5 13.5036 18.1716 13.5036 19C13.5036 19.8284 12.832 20.5 12.0036 20.5H11.9946C11.1662 20.5 10.4946 19.8284 10.4946 19Z",fill:"currentColor"})]})},neutral:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM10.5 7C10.5 6.17157 11.1716 5.5 12 5.5H12.009C12.8374 5.5 13.509 6.17157 13.509 7C13.509 7.82843 12.8374 8.5 12.009 8.5H12C11.1716 8.5 10.5 7.82843 10.5 7ZM12.0054 11C12.5577 11 13.0054 11.4477 13.0054 12V18C13.0054 18.5523 12.5577 19 12.0054 19C11.4531 19 11.0054 18.5523 11.0054 18V12C11.0054 11.4477 11.4531 11 12.0054 11Z",fill:"currentColor"})]})}},So=t=>{const{variant:r="branded",...n}=t;return e(Je,{children:e(Lo[r],{...n})})},Io=o((r,n)=>{const{label:a,description:o,size:i="md",variant:l="branded",icon:c=!1,dismissible:u=!1,onPress:v}=r,[f,p]=d(!0),[g,h]=d(!1),m={sm:ut("spacing.4"),md:ut("spacing.5"),lg:ut("spacing.6")},b=o?m.sm:m[i],y=Eo({size:i,variant:l,icon:c,description:!!o,isDismissed:g,dismissible:u,interactive:!!v}),C=()=>{h(!0)},$=s(null),w=n||$,{buttonProps:x}=Xn({onPress:v},w),E=()=>t(Je,{className:v?"":y.container,onAnimationEnd:()=>p(!1),ref:w,children:[t(Xe,{alignItems:"flex-start",gap:1.5,children:[t(Je,{w:"full",justifyContent:"space-between",children:[t(Je,{alignItems:"center",children:[c&&e(So,{variant:l,className:y.icon,width:b,height:b}),e("p",{className:y.label,children:a})]}),u&&e("button",{className:y.button,onClick:C,"aria-label":"dismiss callout",children:e(xo,{className:y.button,width:m.sm,height:m.sm})})]}),!!o&&e("p",{className:y.description,children:o})]}),!!v&&e(wo,{className:y.button,width:m.sm,height:m.sm})]});return f?v?e("button",{...x,className:y.container,children:e(E,{})}):e(E,{}):null});Io.displayName="Callout";const Mo=({inverted:r,neutral:n,progress:a=30,size:o=64,strokeWidth:i=6})=>{const l=o/2,d=Math.abs(a)/100,s=2*Math.PI*l,c=r?"surface.primary":n?"text.primary":"brand.base";return e(lt,{inline:!0,children:t("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,fill:"none",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("circle",{className:Ee({stroke:c,strokeOpacity:.12}),cx:"50%",cy:"50%",r:l-i/2,strokeLinecap:"round",strokeWidth:i}),e("circle",{className:Ee({animation:"spin 1s linear infinite",stroke:c,transformOrigin:"center center"}),cx:"50%",cy:"50%",r:l-i/2,strokeDasharray:s,strokeDashoffset:s-s*d+4*i,strokeLinecap:"round",strokeWidth:i})]})})};ut("colors.brand.lighter"),ut("colors.negative.lighter"),ut("colors.neutral.secondary"),ut("colors.positive.lighter"),ut("colors.warning.lighter");const Po=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.6449 4.23573C22.067 4.59188 22.1205 5.22279 21.7643 5.64489L9.9518 19.6449C9.76439 19.867 9.48962 19.9966 9.19902 20C8.90842 20.0033 8.63074 19.8801 8.43826 19.6623L2.25076 12.6623C1.88499 12.2485 1.92393 11.6166 2.33773 11.2508C2.75152 10.885 3.38349 10.924 3.74926 11.3378L9.16991 17.4702L20.2357 4.35515C20.5919 3.93304 21.2228 3.87958 21.6449 4.23573Z",fill:"currentColor"})]})},To=Ie({base:{textWrap:"wrap"},variants:{mono:{false:{},true:{}},scale:{false:{},true:{}},variant:{text:{color:"text.primary"},error:{color:"negative.darker"},info:{color:"brand.base"},success:{color:"positive.base"},warning:{color:"warning.base"}},size:{xs:{textStyle:"body-xs"},sm:{textStyle:"body-sm"},md:{textStyle:"body-md"},lg:{textStyle:"body-lg"}}},compoundVariants:[{scale:!0,size:"sm",css:{textStyle:"body-sm-scaled"}},{scale:!0,size:"md",css:{textStyle:"body-md-scaled"}},{scale:!0,size:"lg",css:{textStyle:"body-lg-scaled"}},{mono:!0,size:"sm",css:{textStyle:"mono-sm"}},{mono:!0,size:"md",css:{textStyle:"mono-md"}},{mono:!0,size:"lg",css:{textStyle:"mono-lg"}}],defaultVariants:{mono:!1,variant:"text",size:"md"}}),_o="text.primary",No=o(({children:t,styles:r={},scale:n,fontColor:a=_o,...o},i)=>e("h1",{ref:i,className:Ee({textStyle:n?"h1-scaled":"h1",color:a,...o}),style:r,children:t})),Oo=o(({children:t,styles:r={},scale:n,fontColor:a=_o,...o},i)=>e("h2",{ref:i,className:Ee({textStyle:n?"h2-scaled":"h2",color:a,...o}),style:r,children:t})),Ao=o(({children:t,styles:r={},scale:n,fontColor:a=_o,...o},i)=>e("h3",{ref:i,className:Ee({textStyle:n?"h3-scaled":"h3",color:a,...o}),style:r,children:t})),Ro=o(({children:t,styles:r={},scale:n,fontColor:a=_o,...o},i)=>e("h4",{ref:i,className:Ee({textStyle:n?"h4-scaled":"h4",color:a,...o}),style:r,children:t})),Fo=o(({children:t,styles:r={},scale:n,fontColor:a=_o,...o},i)=>e("h5",{ref:i,className:Ee({textStyle:n?"h5-scaled":"h5",color:a,...o}),style:r,children:t})),Do=o(({children:t,styles:r={},scale:n,fontColor:a="text.secondary",...o},i)=>e("h6",{ref:i,className:Ee({textStyle:n?"h6-scaled":"h6",color:a,...o}),style:r,children:t})),jo=o(({children:t,styles:r={},scale:n,inline:a=!1,mono:o=!1,variant:i="text",size:l="md",truncate:d=!1,fontWeight:s,fontColor:c,...u},v)=>{const f={ref:v,className:Le(To({mono:o,variant:i,size:l,scale:n}),Ee({truncate:d,fontWeight:s??("text"!==i?"medium":"normal"),color:c,...u})),style:r};return e(a?"span":"p",{...f,children:t})}),Bo=o((t,r)=>e(jo,{ref:r,mono:!0,...t})),Vo=Object.assign(jo,{H1:No,H2:Oo,H3:Ao,H4:Ro,H5:Fo,H6:Do,Mono:Bo});jo.displayName="Text",No.displayName="Text.H1",Oo.displayName="Text.H2",Ao.displayName="Text.H3",Ro.displayName="Text.H4",Fo.displayName="Text.H5",Do.displayName="Text.H6",Bo.displayName="Text.Mono";const Ho=({isSelected:e,onChange:t,defaultSelected:r=!1})=>{const[n,a]=d(r),o=void 0!==e,i=o?e:n,l=e=>{o||a(e),t&&t(e)};return v(()=>{o&&a(e)},[e]),{isSelected:i,setSelected:l,toggle:()=>l(!i)}},zo=o((r,n)=>{const{label:a,indeterminate:o=!1,disabled:i=!1,checked:l,"aria-label":d,...c}=r,u=Ho({...r,isSelected:l}),f=s(null),p=n||f;v(()=>{const e="current"in p?p.current:null;e&&(e.indeterminate=!!o)},[o,p]);const{inputProps:g}=Ma({...c,"aria-label":a||d||"Checkbox",isDisabled:i,isIndeterminate:o},u,p),{isFocusVisible:h,focusProps:m}=ma();return t("label",{className:Ee({display:"flex",alignItems:"center",rounded:"sm",opacity:i?.3:1}),children:[e(_a,{children:e("input",{...Ft(g,m),ref:p})}),e("div",{className:Ee({display:"flex",alignItems:"center",justifyContent:"center",width:5,height:5,bg:u.isSelected?"brand.base":"transparent",borderWidth:"thick",borderColor:u.isSelected||h?"brand.base":"text.tertiary",transition:"background-color 0.2s ease, border-color 0.2s ease",_hover:{cursor:"pointer",borderColor:"brand.base"},pointerEvents:i?"none":"auto",rounded:"sm",boxSizing:"border-box",outlineColor:h?"brand.base":"transparent",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5}),children:t("span",{children:[u.isSelected&&!o&&e(Po,{height:16,width:16,color:ut("colors.surface.primary")}),u.isSelected&&!!o&&e(Ue,{justifyContent:"center",alignItems:"center",children:e("div",{className:Ee({w:2.5,h:.5,bg:"surface.primary"})})})]})}),a&&e(Ve,{ml:3,children:e(Vo,{fontWeight:"medium",styles:{lineHeight:1},children:a})})]})});zo.displayName="Checkbox";const Wo=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.84115 16.0164C11.0164 17.3279 12.9837 17.3279 14.1589 16.0164L20.7447 8.66738C21.1133 8.25608 21.0787 7.62386 20.6674 7.25528C20.2561 6.8867 19.6239 6.92132 19.2553 7.33262L12.6694 14.6817C12.2891 15.1061 11.7109 15.1061 11.3306 14.6817L4.74473 7.33262C4.37614 6.92132 3.74393 6.8867 3.33263 7.25528C2.92133 7.62386 2.88671 8.25608 3.25529 8.66738L9.84115 16.0164Z",fill:"currentColor"})]})},Uo=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM12.0248 7C10.9095 7 10 7.9061 10 9V9.5C10 10.0523 9.55228 10.5 9 10.5C8.44771 10.5 8 10.0523 8 9.5V9C8 6.78019 9.82639 5 12.0248 5C14.1982 5 16 6.76512 16 8.95565C16 10.8064 14.7234 12.3651 13 12.7883V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V11.9605C11 11.3757 11.4741 10.9016 12.0588 10.9016C13.1288 10.9016 14 10.0299 14 8.95565C14 7.8868 13.1108 7 12.0248 7ZM10.75 18C10.75 17.3096 11.3096 16.75 12 16.75H12.009C12.6993 16.75 13.259 17.3096 13.259 18C13.259 18.6904 12.6993 19.25 12.009 19.25H12C11.3096 19.25 10.75 18.6904 10.75 18Z",fill:"currentColor"})]})},Go=p({selectedValue:void 0,setSelectedValue:()=>{}}),Yo=o((r,n)=>{const{label:a,value:o}=r,i=u(Go),l=s(null),d=n||l,v=c(()=>{i.setSelectedValue(o)},[i,o]),{hoverProps:f}=jn({}),{focusProps:p,isFocusVisible:g}=ma(),{pressProps:h}=Xr({onPress:v}),m=i.selectedValue===o,b=m?0:-1;return t("label",{className:We({alignItems:"center"}),children:[e(_a,{children:e("input",{...Ft(h,p,f),ref:d,type:"radio",checked:m,tabIndex:b,readOnly:!0})}),e(Ue,{justifyContent:"center",alignItems:"center",borderWidth:"thick",borderColor:g||m?"brand.base":"text.tertiary",transition:"border-color 0.2s ease",outlineColor:"brand.base",outlineStyle:g?"solid":"none",outlineWidth:"thick",outlineOffset:.5,_hover:{borderColor:"brand.base"},cursor:"pointer",w:6,h:6,rounded:"full","aria-hidden":"true",children:m&&e(ot,{size:3,bg:"brand.base"})}),e(Ve,{ml:3,children:e(Vo,{size:"lg",fontWeight:"medium",children:a})})]})});Yo.displayName="Radio";var Zo=typeof window>"u"?n.useEffect:n.useLayoutEffect,qo=["$$typeof","render","displayName","defaultProps"],Ko="slots-wrapper",Xo=new RegExp(`^<${Ko}>.*</${Ko}>$`),Qo=({name:e,forceUpdate:t,children:r})=>{let a=n.useRef(null),o=n.useRef(!1);return Zo(()=>{var r;if(!o.current&&(null==(r=a.current)?void 0:r.innerHTML)){let t=a.current.innerHTML;t&&!Xo.test(t)&&console.warn(`Unwrapped children found in "${e}", either wrap them in slots or remove`)}o.current=!0,t()},[e]),o.current?n.createElement(n.Fragment,null,r):n.createElement(Ko,{ref:a},r)},Jo=(e=>{let t=n.createContext(e);return t.displayName="SlotsContext",t})(void 0),ei=({children:e})=>e(),ti=({children:e,callback:t})=>{let r=n.useReducer(()=>[],[])[1],a=n.useMemo(()=>(e=>{let t=new Map;return{register(e,r){t.set(e,r)},update(r,n){t.set(r,n),e(r)},unmount(r){t.delete(r),e(r)},get:e=>t.get(e),getProps(e){let r=t.get(e);if(!r)return;let{ref:n,props:a}=r;return n?{...a,ref:n}:a}}})(r),[r]);return n.createElement(n.Fragment,null,n.createElement(Jo.Provider,{value:a},"production"===process.env.NODE_ENV?e:n.createElement(Qo,{name:"HostSlots",forceUpdate:r},e)),n.createElement(ei,null,()=>t(a)))},ri=(e,t)=>n.createElement(ti,{children:e,callback:t}),ni=e=>{let t=(t,a)=>{let o=n.useContext(Jo);if(!o)return e?n.createElement(e,{ref:a,...t}):null;let i=n.createElement(r,{ref:a,...t});return n.useState(()=>o.register(r,i)),n.useEffect(()=>o.update(r,i)),n.useEffect(()=>()=>o.unmount(r),[o]),null};t.displayName=e?`Slot(${(e=>"string"==typeof e?e:e.displayName||e.name||"Component")(e)})`:"Slot";let r=n.forwardRef(t);return e?((e,t)=>{if("string"==typeof t)return e;let r=Object.getOwnPropertyNames(t).reduce((e,r)=>(qo.includes(r)||(e[r]=t[r]),e),{});return Object.assign(e,r)})(r,e):r};const ai=p({currentTab:void 0,setCurrentTab:()=>{},tabRefs:{current:{}},disabled:!1}),oi=ni(({children:t,...r})=>e(Ue,{alignItems:"center",justifyContent:"center",children:g.map(t,e=>h(e,r))})),ii=o((r,n)=>{const{label:a,id:o}=r,{currentTab:i,setCurrentTab:l,tabRefs:d,size:f,disabled:p}=u(ai),g=i===o,h="sm"===f?8:"md"===f?10:13,m="sm"===f?16:20,b=s(null),y=n||b;v(()=>{"object"==typeof y&&d.current&&(d.current[o]=y.current)},[o]);const C=c(()=>{l(o)},[l,o]),{buttonProps:$,isPressed:w}=Xn({onPress:C,isDisabled:p},y),{hoverProps:x}=jn({}),{isFocusVisible:E,focusProps:k}=ma();return ri(r.children,r=>{const n=r.get(oi);return e("button",{className:Ee({display:"flex",justifyContent:"center",alignItems:"center",h:h,w:"full",rounded:"button",zIndex:0,cursor:"pointer",color:g?"text.primary":"text.secondary",fontSize:f,fontWeight:"semibold",whiteSpace:"nowrap",bg:"transparent",outlineColor:E?"brand.base":"transparent",outlineStyle:"solid",outlineWidth:"thick",transition:g?"background 0s":"background 0.2s ease",_disabled:{opacity:"0.3",pointerEvents:"none"},_hover:{bg:g?"transparent":"ink.20",_dark:{bg:g?"transparent":"slate.1"}}}),ref:y,...Ft($,x,k),disabled:p,children:t(Ue,{opacity:w&&!g?.5:1,align:"center",justify:"center",children:[n&&{...n,props:{...n.props,className:Ee({mr:1,color:g?"text.primary":"text.secondary"}),width:m,height:m}},a]})})})});Object.assign(ii,{Icon:oi}),ii.displayName="Tab";const li=o((r,n)=>{const{checked:a,disabled:o=!1,label:i,className:l,...d}=r,c=s(null),u=n||c,v=Ho({...r,isSelected:a}),{buttonProps:f}=function(e,t,r){const{isSelected:n}=t,{isPressed:a,buttonProps:o}=Xn({...e,onPress:Mt(t.toggle,e.onPress)},r);return{isPressed:a,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:Ft(o,{"aria-pressed":n})}}({...d,isDisabled:o},v,u),{isFocusVisible:p,focusProps:g}=ma();return t(Ue,{alignItems:"center",children:[i&&e(Ve,{mr:2,children:e(Vo,{fontWeight:"medium",styles:{lineHeight:1},children:i})}),e("button",{...Ft(f,g),className:Le(Ee({px:.5,h:5,width:11,_disabled:{opacity:.3,pointerEvents:"none"},bg:v.isSelected?"brand.base":"neutral.primary",_hover:{bg:v.isSelected?"brand.base":"ink.70",_dark:{bg:v.isSelected?"brand.base":"slate.4"}},transition:"background-color 0.2s ease",rounded:"full",outlineColor:p?"brand.base":"transparent",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5,cursor:"pointer"}),l),children:e("span",{className:at({h:4,w:4,bg:"paper",position:"relative",left:v.isSelected?6:0,transition:"left 0.2s ease"})})})]})});li.displayName="Switch";const di="hover",si=ni(({children:t})=>e(r,{children:t})),ci=ni(({children:t,...r})=>{const{onPress:n,...a}=r;return e(lt,{children:g.map(t,e=>h(e,a))})}),ui=ni(t=>e(xi.LeadingIcon,{...t})),vi=ni(t=>e(xi.TrailingIcon,{...t})),fi=Object.assign(({children:n,...a})=>ri(n,n=>{var o;const{isOpen:l,defaultOpen:d,onOpenChange:u,trigger:f=di,iconSize:p,onPress:g,...h}=a,{isSelected:m,setSelected:b}=Ho({defaultSelected:d,onChange:u,...a}),y=void 0!==l?l:m,C=24,$=i(()=>({isOpen:y,open:()=>{b(!0)},close:()=>{b(!1)},setOpen(e){b(e)},toggle(){}}),[y]),w=n.getProps(si),x=s(null),{triggerProps:E,overlayProps:k}=function(e,t,r){let n,{isOpen:a}=t;v(()=>{r&&r.current&&Xa.set(r.current,t.close)});let o=Lt();return{triggerProps:{"aria-haspopup":n,"aria-expanded":a,"aria-controls":a?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}(0,$,x),L=s(null),{popoverProps:S,underlayProps:I}=mo({placement:a.placement||"bottom left",offset:8,popoverRef:L,triggerRef:x,...w},$),M=Ft(w,S);null!==(o=M?.style)&&void 0!==o&&o.zIndex&&(M.style.zIndex=ut("zIndex.max"));const{className:P,...T}=M,_=c(()=>{$.open()},[$]),N=c(e=>{var t,r;const n=null===(t=x.current)||void 0===t?void 0:t.getBoundingClientRect(),a=null===(r=L.current)||void 0===r?void 0:r.getBoundingClientRect();if(n&&a){const t=e.clientX>=n.left-C&&e.clientX<=n.right+C&&e.clientY>=n.top-C&&e.clientY<=n.bottom+C,r=e.clientX>=a.left-C&&e.clientX<=a.right+C&&e.clientY>=a.top-C&&e.clientY<=a.bottom+C;!t&&!r&&$.close()}},[$]),O=()=>{if(L.current){const e=L.current.querySelectorAll('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');e.length>0&&e[0].focus()}};v(()=>(document.addEventListener("mousemove",N),()=>{document.removeEventListener("mousemove",N)}),[N]);const A=n.get(ci),R=n.getProps(ui),F=n.getProps(vi),D=p?{height:p,width:p}:{};return t(r,{children:[e(Ve,A?{display:"inline-block",ref:x,...h,children:A&&{...A,props:{...A.props,...E}}}:{display:"inline-block",ref:x,children:t(xi,{...Ft(E,h),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),l?$.close():($.open(),setTimeout(O,0)))},onHover:()=>"hover"===f&&_(),onPress:()=>"click"===f&&_(),children:[R&&e(xi.LeadingIcon,{...R,...D}),F&&e(xi.TrailingIcon,{...F,...D})]})}),y&&t(yo,{...k,children:[e("div",{...I,className:"underlay"}),e("div",{ref:L,...T,className:Le(Ke({bg:"surface.secondary",p:3,gap:0,color:"text.secondary",borderWidth:1,borderColor:"neutral.secondary",borderRadius:"xl",boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.10)",maxW:52,alignItems:"start"}),P),children:n.get(si)})]})]})}),{Trigger:ci,LeadingIcon:ui,TrailingIcon:vi,Content:si}),pi=o((t,r)=>{var n;const{container:a,...o}=t,[i,l]=d(!1);m(()=>l(!0),[]);const s=a||i&&(null===(n=globalThis?.document)||void 0===n?void 0:n.body);return s?C.createPortal(e("div",{...o,ref:r}),s):null});pi.displayName="Portal";const gi=e=>()=>{throw new Error("TOAST_PROVIDER_REQUIRED",{cause:`Before calling \`${e}\`, wrap your application with \`<ToastProvider>\`.`})};p({createToast:gi("createToast"),removeToast:gi("removeToast")}),Pe({slots:["container","portal","toast","icon","dismiss"],base:{portal:{boxSizing:"border-box",position:"fixed",zIndex:"max",top:0,left:0,height:"100vh",width:"100vw",pointerEvents:"none"},container:{height:"full",width:"full",p:"20px"},toast:{py:2,px:4,rounded:10,boxShadow:"4px 8px 20px 0px rgba(0, 0, 0, 0.15)"},dismiss:{cursor:"pointer",pointerEvents:"all"},icon:{color:"surface.primary",height:"1rem",width:"1rem"}},variants:{variant:{branded:{toast:{backgroundColor:"brand.base"}},success:{toast:{backgroundColor:"positive.darker"}},warning:{toast:{backgroundColor:"warning.darker"}},error:{toast:{backgroundColor:"negative.darker"}},neutral:{toast:{backgroundColor:"text.tertiary",_dark:{backgroundColor:"text.secondary"}}}},position:{top:{container:{alignItems:"center",justifyContent:"flex-start"}},"top-left":{container:{alignItems:"flex-start",justifyContent:"flex-start"}},"top-right":{container:{alignItems:"flex-end",justifyContent:"flex-start"}},bottom:{container:{alignItems:"center",justifyContent:"flex-end"}},"bottom-left":{container:{alignItems:"flex-start",justifyContent:"flex-end"}},"bottom-right":{container:{alignItems:"flex-end",justifyContent:"flex-end"}}}},defaultVariants:{position:"top-right",variant:"branded"}});const hi=Pe({slots:["trigger","content","spacer"],base:{trigger:{position:"relative",w:"auto"},content:{w:"max",maxW:72,color:"text.secondary",bg:"surface.primary",borderColor:"neutral.secondary",borderWidth:"thin",_dark:{bg:"surface.tertiary"},position:"absolute",py:2,px:3,rounded:"xl",boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.10)",zIndex:"max",display:"none"},spacer:{position:"absolute"}},variants:{expand:{true:{trigger:{w:"full"}}},isOpen:{true:{content:{display:"block"}}},placement:{top:{content:{top:"0%",left:"50%",transform:"translateX(-50%) translateY(calc(-100% - 0.75rem))"}},"top left":{content:{top:"0%",right:"100%",transform:"translateX(10%) translateY(calc(-100% - 0.75rem))"}},"top right":{content:{top:"0%",left:"100%",transform:"translateX(-10%) translateY(calc(-100% - 0.75rem))"}},left:{content:{top:"50%",left:"0%",transform:"translateX(calc(-100% - 0.75rem)) translateY(-50%)"}},"left top":{content:{top:"50%",left:"0%",transform:"translateX(calc(-100% - 0.75rem)) translateY(-75%)"}},"left bottom":{content:{top:"50%",left:"0%",transform:"translateX(calc(-100% - 0.75rem)) translateY(-25%)"}},right:{content:{top:"50%",right:"0%",transform:"translateX(calc(100% + 0.75rem)) translateY(-50%)"}},"right top":{content:{top:"50%",right:"0%",transform:"translateX(calc(100% + 0.75rem)) translateY(-75%)"}},"right bottom":{content:{top:"50%",right:"0%",transform:"translateX(calc(100% + 0.75rem)) translateY(-25%)"}},bottom:{content:{bottom:"0%",left:"50%",transform:"translateX(-50%) translateY(calc(100% + 0.75rem))"}},"bottom left":{content:{bottom:"0%",right:"100%",transform:"translateX(10%) translateY(calc(100% + 0.75rem))"}},"bottom right":{content:{bottom:"0%",left:"100%",transform:"translateX(-10%) translateY(calc(100% + 0.75rem))"}}},position:{top:{spacer:{width:72,height:4,bottom:0,left:"50%",transform:"translateX(-50%) translateY(0.75rem)"}},bottom:{spacer:{width:72,height:4,top:0,left:"50%",transform:"translateX(-50%) translateY(-0.75rem)"}},left:{spacer:{width:4,height:48,top:"50%",right:-6,transform:"translateX(-0.75rem) translateY(-50%)"}},right:{spacer:{width:4,height:48,top:"50%",left:-6,transform:"translateX(0.75rem) translateY(-50%)"}}}}}),mi=o((r,n)=>{const a="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0,{children:o,content:l,width:c=288,closeDelay:u=2500,defaultOpen:f,placement:p="top",expand:g=!1,...b}=r,[y,C]=d(!1),{isSelected:$,setSelected:w}=Ho({isOpen:r.isOpen,defaultSelected:f,onChange(e){e||C(!1)},...r}),x=i(()=>({isOpen:$,open:()=>{w(!0)},close:e=>{e||a?w(!1):(y&&setTimeout(()=>{w(!1),C(!1)},u),y||w(!1))}}),[$,y]),E=s(null),{triggerProps:k,tooltipProps:L}=function(e,t,r){let{isDisabled:n,trigger:a,shouldCloseOnPress:o=!0}=e,i=Lt(),l=s(!1),d=s(!1),c=()=>{(l.current||d.current)&&t.open(d.current)},u=e=>{l.current||d.current||t.close(e)};v(()=>{let e=e=>{r&&r.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[r,t]);let f=()=>{o&&(d.current=!1,l.current=!1,u(!0))},{hoverProps:p}=jn({isDisabled:n,onHoverStart:()=>{"focus"!==a&&("pointer"===xn()?l.current=!0:l.current=!1,c())},onHoverEnd:()=>{"focus"!==a&&(d.current=!1,l.current=!1,u())}}),{focusableProps:g}=Tn({isDisabled:n,onFocus:()=>{wn()&&(d.current=!0,c())},onBlur:()=>{d.current=!1,l.current=!1,u(!0)}},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...Ft(g,p,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:i}}}(r,x,E);k.onClick=()=>{x.open(),C(!0)};const S=function(e){const t=s(null),r=s(e);return m(()=>{r.current=e}),v(()=>{const e=e=>{const n=t.current;n&&!n.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[]),t}(()=>{x.close(!0)}),I=p.split(" ")[0],M=hi({expand:g,isOpen:x.isOpen,placement:p,position:I});return t(Ve,{ref:S,className:M.trigger,onMouseLeave:()=>{x.close()},onFocus:()=>{x.open()},onBlur:()=>{x.close()},children:[h(o,{...k,tabIndex:0}),t(Ve,{ref:n,"aria-describedby":"tooltip",role:"tooltip",className:M.content,style:{width:c},onMouseEnter:()=>{x.open()},...Ft(L,b),children:[e(Vo,{size:"sm",children:l}),x.isOpen&&e(Ve,{onMouseEnter:()=>{x.open()},className:M.spacer})]})]})});mi.displayName="Tooltip",p({selectedOption:null,setSelectedOption:()=>{}});const bi=Pe({slots:["button","label","focus","icon","iconContainer"],base:{button:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",fontWeight:"semibold",boxSizing:"border-box",borderRadius:"button",border:"thin solid",borderColor:"transparent",cursor:"pointer",transition:"all 0.1s ease",outline:"none",willChange:"transform, opacity",bg:"none",_active:{transform:"scale(0.95)"},_disabled:{opacity:"0.3",pointerEvents:"none"},_before:{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05))",_dark:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"},opacity:0,transition:"opacity 0.1s ease"},_hover:{_before:{opacity:1}}},label:{display:"flex",textAlign:"center",justifyContent:"center",whiteSpace:"nowrap",transition:"all 0.1s ease"},focus:{outlineColor:"brand.base",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5},icon:{transition:"all 0.1s ease"}},variants:{size:{sm:{button:{h:9,py:1.5,px:4},label:{fontSize:"sm",lineHeight:"1.5rem"},iconContainer:{w:9,p:1.5}},md:{button:{h:12,py:3,px:6},label:{fontSize:"md",lineHeight:"1.5rem"},iconContainer:{w:12,p:3}},lg:{button:{h:15,py:4,px:6},label:{fontSize:"lg",lineHeight:"1.75rem"},iconContainer:{w:15,p:4}}},variant:{primary:{button:{bg:"brand.base"},label:{color:"surface.primary"},icon:{color:"surface.primary"}},secondary:{button:{bg:"brand.lightest"},label:{color:"brand.darker"},icon:{color:"brand.darker"}},positive:{button:{bg:"positive.darker"},label:{color:"surface.primary"},icon:{color:"surface.primary"}},negative:{button:{bg:"negative.darker"},label:{color:"surface.primary"},icon:{color:"surface.primary"}},neutral:{button:{bg:"neutral.tertiary",_light:{mixBlendMode:"multiply"}},label:{color:"text.primary"},icon:{color:"text.primary"}},tertiary:{button:{bg:"transparent",borderColor:"neutral.primary"},label:{color:"text.primary"},icon:{color:"brand.base"}},text:{button:{p:0,h:"fit-content",_hover:{_before:{opacity:0}}},label:{color:"brand.base",_groupHover:{color:"brand.darkest",_dark:{color:"brand.lighter"}}},icon:{color:"brand.base",_groupHover:{color:"brand.darkest",_dark:{color:"brand.lighter"}}}},transparent:{button:{bg:{base:"#ffffff14",_hover:"#ffffff4d"},_dark:{bg:"#ffffff29"},backdropFilter:"blur(3px)",_before:{display:"none"}},label:{color:"chalk"},icon:{color:"chalk"}},inverse:{button:{bg:"ink.90",_dark:{bg:"paper"},_before:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))",_dark:{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05))"}}},label:{color:"chalk",_dark:{color:"ink.90"}},icon:{color:"chalk",_dark:{color:"ink.90"}}}},validating:{true:{button:{pointerEvents:"none"}}},expand:{true:{button:{width:"full"}}},iconOnly:{true:{button:{borderRadius:"full"}}},textStyle:{positive:{},negative:{},neutral:{},subtle:{}}},compoundVariants:[{textStyle:"positive",css:{label:{color:"positive.base"},icon:{color:"positive.base"}}},{variant:"text",textStyle:"positive",css:{label:{_groupHover:{color:"positive.darker",_dark:{color:"positive.darker"}}},icon:{_groupHover:{color:"positive.darker",_dark:{color:"positive.darker"}}}}},{textStyle:"negative",css:{label:{color:"negative.darker",_dark:{color:"negative.base"}},icon:{color:"negative.darker",_dark:{color:"negative.base"}}}},{variant:"text",textStyle:"negative",css:{label:{_groupHover:{color:"negative.darkest",_dark:{color:"negative.lighter"}}},icon:{_groupHover:{color:"negative.darkest",_dark:{color:"negative.lighter"}}}}},{textStyle:"neutral",css:{label:{color:"text.primary"},icon:{color:"text.primary"}}},{variant:"text",textStyle:"neutral",css:{label:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}},icon:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}}}},{textStyle:"subtle",css:{label:{color:"text.tertiary"},icon:{color:"text.tertiary"}}},{variant:"text",textStyle:"subtle",css:{label:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}},icon:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}}}},{variant:"text",iconOnly:!0,css:{iconContainer:{p:1.5,w:"fit-content"}}}],defaultVariants:{size:"md",variant:"primary"}}),yi=ni(({children:t,...r})=>e(Ue,{alignItems:"center",justifyContent:"center",children:g.map(t,e=>h(e,r))})),Ci=ni(({children:t,...r})=>e(Ue,{alignItems:"center",justifyContent:"center",children:g.map(t,e=>h(e,r))})),$i=({variant:t="primary",size:r="md"})=>e(Mo,{size:{sm:20,md:24,lg:28}[r],strokeWidth:2.5,inverted:"primary"===t||"negative"===t,neutral:"neutral"===t||"tertiary"===t}),wi=o((r,n)=>{const{label:a,variant:o="primary",textStyle:i,size:l="md",disabled:d,expand:c,validating:u,iconSize:v,onHover:f,centerContent:p}=r,g=v||("sm"===l?16:24),h=a&&c&&!p,m=bi({variant:o,textStyle:i,expand:c,size:l,validating:u,iconOnly:!a}),b=s(null),y=n||b,{buttonProps:C}=Xn({...r,isDisabled:d??!1},y),{hoverProps:$}=jn({isDisabled:d??!1}),{isFocusVisible:w,focusProps:x}=ma();return ri(r.children,r=>{const n=r.get(yi),i=r.get(Ci),s=g/4;return e("button",{className:Le(m.button,"group",!a&&m.iconContainer,w&&m.focus),ref:y,...Ft(C,$,x),"aria-disabled":d,onMouseEnter:f,onTouchStart:f,children:u?e($i,{variant:o,size:l}):t(Je,{w:"full",gap:2,justify:a&&(n||i)&&!p?"space-between":"center",children:[n&&{...n,props:{className:n.props.color?void 0:m.icon,width:g,height:g,...n.props}},i&&h&&e(Ve,{w:s}),a&&e("span",{className:m.label,children:a}),n&&h&&e(Ve,{w:s}),i&&{...i,props:{className:i.props.color?void 0:m.icon,width:g,height:g,...i.props}}]})})})}),xi=Object.assign(wi,{LeadingIcon:yi,TrailingIcon:Ci});wi.displayName="Button";const Ei=Ie({base:{bgColor:"surface.primary",borderRadius:"1rem"},variants:{asButton:{false:{cursor:"default"},true:{alignItems:"center",cursor:"pointer",h:"10.75rem",justifyContent:"center",p:4,transition:"all 0.1s ease",w:"10.75rem",_active:{transform:"scale(0.95)"}}},alignment:{center:{alignItems:"center"},left:{alignItems:"flex-start"},right:{alignItems:"flex-end"}},alt:{true:{}},expand:{false:{overflow:"hidden"},true:{overflow:"visible",w:"full"}},gapType:{none:{gap:0},sm:{gap:4},md:{gap:5},lg:{gap:6}},heavyShadow:{false:{boxShadow:"0px 1px 2px rgba(189, 189, 189, 0.3)"},true:{boxShadow:"8px 8px 48px rgba(16, 15, 17, 0.14)"}},paddingType:{none:{p:0},sm:{px:4,py:3},md:{px:8,py:6},lg:{p:12}},widthMax:{true:{flex:1,maxW:"29.125rem",mdDown:{maxW:"full"}}},disabled:{true:{opacity:.3,pointerEvents:"none"}},validating:{true:{pointerEvents:"none"}}},compoundVariants:[{asButton:!0,alt:!0,css:{bgColor:"surface.tertiary",color:"text.secondary",_hover:{filter:"brightness(0.9)"}}}],defaultVariants:{alt:!1,expand:!1,gapType:"md",heavyShadow:!1,paddingType:"md",widthMax:!1}}),ki=o(({children:t,className:r,id:n,asButton:a,stack:o,onClick:i,validating:l,...d},s)=>{const c=Ei({asButton:a,validating:l,...d});return o||a?e(Ue,{id:n,className:Le(c,r),flexDirection:"column",role:a?"button":"none",onClick:a?i:void 0,ref:s,children:l?e(Mo,{neutral:!0}):t}):e(Ve,{id:n,className:Le(c,r),ref:s,children:t})});ki.displayName="Card";const Li=({isOpen:n=!1,title:a,onToggle:o,children:i,showCloseButton:l=!0})=>{const[u,f]=d(n),[p,g]=d(n),h=s(null);v(()=>{let e;return n?(f(!0),e=setTimeout(()=>g(!0),10)):g(!1),()=>clearTimeout(e)},[n]),v(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]);const m=c(()=>{o(!1)},[o]);return t(r,{children:[e(Ve,{position:"absolute",display:n?"block":"none",h:"full",bottom:0,left:0,right:0,bg:"text.primary/20",_dark:{bg:"rgba(0, 0, 0, .7)"},backdropFilter:"blur(3px)"}),u&&t(Ve,{ref:h,position:"absolute",transform:p?"translateY(0)":"translateY(100%)",transition:"transform 0.3s",bottom:0,left:0,right:0,bg:"surface.primary",_dark:{bg:"surface.secondary"},roundedTop:"3xl",boxShadow:"0px -12px 56px 0px rgba(119, 118, 122, 0.15)",onTransitionEnd:()=>{n||f(!1)},zIndex:10,children:[t(Je,{justifyContent:"space-between",px:6,py:4,children:[e(Vo,{fontWeight:"medium",children:a}),l&&e(xi,{size:"sm",variant:"neutral",onPress:m,children:e(xi.LeadingIcon,{children:e(Wo,{})})})]}),e(Ve,{px:6,pb:6,children:i})]})]})},Si=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M11.2625 0.24827C11.4758 0.0870459 11.7344 0 12 0C12.2656 0 12.5242 0.0870459 12.7375 0.24827C14.2625 1.36858 17.625 4.81861 17.625 13.1445C17.625 15.8944 16.65 19.2044 15.925 21.2285C15.75 21.725 15.2875 22.056 14.7625 22.056H9.25C8.725 22.056 8.25 21.725 8.075 21.2285C7.35 19.2044 6.375 15.8944 6.375 13.1445C6.375 4.81861 9.7375 1.36858 11.2625 0.24827ZM14.5 10.5984C14.5 9.19799 13.375 8.05222 12 8.05222C10.625 8.05222 9.5 9.19799 9.5 10.5984C9.5 11.9988 10.625 13.1445 12 13.1445C13.375 13.1445 14.5 11.9988 14.5 10.5984ZM6.6125 22.718C6.0125 21.1522 4.7125 17.4093 4.525 13.972L3.1125 14.9268C2.4125 15.4106 2 16.1999 2 17.0529V22.718C2 23.6219 2.8875 24.233 3.7125 23.902L6.6125 22.718ZM22 22.718V17.0529C22 16.1999 21.5875 15.4106 20.8875 14.9396L19.475 13.9848C19.2875 17.4093 17.975 21.1649 17.3875 22.7308L20.2875 23.9147C21.1125 24.233 22 23.6219 22 22.718Z",fill:"currentColor"})]})},Ii="2.625rem",Mi=ni(({children:t,...r})=>e(lt,{children:g.map(t,e=>h(e,r))}));Object.assign(t=>{const{assetUri:n}=t;return ri(t.children,t=>{const a=t.get(Mi);return e(r,{children:n&&"https://assets.fortmatic.com/MagicLogos/blank.png"!==n?e("img",{className:Ee({height:Ii,width:Ii,overflow:"hidden"}),alt:"logo",src:n}):a?{...a,props:{...a.props,width:Ii,height:Ii}}:e(Si,{height:Ii,width:Ii,color:ut("colors.brand.lighter")})})})},{PlaceholderIcon:Mi});var Pi={},Ti={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",o="[object Array]",i="[object Boolean]",l="[object Date]",d="[object Error]",s="[object Function]",c="[object Map]",u="[object Number]",v="[object Object]",f="[object Promise]",p="[object RegExp]",g="[object Set]",h="[object String]",m="[object Symbol]",b="[object WeakMap]",y="[object ArrayBuffer]",C="[object DataView]",$=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[a]=x[o]=x[y]=x[i]=x[C]=x[l]=x[d]=x[s]=x[c]=x[u]=x[v]=x[p]=x[g]=x[h]=x[b]=!1;var E="object"==typeof Co&&Co&&Co.Object===Object&&Co,k="object"==typeof self&&self&&self.Object===Object&&self,L=E||k||Function("return this")(),S=t&&!t.nodeType&&t,I=S&&e&&!e.nodeType&&e,M=I&&I.exports===S,P=M&&E.process,T=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),_=T&&T.isTypedArray;function N(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function O(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function A(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var R,F,D,j=Array.prototype,B=Function.prototype,V=Object.prototype,H=L["__core-js_shared__"],z=B.toString,W=V.hasOwnProperty,U=(R=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",G=V.toString,Y=RegExp("^"+z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=M?L.Buffer:void 0,q=L.Symbol,K=L.Uint8Array,X=V.propertyIsEnumerable,Q=j.splice,J=q?q.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=Z?Z.isBuffer:void 0,re=(F=Object.keys,D=Object,function(e){return F(D(e))}),ne=Te(L,"DataView"),ae=Te(L,"Map"),oe=Te(L,"Promise"),ie=Te(L,"Set"),le=Te(L,"WeakMap"),de=Te(Object,"create"),se=Ae(ne),ce=Ae(ae),ue=Ae(oe),ve=Ae(ie),fe=Ae(le),pe=q?q.prototype:void 0,ge=pe?pe.valueOf:void 0;function he(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function me(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ye(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new be;++t<r;)this.add(e[t])}function Ce(e){var t=this.__data__=new me(e);this.size=t.size}function $e(e,t){var r=De(e),n=!r&&Fe(e),a=!r&&!n&&je(e),o=!r&&!n&&!a&&We(e),i=r||n||a||o,l=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],d=l.length;for(var s in e)!W.call(e,s)||i&&("length"==s||a&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Oe(s,d))||l.push(s);return l}function we(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}function xe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=W.call(e,J),r=e[J];try{e[J]=void 0;var n=!0}catch(e){}var a=G.call(e);n&&(t?e[J]=r:delete e[J]);return a}(e):function(e){return G.call(e)}(e)}function Ee(e){return ze(e)&&xe(e)==a}function ke(e,t,r,n,s){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,r,n,s,f){var b=De(e),$=De(t),w=b?o:Ne(e),x=$?o:Ne(t),E=(w=w==a?v:w)==v,k=(x=x==a?v:x)==v,L=w==x;if(L&&je(e)){if(!je(t))return!1;b=!0,E=!1}if(L&&!E)return f||(f=new Ce),b||We(e)?Ie(e,t,r,n,s,f):function(e,t,r,n,a,o,s){switch(r){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!o(new K(e),new K(t)));case i:case l:case u:return Re(+e,+t);case d:return e.name==t.name&&e.message==t.message;case p:case h:return e==t+"";case c:var v=O;case g:var f=1&n;if(v||(v=A),e.size!=t.size&&!f)return!1;var b=s.get(e);if(b)return b==t;n|=2,s.set(e,t);var $=Ie(v(e),v(t),n,a,o,s);return s.delete(e),$;case m:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,w,r,n,s,f);if(!(1&r)){var S=E&&W.call(e,"__wrapped__"),I=k&&W.call(t,"__wrapped__");if(S||I){var M=S?e.value():e,P=I?t.value():t;return f||(f=new Ce),s(M,P,r,n,f)}}if(!L)return!1;return f||(f=new Ce),function(e,t,r,n,a,o){var i=1&r,l=Me(e),d=l.length,s=Me(t),c=s.length;if(d!=c&&!i)return!1;var u=d;for(;u--;){var v=l[u];if(!(i?v in t:W.call(t,v)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);var g=i;for(;++u<d;){var h=e[v=l[u]],m=t[v];if(n)var b=i?n(m,h,v,t,e,o):n(h,m,v,e,t,o);if(!(void 0===b?h===m||a(h,m,r,n,o):b)){p=!1;break}g||(g="constructor"==v)}if(p&&!g){var y=e.constructor,C=t.constructor;y==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof C&&C instanceof C||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,s,f)}(e,t,r,n,ke,s))}function Le(e){return!(!He(e)||function(e){return!!U&&U in e}(e))&&(Be(e)?Y:$).test(Ae(e))}function Se(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||V,t!==n)return re(e);var t,r,n,a=[];for(var o in Object(e))W.call(e,o)&&"constructor"!=o&&a.push(o);return a}function Ie(e,t,r,n,a,o){var i=1&r,l=e.length,d=t.length;if(l!=d&&!(i&&d>l))return!1;var s=o.get(e);if(s&&o.get(t))return s==t;var c=-1,u=!0,v=2&r?new ye:void 0;for(o.set(e,t),o.set(t,e);++c<l;){var f=e[c],p=t[c];if(n)var g=i?n(p,f,c,t,e,o):n(f,p,c,e,t,o);if(void 0!==g){if(g)continue;u=!1;break}if(v){if(!N(t,function(e,t){if(i=t,!v.has(i)&&(f===e||a(f,e,r,n,o)))return v.push(t);var i})){u=!1;break}}else if(f!==p&&!a(f,p,r,n,o)){u=!1;break}}return o.delete(e),o.delete(t),u}function Me(e){return function(e,t,r){var n=t(e);return De(e)?n:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(n,r(e))}(e,Ue,_e)}function Pe(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function Te(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(r)?r:void 0}he.prototype.clear=function(){this.__data__=de?de(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(de){var n=t[e];return n===r?void 0:n}return W.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return de?void 0!==t[e]:W.call(t,e)},he.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=de&&void 0===t?r:t,this},me.prototype.clear=function(){this.__data__=[],this.size=0},me.prototype.delete=function(e){var t=this.__data__,r=we(t,e);return!(r<0)&&(r==t.length-1?t.pop():Q.call(t,r,1),--this.size,!0)},me.prototype.get=function(e){var t=this.__data__,r=we(t,e);return r<0?void 0:t[r][1]},me.prototype.has=function(e){return we(this.__data__,e)>-1},me.prototype.set=function(e,t){var r=this.__data__,n=we(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(ae||me),string:new he}},be.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Pe(this,e).get(e)},be.prototype.has=function(e){return Pe(this,e).has(e)},be.prototype.set=function(e,t){var r=Pe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,r),this},ye.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.clear=function(){this.__data__=new me,this.size=0},Ce.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var r=this.__data__;if(r instanceof me){var n=r.__data__;if(!ae||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new be(n)}return r.set(e,t),this.size=r.size,this};var _e=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}(ee(e),function(t){return X.call(e,t)}))}:function(){return[]},Ne=xe;function Oe(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||w.test(e))&&e>-1&&e%1==0&&e<t}function Ae(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Re(e,t){return e===t||e!=e&&t!=t}(ne&&Ne(new ne(new ArrayBuffer(1)))!=C||ae&&Ne(new ae)!=c||oe&&Ne(oe.resolve())!=f||ie&&Ne(new ie)!=g||le&&Ne(new le)!=b)&&(Ne=function(e){var t=xe(e),r=t==v?e.constructor:void 0,n=r?Ae(r):"";if(n)switch(n){case se:return C;case ce:return c;case ue:return f;case ve:return g;case fe:return b}return t});var Fe=Ee(function(){return arguments}())?Ee:function(e){return ze(e)&&W.call(e,"callee")&&!X.call(e,"callee")},De=Array.isArray;var je=te||function(){return!1};function Be(e){if(!He(e))return!1;var t=xe(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function He(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var We=_?function(e){return function(t){return e(t)}}(_):function(e){return ze(e)&&Ve(e.length)&&!!x[xe(e)]};function Ue(e){return null!=(t=e)&&Ve(t.length)&&!Be(t)?$e(e):Se(e);var t}e.exports=function(e,t){return ke(e,t)}}(Ti,Ti.exports);var _i=Ti.exports,Ni={exports:{}};!function(e){var t=function(){var e=function(e,t){var r=e,n=c[t],a=null,o=0,i=null,l=[],d={},s=function(e,t){a=function(e){for(var t=new Array(e),r=0;r<e;r+=1){t[r]=new Array(e);for(var n=0;n<e;n+=1)t[r][n]=null}return t}(o=4*r+17),u(0,0),u(o-7,0),u(0,o-7),f(),v(),g(e,t),r>=7&&p(e),null==i&&(i=m(r,n,l)),h(i,t)},u=function(e,t){for(var r=-1;r<=7;r+=1)if(!(e+r<=-1||o<=e+r))for(var n=-1;n<=7;n+=1)t+n<=-1||o<=t+n||(a[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},v=function(){for(var e=8;e<o-8;e+=1)null==a[e][6]&&(a[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==a[6][t]&&(a[6][t]=t%2==0)},f=function(){for(var e=y.getPatternPosition(r),t=0;t<e.length;t+=1)for(var n=0;n<e.length;n+=1){var o=e[t],i=e[n];if(null==a[o][i])for(var l=-2;l<=2;l+=1)for(var d=-2;d<=2;d+=1)a[o+l][i+d]=-2==l||2==l||-2==d||2==d||0==l&&0==d}},p=function(e){for(var t=y.getBCHTypeNumber(r),n=0;n<18;n+=1){var i=!e&&1==(t>>n&1);a[Math.floor(n/3)][n%3+o-8-3]=i}for(n=0;n<18;n+=1){i=!e&&1==(t>>n&1);a[n%3+o-8-3][Math.floor(n/3)]=i}},g=function(e,t){for(var r=n<<3|t,i=y.getBCHTypeInfo(r),l=0;l<15;l+=1){var d=!e&&1==(i>>l&1);l<6?a[l][8]=d:l<8?a[l+1][8]=d:a[o-15+l][8]=d}for(l=0;l<15;l+=1){d=!e&&1==(i>>l&1);l<8?a[8][o-l-1]=d:l<9?a[8][15-l-1+1]=d:a[8][15-l-1]=d}a[o-8][8]=!e},h=function(e,t){for(var r=-1,n=o-1,i=7,l=0,d=y.getMaskFunction(t),s=o-1;s>0;s-=2)for(6==s&&(s-=1);;){for(var c=0;c<2;c+=1)if(null==a[n][s-c]){var u=!1;l<e.length&&(u=1==(e[l]>>>i&1)),d(n,s-c)&&(u=!u),a[n][s-c]=u,-1==(i-=1)&&(l+=1,i=7)}if((n+=r)<0||o<=n){n-=r,r=-r;break}}},m=function(e,t,r){for(var n=w.getRSBlocks(e,t),a=x(),o=0;o<r.length;o+=1){var i=r[o];a.put(i.getMode(),4),a.put(i.getLength(),y.getLengthInBits(i.getMode(),e)),i.write(a)}var l=0;for(o=0;o<n.length;o+=1)l+=n[o].dataCount;if(a.getLengthInBits()>8*l)throw"code length overflow. ("+a.getLengthInBits()+">"+8*l+")";for(a.getLengthInBits()+4<=8*l&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*l||(a.put(236,8),a.getLengthInBits()>=8*l));)a.put(17,8);return function(e,t){for(var r=0,n=0,a=0,o=new Array(t.length),i=new Array(t.length),l=0;l<t.length;l+=1){var d=t[l].dataCount,s=t[l].totalCount-d;n=Math.max(n,d),a=Math.max(a,s),o[l]=new Array(d);for(var c=0;c<o[l].length;c+=1)o[l][c]=255&e.getBuffer()[c+r];r+=d;var u=y.getErrorCorrectPolynomial(s),v=$(o[l],u.getLength()-1).mod(u);for(i[l]=new Array(u.getLength()-1),c=0;c<i[l].length;c+=1){var f=c+v.getLength()-i[l].length;i[l][c]=f>=0?v.getAt(f):0}}var p=0;for(c=0;c<t.length;c+=1)p+=t[c].totalCount;var g=new Array(p),h=0;for(c=0;c<n;c+=1)for(l=0;l<t.length;l+=1)c<o[l].length&&(g[h]=o[l][c],h+=1);for(c=0;c<a;c+=1)for(l=0;l<t.length;l+=1)c<i[l].length&&(g[h]=i[l][c],h+=1);return g}(a,n)};d.addData=function(e,t){var r=null;switch(t=t||"Byte"){case"Numeric":r=E(e);break;case"Alphanumeric":r=k(e);break;case"Byte":r=L(e);break;case"Kanji":r=S(e);break;default:throw"mode:"+t}l.push(r),i=null},d.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return a[e][t]},d.getModuleCount=function(){return o},d.make=function(){if(r<1){for(var e=1;e<40;e++){for(var t=w.getRSBlocks(e,n),a=x(),o=0;o<l.length;o++){var i=l[o];a.put(i.getMode(),4),a.put(i.getLength(),y.getLengthInBits(i.getMode(),e)),i.write(a)}var c=0;for(o=0;o<t.length;o++)c+=t[o].dataCount;if(a.getLengthInBits()<=8*c)break}r=e}s(!1,function(){for(var e=0,t=0,r=0;r<8;r+=1){s(!0,r);var n=y.getLostPoint(d);(0==r||e>n)&&(e=n,t=r)}return t}())},d.createTableTag=function(e,t){e=e||2;var r="";r+='<table style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",r+='">',r+="<tbody>";for(var n=0;n<d.getModuleCount();n+=1){r+="<tr>";for(var a=0;a<d.getModuleCount();a+=1)r+='<td style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: 0px;",r+=" width: "+e+"px;",r+=" height: "+e+"px;",r+=" background-color: ",r+=d.isDark(n,a)?"#000000":"#ffffff",r+=";",r+='"/>';r+="</tr>"}return r+="</tbody>",r+="</table>"},d.createSvgTag=function(e,t,r,n){var a={};"object"==typeof arguments[0]&&(e=(a=arguments[0]).cellSize,t=a.margin,r=a.alt,n=a.title),e=e||2,t=void 0===t?4*e:t,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var o,i,l,s,c=d.getModuleCount()*e+2*t,u="";for(s="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',u+=a.scalable?"":' width="'+c+'px" height="'+c+'px"',u+=' viewBox="0 0 '+c+" "+c+'" ',u+=' preserveAspectRatio="xMinYMin meet"',u+=n.text||r.text?' role="img" aria-labelledby="'+b([n.id,r.id].join(" ").trim())+'"':"",u+=">",u+=n.text?'<title id="'+b(n.id)+'">'+b(n.text)+"</title>":"",u+=r.text?'<description id="'+b(r.id)+'">'+b(r.text)+"</description>":"",u+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',u+='<path d="',i=0;i<d.getModuleCount();i+=1)for(l=i*e+t,o=0;o<d.getModuleCount();o+=1)d.isDark(i,o)&&(u+="M"+(o*e+t)+","+l+s);return u+='" stroke="transparent" fill="black"/>',u+="</svg>"},d.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var r=d.getModuleCount()*e+2*t,n=t,a=r-t;return P(r,r,function(t,r){if(n<=t&&t<a&&n<=r&&r<a){var o=Math.floor((t-n)/e),i=Math.floor((r-n)/e);return d.isDark(i,o)?0:1}return 1})},d.createImgTag=function(e,t,r){e=e||2,t=void 0===t?4*e:t;var n=d.getModuleCount()*e+2*t,a="";return a+="<img",a+=' src="',a+=d.createDataURL(e,t),a+='"',a+=' width="',a+=n,a+='"',a+=' height="',a+=n,a+='"',r&&(a+=' alt="',a+=b(r),a+='"'),a+="/>"};var b=function(e){for(var t="",r=0;r<e.length;r+=1){var n=e.charAt(r);switch(n){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=n}}return t};return d.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,r,n,a,o,i=1*d.getModuleCount()+2*e,l=e,s=i-e,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},u={"██":"▀","█ ":"▀"," █":" "," ":" "},v="";for(t=0;t<i;t+=2){for(n=Math.floor((t-l)/1),a=Math.floor((t+1-l)/1),r=0;r<i;r+=1)o="█",l<=r&&r<s&&l<=t&&t<s&&d.isDark(n,Math.floor((r-l)/1))&&(o=" "),l<=r&&r<s&&l<=t+1&&t+1<s&&d.isDark(a,Math.floor((r-l)/1))?o+=" ":o+="█",v+=e<1&&t+1>=s?u[o]:c[o];v+="\n"}return i%2&&e>0?v.substring(0,v.length-i-1)+Array(i+1).join("▀"):v.substring(0,v.length-1)}(t);e-=1,t=void 0===t?2*e:t;var r,n,a,o,i=d.getModuleCount()*e+2*t,l=t,s=i-t,c=Array(e+1).join("██"),u=Array(e+1).join(" "),v="",f="";for(r=0;r<i;r+=1){for(a=Math.floor((r-l)/e),f="",n=0;n<i;n+=1)o=1,l<=n&&n<s&&l<=r&&r<s&&d.isDark(a,Math.floor((n-l)/e))&&(o=0),f+=o?c:u;for(a=0;a<e;a+=1)v+=f+"\n"}return v.substring(0,v.length-1)},d.renderTo2dContext=function(e,t){t=t||2;for(var r=d.getModuleCount(),n=0;n<r;n++)for(var a=0;a<r;a++)e.fillStyle=d.isDark(n,a)?"black":"white",e.fillRect(n*t,a*t,t,t)},d};e.stringToBytesFuncs={default:function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e.charCodeAt(r);t.push(255&n)}return t}},e.stringToBytes=e.stringToBytesFuncs.default,e.createStringToBytes=function(e,t){var r=function(){for(var r=M(e),n=function(){var e=r.read();if(-1==e)throw"eof";return e},a=0,o={};;){var i=r.read();if(-1==i)break;var l=n(),d=n()<<8|n();o[String.fromCharCode(i<<8|l)]=d,a+=1}if(a!=t)throw a+" != "+t;return o}(),n="?".charCodeAt(0);return function(e){for(var t=[],a=0;a<e.length;a+=1){var o=e.charCodeAt(a);if(o<128)t.push(o);else{var i=r[e.charAt(a)];"number"==typeof i?(255&i)==i?t.push(i):(t.push(i>>>8),t.push(255&i)):t.push(n)}}return t}};var t,r,n,a,o,i=1,l=2,d=4,s=8,c={L:1,M:0,Q:3,H:2},u=0,v=1,f=2,p=3,g=4,h=5,m=6,b=7,y=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,n=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(a={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(r)>=0;)t^=r<<o(t)-o(r);return 21522^(e<<10|t)},a.getBCHTypeNumber=function(e){for(var t=e<<12;o(t)-o(n)>=0;)t^=n<<o(t)-o(n);return e<<12|t},a.getPatternPosition=function(e){return t[e-1]},a.getMaskFunction=function(e){switch(e){case u:return function(e,t){return(e+t)%2==0};case v:return function(e,t){return e%2==0};case f:return function(e,t){return t%3==0};case p:return function(e,t){return(e+t)%3==0};case g:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case h:return function(e,t){return e*t%2+e*t%3==0};case m:return function(e,t){return(e*t%2+e*t%3)%2==0};case b:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},a.getErrorCorrectPolynomial=function(e){for(var t=$([1],0),r=0;r<e;r+=1)t=t.multiply($([1,C.gexp(r)],0));return t},a.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case i:return 10;case l:return 9;case d:case s:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case i:return 12;case l:return 11;case d:return 16;case s:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case i:return 14;case l:return 13;case d:return 16;case s:return 12;default:throw"mode:"+e}}},a.getLostPoint=function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n+=1)for(var a=0;a<t;a+=1){for(var o=0,i=e.isDark(n,a),l=-1;l<=1;l+=1)if(!(n+l<0||t<=n+l))for(var d=-1;d<=1;d+=1)a+d<0||t<=a+d||0==l&&0==d||i==e.isDark(n+l,a+d)&&(o+=1);o>5&&(r+=3+o-5)}for(n=0;n<t-1;n+=1)for(a=0;a<t-1;a+=1){var s=0;e.isDark(n,a)&&(s+=1),e.isDark(n+1,a)&&(s+=1),e.isDark(n,a+1)&&(s+=1),e.isDark(n+1,a+1)&&(s+=1),0!=s&&4!=s||(r+=3)}for(n=0;n<t;n+=1)for(a=0;a<t-6;a+=1)e.isDark(n,a)&&!e.isDark(n,a+1)&&e.isDark(n,a+2)&&e.isDark(n,a+3)&&e.isDark(n,a+4)&&!e.isDark(n,a+5)&&e.isDark(n,a+6)&&(r+=40);for(a=0;a<t;a+=1)for(n=0;n<t-6;n+=1)e.isDark(n,a)&&!e.isDark(n+1,a)&&e.isDark(n+2,a)&&e.isDark(n+3,a)&&e.isDark(n+4,a)&&!e.isDark(n+5,a)&&e.isDark(n+6,a)&&(r+=40);var c=0;for(a=0;a<t;a+=1)for(n=0;n<t;n+=1)e.isDark(n,a)&&(c+=1);return r+=Math.abs(100*c/t/t-50)/5*10},a),C=function(){for(var e=new Array(256),t=new Array(256),r=0;r<8;r+=1)e[r]=1<<r;for(r=8;r<256;r+=1)e[r]=e[r-4]^e[r-5]^e[r-6]^e[r-8];for(r=0;r<255;r+=1)t[e[r]]=r;var n={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return n}();function $(e,t){if(void 0===e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r<e.length&&0==e[r];)r+=1;for(var n=new Array(e.length-r+t),a=0;a<e.length-r;a+=1)n[a]=e[a+r];return n}(),n={getAt:function(e){return r[e]},getLength:function(){return r.length},multiply:function(e){for(var t=new Array(n.getLength()+e.getLength()-1),r=0;r<n.getLength();r+=1)for(var a=0;a<e.getLength();a+=1)t[r+a]^=C.gexp(C.glog(n.getAt(r))+C.glog(e.getAt(a)));return $(t,0)},mod:function(e){if(n.getLength()-e.getLength()<0)return n;for(var t=C.glog(n.getAt(0))-C.glog(e.getAt(0)),r=new Array(n.getLength()),a=0;a<n.getLength();a+=1)r[a]=n.getAt(a);for(a=0;a<e.getLength();a+=1)r[a]^=C.gexp(C.glog(e.getAt(a))+t);return $(r,0).mod(e)}};return n}var w=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var r={};return r.totalCount=e,r.dataCount=t,r},r={};return r.getRSBlocks=function(r,n){var a=function(t,r){switch(r){case c.L:return e[4*(t-1)+0];case c.M:return e[4*(t-1)+1];case c.Q:return e[4*(t-1)+2];case c.H:return e[4*(t-1)+3];default:return}}(r,n);if(void 0===a)throw"bad rs block @ typeNumber:"+r+"/errorCorrectionLevel:"+n;for(var o=a.length/3,i=[],l=0;l<o;l+=1)for(var d=a[3*l+0],s=a[3*l+1],u=a[3*l+2],v=0;v<d;v+=1)i.push(t(s,u));return i},r}(),x=function(){var e=[],t=0,r={getBuffer:function(){return e},getAt:function(t){var r=Math.floor(t/8);return 1==(e[r]>>>7-t%8&1)},put:function(e,t){for(var n=0;n<t;n+=1)r.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return t},putBit:function(r){var n=Math.floor(t/8);e.length<=n&&e.push(0),r&&(e[n]|=128>>>t%8),t+=1}};return r},E=function(e){var t=i,r=e,n={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+2<t.length;)e.put(a(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(a(t.substring(n,n+1)),4):t.length-n==2&&e.put(a(t.substring(n,n+2)),7))}},a=function(e){for(var t=0,r=0;r<e.length;r+=1)t=10*t+o(e.charAt(r));return t},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return n},k=function(e){var t=l,r=e,n={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+1<t.length;)e.put(45*a(t.charAt(n))+a(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(a(t.charAt(n)),6)}},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return n},L=function(t){var r=d,n=e.stringToBytes(t),a={getMode:function(){return r},getLength:function(e){return n.length},write:function(e){for(var t=0;t<n.length;t+=1)e.put(n[t],8)}};return a},S=function(t){var r=s,n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(){var e=n("友");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var a=n(t),o={getMode:function(){return r},getLength:function(e){return~~(a.length/2)},write:function(e){for(var t=a,r=0;r+1<t.length;){var n=(255&t[r])<<8|255&t[r+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(r+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13),r+=2}if(r<t.length)throw"illegal char at "+(r+1)}};return o},I=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,r,n){r=r||0,n=n||e.length;for(var a=0;a<n;a+=1)t.writeByte(e[a+r])},writeString:function(e){for(var r=0;r<e.length;r+=1)t.writeByte(e.charCodeAt(r))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var r=0;r<e.length;r+=1)r>0&&(t+=","),t+=e[r];return t+="]"}};return t},M=function(e){var t=e,r=0,n=0,a=0,o={read:function(){for(;a<8;){if(r>=t.length){if(0==a)return-1;throw"unexpected end of file./"+a}var e=t.charAt(r);if(r+=1,"="==e)return a=0,-1;e.match(/^\s$/)||(n=n<<6|i(e.charCodeAt(0)),a+=6)}var o=n>>>a-8&255;return a-=8,o}},i=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},P=function(e,t,r){for(var n=function(e,t){var r=e,n=t,a=new Array(e*t),o={setPixel:function(e,t,n){a[t*r+e]=n},write:function(e){e.writeString("GIF87a"),e.writeShort(r),e.writeShort(n),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(r),e.writeShort(n),e.writeByte(0);var t=i(2);e.writeByte(2);for(var a=0;t.length-a>255;)e.writeByte(255),e.writeBytes(t,a,255),a+=255;e.writeByte(t.length-a),e.writeBytes(t,a,t.length-a),e.writeByte(0),e.writeString(";")}},i=function(e){for(var t=1<<e,r=1+(1<<e),n=e+1,o=l(),i=0;i<t;i+=1)o.add(String.fromCharCode(i));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(r));var d,s,c,u=I(),v=(d=u,s=0,c=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;s+t>=8;)d.writeByte(255&(e<<s|c)),t-=8-s,e>>>=8-s,c=0,s=0;c|=e<<s,s+=t},flush:function(){s>0&&d.writeByte(c)}});v.write(t,n);var f=0,p=String.fromCharCode(a[f]);for(f+=1;f<a.length;){var g=String.fromCharCode(a[f]);f+=1,o.contains(p+g)?p+=g:(v.write(o.indexOf(p),n),o.size()<4095&&(o.size()==1<<n&&(n+=1),o.add(p+g)),p=g)}return v.write(o.indexOf(p),n),v.write(r,n),v.flush(),u.toByteArray()},l=function(){var e={},t=0,r={add:function(n){if(r.contains(n))throw"dup key:"+n;e[n]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return r};return o}(e,t),a=0;a<t;a+=1)for(var o=0;o<e;o+=1)n.setPixel(o,a,r(o,a));var i=I();n.write(i);for(var l=function(){var e=0,t=0,r=0,n="",a={},o=function(e){n+=String.fromCharCode(i(63&e))},i=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return a.writeByte=function(n){for(e=e<<8|255&n,t+=8,r+=1;t>=6;)o(e>>>t-6),t-=6},a.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),r%3!=0)for(var a=3-r%3,i=0;i<a;i+=1)n+="="},a.toString=function(){return n},a}(),d=i.toByteArray(),s=0;s<d.length;s+=1)l.writeByte(d[s]);return l.flush(),"data:image/gif;base64,"+l};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(e)},e.exports=t}(Ni);var Oi,Ai=Ni.exports,Ri=Co&&Co.__extends||(Oi=function(e,t){return Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Oi(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Oi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Fi=Co&&Co.__assign||function(){return Fi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Fi.apply(this,arguments)};Object.defineProperty(Pi,"__esModule",{value:!0});var Di=Pi.QRCode=void 0,ji=_i,Bi=Ai,Vi=a,Hi=function(e){function t(t){var r=e.call(this,t)||this;return r.canvasRef=Vi.createRef(),r}return Ri(t,e),t.prototype.download=function(e,t){if(this.canvasRef.current){var r=void 0;switch(e){case"jpg":r="image/jpeg";break;case"webp":r="image/webp";break;default:r="image/png"}var n=this.canvasRef.current.toDataURL(r,1),a=document.createElement("a");a.download=null!=t?t:"react-qrcode-logo",a.href=n,a.click()}},t.prototype.utf16to8=function(e){var t,r,n="",a=e.length;for(t=0;t<a;t++)(r=e.charCodeAt(t))>=1&&r<=127?n+=e.charAt(t):r>2047?(n+=String.fromCharCode(224|r>>12&15),n+=String.fromCharCode(128|r>>6&63),n+=String.fromCharCode(128|63&r)):(n+=String.fromCharCode(192|r>>6&31),n+=String.fromCharCode(128|63&r));return n},t.prototype.drawRoundedSquare=function(e,t,r,n,a,o,i,l){l.lineWidth=e,l.fillStyle=a,l.strokeStyle=a,r+=e/2,t+=e/2,n-=e,Array.isArray(o)||(o=[o,o,o,o]),o=o.map(function(e){return(e=Math.min(e,n/2))<0?0:e});var d=o[0]||0,s=o[1]||0,c=o[2]||0,u=o[3]||0;l.beginPath(),l.moveTo(t+d,r),l.lineTo(t+n-s,r),s&&l.quadraticCurveTo(t+n,r,t+n,r+s),l.lineTo(t+n,r+n-c),c&&l.quadraticCurveTo(t+n,r+n,t+n-c,r+n),l.lineTo(t+u,r+n),u&&l.quadraticCurveTo(t,r+n,t,r+n-u),l.lineTo(t,r+d),d&&l.quadraticCurveTo(t,r,t+d,r),l.closePath(),l.stroke(),i&&l.fill()},t.prototype.drawPositioningPattern=function(e,t,r,n,a,o,i){void 0===i&&(i=[0,0,0,0]);var l,d,s,c,u=Math.ceil(t);"number"==typeof i||Array.isArray(i)?d=l=i:(l=i.outer||0,d=i.inner||0),"string"!=typeof o?(s=o.outer,c=o.inner):(s=o,c=o);var v=n*t+r,f=a*t+r,p=7*t;this.drawRoundedSquare(u,f,v,p,s,l,!1,e),p=3*t,v+=2*t,f+=2*t,this.drawRoundedSquare(u,f,v,p,c,d,!0,e)},t.prototype.isInPositioninZone=function(e,t,r){return r.some(function(r){return t>=r.row&&t<=r.row+7&&e>=r.col&&e<=r.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(e,t){return e/t},t.prototype.isCoordinateInImage=function(e,t,r,n,a,o,i,l){if(l){var d=this.transformPixelLengthIntoNumberOfCells(a,i),s=this.transformPixelLengthIntoNumberOfCells(o,i),c=this.transformPixelLengthIntoNumberOfCells(r,i)-1,u=this.transformPixelLengthIntoNumberOfCells(n,i)-1;return t>=d-2&&t<=d+c+2&&e>=s-2&&e<=s+u+2}return!1},t.prototype.shouldComponentUpdate=function(e){return!ji(this.props,e)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var e,t=this.props,r=t.value,n=t.ecLevel,a=t.enableCORS,o=t.bgColor,i=t.fgColor,l=t.logoImage,d=t.logoOpacity,s=t.logoOnLoad,c=t.removeQrCodeBehindLogo,u=t.qrStyle,v=t.eyeRadius,f=t.eyeColor,p=t.logoPaddingStyle,g=+this.props.size,h=+this.props.quietZone,m=this.props.logoWidth?+this.props.logoWidth:0,b=this.props.logoHeight?+this.props.logoHeight:0,y=this.props.logoPadding?+this.props.logoPadding:0,C=Bi(0,n);C.addData(this.utf16to8(r)),C.make();var $=null===(e=this.canvasRef)||void 0===e?void 0:e.current,w=$.getContext("2d"),x=g+2*h,E=C.getModuleCount(),k=g/E,L=window.devicePixelRatio||1;$.height=$.width=x*L,w.scale(L,L),w.fillStyle=o,w.fillRect(0,0,x,x);var S=h,I=[{row:0,col:0},{row:0,col:E-7},{row:E-7,col:0}];if(w.strokeStyle=i,"dots"===u){w.fillStyle=i;for(var M=k/2,P=0;P<E;P++)for(var T=0;T<E;T++)C.isDark(P,T)&&!this.isInPositioninZone(P,T,I)&&(w.beginPath(),w.arc(Math.round(T*k)+M+S,Math.round(P*k)+M+S,M/100*75,0,2*Math.PI,!1),w.closePath(),w.fill())}else if("fluid"===u){for(M=Math.ceil(k/2),P=0;P<E;P++)for(T=0;T<E;T++)if(C.isDark(P,T)&&!this.isInPositioninZone(P,T,I)){var _=[!1,!1,!1,!1];P>0&&!C.isDark(P-1,T)&&T>0&&!C.isDark(P,T-1)&&(_[0]=!0),P>0&&!C.isDark(P-1,T)&&T<E-1&&!C.isDark(P,T+1)&&(_[1]=!0),P<E-1&&!C.isDark(P+1,T)&&T<E-1&&!C.isDark(P,T+1)&&(_[2]=!0),P<E-1&&!C.isDark(P+1,T)&&T>0&&!C.isDark(P,T-1)&&(_[3]=!0);var N=Math.ceil((T+1)*k)-Math.floor(T*k),O=Math.ceil((P+1)*k)-Math.floor(P*k);w.fillStyle=i,w.beginPath(),w.arc(Math.round(T*k)+M+S,Math.round(P*k)+M+S,M,0,2*Math.PI,!1),w.closePath(),w.fill(),_[0]||w.fillRect(Math.round(T*k)+S,Math.round(P*k)+S,N/2,O/2),_[1]||w.fillRect(Math.round(T*k)+S+Math.floor(N/2),Math.round(P*k)+S,N/2,O/2),_[2]||w.fillRect(Math.round(T*k)+S+Math.floor(N/2),Math.round(P*k)+S+Math.floor(O/2),N/2,O/2),_[3]||w.fillRect(Math.round(T*k)+S,Math.round(P*k)+S+Math.floor(O/2),N/2,O/2)}}else for(P=0;P<E;P++)for(T=0;T<E;T++)if(C.isDark(P,T)&&!this.isInPositioninZone(P,T,I)){w.fillStyle=i;N=Math.ceil((T+1)*k)-Math.floor(T*k),O=Math.ceil((P+1)*k)-Math.floor(P*k);w.fillRect(Math.round(T*k)+S,Math.round(P*k)+S,N,O)}for(var A=0;A<3;A++){var R=I[A],F=(P=R.row,T=R.col,v),D=void 0;Array.isArray(F)&&(F=F[A]),"number"==typeof F&&(F=[F,F,F,F]),D=f?Array.isArray(f)?f[A]:f:i,this.drawPositioningPattern(w,k,S,P,T,D,F)}if(l){var j=new Image;a&&(j.crossOrigin="Anonymous"),j.onload=function(e){w.save();var t=m||.2*g,r=b||t,n=(g-t)/2,a=(g-r)/2;if(c||y){w.beginPath(),w.strokeStyle=o,w.fillStyle=o;var i=t+2*y,l=r+2*y,u=n+S-y,v=a+S-y;if("circle"===p){var f=u+i/2,h=v+l/2;w.ellipse(f,h,i/2,l/2,0,0,2*Math.PI),w.stroke(),w.fill()}else w.fillRect(u,v,i,l)}w.globalAlpha=d,w.drawImage(j,n+S,a+S,t,r),w.restore(),s&&s(e)},j.src=l}},t.prototype.render=function(){var e,t=+this.props.size+2*+this.props.quietZone;return Vi.createElement("canvas",{id:null!==(e=this.props.id)&&void 0!==e?e:"react-qrcode-logo",height:t,width:t,style:Fi({height:t+"px",width:t+"px"},this.props.style),ref:this.canvasRef})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(Vi.Component);Di=Pi.QRCode=Hi;const zi=({enableLink:r=!0,label:n="Secured by",onLinkClick:a})=>{const o=r?{fill:'url("#logo-gradient")'}:{},i=t("svg",{width:62,height:23,viewBox:"0 0 83 31",xmlns:"http://www.w3.org/2000/svg",children:[e("defs",{children:t("linearGradient",{id:"logo-gradient",x1:"-100%",y1:"0%",x2:"100%",y2:"0%",gradientUnits:"userSpaceOnUse",children:[e("stop",{offset:"0%",stopColor:"#402FC3"}),e("stop",{offset:"33%",stopColor:"#C970FF"}),e("stop",{offset:"67%",stopColor:"#C970FF"}),e("stop",{offset:"100%",stopColor:"#402FC3"}),e("animate",{attributeName:"x1",from:"-100%",to:"100%",dur:"4s",repeatCount:"indefinite"}),e("animate",{attributeName:"x2",from:"0%",to:"200%",dur:"4s",repeatCount:"indefinite"})]})}),t("g",{children:[e("path",{d:"M45.1797 20.8929H47.7932V8.70022H44.1379L41.1771 16.3047L38.2163 8.70022H34.5792V20.8929H37.1745V12.1186L40.6105 20.8929H41.7437L45.1797 12.1186V20.8929Z"}),e("path",{d:"M55.4597 20.8929H57.7808V15.1896C57.7808 12.6487 55.9349 11.8444 53.9245 11.8444C52.5354 11.8444 51.1464 12.2831 50.0681 13.2336L50.9454 14.7874C51.6947 14.0928 52.572 13.7455 53.5224 13.7455C54.6921 13.7455 55.4597 14.3304 55.4597 15.2262V16.4509C54.8748 15.738 53.8331 15.3724 52.6634 15.3724C51.2561 15.3724 49.5929 16.1219 49.5929 18.1875C49.5929 20.1617 51.2561 21.1123 52.6634 21.1123C53.8148 21.1123 54.8566 20.6918 55.4597 19.9789V20.8929ZM55.4597 18.7725C55.0759 19.2843 54.3448 19.5402 53.5955 19.5402C52.6816 19.5402 51.9323 19.0649 51.9323 18.2423C51.9323 17.4015 52.6816 16.9079 53.5955 16.9079C54.3448 16.9079 55.0759 17.1638 55.4597 17.6757V18.7725Z"}),e("path",{d:"M59.9003 23.1596C60.9969 24.1285 62.1849 24.4758 63.7019 24.4758C65.8768 24.4758 68.4721 23.6532 68.4721 20.2897V12.0637H66.1327V13.1971C65.4199 12.3014 64.4695 11.8444 63.4094 11.8444C61.1797 11.8444 59.5165 13.453 59.5165 16.3412C59.5165 19.2843 61.198 20.8381 63.4094 20.8381C64.4878 20.8381 65.4382 20.3262 66.1327 19.4488V20.3445C66.1327 22.0811 64.8167 22.5747 63.7019 22.5747C62.587 22.5747 61.6549 22.2639 60.9421 21.4779L59.9003 23.1596ZM66.1327 17.7671C65.7489 18.3337 64.9081 18.7725 64.1405 18.7725C62.8246 18.7725 61.9108 17.8585 61.9108 16.3412C61.9108 14.824 62.8246 13.91 64.1405 13.91C64.9081 13.91 65.7489 14.3304 66.1327 14.9154V17.7671Z"}),e("path",{d:"M71.9256 10.7659C72.6933 10.7659 73.3147 10.1443 73.3147 9.37658C73.3147 8.60882 72.6933 7.9873 71.9256 7.9873C71.1763 7.9873 70.5366 8.60882 70.5366 9.37658C70.5366 10.1443 71.1763 10.7659 71.9256 10.7659ZM70.7742 20.8929H73.0953V12.0637H70.7742V20.8929Z"}),e("path",{d:"M74.8303 16.4692C74.8303 19.1929 76.7859 21.1123 79.5092 21.1123C81.3185 21.1123 82.4151 20.3262 83 19.5037L81.483 18.0961C81.0627 18.6811 80.423 19.0467 79.6188 19.0467C78.2115 19.0467 77.2246 18.0047 77.2246 16.4692C77.2246 14.9337 78.2115 13.91 79.6188 13.91C80.423 13.91 81.0627 14.2573 81.483 14.8606L83 13.453C82.4151 12.6304 81.3185 11.8444 79.5092 11.8444C76.7859 11.8444 74.8303 13.7638 74.8303 16.4692Z"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7002 -5.55184e-07C14.0256 1.62362 15.4875 3.13142 17.0683 4.50592C16.0151 7.92275 15.4481 11.5529 15.4481 15.3154C15.4481 19.078 16.0151 22.7082 17.0684 26.125C15.4876 27.4995 14.0257 29.0073 12.7003 30.6309C11.375 29.0075 9.91333 27.4998 8.33271 26.1255C9.38605 22.7085 9.95313 19.0782 9.95313 15.3154C9.95313 11.5527 9.38605 7.92237 8.3327 4.50537C9.9133 3.13103 11.375 1.6234 12.7002 -5.55184e-07ZM5.3107 23.7627C3.63771 22.5899 1.86221 21.5534 0.000311902 20.6694C0.516837 18.976 0.794702 17.1784 0.794702 15.316C0.794702 13.4532 0.516736 11.6553 3.00821e-05 9.9616C1.86203 9.07753 3.63762 8.04101 5.3107 6.86817C5.95048 9.57999 6.28902 12.4082 6.28902 15.3154C6.28902 18.2227 5.95049 21.0509 5.3107 23.7627ZM19.1114 15.3154C19.1114 18.2227 19.4499 21.051 20.0897 23.7628C21.763 22.5898 23.5388 21.5531 25.4011 20.669C24.8847 18.9757 24.6069 17.1783 24.6069 15.3159C24.6069 13.4534 24.8848 11.6557 25.4014 9.96213C23.539 9.07794 21.7631 8.04124 20.0897 6.86817C19.4499 9.57999 19.1114 12.4082 19.1114 15.3154Z"})]})]}),l=t(Ue,{className:Ee({display:"flex",justifyContent:"center",alignItems:"center",fill:"ink.50",_dark:{fill:"ink.70"},_hover:{...o},_active:{...o},_focus:{...o}}),children:[e("p",{className:Ee({color:"ink.50",_dark:{color:"ink.70"},_groupHover:r?{color:"text.tertiary"}:{},fontSize:"xs",mr:2}),children:n}),i]});return t("div",{className:Ee({cursor:r?"pointer":"default"})+" group",children:[r&&e("a",{onClick:a,tabIndex:0,"aria-label":"Secured by Magic",href:"https://magic.link/docs/home/faqs/wallet-end-users",target:"_blank",rel:"noopener noreferrer",children:l}),!r&&l]})};zi.displayName="SecuredByMagic";const Wi=({children:r,showLogo:n=!0,...a})=>t(Xe,{alignItems:"center",className:Ee({width:"full",p:8}),children:[r,n&&e(zi,{...a})]}),Ui=ni("div"),Gi=ni("div"),Yi=ni("div"),Zi=Object.assign(({children:r,position:n="absolute"})=>ri(r,r=>{var a,o;return t(Je,{alignItems:"center",justifyContent:"space-between",className:Ee({"& >":{_first:{minWidth:8},_last:{minWidth:8}},position:n,p:4,left:0,right:0,top:0,width:"full"}),children:[null!==(a=r.get(Gi))&&void 0!==a?a:e(Ve,{}),r.get(Ui),null!==(o=r.get(Yi))&&void 0!==o?o:e(Ve,{})]})}),{Content:Ui,LeftAction:Gi,RightAction:Yi}),qi=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),e("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),e("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6ZM2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12ZM3 17C2.44772 17 2 17.4477 2 18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18C22 17.4477 21.5523 17 21 17H3Z",fill:"currentColor"})]})},Ki=ni("div"),Xi=ni("div"),Qi=ni("div"),Ji=Object.assign(({children:n,placement:a="right",isOpen:o=!1})=>{const[i,l]=d(o),[c,u]=d(i),f=s(null),p="left"===a;return v(()=>{l(o)},[o]),v(()=>{let e;return i?e=setTimeout(()=>u(!0),10):u(!1),()=>clearTimeout(e)},[i]),v(()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[l]),ri(n,n=>t(r,{children:[e(xi,{onPress:()=>l(e=>!e),textStyle:"neutral",variant:"text",children:e(xi.TrailingIcon,{children:e(qi,{})})}),e(Ve,{position:"absolute",display:i?"block":"none",h:"full",bottom:0,left:0,right:0,bg:"text.primary/20",_dark:{bg:"rgba(0, 0, 0, .7)"}}),t(Ye,{ref:f,position:"absolute",transform:c?"translateX(0)":p?"translateX(-100%)":"translateX(100%)",transition:"transform 0.3s",top:0,bottom:0,...p?{left:0}:{right:0},bg:"surface.primary",_dark:{bg:"surface.secondary"},...p?{roundedRight:"2xl"}:{roundedLeft:"2xl"},zIndex:10,justifyContent:"space-between",p:4,pb:6,w:80,children:[t(Ye,{gap:6,children:[e(Ye,{h:"full",justifyContent:"space-between",children:n.get(Ki)}),e(st,{color:"surface.quaternary"}),e(Ye,{children:n.get(Xi)})]}),n.get(Qi)]})]}))},{Header:Ki,Content:Xi,Footer:Qi}),el=({animate:e,show:t,onHidden:r,onShown:n})=>{const[a,o]=d(t),i=c(()=>n(),[]),l=c(()=>{o(!1),r()},[]);return v(()=>{t?o(!0):e||o(!1)},[t]),{displayed:a,onShow:i,onHide:l}},tl=Pe({slots:["content","wrapper"],base:{content:{height:"full",width:"full",boxSizing:"border-box"},wrapper:{height:"full",width:"full",bg:"surface.primary",position:"relative",overflow:"auto",scrollbarWidth:"none"}},variants:{fullscreen:{true:{wrapper:{height:"100vh",width:"100vw"}},false:{wrapper:{"@media (min-width: 48rem)":{top:12,mx:"auto",width:"25rem",height:"fit-content",boxShadow:"0px 12px 56px {colors.ink.70/15}",borderRadius:"container",_dark:{boxShadow:"none"}}}}},animate:{false:{wrapper:{animationName:"none",scale:1}}},isOpen:{true:{}},paddingType:{none:{wrapper:{p:0}},sm:{wrapper:{p:2,pb:0}},md:{wrapper:{p:4,pb:0}},lg:{wrapper:{p:8,pb:0}}},showBorder:{true:{wrapper:{"@media (min-width: 48rem)":{_dark:{borderWidth:1,borderBlock:"solid",borderColor:"neutral.secondary"}}}}},isMobileBrowser:{true:{}},isWidget:{true:{wrapper:{height:"auto","@media (min-width: 48rem)":{top:0}}}}},compoundVariants:[{animate:!0,isOpen:!0,css:{wrapper:{animationFillMode:"forwards",animationName:"scaleIn",animationDuration:"250ms",_motionReduce:{scale:1}}}},{animate:!0,isOpen:!1,css:{wrapper:{animationFillMode:"forwards",animationName:"scaleOut",animationDuration:"150ms",_motionReduce:{scale:1}}}},{fullscreen:!0,isMobileBrowser:!0,css:{wrapper:{"@media only screen and (max-width: 767px)":{height:"100dvh"}}}},{fullscreen:!1,isWidget:!0,css:{wrapper:{maxWidth:"25rem",mx:"auto",borderRadius:"container",_dark:{borderWidth:1,borderBlock:"solid",borderColor:"neutral.secondary"}}}}],defaultVariants:{animate:!0,isOpen:!0,paddingType:"none"}}),rl=(()=>{if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/Mobi|Android|iPhone|iPad/i.test(e)})(),nl=({animate:t=!0,paddingType:r="none",gap:n=2.5,isOpen:a=!0,onAnimated:o=()=>{},onClosed:i=()=>{},showBorder:l=!0,fullscreen:d=!1,isWidget:s=!1,children:c})=>{const u=tl({animate:t,isOpen:a,paddingType:r,showBorder:l,fullscreen:d,isWidget:s,isMobileBrowser:rl}),{displayed:v,onHide:f,onShow:p}=el({animate:t,show:a,onHidden:i,onShown:o});return v?e("div",{className:u.wrapper,onAnimationEnd:a?p:f,children:e(Xe,{alignItems:"center",gap:n,className:u.content,children:c})}):null};nl.displayName="Modal";const al=Pe({slots:["bg","container"],base:{bg:{height:"full",width:"full",pointerEvents:"all",position:"fixed",top:0,left:0},container:{height:"100vh",width:"100vw",maxWidth:"100rem",position:"relative",margin:"0 auto","@media (min-width: 48rem)":{height:"fit-content"}}},variants:{fullscreen:{true:{container:{maxWidth:"none"}}},animate:{false:{bg:{animationName:"none"}}},backgroundType:{blurred:{bg:{backdropBlur:"0.375rem",backdropFilter:"auto"}},solid:{bg:{backgroundColor:"surface.tertiary"}},transparent:{},none:{}},hide:{false:{}}},compoundVariants:[{animate:!0,hide:!1,css:{bg:{animationFillMode:"forwards",animationName:"fadeIn",animationDuration:"400ms"}}},{animate:!0,hide:!0,css:{bg:{animationFillMode:"forwards",animationName:"fadeOut",animationDuration:"400ms"}}}],defaultVariants:{animate:!0,backgroundType:"none",hide:!1}}),ol=({animate:r=!0,backgroundType:n="none",hide:a=!1,fullscreen:o=!1,onAnimated:i=()=>{},onHidden:l=()=>{},children:d})=>{const s=al({animate:r,backgroundType:n,hide:a,fullscreen:o}),{displayed:c,onHide:u,onShow:v}=el({animate:r,show:!a,onHidden:l,onShown:i});if(!c)return null;const f="none"!==n;return t(Xe,{alignItems:"center",className:s.container,children:[f&&e("div",{className:s.bg,onAnimationEnd:a?u:v}),d]})};ol.displayName="Overlay";const il=({title:r,titleId:n,...a})=>t("svg",{width:78,height:24,viewBox:"0 0 78 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M9.41316 1.84616H3.41316C3.02854 1.84616 2.64393 2.15385 2.567 2.53847L0.182389 17.9231C0.105466 18.2308 0.336235 18.4615 0.643928 18.4615H3.49008C3.8747 18.4615 4.25931 18.1539 4.33624 17.7692L4.95162 13.6154C5.02854 13.2308 5.33624 12.9231 5.79777 12.9231H7.72085C11.6439 12.9231 13.9516 11 14.567 7.23078C14.7978 5.61539 14.567 4.3077 13.7978 3.38462C12.9516 2.38462 11.4132 1.84616 9.41316 1.84616ZM10.1055 7.46155C9.79777 9.61539 8.10547 9.61539 6.567 9.61539H5.64393L6.25931 5.61539C6.25931 5.38462 6.49008 5.23078 6.72085 5.23078H7.10547C8.18239 5.23078 9.18239 5.23078 9.72085 5.84616C10.1055 6.15385 10.2593 6.69232 10.1055 7.46155Z",fill:"#003087"}),e("path",{d:"M27.2593 7.38462H24.4131C24.1824 7.38462 23.9516 7.53846 23.9516 7.76923L23.7978 8.53846L23.567 8.23077C22.9516 7.30769 21.567 7 20.1824 7C17.0285 7 14.3362 9.38461 13.7978 12.7692C13.4901 14.4615 13.8747 16.0769 14.8747 17.1538C15.7208 18.1538 17.0285 18.6154 18.4901 18.6154C21.0285 18.6154 22.4901 17 22.4901 17L22.3362 17.7692C22.2593 18.0769 22.4901 18.3846 22.7978 18.3846H25.4131C25.7978 18.3846 26.1824 18.0769 26.2593 17.6923L27.7978 7.84615C27.8747 7.69231 27.567 7.38462 27.2593 7.38462ZM23.3362 12.9231C23.0285 14.5385 21.7978 15.6923 20.1055 15.6923C19.2593 15.6923 18.6439 15.4615 18.1824 14.9231C17.7208 14.3846 17.567 13.6923 17.7208 12.9231C17.9516 11.3077 19.3362 10.1538 20.9516 10.1538C21.7978 10.1538 22.4131 10.4615 22.8747 10.9231C23.2593 11.4615 23.4131 12.1538 23.3362 12.9231Z",fill:"#003087"}),e("path",{d:"M42.5669 7.38461H39.7207C39.413 7.38461 39.1823 7.53846 39.0284 7.76923L35.0284 13.6154L33.3361 8C33.2592 7.61538 32.8746 7.38461 32.5669 7.38461H29.7207C29.413 7.38461 29.1053 7.69231 29.2592 8.07692L32.413 17.3846L29.413 21.5385C29.1823 21.8462 29.413 22.3077 29.7976 22.3077H32.6438C32.9515 22.3077 33.1823 22.1538 33.3361 21.9231L42.9515 8.07692C43.1823 7.84615 42.9515 7.38461 42.5669 7.38461Z",fill:"#003087"}),e("path",{d:"M52.1053 1.84616H46.1053C45.7207 1.84616 45.3361 2.15385 45.2591 2.53847L42.8745 17.8462C42.7976 18.1539 43.0284 18.3846 43.3361 18.3846H46.413C46.7207 18.3846 46.9515 18.1539 46.9515 17.9231L47.6438 13.5385C47.7207 13.1539 48.0284 12.8462 48.4899 12.8462H50.413C54.3361 12.8462 56.6438 10.9231 57.2591 7.15385C57.4899 5.53847 57.2591 4.23078 56.4899 3.3077C55.5668 2.38462 54.1053 1.84616 52.1053 1.84616ZM52.7976 7.46154C52.4899 9.61539 50.7976 9.61539 49.2591 9.61539H48.3361L48.9515 5.61539C48.9515 5.38462 49.1822 5.23078 49.413 5.23078H49.7976C50.8745 5.23078 51.8745 5.23078 52.413 5.84616C52.7976 6.15385 52.8745 6.69231 52.7976 7.46154Z",fill:"#009CDE"}),e("path",{d:"M69.9514 7.38462H67.1053C66.8745 7.38462 66.6437 7.53846 66.6437 7.76923L66.4899 8.53846L66.2591 8.23077C65.6437 7.30769 64.2591 7 62.8745 7C59.7207 7 57.0284 9.38461 56.4899 12.7692C56.1822 14.4615 56.5668 16.0769 57.5668 17.1538C58.413 18.1538 59.7207 18.6154 61.1822 18.6154C63.7207 18.6154 65.1822 17 65.1822 17L65.0284 17.7692C64.9514 18.0769 65.1822 18.3846 65.4899 18.3846H68.1053C68.4899 18.3846 68.8745 18.0769 68.9514 17.6923L70.4899 7.84615C70.4899 7.69231 70.2591 7.38462 69.9514 7.38462ZM65.9514 12.9231C65.6437 14.5385 64.413 15.6923 62.7207 15.6923C61.8745 15.6923 61.2591 15.4615 60.7976 14.9231C60.3361 14.3846 60.1822 13.6923 60.3361 12.9231C60.5668 11.3077 61.9514 10.1538 63.5668 10.1538C64.413 10.1538 65.0284 10.4615 65.4899 10.9231C65.9514 11.4615 66.1053 12.1538 65.9514 12.9231Z",fill:"#009CDE"}),e("path",{d:"M73.3363 2.23078L70.8748 17.8462C70.7978 18.1539 71.0286 18.3846 71.3363 18.3846H73.7978C74.1825 18.3846 74.5671 18.0769 74.644 17.6923L77.1055 2.38462C77.1825 2.07693 76.9517 1.84616 76.644 1.84616H73.8748C73.5671 1.84616 73.4132 2.00001 73.3363 2.23078Z",fill:"#009CDE"})]}),ll=o((r,n)=>{const{disabled:a,validating:o}=r;return e($o,{ref:n,className:Ee({bg:"#ffc439",outlineColor:"#ffc439",border:"1px solid transparent",px:6,py:2.5}),"aria-disabled":a,shadow:!0,...r,children:o?e(Mo,{size:24,strokeWidth:2.5,inverted:!0}):t(Je,{w:"full",gap:1,justifyContent:"center",children:[e(Vo,{fontWeight:"semibold",styles:{color:ut("colors.ink.90")},children:"Pay with"}),e(Ve,{mt:.5,children:e(il,{width:60})})]})})});ll.displayName="PayPalButton";const dl=({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M22.556 12.2409C22.556 11.3365 22.4826 10.6766 22.3238 9.99219H11.9968V14.074H18.0585C17.9364 15.0884 17.2764 16.6161 15.8098 17.6426L15.7893 17.7793L19.0545 20.3088L19.2807 20.3314C21.3583 18.4126 22.556 15.5895 22.556 12.2409Z",fill:"#4285F4"}),e("path",{d:"M11.9987 23C14.9684 23 17.4615 22.0223 19.2825 20.3358L15.8117 17.6471C14.8829 18.2948 13.6363 18.747 11.9987 18.747C9.09006 18.747 6.62139 16.8283 5.74137 14.1763L5.61238 14.1873L2.21719 16.8148L2.17279 16.9383C3.98152 20.5313 7.69678 23 11.9987 23Z",fill:"#34A853"}),e("path",{d:"M5.74179 14.1771C5.5096 13.4927 5.37521 12.7594 5.37521 12.0017C5.37521 11.2439 5.5096 10.5107 5.72958 9.82631L5.72343 9.68055L2.28569 7.01077L2.17321 7.06427C1.42775 8.55528 1 10.2296 1 12.0017C1 13.7738 1.42775 15.448 2.17321 16.939L5.74179 14.1771Z",fill:"#FBBC05"}),e("path",{d:"M11.9987 5.25296C14.0641 5.25296 15.4572 6.14511 16.2517 6.89066L19.3558 3.85977C17.4494 2.0877 14.9684 1 11.9987 1C7.69678 1 3.98152 3.46867 2.17279 7.06169L5.72916 9.82373C6.62139 7.17172 9.09006 5.25296 11.9987 5.25296Z",fill:"#EB4335"})]});var sl;(sl||(sl={})).GOOGLE="google",e(dl,{});const cl=({width:t="100px",height:r="20px",speed:n="1.5s",borderRadius:a="24px",backgroundColor:o})=>e(Ve,{style:{width:t,height:r,borderRadius:a,backgroundColor:o},bg:"neutral.tertiary",overflow:"hidden",position:"relative",_dark:{bg:"surface.primary"},children:e(Ve,{style:{animation:`slideRight ${n} infinite ease-in-out`},w:"full",h:"full",position:"absolute",top:0,left:"-50%",transform:"skewX(-20deg)",backgroundImage:"linear-gradient(90deg, transparent,rgba(0, 0, 0, .1), transparent)",_dark:{backgroundImage:"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent)"}})}),ul=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2408 13.3492C17.6002 12.9299 18.2315 12.8813 18.6508 13.2407C19.0701 13.6002 19.1187 14.2315 18.7593 14.6508L12.7593 21.6508C12.5693 21.8724 12.2919 22 12 22C11.7081 22 11.4307 21.8724 11.2408 21.6508L5.24076 14.6508C4.88133 14.2315 4.9299 13.6002 5.34922 13.2407C5.76855 12.8813 6.39985 12.9299 6.75927 13.3492L11 18.2968L11 3C11 2.44772 11.4477 2 12 2C12.5523 2 13 2.44772 13 3L13 18.2967L17.2408 13.3492Z",fill:"currentColor"})]})},vl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6508 6.75927C11.0701 6.39985 11.1187 5.76855 10.7593 5.34923C10.3998 4.9299 9.76853 4.88134 9.34921 5.24076L2.34921 11.2408C2.12756 11.4307 2 11.7081 2 12C2 12.2919 2.12756 12.5693 2.34921 12.7593L9.34921 18.7593C9.76853 19.1187 10.3998 19.0701 10.7593 18.6508C11.1187 18.2315 11.0701 17.6002 10.6508 17.2408L5.70324 13H21C21.5523 13 22 12.5523 22 12C22 11.4477 21.5523 11 21 11H5.70328L10.6508 6.75927Z",fill:"currentColor"})]})},fl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3492 6.75927C12.9299 6.39985 12.8813 5.76855 13.2407 5.34923C13.6002 4.9299 14.2315 4.88134 14.6508 5.24076L21.6508 11.2408C21.8724 11.4307 22 11.7081 22 12C22 12.2919 21.8724 12.5693 21.6508 12.7593L14.6508 18.7593C14.2315 19.1187 13.6002 19.0701 13.2407 18.6508C12.8813 18.2315 12.9299 17.6002 13.3492 17.2408L18.2968 13H3C2.44772 13 2 12.5523 2 12C2 11.4477 2.44772 11 3 11H18.2967L13.3492 6.75927Z",fill:"currentColor"})]})},pl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.98355 14.1589C5.67215 12.9836 5.67215 11.0163 6.98355 9.84113L14.3326 3.25527C14.7439 2.88669 15.3761 2.92132 15.7447 3.33261C16.1133 3.74391 16.0787 4.37613 15.6674 4.74471L8.31831 11.3306C7.8939 11.7109 7.8939 12.2891 8.31831 12.6694L15.6674 19.2553C16.0787 19.6239 16.1133 20.2561 15.7447 20.6674C15.3761 21.0787 14.7439 21.1133 14.3326 20.7447L6.98355 14.1589Z",fill:"currentColor"})]})},gl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 2C4.23858 2 2 4.23858 2 7V15H1C0.447715 15 0 15.4477 0 16V17C0 19.7614 2.23858 22 5 22H19C21.7614 22 24 19.7614 24 17V16C24 15.4477 23.5523 15 23 15H22V7C22 4.23858 19.7614 2 17 2H7ZM20 15V7C20 5.34315 18.6569 4 17 4H7C5.34315 4 4 5.34315 4 7V15H7.5C7.70188 15 7.89903 15.0611 8.06553 15.1753L9.30432 16.0247C9.47082 16.1389 9.66797 16.2 9.86985 16.2H14.2984C14.5255 16.2 14.7458 16.1227 14.9231 15.9809L15.8753 15.2191C16.0526 15.0773 16.2729 15 16.5 15H20ZM5 20C3.34315 20 2 18.6569 2 17H7.19008L8.17326 17.6742C8.67275 18.0167 9.26421 18.2 9.86985 18.2H14.2984C14.9797 18.2 15.6406 17.9682 16.1725 17.5426L16.8508 17H22C22 18.6569 20.6569 20 19 20H5ZM10.8321 12.5547C11.1384 12.0952 11.0142 11.4743 10.5547 11.168L8.80278 10L10.5547 8.83207C11.0142 8.52571 11.1384 7.90484 10.8321 7.44532C10.5257 6.98579 9.90483 6.86161 9.4453 7.16797L6.4453 9.16797C6.1671 9.35343 6 9.66566 6 10C6 10.3344 6.1671 10.6466 6.4453 10.8321L9.4453 12.8321C9.90483 13.1384 10.5257 13.0142 10.8321 12.5547ZM13.4453 11.168C12.9858 11.4743 12.8616 12.0952 13.1679 12.5547C13.4743 13.0142 14.0952 13.1384 14.5547 12.8321L17.5547 10.8321C17.8329 10.6466 18 10.3344 18 10C18 9.66566 17.8329 9.35343 17.5547 9.16797L14.5547 7.16797C14.0952 6.86161 13.4743 6.98579 13.1679 7.44532C12.8616 7.90484 12.9858 8.52571 13.4453 8.83207L15.1972 10L13.4453 11.168Z",fill:"currentColor"})]})},hl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5.39073C9.05751 3.78449 10.3778 2.5 11.998 2.5H14.053L14.0166 6.47252C14.0013 8.14005 15.3489 9.5 17.0165 9.5H20.998V13.5C20.998 15.1569 19.6549 16.5 17.998 16.5H16H11.998C10.3412 16.5 8.99805 15.1569 8.99805 13.5V7H9V5.39073ZM7.02273 5C7.2736 2.47334 9.40537 0.5 11.998 0.5H15.3412C16.6673 0.5 17.939 1.02678 18.8767 1.96446L21.5336 4.62132C22.4713 5.559 22.998 6.83077 22.998 8.15685V13.5C22.998 16.2614 20.7595 18.5 17.998 18.5H17.9753C17.7245 21.0267 15.5927 23 13 23H7C4.23858 23 2 20.7614 2 18V10C2 7.23858 4.23858 5 7 5H7.02273ZM6.99805 7C5.34209 7.00106 4 8.3438 4 10V18C4 19.6569 5.34315 21 7 21H13C14.4865 21 15.7205 19.9189 15.9585 18.5H11.998C9.23662 18.5 6.99805 16.2614 6.99805 13.5V7ZM16.0165 6.49084L16.0523 2.58548C16.5818 2.71468 17.0707 2.9869 17.4625 3.37868L20.1194 6.03553C20.5245 6.44065 20.8018 6.94969 20.9253 7.5H17.0165C16.4606 7.5 16.0114 7.04668 16.0165 6.49084Z",fill:"currentColor"})]})},ml=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM7.24423 7.24408C7.56967 6.91864 8.09732 6.91864 8.42276 7.24408L12.0001 10.8214L15.5774 7.24408C15.9028 6.91864 16.4305 6.91864 16.7559 7.24408C17.0814 7.56952 17.0814 8.09717 16.7559 8.42261L13.1786 11.9999L16.7561 15.5774C17.0815 15.9028 17.0815 16.4305 16.7561 16.7559C16.4306 17.0814 15.903 17.0814 15.5775 16.7559L12.0001 13.1785L8.42261 16.7559C8.09717 17.0814 7.56952 17.0814 7.24408 16.7559C6.91864 16.4305 6.91864 15.9028 7.24408 15.5774L10.8215 11.9999L7.24423 8.42261C6.91879 8.09717 6.91879 7.56952 7.24423 7.24408Z",fill:"currentColor"})]})},bl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7593 1.01286C19.8032 0.913334 20.7881 1.38715 21.7056 2.31092C22.6252 3.23091 23.0901 4.21699 22.9858 5.25765C22.8868 6.24527 22.2941 7.02988 21.7042 7.61965L15.482 13.8409C15.2599 14.0628 14.9809 14.2375 14.7308 14.3606C14.4794 14.4843 14.1756 14.5959 13.8732 14.6391L13.8718 14.6393L11.498 14.9749L11.4956 14.9753C10.8018 15.0716 10.1076 14.8858 9.61095 14.3893C9.11427 13.8927 8.92841 13.1985 9.02479 12.5046L9.02513 12.5022L9.36082 10.1288L9.36102 10.1274C9.40422 9.825 9.51588 9.52118 9.63956 9.26987C9.76267 9.01972 9.93742 8.74076 10.1594 8.51879L16.3817 2.29759C16.9777 1.70167 17.7672 1.10743 18.7593 1.01286ZM18.9491 3.00383C18.6772 3.02975 18.3409 3.19717 17.9151 3.59637C17.9339 3.63918 17.9499 3.68383 17.9629 3.73016C18.2755 4.84553 19.1495 5.72512 20.2683 6.03667C20.316 6.04995 20.3619 6.06647 20.4058 6.08592C20.7998 5.66553 20.9684 5.33079 20.9958 5.05815C21.0203 4.81373 20.9522 4.3858 20.2901 3.72391M18.9491 3.00383C19.1934 2.98053 19.6228 3.05162 20.2875 3.72124L18.9491 3.00383ZM11.5735 9.93312L16.366 5.1415C16.8887 6.22815 17.7679 7.11131 18.8597 7.63554L14.0679 12.4265C14.0501 12.4443 13.9754 12.5033 13.8479 12.566C13.7222 12.6279 13.6247 12.6542 13.5909 12.6591L13.5904 12.6592L11.2205 12.9943L11.2194 12.9944C11.1326 13.0063 11.0798 12.9967 11.0551 12.9893C11.0423 12.9854 11.0348 12.9816 11.0311 12.9794C11.0275 12.9772 11.0258 12.9757 11.025 12.9749C11.0243 12.9742 11.0227 12.9725 11.0206 12.9689C11.0184 12.9652 11.0146 12.9577 11.0108 12.945C11.0033 12.9203 10.9937 12.8676 11.0056 12.7808L11.0058 12.7798L11.3409 10.4103L11.341 10.4099C11.3458 10.3763 11.3721 10.2788 11.434 10.153C11.4967 10.0255 11.5558 9.95088 11.5735 9.93312ZM3 6C3 4.34315 4.34315 3 6 3H12C12.5523 3 13 2.55228 13 2C13 1.44772 12.5523 1 12 1H6C3.23858 1 1 3.23858 1 6V18C1 20.7614 3.23858 23 6 23H18C20.7614 23 23 20.7614 23 18V12C23 11.4477 22.5523 11 22 11C21.4477 11 21 11.4477 21 12V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6Z",fill:"currentColor"})]})},yl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3C3.23858 3 1 5.23858 1 8V16C1 18.7614 3.23858 21 6 21H18C20.7614 21 23 18.7614 23 16V8C23 5.23858 20.7614 3 18 3H6ZM4.7087 5.29136C5.0998 5.10457 5.53769 5 6 5H18C18.4623 5 18.9002 5.10457 19.2913 5.29136L12.6585 11.0951C12.2815 11.425 11.7185 11.425 11.3415 11.0951L4.7087 5.29136ZM3.29235 6.70663C3.10494 7.09825 3 7.53687 3 8V16C3 17.6569 4.34315 19 6 19H18C19.6569 19 21 17.6569 21 16V8C21 7.53687 20.8951 7.09825 20.7076 6.70662C20.6919 6.72237 20.6755 6.73771 20.6585 6.75259L13.9755 12.6002C12.8444 13.5899 11.1556 13.5899 10.0245 12.6002L3.34149 6.75259C3.32449 6.73771 3.3081 6.72238 3.29235 6.70663Z",fill:"currentColor"})]})},Cl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 4.34315 4.34315 3 6 3H12C12.5523 3 13 2.55228 13 2C13 1.44772 12.5523 1 12 1H6C3.23858 1 1 3.23858 1 6V18C1 20.7614 3.23858 23 6 23H18C20.7614 23 23 20.7614 23 18V12C23 11.4477 22.5523 11 22 11C21.4477 11 21 11.4477 21 12V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6ZM16.2 2C16.2 1.44772 16.6477 1 17.2 1H22C22.5522 1 23 1.44772 23 2V6.8C23 7.35228 22.5522 7.8 22 7.8C21.4477 7.8 21 7.35228 21 6.8V4.41431L13.7071 11.7072C13.3166 12.0977 12.6834 12.0977 12.2929 11.7072C11.9024 11.3166 11.9024 10.6835 12.2929 10.2929L19.5858 3H17.2C16.6477 3 16.2 2.55228 16.2 2Z",fill:"currentColor"})]})},$l=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5229 6.47715 22 12 22C17.5229 22 22 17.5229 22 12C22 6.47715 17.5229 2 12 2Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 11.4477 0.447715 11 1 11H23C23.5523 11 24 11.4477 24 12C24 12.5523 23.5523 13 23 13H1C0.447715 13 0 12.5523 0 12Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.2 6.5C2.2 5.94772 2.64772 5.5 3.2 5.5H20.8C21.3523 5.5 21.8 5.94772 21.8 6.5C21.8 7.05228 21.3523 7.5 20.8 7.5H3.2C2.64772 7.5 2.2 7.05228 2.2 6.5Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.2 17.5C2.2 16.9477 2.64772 16.5 3.2 16.5H20.8C21.3523 16.5 21.8 16.9477 21.8 17.5C21.8 18.0523 21.3523 18.5 20.8 18.5H3.2C2.64772 18.5 2.2 18.0523 2.2 17.5Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.50347 1.16265C10.1745 0.481475 11.0187 0 11.9999 0C12.9811 0 13.8253 0.481475 14.4963 1.16265C15.1639 1.8403 15.7191 2.76958 16.1639 3.83721C17.0554 5.97684 17.5832 8.8634 17.5832 12C17.5832 15.1366 17.0554 18.0232 16.1639 20.1628C15.7191 21.2304 15.1639 22.1597 14.4963 22.8374C13.8253 23.5185 12.9811 24 11.9999 24C11.0187 24 10.1745 23.5185 9.50347 22.8374C8.83591 22.1597 8.28077 21.2304 7.83592 20.1628C6.94441 18.0232 6.41658 15.1366 6.41658 12C6.41658 8.8634 6.94441 5.97684 7.83592 3.83721C8.28077 2.76958 8.83591 1.8403 9.50347 1.16265ZM9.68208 4.60644C8.91475 6.44802 8.41658 9.06146 8.41658 12C8.41658 14.9385 8.91475 17.552 9.68208 19.3936C10.0666 20.3165 10.4991 20.9982 10.9283 21.4338C11.3539 21.8659 11.7154 22 11.9999 22C12.2844 22 12.6459 21.8659 13.0716 21.4338C13.5007 20.9982 13.9332 20.3165 14.3177 19.3936C15.0851 17.552 15.5832 14.9385 15.5832 12C15.5832 9.06146 15.0851 6.44802 14.3177 4.60644C13.9332 3.68346 13.5007 3.00183 13.0716 2.56622C12.6459 2.13413 12.2844 2 11.9999 2C11.7154 2 11.3539 2.13413 10.9283 2.56622C10.4991 3.00183 10.0666 3.68346 9.68208 4.60644Z",fill:"currentColor"})]})},wl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M11.8666 5.73325C11.3716 5.73325 10.8968 5.53659 10.5467 5.18653C10.1967 4.83647 10 4.36169 10 3.86663C10 3.37157 10.1967 2.89678 10.5467 2.54672C10.8968 2.19666 11.3716 2 11.8666 2C12.3617 2 12.8365 2.19666 13.1865 2.54672C13.5366 2.89678 13.7333 3.37157 13.7333 3.86663C13.7333 4.36169 13.5366 4.83647 13.1865 5.18653C12.8365 5.53659 12.3617 5.73325 11.8666 5.73325Z",fill:"currentColor"}),e("path",{d:"M11.8666 13.8665C11.3716 13.8665 10.8968 13.6699 10.5467 13.3198C10.1967 12.9697 10 12.495 10 11.9999C10 11.5048 10.1967 11.0301 10.5467 10.68C10.8968 10.3299 11.3716 10.1333 11.8666 10.1333C12.3617 10.1333 12.8365 10.3299 13.1865 10.68C13.5366 11.0301 13.7333 11.5048 13.7333 11.9999C13.7333 12.495 13.5366 12.9697 13.1865 13.3198C12.8365 13.6699 12.3617 13.8665 11.8666 13.8665Z",fill:"currentColor"}),e("path",{d:"M10 20.1334C10 20.6284 10.1967 21.1032 10.5467 21.4533C10.8968 21.8033 11.3716 22 11.8666 22C12.3617 22 12.8365 21.8033 13.1865 21.4533C13.5366 21.1032 13.7333 20.6284 13.7333 20.1334C13.7333 19.6383 13.5366 19.1635 13.1865 18.8135C12.8365 18.4634 12.3617 18.2668 11.8666 18.2668C11.3716 18.2668 10.8968 18.4634 10.5467 18.8135C10.1967 19.1635 10 19.6383 10 20.1334Z",fill:"currentColor"})]})},xl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M10 15C9.44771 15 9 15.4477 9 16C9 16.5523 9.44771 17 10 17H14C14.5523 17 15 16.5523 15 16C15 15.4477 14.5523 15 14 15H10Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7V9C3.23858 9 1 11.2386 1 14V18C1 20.7614 3.23858 23 6 23H18C20.7614 23 23 20.7614 23 18V14C23 11.2386 20.7614 9 18 9V7C18 3.68629 15.3137 1 12 1C8.68629 1 6 3.68629 6 7ZM12 3C9.79086 3 8 4.79086 8 7V9H16V7C16 4.79086 14.2091 3 12 3ZM6 11C4.34315 11 3 12.3431 3 14V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V14C21 12.3431 19.6569 11 18 11H6Z",fill:"currentColor"})]})},El=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7103 0.248918C11.2866 -0.0829728 11.9961 -0.0829728 12.5725 0.248918L21.3507 5.31672C21.927 5.64861 22.2828 6.26469 22.2828 6.93046V17.068C22.2828 17.7338 21.927 18.3479 21.3507 18.6818L12.5725 23.7496C11.9961 24.0835 11.2866 24.0835 10.7103 23.7496L1.93208 18.6818C1.35574 18.3499 1 17.7338 1 17.068V6.93046C1 6.26469 1.35574 5.6506 1.93208 5.31672L10.7103 0.248918ZM11.3602 1.57251C11.4993 1.33204 11.8451 1.33204 11.9842 1.57251L20.8817 16.9846C21.0208 17.225 20.8479 17.5251 20.5697 17.5251H2.77274C2.49451 17.5251 2.32161 17.225 2.46073 16.9846L11.3582 1.57251H11.3602ZM16.1537 12.1155C16.1537 14.6196 14.1246 16.6487 11.6205 16.6487C9.11643 16.6487 7.08732 14.6196 7.08732 12.1155C7.08732 9.61143 9.11643 7.58232 11.6205 7.58232C14.1246 7.58232 16.1537 9.61143 16.1537 12.1155ZM9.75437 10.5614C9.75437 10.3885 9.89349 10.2494 10.0664 10.2494H13.1746C13.3475 10.2494 13.4867 10.3885 13.4867 10.5614V13.6696C13.4867 13.8425 13.3475 13.9817 13.1746 13.9817H10.0664C9.89349 13.9817 9.75437 13.8425 9.75437 13.6696V10.5614Z",fill:"currentColor"})]})},kl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6983 3.36856C18.6892 2.70507 19.8674 3.03265 20.4165 3.58246C20.9667 4.13335 21.2935 5.31535 20.6352 7.30603L20.6349 7.30692L17.449 16.8625L17.4489 16.863C16.9354 18.4058 16.3635 19.4846 15.8074 20.1579C15.2487 20.8344 14.798 21 14.5017 21C14.2053 21 13.7547 20.8344 13.1959 20.1579C12.6419 19.4871 12.0722 18.4139 11.5602 16.8803L10.8755 14.5387L14.7071 10.7071C15.0976 10.3166 15.0976 9.6834 14.7071 9.29288C14.3166 8.90235 13.6834 8.90235 13.2929 9.29288L9.46037 13.1254L7.12061 12.4416C5.58635 11.9296 4.51271 11.3606 3.84169 10.8074C3.16483 10.2493 3 9.80002 3 9.50524C3 9.21015 3.16515 8.75995 3.84249 8.20031C4.51624 7.64364 5.59547 7.07057 7.13862 6.55443L7.13935 6.55419L16.6983 3.36856ZM22.5337 7.93501C23.2939 5.637 23.1646 3.50385 21.8316 2.16915C20.4975 0.833267 18.3652 0.704914 16.066 1.47116L6.50602 4.65711L6.50503 4.65745C4.83378 5.21636 3.50214 5.88718 2.5686 6.65849C1.63855 7.42693 1 8.38888 1 9.50524C1 10.6219 1.63887 11.5833 2.56941 12.3505C3.50327 13.1205 4.83519 13.7891 6.50652 14.3451C6.51817 14.349 6.52989 14.3526 6.54167 14.3561L8.94354 15.058L9.64582 17.4595C9.64927 17.4713 9.65292 17.483 9.6568 17.4946C10.213 19.1659 10.8826 20.4977 11.6538 21.4315C12.4223 22.362 13.3849 23 14.5017 23C15.6184 23 16.581 22.362 17.3495 21.4315C18.1206 20.4978 18.7901 19.1662 19.3464 17.4951L19.3465 17.4946L22.533 7.93725L22.5337 7.93501Z",fill:"currentColor"})]})},Ll=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M9 19C9 18.4477 9.44772 18 10 18H14C14.5523 18 15 18.4477 15 19C15 19.5523 14.5523 20 14 20H10C9.44772 20 9 19.5523 9 19Z",fill:"currentColor"}),e("path",{d:"M8.49451 4.25C7.80415 4.25 7.24451 4.80964 7.24451 5.5C7.24451 6.19036 7.80415 6.75 8.49451 6.75H8.50349C9.19384 6.75 9.75349 6.19036 9.75349 5.5C9.75349 4.80964 9.19384 4.25 8.50349 4.25H8.49451Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5C3 2.23858 5.23858 0 8 0H16C18.7614 0 21 2.23858 21 5V19C21 21.7614 18.7614 24 16 24H8C5.23858 24 3 21.7614 3 19V5ZM8 2C6.34315 2 5 3.34315 5 5V19C5 20.6569 6.34315 22 8 22H16C17.6569 22 19 20.6569 19 19V5C19 3.34315 17.6569 2 16 2H8Z",fill:"currentColor"})]})},Sl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M8 21.0002H4C3.73478 21.0002 3.48043 20.8948 3.29289 20.7073C3.10536 20.5198 3 20.2654 3 20.0002V16.0002C3 15.735 2.89464 15.4806 2.70711 15.2931C2.51957 15.1055 2.26522 15.0002 2 15.0002C1.73478 15.0002 1.48043 15.1055 1.29289 15.2931C1.10536 15.4806 1 15.735 1 16.0002V20.0002C1 20.7958 1.31607 21.5589 1.87868 22.1215C2.44129 22.6841 3.20435 23.0002 4 23.0002H8C8.26522 23.0002 8.51957 22.8948 8.70711 22.7073C8.89464 22.5198 9 22.2654 9 22.0002C9 21.735 8.89464 21.4806 8.70711 21.2931C8.51957 21.1055 8.26522 21.0002 8 21.0002ZM22 15.0002C21.7348 15.0002 21.4804 15.1055 21.2929 15.2931C21.1054 15.4806 21 15.735 21 16.0002V20.0002C21 20.2654 20.8946 20.5198 20.7071 20.7073C20.5196 20.8948 20.2652 21.0002 20 21.0002H16C15.7348 21.0002 15.4804 21.1055 15.2929 21.2931C15.1054 21.4806 15 21.735 15 22.0002C15 22.2654 15.1054 22.5198 15.2929 22.7073C15.4804 22.8948 15.7348 23.0002 16 23.0002H20C20.7956 23.0002 21.5587 22.6841 22.1213 22.1215C22.6839 21.5589 23 20.7958 23 20.0002V16.0002C23 15.735 22.8946 15.4806 22.7071 15.2931C22.5196 15.1055 22.2652 15.0002 22 15.0002ZM20 1.00018H16C15.7348 1.00018 15.4804 1.10554 15.2929 1.29308C15.1054 1.48061 15 1.73497 15 2.00018C15 2.2654 15.1054 2.51975 15.2929 2.70729C15.4804 2.89483 15.7348 3.00018 16 3.00018H20C20.2652 3.00018 20.5196 3.10554 20.7071 3.29308C20.8946 3.48061 21 3.73497 21 4.00018V8.00018C21 8.2654 21.1054 8.51975 21.2929 8.70729C21.4804 8.89483 21.7348 9.00018 22 9.00018C22.2652 9.00018 22.5196 8.89483 22.7071 8.70729C22.8946 8.51975 23 8.2654 23 8.00018V4.00018C23 3.20453 22.6839 2.44147 22.1213 1.87886C21.5587 1.31625 20.7956 1.00018 20 1.00018ZM2 9.00018C2.26522 9.00018 2.51957 8.89483 2.70711 8.70729C2.89464 8.51975 3 8.2654 3 8.00018V4.00018C3 3.73497 3.10536 3.48061 3.29289 3.29308C3.48043 3.10554 3.73478 3.00018 4 3.00018H8C8.26522 3.00018 8.51957 2.89483 8.70711 2.70729C8.89464 2.51975 9 2.2654 9 2.00018C9 1.73497 8.89464 1.48061 8.70711 1.29308C8.51957 1.10554 8.26522 1.00018 8 1.00018H4C3.20435 1.00018 2.44129 1.31625 1.87868 1.87886C1.31607 2.44147 1 3.20453 1 4.00018V8.00018C1 8.2654 1.10536 8.51975 1.29289 8.70729C1.48043 8.89483 1.73478 9.00018 2 9.00018ZM10 5.00018H6C5.73478 5.00018 5.48043 5.10554 5.29289 5.29308C5.10536 5.48061 5 5.73497 5 6.00018V10.0002C5 10.2654 5.10536 10.5198 5.29289 10.7073C5.48043 10.8948 5.73478 11.0002 6 11.0002H10C10.2652 11.0002 10.5196 10.8948 10.7071 10.7073C10.8946 10.5198 11 10.2654 11 10.0002V6.00018C11 5.73497 10.8946 5.48061 10.7071 5.29308C10.5196 5.10554 10.2652 5.00018 10 5.00018ZM9 9.00018H7V7.00018H9V9.00018ZM14 11.0002H18C18.2652 11.0002 18.5196 10.8948 18.7071 10.7073C18.8946 10.5198 19 10.2654 19 10.0002V6.00018C19 5.73497 18.8946 5.48061 18.7071 5.29308C18.5196 5.10554 18.2652 5.00018 18 5.00018H14C13.7348 5.00018 13.4804 5.10554 13.2929 5.29308C13.1054 5.48061 13 5.73497 13 6.00018V10.0002C13 10.2654 13.1054 10.5198 13.2929 10.7073C13.4804 10.8948 13.7348 11.0002 14 11.0002ZM15 7.00018H17V9.00018H15V7.00018ZM10 13.0002H6C5.73478 13.0002 5.48043 13.1055 5.29289 13.2931C5.10536 13.4806 5 13.735 5 14.0002V18.0002C5 18.2654 5.10536 18.5198 5.29289 18.7073C5.48043 18.8948 5.73478 19.0002 6 19.0002H10C10.2652 19.0002 10.5196 18.8948 10.7071 18.7073C10.8946 18.5198 11 18.2654 11 18.0002V14.0002C11 13.735 10.8946 13.4806 10.7071 13.2931C10.5196 13.1055 10.2652 13.0002 10 13.0002ZM9 17.0002H7V15.0002H9V17.0002ZM14 16.0002C14.2652 16.0002 14.5196 15.8948 14.7071 15.7073C14.8946 15.5198 15 15.2654 15 15.0002C15.2652 15.0002 15.5196 14.8948 15.7071 14.7073C15.8946 14.5198 16 14.2654 16 14.0002C16 13.735 15.8946 13.4806 15.7071 13.2931C15.5196 13.1055 15.2652 13.0002 15 13.0002H14C13.7348 13.0002 13.4804 13.1055 13.2929 13.2931C13.1054 13.4806 13 13.735 13 14.0002V15.0002C13 15.2654 13.1054 15.5198 13.2929 15.7073C13.4804 15.8948 13.7348 16.0002 14 16.0002ZM18 13.0002C17.7348 13.0002 17.4804 13.1055 17.2929 13.2931C17.1054 13.4806 17 13.735 17 14.0002V17.0002C16.7348 17.0002 16.4804 17.1055 16.2929 17.2931C16.1054 17.4806 16 17.735 16 18.0002C16 18.2654 16.1054 18.5198 16.2929 18.7073C16.4804 18.8948 16.7348 19.0002 17 19.0002H18C18.2652 19.0002 18.5196 18.8948 18.7071 18.7073C18.8946 18.5198 19 18.2654 19 18.0002V14.0002C19 13.735 18.8946 13.4806 18.7071 13.2931C18.5196 13.1055 18.2652 13.0002 18 13.0002ZM14 17.0002C13.8022 17.0002 13.6089 17.0588 13.4444 17.1687C13.28 17.2786 13.1518 17.4348 13.0761 17.6175C13.0004 17.8002 12.9806 18.0013 13.0192 18.1953C13.0578 18.3893 13.153 18.5674 13.2929 18.7073C13.4327 18.8471 13.6109 18.9424 13.8049 18.981C13.9989 19.0196 14.2 18.9998 14.3827 18.9241C14.5654 18.8484 14.7216 18.7202 14.8315 18.5558C14.9413 18.3913 15 18.198 15 18.0002C15 17.735 14.8946 17.4806 14.7071 17.2931C14.5196 17.1055 14.2652 17.0002 14 17.0002Z",fill:"currentColor"})]})},Il=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C6.99489 3 3 7.02968 3 12C3 12.5523 2.55228 13 2 13C1.44772 13 1 12.5523 1 12C1 5.93033 5.88511 1 12 1C15.6319 1 18.3508 2.518 20.1418 4.01211C20.4554 4.27365 20.7414 4.53515 21 4.78871V2.56C21 2.00772 21.4477 1.56 22 1.56C22.5523 1.56 23 2.00772 23 2.56V7.56C23 8.11228 22.5523 8.56 22 8.56H17.56C17.0077 8.56 16.56 8.11228 16.56 7.56C16.56 7.00772 17.0077 6.56 17.56 6.56H19.9367C19.6339 6.23948 19.2751 5.89363 18.8607 5.54789C17.3192 4.262 15.0381 3 12 3ZM22 11C22.5523 11 23 11.4477 23 12C23 18.0723 18.0723 23 12 23C8.89272 23 6.44015 21.4364 4.81317 19.9607C4.56094 19.7319 4.32638 19.5034 4.11 19.2803V21.44C4.11 21.9923 3.66228 22.44 3.11 22.44C2.55772 22.44 2.11 21.9923 2.11 21.44V16.44C2.11 15.8877 2.55772 15.44 3.11 15.44H7.63C8.18228 15.44 8.63 15.8877 8.63 16.44C8.63 16.9923 8.18228 17.44 7.63 17.44H5.12977C5.42214 17.769 5.76564 18.1245 6.15683 18.4793C7.59485 19.7836 9.58728 21 12 21C16.9677 21 21 16.9677 21 12C21 11.4477 21.4477 11 22 11Z",fill:"currentColor"})]})},Ml=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4C3.44772 13 3 12.5523 3 12Z",fill:"currentColor"})]})},Pl=({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M13 13.235C13.6003 12.8898 14.0045 12.2421 14.0045 11.5C14.0045 10.3954 13.109 9.49999 12.0045 9.49999H11.9955C10.8909 9.49999 9.99548 10.3954 9.99548 11.5C9.99548 12.2421 10.3997 12.8899 11 13.235V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V13.235Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.79565 2.08066C11.1665 1.31906 12.8335 1.31906 14.2043 2.08066L20.3574 5.49903C21.3712 6.06226 22 7.13087 22 8.29065V13C22 18.5228 17.5228 23 12 23C6.47715 23 2 18.5228 2 13V8.29065C2 7.13087 2.62877 6.06226 3.6426 5.49903L9.79565 2.08066ZM13.2331 3.82898C12.4662 3.40295 11.5338 3.40295 10.7669 3.82898L4.61388 7.24734C4.23499 7.45784 4 7.85721 4 8.29065V13C4 17.4183 7.58172 21 12 21C16.4183 21 20 17.4183 20 13V8.29065C20 7.85721 19.765 7.45784 19.3861 7.24734L13.2331 3.82898Z",fill:"currentColor"})]})},Tl=({email:r})=>{const n=r.split("@");return t("span",{className:Ee({overflowWrap:"break-word",wordBreak:"break-word",fontWeight:600}),children:[n[0],e("wbr",{}),"@",n[1]]})};Tl.displayName="EmailWbr";const _l=o((n,a)=>{const{address:o,onCopy:i,size:l="md",icon:s,fontColor:u="text.tertiary",fontWeight:f="normal",fontFamily:p="inherit"}=n,[g,h]=d(!1),m=`${o.slice(0,6)}...${o?.slice(-4)}`,b="sm"===l?16:20,y=c(()=>{i&&i(o),h(!0)},[o]);return v(()=>{if(g){const e=setTimeout(()=>{h(!1)},1500);return()=>clearTimeout(e)}},[g]),i?e($o,{className:Ee({fontSize:l,color:g?"positive.base":u,fontWeight:g?"medium":f,rounded:"button",fontVariant:"no-contextual",transition:"none",fontFamily:p}),onPress:y,ref:a,children:t(Je,{gap:2,children:[g?s?"Copied":"Copied!":m,s&&e(r,{children:g?e(Po,{width:b,height:b,color:ut("colors.positive.base")}):e(hl,{width:b,height:b,color:ut("colors.text.tertiary")})})]})}):e("span",{className:Ee({fontSize:l,color:u,fontWeight:f,fontVariant:"no-contextual",fontFamily:p}),children:m})});_l.displayName="WalletAddress";var Nl=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54",{default:"(..) .... ....","/^11/":"(..) .... ....","/^15/":"(..) ... ....","/^(2|3|4|5)/":"(.) .... ....","/^9/":"(.) .... ....."},0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973",".... ...."],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965",".... ...."],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968",".... ...."],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974",".... ...."],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966",".. ... ...."],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971",{default:".. ... ....","/^5[024568]/":".. ... ....","/^[234679]/":". ... ...."}],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Ol=(...e)=>e.filter(e=>!!e).join(" ").trim(),Al=({addPrefix:e,rawClassNames:t})=>Ol(((...e)=>Ol(...e).split(" ").map(e=>`react-international-phone-${e}`).join(" "))(...e),...t),Rl=e=>!!e&&/^\d+$/.test(e),Fl=e=>e.replace(/\D/g,""),Dl=({phone:e,prefix:t})=>e?`${t}${Fl(e)}`:"";function jl({value:e,country:t,insertDialCodeOnEmpty:r,trimNonDigitsEnd:n,countries:a,prefix:o,charAfterDialCode:i,forceDialCode:l,disableDialCodeAndPrefix:d,defaultMask:s,countryGuessingEnabled:c,disableFormatting:u}){let v=e;d&&(v=v.startsWith(`${o}`)?v:`${o}${t.dialCode}${v}`);let f=c?id({phone:v,countries:a,currentCountryIso2:t?.iso2}):void 0,p=f?.country??t,g=((e,t)=>{let r=!t.disableDialCodeAndPrefix&&t.forceDialCode,n=!t.disableDialCodeAndPrefix&&t.insertDialCodeOnEmpty,a=e,o=e=>t.trimNonDigitsEnd?e.trim():e;if(!a)return n&&!a.length||r?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(a);if(a=Fl(a),a===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(a)&&!t.disableDialCodeAndPrefix)return o(r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${a}`);if(!a.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(r)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(a.length<t.dialCode.length)return o(`${t.prefix}${a}`)}let{phoneLeftSide:i,phoneRightSide:l}=(()=>{let e=t.dialCode.length;return{phoneLeftSide:a.slice(0,e),phoneRightSide:a.slice(e)}})();return i=`${t.prefix}${i}${t.charAfterDialCode}`,l=(({value:e,mask:t,maskSymbol:r,offset:n=0,trimNonMaskCharsLeftover:a=!1})=>{if(e.length<n)return e;let o=e.slice(0,n),i=e.slice(n),l=o,d=0;for(let e of t.split("")){if(d>=i.length){if(!a&&e!==r){l+=e;continue}break}e===r?(l+=i[d],d+=1):l+=e}return l})({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&0===l.length}),t.disableDialCodeAndPrefix&&(i=""),o(`${i}${l}`)})(v,{prefix:o,mask:nd({phone:v,country:p,defaultMask:s,disableFormatting:u}),maskChar:zl,dialCode:p.dialCode,trimNonDigitsEnd:n,charAfterDialCode:i,forceDialCode:l,insertDialCodeOnEmpty:r,disableDialCodeAndPrefix:d}),h=c&&!f?.fullDialCodeMatch?t:p;return{phone:Dl({phone:d?`${h.dialCode}${g}`:g,prefix:o}),inputValue:g,country:h}}var Bl=(e,{country:t,insertDialCodeOnEmpty:r,phoneBeforeInput:n,prefix:a,charAfterDialCode:o,forceDialCode:i,disableDialCodeAndPrefix:l,countryGuessingEnabled:d,defaultMask:s,disableFormatting:c,countries:u})=>{let v=e.nativeEvent,f=v.inputType,p=(e=>{if(e?.toLocaleLowerCase().includes("delete"))return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"})(f),g=!!f?.startsWith("insertFrom"),h="insertText"===f,m=v?.data||void 0,b=e.target.value,y=e.target.selectionStart??0;if(f?.includes("history"))return{inputValue:n,phone:Dl({phone:n,prefix:a}),cursorPosition:n.length,country:t};if(h&&!Rl(m)&&b!==a)return{inputValue:n,phone:Dl({phone:l?`${t.dialCode}${n}`:n,prefix:a}),cursorPosition:y-(m?.length??0),country:t};if(i&&!b.startsWith(`${a}${t.dialCode}`)&&!g){let e=b?n:`${a}${t.dialCode}${o}`;return{inputValue:e,phone:Dl({phone:e,prefix:a}),cursorPosition:a.length+t.dialCode.length+o.length,country:t}}let{phone:C,inputValue:$,country:w}=jl({value:b,country:t,trimNonDigitsEnd:"backward"===p,insertDialCodeOnEmpty:r,countryGuessingEnabled:d,countries:u,prefix:a,charAfterDialCode:o,forceDialCode:i,disableDialCodeAndPrefix:l,disableFormatting:c,defaultMask:s}),x=(({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:r,cursorPositionAfterInput:n,leftOffset:a=0,deletion:o})=>{if(n<a)return a;if(!e)return r.length;let i=null;for(let e=n-1;e>=0;e-=1)if(Rl(t[e])){i=e;break}if(null===i){for(let e=0;e<t.length;e+=1)if(Rl(r[e]))return e;return t.length}let l=0;for(let e=0;e<i;e+=1)Rl(t[e])&&(l+=1);let d=0,s=0;for(let e=0;e<r.length&&(d+=1,Rl(r[e])&&(s+=1),!(s>=l+1));e+=1);if("backward"!==o)for(;!Rl(r[d])&&d<r.length;)d+=1;return d})({cursorPositionAfterInput:y,phoneBeforeInput:n,phoneAfterInput:b,phoneAfterFormatted:$,leftOffset:i?a.length+t.dialCode.length+o.length:0,deletion:p});return{phone:C,inputValue:$,cursorPosition:x,country:w}},Vl={size:20,overrideLastItemDebounceMS:-1};function Hl(e,t){let{size:r,overrideLastItemDebounceMS:n,onChange:a}={...Vl,...t},[o,l]=d(e),u=s([o]),v=s(0),f=(()=>{let e=s(),t=s(Date.now()),r=c(()=>{let r=Date.now(),n=e.current?r-t.current:void 0;return e.current=t.current,t.current=r,n},[]);return i(()=>({check:r}),[r])})(),p=c((e,t)=>{let o=u.current[v.current];if(e===o||"object"==typeof e&&"object"==typeof o&&((e,t)=>{let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(e[n]!==t[n])return!1;return!0})(e,o))return;let i=n>0,d=f.check(),s=!i||void 0===d||d>n;if(void 0!==t?.overrideLastItem?t.overrideLastItem:!s)u.current=[...u.current.slice(0,v.current),e];else{let t=u.current.length>=r;u.current=[...u.current.slice(t?1:0,v.current+1),e],t||(v.current+=1)}l(e),a?.(e)},[a,n,r,f]),g=c(()=>{if(v.current<=0)return{success:!1};let e=u.current[v.current-1];return l(e),v.current-=1,a?.(e),{success:!0,value:e}},[a]),h=c(()=>{if(v.current+1>=u.current.length)return{success:!1};let e=u.current[v.current+1];return l(e),v.current+=1,a?.(e),{success:!0,value:e}},[a]);return[o,p,g,h]}var zl=".",Wl="us",Ul="",Gl="+",Yl="............",Zl=" ",ql=200,Kl=!1,Xl=!1,Ql=!1,Jl=!1,ed=!1,td=Nl,rd=({defaultCountry:e=Wl,value:t=Ul,countries:r=td,prefix:n=Gl,defaultMask:a=Yl,charAfterDialCode:o=Zl,historySaveDebounceMS:l=ql,disableCountryGuess:u=Kl,disableDialCodePrefill:f=Xl,forceDialCode:p=Ql,disableDialCodeAndPrefix:g=Jl,disableFormatting:h=ed,onChange:m,inputRef:b})=>{let y={countries:r,prefix:n,charAfterDialCode:o,forceDialCode:!g&&p,disableDialCodeAndPrefix:g,defaultMask:a,countryGuessingEnabled:!u,disableFormatting:h},C=s(null),$=b||C,w=e=>{Promise.resolve().then(()=>{typeof window>"u"||$.current!==document?.activeElement||$.current?.setSelectionRange(e,e)})},x=c(e=>od({value:e,field:"iso2",countries:r}),[r]),E=c(({inputValue:e,phone:t,country:r})=>{if(!m)return;let n=x(r);m({phone:t,inputValue:e,country:n})},[x,m]),[{phone:k,inputValue:L,country:S},I,M,P]=Hl(()=>{let n=od({value:e,field:"iso2",countries:r});n||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let a=n||od({value:"us",field:"iso2",countries:r}),{phone:o,inputValue:i,country:l}=jl({value:t,country:a,insertDialCodeOnEmpty:!f,...y});return w(i.length),{phone:o,inputValue:i,country:l.iso2}},{overrideLastItemDebounceMS:l,onChange:E}),T=i(()=>x(S),[S,x]);v(()=>{let e=$.current;if(!e)return;let t=e=>{if(!e.key)return;let t=e.ctrlKey,r=e.metaKey,n=e.shiftKey;if("z"===e.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!t)return}else if(!r)return;n?P():M()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[$,M,P]);let _=c((e,t={focusOnInput:!1})=>{let a=od({value:e,field:"iso2",countries:r});if(!a)return void console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let i=g?"":`${n}${a.dialCode}${o}`;I({inputValue:i,phone:`${n}${a.dialCode}`,country:a.iso2}),t.focusOnInput&&Promise.resolve().then(()=>{$.current?.focus()})},[r,g,n,o,I,$]),[N,O]=d(!1);return v(()=>{if(!N)return O(!0),void(t!==k&&m?.({inputValue:L,phone:k,country:T}));if(t===k)return;let{phone:e,inputValue:r,country:n}=jl({value:t,country:T,insertDialCodeOnEmpty:!f,...y});I({phone:e,inputValue:r,country:n.iso2})},[t]),{phone:k,inputValue:L,country:T,setCountry:_,handlePhoneValueChange:e=>{e.preventDefault();let{phone:r,inputValue:n,country:a,cursorPosition:o}=Bl(e,{country:T,phoneBeforeInput:L,insertDialCodeOnEmpty:!1,...y});return I({inputValue:n,phone:r,country:a.iso2}),w(o),t},inputRef:$}},nd=({phone:e,country:t,defaultMask:r="............",disableFormatting:n=!1})=>{let a=t.format,o=e=>n?e.replace(new RegExp(`[^${zl}]`,"g"),""):e;if(!a)return o(r);if("string"==typeof a)return o(a);if(!a.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(r);let i=Object.keys(a).find(r=>{if("default"===r)return!1;if("/"!==r.charAt(0)||"/"!==r.charAt(r.length-1))return console.error(`[react-international-phone]: format regex "${r}" for ${t.iso2} is not valid`),!1;let n=new RegExp(r.substring(1,r.length-1)),a=e.replace(t.dialCode,"");return n.test(Fl(a))});return o(i?a[i]:a.default)},ad=e=>{let[t,r,n,a,o,i]=e;return{name:t,iso2:r,dialCode:n,format:a,priority:o,areaCodes:i}},od=({field:e,value:t,countries:r=Nl})=>{if(["priority"].includes(e))throw new Error((e=>`Field "${e}" is not supported`)(e));let n=r.find(r=>{let n=ad(r);return t===n[e]});if(n)return ad(n)},id=({phone:e,countries:t=Nl,currentCountryIso2:r})=>{let n={country:void 0,fullDialCodeMatch:!1};if(!e)return n;let a=Fl(e);if(!a)return n;let o=n,i=({country:e,fullDialCodeMatch:t})=>{let r=e.dialCode===o.country?.dialCode,n=(e.priority??0)<(o.country?.priority??0);(!r||n)&&(o={country:e,fullDialCodeMatch:t})};for(let e of t){let t=ad(e),{dialCode:r,areaCodes:n}=t;if(a.startsWith(r)){let e=!o.country||Number(r)>=Number(o.country.dialCode);if(n){let e=a.substring(r.length);for(let r of n)if(e.startsWith(r))return{country:t,fullDialCodeMatch:!0}}(e||r===a||!o.fullDialCodeMatch)&&i({country:t,fullDialCodeMatch:!0})}o.fullDialCodeMatch||a.length<r.length&&r.startsWith(a)&&(!o.country||Number(r)<=Number(o.country.dialCode))&&i({country:t,fullDialCodeMatch:!1})}if(r){let e=od({value:r,field:"iso2",countries:t});if(!e)return o;let n=!!e&&(e=>{if(!e?.areaCodes)return!1;let t=a.substring(e.dialCode.length);return e.areaCodes.some(e=>e.startsWith(t))})(e);o&&o.country?.dialCode===e.dialCode&&o.country!==e&&o.fullDialCodeMatch&&(!e.areaCodes||n)&&(o={country:e,fullDialCodeMatch:!0})}return o},ld=(e,t)=>{let r=parseInt(e,16);return Number(r+t).toString(16)},dd="abcdefghijklmnopqrstuvwxyz".split("").reduce((e,t,r)=>({...e,[t]:ld("1f1e6",r)}),{}),sd=({iso2:e,size:t,src:r,protocol:n="https",disableLazyLoading:o,className:i,style:l,...d})=>{if(!e)return a.createElement("img",{className:Al({addPrefix:["flag-emoji"],rawClassNames:[i]}),width:t,height:t,...d});return a.createElement("img",{className:Al({addPrefix:["flag-emoji"],rawClassNames:[i]}),src:(()=>{if(r)return r;let t=(e=>[dd[e[0]],dd[e[1]]].join("-"))(e);return`${n}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${t}.svg`})(),width:t,height:t,draggable:!1,"data-country":e,loading:o?void 0:"lazy",style:{width:t,height:t,...l},alt:"",...d})},cd=({show:e,dialCodePrefix:t="+",selectedCountry:r,countries:n=Nl,preferredCountries:o=[],flags:l,onSelect:u,onClose:f,...p})=>{let g=s(null),h=s(),m=i(()=>{if(!o||!o.length)return n;let e=[],t=[...n];for(let r of o){let n=t.findIndex(e=>ad(e).iso2===r);if(-1!==n){let r=t.splice(n,1)[0];e.push(r)}}return e.concat(t)},[n,o]),b=s({updatedAt:void 0,value:""}),y=c(e=>m.findIndex(t=>ad(t).iso2===e),[m]),[C,$]=d(y(r)),w=()=>{h.current!==r&&$(y(r))},x=c(e=>{$(y(e.iso2)),u?.(e)},[u,y]),E=e=>{let t=m.length-1;$(r=>{let n=(r=>"prev"===e?r-1:"next"===e?r+1:"last"===e?t:0)(r);return n<0?0:n>t?t:n})},k=c(()=>{if(!g.current||void 0===C)return;let e=ad(m[C]).iso2;if(e===h.current)return;let t=g.current.querySelector(`[data-country="${e}"]`);t&&(((e,t)=>{let r=e.style.display;"block"!==r&&(e.style.display="block");let n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=a.top-n.top,i=n.bottom-a.bottom;o>=0&&i>=0||(Math.abs(o)<Math.abs(i)?e.scrollTop+=o:e.scrollTop-=i),e.style.display=r})(g.current,t),h.current=e)},[C,m]);return v(()=>{k()},[C,k]),v(()=>{g.current&&(e?g.current.focus():w())},[e]),v(()=>{w()},[r]),a.createElement("ul",{ref:g,role:"listbox",className:Al({addPrefix:["country-selector-dropdown"],rawClassNames:[p.className]}),style:{display:e?"block":"none",...p.style},onKeyDown:e=>{if(e.stopPropagation(),"Enter"===e.key){e.preventDefault();let t=ad(m[C]);return void x(t)}if("Escape"!==e.key)return"ArrowUp"===e.key?(e.preventDefault(),void E("prev")):"ArrowDown"===e.key?(e.preventDefault(),void E("next")):"PageUp"===e.key?(e.preventDefault(),void E("first")):"PageDown"===e.key?(e.preventDefault(),void E("last")):(" "===e.key&&e.preventDefault(),void(1===e.key.length&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&(e=>{let t=b.current.updatedAt&&(new Date).getTime()-b.current.updatedAt.getTime()>1e3;b.current={value:t?e:`${b.current.value}${e}`,updatedAt:new Date};let r=m.findIndex(e=>ad(e).name.toLowerCase().startsWith(b.current.value));-1!==r&&$(r)})(e.key.toLocaleLowerCase())));f?.()},onBlur:f,tabIndex:-1,"aria-activedescendant":`react-international-phone__${ad(m[C]).iso2}-option`},m.map((e,n)=>{let i=ad(e),d=i.iso2===r,s=n===C,c=o.includes(i.iso2),u=n===o.length-1,v=l?.find(e=>e.iso2===i.iso2);return a.createElement(a.Fragment,{key:i.iso2},a.createElement("li",{"data-country":i.iso2,role:"option","aria-selected":d,"aria-label":`${i.name} ${t}${i.dialCode}`,id:`react-international-phone__${i.iso2}-option`,className:Al({addPrefix:["country-selector-dropdown__list-item",c&&"country-selector-dropdown__list-item--preferred",d&&"country-selector-dropdown__list-item--selected",s&&"country-selector-dropdown__list-item--focused"],rawClassNames:[p.listItemClassName,c&&p.listItemPreferredClassName,d&&p.listItemSelectedClassName,s&&p.listItemFocusedClassName]}),onClick:()=>x(i),style:p.listItemStyle,title:i.name},a.createElement(sd,{iso2:i.iso2,src:v?.src,className:Al({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[p.listItemFlagClassName]}),style:p.listItemFlagStyle}),a.createElement("span",{className:Al({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[p.listItemCountryNameClassName]}),style:p.listItemCountryNameStyle},i.name),a.createElement("span",{className:Al({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[p.listItemDialCodeClassName]}),style:p.listItemDialCodeStyle},t,i.dialCode)),u?a.createElement("hr",{className:Al({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[p.preferredListDividerClassName]}),style:p.preferredListDividerStyle}):null)}))},ud=a.memo(({selectedCountry:e,onSelect:t,disabled:r,hideDropdown:n,countries:o=Nl,preferredCountries:l=[],flags:c,renderButtonWrapper:u,...v})=>{let[f,p]=d(!1),g=i(()=>{if(e)return od({value:e,field:"iso2",countries:o})},[o,e]),h=s(null),m=e=>{e.key&&["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),p(!0))};return a.createElement("div",{className:Al({addPrefix:["country-selector"],rawClassNames:[v.className]}),style:v.style,ref:h},(()=>{let t={title:g?.name,onClick:()=>p(e=>!e),onMouseDown:e=>e.preventDefault(),onKeyDown:m,disabled:n||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},o=a.createElement("div",{className:Al({addPrefix:["country-selector-button__button-content"],rawClassNames:[v.buttonContentWrapperClassName]}),style:v.buttonContentWrapperStyle},a.createElement(sd,{iso2:e,src:c?.find(t=>t.iso2===e)?.src,className:Al({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[v.flagClassName]}),style:{visibility:e?"visible":"hidden",...v.flagStyle}}),!n&&a.createElement("div",{className:Al({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[v.dropdownArrowClassName]}),style:v.dropdownArrowStyle}));return u?u({children:o,rootProps:t}):a.createElement("button",{...t,type:"button",className:Al({addPrefix:["country-selector-button",f&&"country-selector-button--active",r&&"country-selector-button--disabled",n&&"country-selector-button--hide-dropdown"],rawClassNames:[v.buttonClassName]}),"data-country":e,style:v.buttonStyle},o)})(),a.createElement(cd,{show:f,countries:o,preferredCountries:l,flags:c,onSelect:e=>{p(!1),t?.(e)},selectedCountry:e,onClose:()=>{p(!1)},...v.dropdownStyleProps}))}),vd=({dialCode:e,prefix:t,disabled:r,style:n,className:o})=>a.createElement("div",{className:Al({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[o]}),style:n},`${t}${e}`);o(({value:e,onChange:t,countries:r=Nl,preferredCountries:n,hideDropdown:o,showDisabledDialCodeAndPrefix:i,disableFocusAfterCountrySelect:l,flags:d,style:s,className:u,inputStyle:v,inputClassName:f,countrySelectorStyleProps:p,dialCodePreviewStyleProps:g,inputProps:h,placeholder:m,disabled:y,name:C,onFocus:$,onBlur:w,required:x,autoFocus:E,...k},L)=>{let S=c(e=>{t?.(e.phone,{country:e.country,inputValue:e.inputValue})},[t]),{phone:I,inputValue:M,inputRef:P,country:T,setCountry:_,handlePhoneValueChange:N}=rd({value:e,countries:r,...k,onChange:S}),O=k.disableDialCodeAndPrefix&&i&&T?.dialCode,A=c(e=>{_(e.iso2,{focusOnInput:!l})},[_,l]);return b(L,()=>P.current?Object.assign(P.current,{setCountry:_,state:{phone:I,inputValue:M,country:T}}):null,[P,_,I,M,T]),a.createElement("div",{ref:L,className:Al({addPrefix:["input-container"],rawClassNames:[u]}),style:s},a.createElement(ud,{onSelect:A,flags:d,selectedCountry:T?.iso2,countries:r,preferredCountries:n,disabled:y,hideDropdown:o,...p}),O&&a.createElement(vd,{dialCode:T.dialCode,prefix:k.prefix??"+",disabled:y,...g}),a.createElement("input",{onChange:N,value:M,type:"tel",ref:P,className:Al({addPrefix:["input",y&&"input--disabled"],rawClassNames:[f]}),placeholder:m,disabled:y,style:v,name:C,onFocus:$,onBlur:w,autoFocus:E,required:x,...h}))});const fd=({iso2:t})=>e(Ue,{width:"1.125rem",height:"1.125rem",borderRadius:"full",borderWidth:"thin",borderColor:"neutral.primary",overflow:"hidden",align:"center",children:e(sd,{src:`https://flagcdn.com/${t}.svg`,iso2:t,size:16,className:Ee({objectFit:"cover"})})}),pd=r=>{const{onChange:n,onSubmit:a,autoFocus:o=!0,errorMessage:l,disableSubmit:u,showPlaceholder:f}=r,[p,g]=d(""),[h,m]=d(!1),[b,y]=d(!1),[C,$]=d(0),[w,x]=d(""),E=s(null),k=s(null),L=s(null),S=s([]),I=s(void 0),{country:M,setCountry:P,inputRef:T,handlePhoneValueChange:_,inputValue:N}=rd({defaultCountry:"us",value:p,onChange:e=>{g(e.phone),n(e.phone)},disableDialCodeAndPrefix:f}),O=u?.(p,M.iso2),A=i(()=>{const e=Nl.find(([,e])=>e===M.iso2);return e?e[2]:"1"},[M.iso2]),R=i(()=>{const e=Nl.find(([,e])=>e===M.iso2),t=e&&"string"==typeof e[3]?e[3]:null;return t?t.replace(/\./g,"5"):"(555) 555-5555"},[M.iso2]),F=i(()=>{const e=Nl.filter(([,e])=>e!==M.iso2),t=Nl.find(([,e])=>e===M.iso2);return t?[t,...e]:[...Nl]},[M.iso2]),D=i(()=>F.filter(([,e])=>e!==M.iso2),[M.iso2]),j=c(e=>{var t;P(e),y(!1),null===(t=T.current)||void 0===t||t.focus()},[P]),B=c(()=>{y(!b),b||($(0),setTimeout(()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.focus()}))},[b]),{buttonProps:V}=Xn({onPress:B},E),{focusProps:H,isFocusVisible:z}=ma(),{keyboardProps:W}=Mn({onKeyDown:e=>{var t;if(b)switch(e.key){case"ArrowDown":e.preventDefault(),$(e=>(e+1)%F.length);break;case"ArrowUp":e.preventDefault(),$(e=>(e-1+F.length)%F.length);break;case"Enter":if(e.preventDefault(),C>=0){const[,e]=F[C];j(e)}break;case"Escape":y(!1),null===(t=T.current)||void 0===t||t.focus();break;default:(" "===e.key||e.key.match(/[\w]/i))&&(e.preventDefault(),clearTimeout(I.current),x(t=>t+e.key),I.current=window.setTimeout(()=>{x("")},1e3))}}});v(()=>{var e;o&&(null===(e=T.current)||void 0===e||e.focus());const t=e=>{L.current&&!L.current.contains(e.target)&&(y(!1),m(!1))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[]),v(()=>{var e;if(""!==w){const t=D.findIndex(([e])=>e.toLowerCase().startsWith(w.toLowerCase()));if(-1!==t){const r=F.findIndex(([e])=>e===D[t][0]);$(r),null===(e=S.current[r])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"})}}},[w,F,M.iso2]),v(()=>{var e;C>=0&&S.current[C]&&(null===(e=S.current[C])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"}))},[C]);return t(Xe,{gap:2,style:r.containerStyles,children:[t(Ue,{...Ft(W,H),ref:k,height:"fit-content",width:"full",alignItems:"center",justify:"center",borderWidth:"thin",borderColor:"neutral.secondary",borderRadius:"input",transition:"all linear 120ms",outlineColor:"brand.base",outlineStyle:h&&!z?"solid":"none",outlineWidth:"thick",outlineOffset:.5,onFocus:()=>{m(!0)},onBlur:()=>{m(!1)},position:"relative",_hover:{borderColor:"neutral.primary"},children:[e("button",{...Ft(V,H),className:Ee({display:"flex",justifyContent:"center",alignItems:"center",borderStartRadius:"input",h:12,w:20,px:3,outlineColor:"brand.base",outlineStyle:z?"solid":"none",outlineWidth:"thick",outlineOffset:.5,cursor:"pointer",transition:"all linear 120ms",_hover:{bg:"surface.tertiary"}}),children:t(Je,{gap:2,children:[e(fd,{iso2:M.iso2}),e(Wo,{width:14,height:14,transform:b?"rotate(180)":""})]})}),b&&e(Ve,{ref:L,tabIndex:-1,bg:"surface.primary",position:"absolute",w:"full",rounded:"input",top:55,boxShadow:"4px 8px 20px 0px rgba(0, 0, 0, 0.15)",maxHeight:"17.5rem",overflowY:"auto",outline:"none",children:F.map(([r,n,a],o)=>{const i=M.iso2===n;return t(Je,{cursor:"pointer",bg:i?"brand.base":C===o?"brand.lightest":"",_hover:i?{}:{bg:"brand.lightest"},ref:e=>S.current[o]=e,gap:2,p:4,onClick:()=>j(n),justify:"space-between",children:[t(Je,{gap:4,children:[i?e(ko,{width:18,height:18,color:ut("colors.surface.primary")}):e(fd,{iso2:n}),e(Vo,{fontColor:i?"text.quaternary":"text.primary",children:r})]}),t(Vo,{fontColor:i?"text.quaternary":"text.tertiary",children:["+",a]})]},n)})}),t(Je,{gap:0,alignItems:"center",flex:1,style:{borderLeftWidth:"thin",borderColor:ut("colors.neutral.secondary")},children:[f?t("span",{className:Ee({color:"text.primary",fontWeight:"medium",fontSize:"md",paddingLeft:4,paddingRight:2,userSelect:"none"}),children:["+",A]}):null,e("input",{type:"tel",inputMode:"tel",onChange:_,value:N,ref:T,placeholder:f?R:"",onKeyDown:e=>{"Enter"===e.key&&a&&!O&&(e.preventDefault(),a())},className:Ee({transition:"all linear 120ms",width:"full",boxSizing:"border-box",rounded:0,margin:0,minWidth:10,fontWeight:"medium",backgroundColor:"transparent",color:"text.primary",height:12,fontSize:"md",py:3,paddingRight:4,paddingLeft:f?0:4,textAlign:"left",outline:"none",_placeholder:{color:"text.tertiary"}})})]}),a&&e(Ve,{style:{paddingRight:"16px"},children:e(xi,{"aria-label":"Submit phone number",variant:"text",textStyle:"neutral",onPress:a,disabled:O,children:e(xi.LeadingIcon,{color:ut("colors.text.tertiary"),children:e(fl,{})})})})]}),l&&e(Vo,{variant:"error",size:"sm",fontWeight:"normal",children:l})]})};pd.displayName="PhoneInput";const gd=Pe({slots:["container","label","inputContainer","input","description","typeIcon","actionIcon","actionButton"],base:{label:{fontSize:"sm",fontWeight:"medium",color:"text.primary"},inputContainer:{backgroundColor:"transparent",borderStyle:"solid",borderWidth:"thin",borderColor:"neutral.secondary",borderRadius:"input",boxSizing:"border-box",transition:"all linear 120ms",width:"100%",_hover:{borderColor:"neutral.primary"},_dark:{borderColor:"ink.70",_hover:{borderColor:"ink.50"}},_focusWithin:{outlineColor:"brand.base",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5}},input:{transition:"all linear 120ms",width:"100%",boxSizing:"border-box",m:0,p:0,outline:"none",minWidth:10,fontWeight:"normal",backgroundColor:"transparent",color:"text.primary",_placeholder:{color:"text.tertiary"},_groupHover:{borderColor:"neutral.primary"}},description:{fontSize:"sm",color:"text.primary"},typeIcon:{transition:"opacity linear 120ms"},actionIcon:{transition:"opacity linear 120ms",cursor:"pointer"},actionButton:{transition:"opacity linear 120ms"}},variants:{size:{sm:{input:{fontSize:"sm",textAlign:"left"},inputContainer:{height:10,p:3}},md:{input:{fontSize:"md",textAlign:"left"},inputContainer:{height:12,p:3}},lg:{input:{fontSize:"lg",textAlign:"left"},inputContainer:{height:15,padding:4}}},alignText:{left:{input:{textAlign:"left"},container:{alignItems:"flex-start"}},center:{input:{textAlign:"center"},container:{alignItems:"center"}},right:{input:{textAlign:"right"},container:{alignItems:"flex-end"}}},isError:{true:{inputContainer:{borderColor:"negative.base"}}},char:{true:{input:{fontSize:"xl",textAlign:"center"},inputContainer:{height:12,py:2}}},disabled:{true:{container:{opacity:.3,pointerEvents:"none"},inputContainer:{_hover:{borderColor:"neutral.secondary"}}}}}}),hd=ni(({children:t,...r})=>e(Ue,{alignItems:"center",justifyContent:"center",children:g.map(t,e=>{var t;return h(e,{...r,color:null!==(t=e.props.color)&&void 0!==t?t:ut("colors.neutral.primary")})})})),md=ni(({children:t,...r})=>e(Ue,{alignItems:"center",justifyContent:"center",children:g.map(t,e=>{var t;return y(e)?h(e,{...r,color:null!==(t=e.props.color)&&void 0!==t?t:ut("colors.brand.base")}):null})})),bd=ni(xi),yd=ni(Vo),Cd=ni(Vo),$d=o((r,n)=>{const{label:a,disabled:o,size:i="md",alignText:l="left",attr:d,description:c,autoFocus:u,className:v="",errorMessage:f,required:p}=r,g="sm"===i?16:20,h=s(null),m=n||h,{labelProps:b,inputProps:y,descriptionProps:C,errorMessageProps:$,isInvalid:w,validationErrors:x}=Na({...r,isDisabled:o??!1,isInvalid:!!f},m),{focusProps:E}=ma({autoFocus:u??!1}),{hoverProps:k}=jn({isDisabled:o??!1});return ri(r.children,r=>{const n=r.get(hd),s=r.get(md),u=r.getProps(bd),h=r.getProps(yd),L=r.getProps(Cd),S=gd({size:i,alignText:l,disabled:o,isError:w});return t(Xe,{className:Le(S.container,v),children:[a&&t("label",{className:S.label,...b,children:[a," ",p&&e("span",{className:Ee({color:"negative.darker"}),children:"*"})]}),t(Je,{className:S.inputContainer,children:[n&&{...n,props:{...n.props,className:S.typeIcon,width:g,height:g}},h&&e(Vo,{...h,fontColor:"text.tertiary"}),e("input",{ref:m,className:S.input,...Ft(y,E,k),...d}),L&&e(Vo,{...L,fontColor:"text.tertiary"}),s&&{...s,props:{...s.props,className:S.actionIcon,width:g,height:g}},u&&e(Ue,{alignItems:"center",justifyContent:"center",className:S.actionButton,children:e(xi,{...u,variant:"text",size:i})})]}),c&&e("div",{className:S.description,...C,children:c}),w&&e(Vo,{variant:"error",...$,size:"sm",fontWeight:"normal",children:x.length>0?x.join(" "):f})]})})}),wd=o((t,r)=>{const{disabled:n,autoFocus:a,className:o="",attr:i}=t,l=s(null),d=r||l,{inputProps:c}=Na({...t,isDisabled:n??!1},d),{focusProps:u}=ma({autoFocus:a??!1}),{hoverProps:v}=jn({isDisabled:n??!1}),f=gd({char:!0,disabled:n});return e("div",{className:Le(f.container,f.inputContainer,o),children:e("input",{ref:d,className:f.input,...Ft(c,u,v),size:1,...i})})}),xd=Object.assign($d,{TypeIcon:hd,ActionIcon:md,ActionButton:bd,Char:wd,Prefix:yd,Suffix:Cd});$d.displayName="TextInput",wd.displayName="TextInputChar";const Ed=/\D/g,kd=({pinLength:t,onComplete:r=e=>e,onChange:n=e=>e,id:a="pin-code-input",autoFocus:o=!0,className:i})=>{const[l,u]=d(()=>Array.from({length:t},()=>"")),f=s(Array(t).fill(null));v(()=>{u(e=>t<e.length?e.slice(0,t):t>e.length?[...e,...Array(t-e.length).fill("")]:e)},[t]),v(()=>{var e;o&&f.current[0]&&(null===(e=f.current[0])||void 0===e||e.focus())},[o,t]);const p=(e,a)=>{var o;u(a),n(a);const i=a.join("");i.length===t&&(null===(o=f.current[e])||void 0===o||o.blur(),r(i))},g=c((e,r)=>{const n=[...l];r.replace(Ed,"").split("").forEach(r=>{var a,o;e>=t||(n[e]=r,e++,null===(o=null===(a=f?.current)||void 0===a?void 0:a[e])||void 0===o||o.focus())}),p(e,n)},[l,p]),h=c(e=>{var t,r;const n=parseInt(e.currentTarget.dataset.id||"",10),a=e.target.value.replace(Ed,"");if(a.length>1)return g(n,a);const o=[...l];o[n]=a,a.length&&(null===(r=null===(t=f?.current)||void 0===t?void 0:t[n+1])||void 0===r||r.focus()),p(n,o)},[p]),m=c(e=>{var r,n,a,o,i;const d=e.currentTarget.value.length,s=parseInt(e.currentTarget.dataset.id||"",10),c=[...l];switch(e.key){case"Backspace":if(d&&(c[s]="",p(s,c)),s){const e=c.reduceRight((e,t,r)=>-1!==e?e:""!==t?r:e,-1);null===(r=f?.current[e>=0?e:0])||void 0===r||r.focus()}return;case"ArrowLeft":{const e=s?s-1:t-1;return void(null===(n=f?.current[e])||void 0===n||n.focus())}case"ArrowRight":{const e=s===t-1?0:s+1;return void(null===(a=f?.current[e])||void 0===a||a.focus())}default:{const t=e.key.replace(Ed,"");d&&t.length&&t!==e.currentTarget.value&&(c[s]=t,p(s,c),null===(i=null===(o=f?.current)||void 0===o?void 0:o[s+1])||void 0===i||i.focus())}}},[n,p]);return e("form",{id:a,className:Ee({margin:0,minWidth:0,display:"flex",width:"100%",justifyContent:"space-between",maxWidth:"30rem",gap:2}),children:l.map((r,n)=>e(xd.Char,{id:a?`${a}-${n}`:void 0,"aria-label":`one time password input ${n+1}`,"data-id":n,name:`one time password input ${n+1}`,value:l[n]||"",className:Le(Ee({caretColor:"transparent",rounded:"0.5rem",marginRight:6===t&&2===n?4:0}),i),attr:{onChange:h,onKeyUp:m,autoComplete:0===n?"one-time-code":"off",inputMode:"numeric"},ref:e=>{f?.current&&(f.current[n]=e)}},`${a||void 0}-${n}`))})},Ld="2.625rem",Sd=ni(({children:t})=>e(Zi,{children:t})),Id=ni(({children:e})=>g.map(e,e=>{var t,r,n;return h(e,{color:null!==(t=e.props.color)&&void 0!==t?t:ut("colors.brand.base"),width:null!==(r=e.props.width)&&void 0!==r?r:Ld,height:null!==(n=e.props.height)&&void 0!==n?n:Ld})})),Md=ni(({children:t,className:r=""})=>e(Xe,{alignItems:"center",justifyContent:"center",flexShrink:0,className:`${Ee({pb:0,pt:6,px:8,width:"100%"})} ${r}`,children:t})),Pd=ni(Wi),Td=ni(Li),_d=({children:t,overlay:n,...a})=>{if(n){const{animate:r,backgroundType:n,isOpen:o=!0,onHidden:i,fullscreen:l=!1}=a;return e(ol,{animate:r,backgroundType:n,hide:!o,onHidden:i,fullscreen:l,children:t})}return e(r,{children:t})},Nd=Object.assign(({children:r,overlay:n=!0,...a})=>ri(r,r=>{const o=r.get(Sd)?8:4,i=r.getProps(Pd),l=r.getProps(Td);return e(_d,{overlay:n,...a,children:e(nl,{paddingType:"md",...a,children:t(Xe,{alignItems:"center",gap:0,width:"full",className:Ee({mt:o}),children:[r.get(Sd),r.get(Id),r.get(Md),i&&e(Wi,{...i}),l&&e(Li,{...l})]})})})}),{Header:Sd,Icon:Id,Content:Md,Footer:Pd,Drawer:Td}),Od=ni(Nd.Icon);Object.assign(({children:r,cancelLabel:n,confirmLabel:a,title:o,message:i,onCancel:l=()=>{},onConfirm:d=()=>{},...s})=>ri(r,r=>t(Nd,{...s,children:[e(Nd.Icon,{children:r.get(Od)}),t(Nd.Content,{children:[e(Vo.H3,{styles:{textAlign:"center"},children:o}),e(Vo,{size:"md",children:i}),t(Je,{className:Ee({pt:6}),children:[e(xi,{onPress:d,label:a}),n&&e(xi,{onPress:l,label:n})]})]}),e(Nd.Footer,{})]})),{Icon:Od});const Ad=ni(({children:t,...r})=>e(lt,{children:g.map(t,e=>h(e,r))})),Rd=ni(({children:t,...r})=>e(lt,{children:g.map(t,e=>h(e,r))}));Object.assign(({children:r,detailTitle:n,detailMessage:a,title:o,message:i,...l})=>ri(r,r=>{const d=r.get(Ad),s=r.get(Rd);return t(Nd,{...l,children:[e(Nd.Icon,{children:d||e(gl,{})}),t(Nd.Content,{children:[e(Vo.H3,{styles:{textAlign:"center"},children:o}),e(Vo,{size:"md",styles:{textAlign:"center"},children:i}),a&&t("div",{className:Ee({background:"negative.lightest",borderRadius:"0.5rem",my:4,p:4,width:"full"}),children:[n&&e(Vo,{variant:"error",children:e("b",{className:Ee({textTransform:"uppercase"}),children:n})}),e(Vo,{variant:"error",children:a})]}),s]}),e(Nd.Footer,{})]})}),{Icon:Ad,Button:Rd});const Fd=ni(({children:t})=>g.map(t,t=>e(xi,{expand:!0,...t.props}))),Dd=ni(xi),jd=ni(xi),Bd=ni(({children:r})=>t(fi,{textStyle:"subtle",variant:"text",children:[e(fi.TrailingIcon,{children:e(Uo,{})}),e(fi.Content,{children:r})]})),Vd=ni(({branding:t,title:r})=>r?e(Vo,{size:"sm",fontColor:"text.secondary",children:r}):e(El,{color:ut("light"===t?"colors.text.primary":"colors.neutral.primary")})),Hd=ni(({children:t,height:r="auto",flexGrow:n=0})=>e(Xe,{w:"full",justify:"center",height:r,flexGrow:n,children:t})),zd=ni(Ji),Wd=ni(Li),Ud=ni(({children:t})=>e(lt,{pt:3,w:"full",children:t})),Gd=ni(({children:r,domain:n,name:a,logoUrl:o})=>t(Je,{borderBottomColor:"neutral.primary",borderBottomWidth:"1px",p:3,width:"full",children:[o?e("img",{src:o,alt:a,width:24,height:24}):e(El,{color:ut("colors.brand.base"),height:24,width:24}),e(Vo,{size:"sm",fontWeight:"semibold",children:a}),n&&e(Vo,{size:"sm",fontColor:"text.tertiary",children:n}),r]}));Object.assign(({actionDirection:r="row",address:n,children:a,onBack:o,onCancel:i,hideHeader:l=!1,...d})=>ri(a,a=>{const s=a.getProps(Dd),c=a.getProps(jd),u=a.getProps(Wd),v=a.getProps(zd),f=a.get(Fd),p=a.get(Bd),g=a.get(Vd),h="row"===r;return t(nl,{...d,fullscreen:!0,paddingType:"none",gap:0,children:[!l&&t(Xe,{gap:0,width:"full",children:[t(Je,{borderBottomColor:"neutral.primary",borderBottomWidth:"1px",justifyContent:"space-between",p:3,width:"full",children:[o&&e(xi,{onPress:o,size:"md",textStyle:"neutral",variant:"text",children:e(xi.LeadingIcon,{children:e(pl,{})})}),i&&e(xi,{onPress:i,label:"Cancel",size:"sm",textStyle:"neutral",variant:"text"}),!(o||i)&&e(Ve,{w:6}),g,n||p||v?t(Je,{children:[n&&e(_l,{address:n}),p,v&&e(Ji,{...v})]}):e(Ve,{w:6})]}),a.get(Gd)]}),t(Xe,{h:"full",w:"full",justify:"space-between",p:6,maxW:393,children:[a.get(Hd),t(Xe,{w:"full",gap:3,children:[a.get(Ud),(s||c)&&t(Ue,{direction:h?"row":"column-reverse",gap:h?4:3,width:"full",children:[s&&e(xi,{expand:!0,label:"Cancel",variant:"neutral",...s}),c&&e(xi,{expand:!0,label:"Confirm",variant:"inverse",...c})]}),f&&e(Ue,{direction:r,gap:h?4:3,width:"full",children:f})]})]}),u&&e(Li,{...u})]})}),{Actions:Fd,Cancel:Dd,Confirm:jd,Content:Hd,Menu:zd,Drawer:Wd,Footer:Ud,Header:Gd,Info:Bd,Title:Vd});const Yd={Home:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M14.1003 1.61316C13.6305 1.21718 13.0358 1 12.4213 1C11.8068 1 11.2122 1.21718 10.7423 1.61316L2.92634 8.20753C2.63623 8.45203 2.40303 8.75695 2.24302 9.10095C2.08302 9.44496 2.00008 9.81976 2 10.1992V20.9736C2 22.0922 2.90781 23 4.02637 23H7.50013C8.03756 23 8.55297 22.7865 8.93299 22.4065C9.31301 22.0265 9.5265 21.5111 9.5265 20.9736V16.3385C9.5265 15.5511 10.1541 14.9119 10.9357 14.8911H13.9069C14.2841 14.901 14.6425 15.0579 14.9058 15.3283C15.169 15.5986 15.3162 15.9611 15.3161 16.3385V20.9736C15.3161 22.0922 16.2239 23 17.3425 23H20.8162C21.3537 23 21.8691 22.7865 22.2491 22.4065C22.6291 22.0265 22.8426 21.5111 22.8426 20.9736V10.198C22.8425 9.81861 22.7596 9.4438 22.5996 9.09979C22.4396 8.75579 22.2064 8.45088 21.9163 8.20638L14.1003 1.61316Z",fill:"currentColor"})]})},Gallery:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33333 13.2222C8.98164 13.2222 9.60339 13.4798 10.0618 13.9382C10.5202 14.3966 10.7778 15.0184 10.7778 15.6667V20.5556C10.7778 21.2039 10.5202 21.8256 10.0618 22.284C9.60339 22.7425 8.98164 23 8.33333 23H3.44444C2.79614 23 2.17438 22.7425 1.71596 22.284C1.25754 21.8256 1 21.2039 1 20.5556V15.6667C1 15.0184 1.25754 14.3966 1.71596 13.9382C2.17438 13.4798 2.79614 13.2222 3.44444 13.2222H8.33333ZM20.5556 13.2222C21.2039 13.2222 21.8256 13.4798 22.284 13.9382C22.7425 14.3966 23 15.0184 23 15.6667V20.5556C23 21.2039 22.7425 21.8256 22.284 22.284C21.8256 22.7425 21.2039 23 20.5556 23H15.6667C15.0184 23 14.3966 22.7425 13.9382 22.284C13.4798 21.8256 13.2222 21.2039 13.2222 20.5556V15.6667C13.2222 15.0184 13.4798 14.3966 13.9382 13.9382C14.3966 13.4798 15.0184 13.2222 15.6667 13.2222H20.5556ZM8.33333 1C8.98164 1 9.60339 1.25754 10.0618 1.71596C10.5202 2.17438 10.7778 2.79614 10.7778 3.44444V8.33333C10.7778 8.98164 10.5202 9.60339 10.0618 10.0618C9.60339 10.5202 8.98164 10.7778 8.33333 10.7778H3.44444C2.79614 10.7778 2.17438 10.5202 1.71596 10.0618C1.25754 9.60339 1 8.98164 1 8.33333V3.44444C1 2.79614 1.25754 2.17438 1.71596 1.71596C2.17438 1.25754 2.79614 1 3.44444 1H8.33333ZM20.5556 1C21.2039 1 21.8256 1.25754 22.284 1.71596C22.7425 2.17438 23 2.79614 23 3.44444V8.33333C23 8.98164 22.7425 9.60339 22.284 10.0618C21.8256 10.5202 21.2039 10.7778 20.5556 10.7778H15.6667C15.0184 10.7778 14.3966 10.5202 13.9382 10.0618C13.4798 9.60339 13.2222 8.98164 13.2222 8.33333V3.44444C13.2222 2.79614 13.4798 2.17438 13.9382 1.71596C14.3966 1.25754 15.0184 1 15.6667 1H20.5556Z",fill:"currentColor"})]})},Activity:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M12 0C5.38338 0 0 5.38338 0 12C0 18.6166 5.38338 24 12 24C18.6166 24 24 18.6166 24 12C24 5.38338 18.6166 0 12 0ZM16.4603 14.9735C16.2818 15.2406 15.9889 15.3846 15.6911 15.3846C15.5151 15.3846 15.3378 15.3342 15.1803 15.2295L11.488 12.768C11.2308 12.5969 11.0769 12.3089 11.0769 12V7.07692C11.0769 6.56738 11.4905 6.15385 12 6.15385C12.5095 6.15385 12.9231 6.56738 12.9231 7.07692V11.5065L16.2043 13.6935C16.6289 13.9766 16.7434 14.5489 16.4603 14.9735Z",fill:"currentColor"})]})},Settings:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4072 1.1672C14.0002 1 13.4832 1 12.4503 1C11.4174 1 10.9015 1 10.4934 1.1672C9.95164 1.38963 9.52036 1.81814 9.29445 2.3585C9.19105 2.6038 9.15145 2.8909 9.13495 3.3078C9.12761 3.60986 9.04335 3.90507 8.89014 4.16549C8.73692 4.42592 8.51982 4.64296 8.25935 4.7961C7.99397 4.94361 7.69565 5.02176 7.39203 5.0233C7.08841 5.02484 6.78931 4.94972 6.52245 4.8049C6.15065 4.6091 5.88115 4.5013 5.61495 4.4661C5.03256 4.38963 4.44353 4.54618 3.97595 4.9017C3.62615 5.1679 3.36765 5.6123 2.85175 6.5C2.33475 7.3877 2.07735 7.831 2.01905 8.2655C1.94205 8.8441 2.10045 9.4293 2.45905 9.8924C2.62185 10.1036 2.85175 10.2807 3.20705 10.5029C3.73175 10.8296 4.06835 11.3862 4.06835 12C4.06835 12.6138 3.73175 13.1704 3.20815 13.496C2.85175 13.7193 2.62185 13.8964 2.45795 14.1076C2.28094 14.3363 2.15101 14.5979 2.07568 14.8771C2.00035 15.1564 1.9811 15.4478 2.01905 15.7345C2.07735 16.1679 2.33475 16.6123 2.85175 17.5C3.36875 18.3877 3.62615 18.831 3.97595 19.0983C4.44235 19.4536 5.03195 19.6098 5.61495 19.5339C5.88115 19.4987 6.15065 19.3909 6.52245 19.1951C6.78945 19.0501 7.08874 18.9749 7.39258 18.9764C7.69641 18.9779 7.99493 19.0562 8.26045 19.2039C8.79505 19.5119 9.11185 20.0784 9.13495 20.6922C9.15145 21.1102 9.19105 21.3962 9.29445 21.6415C9.51885 22.1805 9.95005 22.6095 10.4934 22.8328C10.9004 23 11.4174 23 12.4503 23C13.4832 23 14.0002 23 14.4072 22.8328C14.949 22.6104 15.3803 22.1819 15.6062 21.6415C15.7096 21.3962 15.7492 21.1102 15.7657 20.6922C15.7877 20.0784 16.1056 19.5108 16.6413 19.2039C16.9067 19.0564 17.205 18.9782 17.5087 18.9767C17.8123 18.9752 18.1114 19.0503 18.3782 19.1951C18.75 19.3909 19.0195 19.4987 19.2857 19.5339C19.8687 19.6109 20.4583 19.4536 20.9247 19.0983C21.2745 18.8321 21.533 18.3877 22.0489 17.5C22.5659 16.6123 22.8233 16.169 22.8816 15.7345C22.9194 15.4477 22.9 15.1563 22.8245 14.877C22.749 14.5978 22.6188 14.3363 22.4416 14.1076C22.2788 13.8964 22.0489 13.7193 21.6936 13.4971C21.1689 13.1704 20.8323 12.6138 20.8323 12C20.8323 11.3862 21.1689 10.8296 21.6925 10.504C22.0489 10.2807 22.2788 10.1036 22.4427 9.8924C22.6198 9.66366 22.7497 9.40212 22.825 9.12287C22.9003 8.84363 22.9196 8.55223 22.8816 8.2655C22.8233 7.8321 22.5659 7.3877 22.0489 6.5C21.5319 5.6123 21.2745 5.169 20.9247 4.9017C20.4572 4.54618 19.8681 4.38963 19.2857 4.4661C19.0195 4.5013 18.75 4.6091 18.3782 4.8049C18.1112 4.94991 17.8119 5.02514 17.5081 5.0236C17.2043 5.02206 16.9058 4.94381 16.6402 4.7961C16.38 4.64283 16.1631 4.42572 16.0101 4.16531C15.8571 3.90489 15.773 3.60976 15.7657 3.3078C15.7492 2.8898 15.7096 2.6038 15.6062 2.3585C15.4944 2.09091 15.331 1.84797 15.1253 1.64356C14.9195 1.43916 14.6756 1.27729 14.4072 1.1672ZM12.4503 15.3C14.2873 15.3 15.7756 13.8227 15.7756 12C15.7756 10.1773 14.2862 8.7 12.4503 8.7C10.6133 8.7 9.12505 10.1773 9.12505 12C9.12505 13.8227 10.6144 15.3 12.4503 15.3Z",fill:"currentColor"})]})}};var Zd;!function(e){e.Home="home",e.Gallery="gallery",e.Activity="activity",e.Settings="settings"}(Zd||(Zd={}));const qd=({active:t,children:r,label:n,onPress:a})=>e(Ve,{pointerEvents:t===n?"none":"initial",children:e(xi,{variant:"text",onPress:a,children:e(xi.LeadingIcon,{className:Ee({color:t===n?"text.primary":"text.tertiary",_groupHover:{color:t===n?"text.primary":"text.secondary"}}),children:r})})}),Kd=({active:t=Zd.Home,disabled:r=[],...n})=>e(lt,{bottom:0,pos:"fixed",h:"6.25rem",w:"full",style:{background:`linear-gradient(180deg, transparent 0%, ${ut("colors.surface.primary")} 100%)`},children:e(Je,{bg:"text.primary/6",borderColor:"text.primary/10",borderWidth:"medium",borderStyle:"solid",borderRadius:52,backdropFilter:"blur(24px)",p:1.5,children:Object.keys(Zd).map(a=>{var o;const i=Zd[a],l=null===(o=r.find(e=>e.type===i))||void 0===o?void 0:o.label,d=Yd[a],s=((e,t)=>e[t])(n,`on${a}`);return s?l?e(mi,{content:l,width:"max-content",children:e(Ve,{border:"thin solid transparent",opacity:.3,p:1.5,children:e(d,{})})},i):e(qd,{active:t,label:i,onPress:s,children:e(d,{})},i):null})})}),Xd=({avatarUrl:r,email:n,name:a,logoutLabel:o="Log out",onReceive:i,onLogout:l})=>{const[s,c]=d(!1);v(()=>{c(!1)},[r]);const u=()=>t(fi,{iconSize:28,placement:"bottom right",variant:"text",children:[e(fi.LeadingIcon,{children:r&&!s?e("img",{style:{borderRadius:"50%"},src:r,alt:"user avatar",onError:()=>c(!0)}):t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",children:[e("circle",{cx:"14",cy:"14",r:"13",fill:"url(#paint0_radial_3600_63997)",stroke:"white",strokeOpacity:"0.24",strokeWidth:"0.5"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_3600_63997",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(15 30.75) rotate(-90) scale(37.3333 65.833)",children:[e("stop",{offset:"0.01",stopColor:"#FFF507"}),e("stop",{offset:"0.259381",stopColor:"#F09BEB"}),e("stop",{offset:"0.598165",stopColor:"#412CB9"}),e("stop",{offset:"1",stopColor:"#18171A"})]})})]})}),e(fi.Content,{className:Ee({w:a&&n?"200px":"fit-content",maxW:"200px"}),children:t(Ye,{w:"full",alignItems:"start",gap:0,children:[(n||a)&&t(Ye,{w:"full",gap:1,children:[a&&e(Vo,{fontWeight:"medium",children:a}),n&&e(Vo,{size:"sm",truncate:!0,fontColor:"text.secondary",children:n})]}),(n||a)&&e(st,{color:"surface.quaternary",my:3,minW:"88px"}),e(xi,{label:o,textStyle:"negative",variant:"text",size:"sm",onPress:l})]})})]});return i?t(Je,{gap:1,minWidth:"fit-content",minHeight:"fit-content",children:[e(Ve,{onClick:i,cursor:"pointer",transition:"transform 0.1s",_active:{transform:"scale(0.95)"},className:Ee({"@media (max-width: 370px)":{display:"none"}}),children:e(Sl,{height:18,width:18,color:ut("colors.text.secondary")})}),e(u,{})]}):e(u,{})},Qd=ni(({children:e})=>e),Jd=Object.assign(r=>{const{isPending:n,isSuccess:a,onChange:o,onComplete:i,originName:l,pinLength:d,id:s,autoFocus:c,errorMessage:u,children:v}=r;return ri(v,r=>t(Xe,{gap:3,my:3,children:[e(lt,{height:12,children:n?e(Mo,{size:36,strokeWidth:4}):a?e(ko,{color:ut("colors.brand.base"),width:36,height:36}):e(kd,{originName:l,onChange:o,pinLength:d,onComplete:i,id:s,autoFocus:c})}),u&&e(Vo,{variant:"error",size:"sm",styles:{textAlign:"center"},children:u}),r.get(Qd)]}))},{RetryContent:Qd});var es=typeof window>"u"?n.useEffect:n.useLayoutEffect,ts=["$$typeof","render","displayName","defaultProps"],rs="slots-wrapper",ns=new RegExp(`^<${rs}>.*</${rs}>$`),as=({name:e,forceUpdate:t,children:r})=>{let a=n.useRef(null),o=n.useRef(!1);return es(()=>{var r;if(!o.current&&(null==(r=a.current)?void 0:r.innerHTML)){let t=a.current.innerHTML;t&&!ns.test(t)&&console.warn(`Unwrapped children found in "${e}", either wrap them in slots or remove`)}o.current=!0,t()},[e]),o.current?n.createElement(n.Fragment,null,r):n.createElement(rs,{ref:a},r)},os=n.createContext({rescan:()=>{}}),is=({children:e})=>{let[t,r]=n.useReducer(()=>[],[]),a=n.useMemo(()=>({rescan:r}),[t]);return n.createElement(os.Provider,{value:a},e)},ls=(e=>{let t=n.createContext(e);return t.displayName="SlotsContext",t})(void 0),ds=({children:e})=>e(),ss=e=>{let t=0;return()=>`${e}_${t++}`},cs=ss("s"),us=({children:e,callback:t})=>{let r=n.useReducer(()=>[],[])[1],a=n.useMemo(()=>(e=>{let t=new Map;return{register(e,r){t.set(e,r)},update(r,n){t.set(r,n),null==e||e(r)},unmount(r){t.delete(r),null==e||e(r)},clear(){t.clear()},has:e=>t.has(e),get:()=>Array.from(t.values())}})(r),[r]);return n.createElement(n.Fragment,null,n.createElement(ls.Provider,{value:a},n.createElement(is,null,"production"===process.env.NODE_ENV?e:n.createElement(as,{name:"HostSlots",forceUpdate:r},e))),n.createElement(ds,null,()=>t(a.get())))},vs=(e,t)=>n.createElement(us,{children:e,callback:t});const fs=(e=>{let t=ss(cs()),r=n.forwardRef(({$slot_key$:e,...t},r)=>{let a=n.useContext(ls);if(!a)return null;let i=n.useContext(os),l=n.createElement(o,{key:e,ref:r,...t});return a.register(e,l),n.useEffect(()=>{a.has(e)&&a.update(e,l)}),es(()=>(a.clear(),i.rescan(),()=>a.unmount(e)),[a]),null}),a=(a,o)=>{if(!n.useContext(ls))return e?n.createElement(e,{ref:o,...a}):null;let[i]=n.useState(t);return n.createElement(r,{ref:o,$slot_key$:i,...a})};a.displayName=e?`Slot(${(e=>"string"==typeof e?e:e.displayName||e.name||"Component")(e)})`:"Slot";let o=n.forwardRef(a);return e?((e,t)=>{if("string"==typeof t)return e;let r=Object.getOwnPropertyNames(t).reduce((e,r)=>(ts.includes(r)||(e[r]=t[r]),e),{});return Object.assign(e,r)})(o,e):o})(({actionBox:r,children:n,disabledLabel:a,label:o,onPress:i})=>r?e(lt,{h:"76px",maxW:"115px",w:"full",opacity:a?.3:1,pointerEvents:a?"none":"initial",children:e($o,{className:Ee({_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary",h:"100%"}),borderRadius:"0.75rem",expand:!0,onPress:i,children:t(Xe,{gap:2,children:[h(g.only(n),{height:20,width:20}),e(Vo,{size:"sm",styles:{fontWeight:500},children:o})]})})}):t(Xe,{gap:1,minW:20,opacity:a?.3:1,pointerEvents:a?"none":"initial",children:[e(xi,{variant:"neutral",size:"sm",onPress:i,"aria-label":"Buy",children:e(xi.LeadingIcon,{children:n})}),e(Vo,{size:"sm",styles:{fontWeight:500},children:o})]})),ps=({actionBox:t,children:r})=>e(Ve,{w:"full",children:vs(r,r=>e(Je,{w:"full",justifyContent:"space-around",px:10,children:r.map(r=>{if(((e,t)=>e.type===t)(r,fs)){const{key:n,disabledLabel:a,...o}=(e=>{if(!e)return;let{key:t,ref:r,props:n}=e;return{...n,key:t,ref:r}})(r);return a?e(mi,{content:a,width:"max-content",children:e(Ve,{children:e(fs,{actionBox:t,disabledLabel:a,...o})})},n):e(fs,{actionBox:t,...o},n)}})}))});ps.Action=fs;const gs=({actionBox:r,buyLabel:n="Buy",buyDisabledLabel:a,sendLabel:o="Send",sendDisabledLabel:i,swapLabel:l="Swap",swapDisabledLabel:d,onBuy:s,onSend:c,onSwap:u})=>t(ps,{actionBox:r,children:[s&&e(ps.Action,{disabledLabel:a,label:n,onPress:s,children:e(ul,{})}),u&&e(ps.Action,{disabledLabel:d,label:l,onPress:u,children:e(Il,{})}),c&&e(ps.Action,{disabledLabel:i,label:o,onPress:c,children:e(kl,{})})]}),hs=({address:r,onAddressCopy:n})=>t(Je,{gap:0,style:{filter:`drop-shadow(0px 0px 0.5px color-mix(in srgb, ${ut("colors.text.primary")}, transparent 20%)`},children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:e("path",{d:"M0 0L48 0V48H47.4146C37.829 48 29.1682 42.28 25.4052 33.4639L16.4163 12.405C13.533 5.65001 7.28559 0.929159 0 0Z",fill:ut("colors.surface.primary")})}),e(lt,{bgColor:"surface.primary",w:"114px",h:"48px",children:e(_l,{address:r,onCopy:n,size:"sm",icon:!0,fontColor:"text.secondary",fontWeight:"medium"})}),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:e("path",{d:"M48 0L0 0V48H0.299999C9.94709 48 18.6672 42.2544 22.4737 33.39L31.4615 12.4594C34.3773 5.66924 40.669 0.929361 48 0Z",fill:ut("colors.surface.primary")})})]}),ms=({connected:n,connectedLabel:a="Connected",disconnectLabel:o,disconnectedLabel:i="Not connected",domain:l,logoUrl:s,onDisconnect:c,onReceive:u})=>{const[f,p]=d(!1);v(()=>{p(!1)},[s]);const g=()=>t(fi,{iconSize:28,variant:"text",children:[e(fi.LeadingIcon,{color:ut("colors.text.tertiary"),children:s&&n&&!f?t(ot,{position:"relative",w:7,h:7,children:[e("img",{style:{borderRadius:"50%"},width:28,height:28,src:s,alt:"app logo",onError:()=>p(!0)}),e(ot,{size:"7px",position:"absolute",bg:"positive.base",borderWidth:"thin",borderColor:"surface.primary",bottom:"-1px",right:"-1px",boxSizing:"border-box"})]}):t("svg",{width:"28",height:"28",children:[e("circle",{cx:"14",cy:"14",r:"14",fill:ut("colors.surface.tertiary")}),e($l,{color:ut("colors.text.tertiary"),x:6,y:6,height:16,width:16})]})}),t(fi.Content,{className:Ee({w:"200px"}),children:[t(Ye,{w:"100%",gap:1,overflow:"hidden",children:[e(Vo,n?{size:"xs",variant:"success",fontWeight:"normal",children:a}:{fontColor:"text.tertiary",size:"xs",children:i}),e(Vo,{truncate:!0,children:l})]}),n&&o&&t(r,{children:[e(st,{color:"surface.quaternary",my:3}),e(xi,{label:o,size:"sm",textStyle:"negative",variant:"text",onPress:c,children:e(xi.LeadingIcon,{children:t("svg",{width:"20",height:"20",children:[e("circle",{cx:"8",cy:"8",r:"8",fill:ut("colors.negative.lightest")}),e(Ml,{color:ut("colors.negative.base"),x:3,y:3,height:10,width:10})]})})})]})]})]});return u?t(Je,{gap:1,minWidth:"fit-content",minHeight:"fit-content",children:[e(g,{}),e(Ve,{className:Ee({"@media (max-width: 370px)":{display:"none"}}),minH:"18px",minW:"18px"})]}):e(g,{})},bs=({fiatTotal:r,symbol:n})=>{const a=r?r.split("."):["0","00"],o=r?"text.primary":"text.tertiary";return t(Je,{alignItems:"flex-start",gap:1,my:3,children:[e(Vo.H4,{fontColor:o,styles:{lineHeight:"2.75rem"},children:n}),t(Je,{alignItems:"baseline",gap:0,children:[e(Vo.H1,{fontColor:o,children:a[0]}),e(Vo.H4,{fontColor:o,children:`.${a[1]||"00"}`})]})]})},ys=ni(Xd),Cs=ni(gs),$s=ni(hs),ws=ni(ms),xs=ni(({children:t})=>e(Xe,{w:"full",justify:"center",children:t})),Es=ni(bs),ks=ni(Kd);Object.assign(({children:r,...n})=>ri(r,r=>{const a=r.getProps(ys),o=r.getProps(Cs),i=r.getProps($s),l=r.getProps(ws),d=r.getProps(Es),s=r.getProps(ks),c=`radial-gradient(circle at top, color-mix(in srgb, ${ut("colors.text.primary")}, transparent 88%) 0%, transparent 25%)`,u=l||i||a;return t(nl,{...n,fullscreen:!0,paddingType:"none",gap:0,children:[t(Xe,{h:"full",w:"full",style:u?{background:c}:{},children:[u&&t(Je,{justify:"space-between",px:4,w:"full",children:[l?e(ms,{...l}):e(Ve,{h:10,w:10,m:1}),i&&e(hs,{...i}),a?e(Xd,{...a}):e(Ve,{h:10,w:10,m:1})]}),d&&e(bs,{...d}),o&&e(gs,{...o}),r.get(xs)]}),s&&e(Kd,{...s})]})}),{AccountMenu:ys,Actions:Cs,Address:$s,ConnectionMenu:ws,Content:xs,Fiat:Es,Navigation:ks});const Ls=ni(({children:t,...r})=>e(lt,{children:g.map(t,e=>h(e,r))})),Ss=ni(({children:t,...r})=>e(lt,{children:g.map(t,e=>h(e,r))})),Is=o(({className:r,...n},a)=>{const{primaryLabel:o,secondaryLabel:i,isExternalLink:l}=n;return ri(n.children,d=>{const s=d.get(Ls),c=d.get(Ss);return e($o,{ref:a,className:Le(Ee({p:4,bg:"neutral.quaternary",_hover:{bg:"neutral.secondary"}}),r),borderRadius:"0.5rem",expand:!0,...n,children:t(Je,{justify:"space-between",w:"full",children:[t(Je,{children:[s&&{...s,props:{height:24,...s.props,className:s.props.color?void 0:Ee({color:"brand.base"})}},t(Xe,{gap:0,alignItems:"start",children:[t(Je,{children:["string"==typeof o?e(Vo,{fontWeight:"medium",children:o}):o,l&&e(Cl,{width:14,height:14,color:ut("colors.neutral.primary")})]}),i&&e(Vo,{size:"sm",fontColor:"text.tertiary",children:i})]})]}),e(Je,{children:c&&{...c,props:{...c.props,className:c.props.color?void 0:Ee({color:"neutral.primary"}),width:16,height:16}}})]})})})});Is.displayName="NavigationButton",Object.assign(Is,{LeadingIcon:Ls,TrailingIcon:Ss});const Ms=({title:r,titleId:n,...a})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0047 25.3341C21.1593 25.3341 25.338 21.1554 25.338 16.0008C25.338 10.8461 21.1593 6.66745 16.0047 6.66745C10.85 6.66745 6.67135 10.8461 6.67135 16.0008C6.67135 21.1554 10.85 25.3341 16.0047 25.3341ZM14.6917 12.8109C15.1258 12.0172 15.3429 11.6204 15.6317 11.4922C15.8727 11.3854 16.1476 11.3854 16.3885 11.4922C16.6774 11.6204 16.8944 12.0172 17.3285 12.8109L17.7788 13.6343C17.8582 13.7794 17.8979 13.852 17.9486 13.9155C17.9918 13.9695 18.0409 14.0186 18.095 14.0618C18.1585 14.1126 18.2311 14.1523 18.3762 14.2316L19.1996 14.682C19.9933 15.1161 20.3901 15.3331 20.5182 15.622C20.6251 15.8629 20.6251 16.1378 20.5182 16.3787C20.3901 16.6676 19.9933 16.8846 19.1996 17.3187L18.3762 17.7691C18.2311 17.8484 18.1585 17.8881 18.095 17.9389C18.0409 17.9821 17.9918 18.0312 17.9486 18.0852C17.8979 18.1488 17.8582 18.2213 17.7788 18.3664L17.3285 19.1898C16.8944 19.9835 16.6774 20.3804 16.3885 20.5085C16.1476 20.6153 15.8727 20.6153 15.6317 20.5085C15.3429 20.3804 15.1258 19.9835 14.6917 19.1898L14.2414 18.3664C14.1621 18.2213 14.1224 18.1488 14.0716 18.0852C14.0284 18.0312 13.9793 17.9821 13.9252 17.9389C13.8617 17.8881 13.7892 17.8484 13.6441 17.7691L12.8207 17.3187C12.027 16.8846 11.6301 16.6676 11.502 16.3787C11.3952 16.1378 11.3952 15.8629 11.502 15.622C11.6301 15.3331 12.027 15.1161 12.8207 14.682L13.6441 14.2316C13.7891 14.1523 13.8617 14.1126 13.9252 14.0618C13.9793 14.0186 14.0284 13.9695 14.0716 13.9155C14.1224 13.852 14.1621 13.7794 14.2414 13.6343L14.6917 12.8109Z",fill:"url(#paint0_linear_10465_20426)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30ZM16.0047 27.2008C22.1903 27.2008 27.2047 22.1864 27.2047 16.0008C27.2047 9.81519 22.1903 4.80078 16.0047 4.80078C9.8191 4.80078 4.80469 9.81519 4.80469 16.0008C4.80469 22.1864 9.8191 27.2008 16.0047 27.2008Z",fill:"url(#paint1_linear_10465_20426)"}),t("defs",{children:[t("linearGradient",{id:"paint0_linear_10465_20426",x1:4.8,y1:1.06667,x2:32.4967,y2:31.1537,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#6851FF"}),e("stop",{offset:1,stopColor:"#CE99FF"})]}),t("linearGradient",{id:"paint1_linear_10465_20426",x1:4.8,y1:1.06667,x2:32.4967,y2:31.1537,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#6851FF"}),e("stop",{offset:1,stopColor:"#CE99FF"})]})]})]}),Ps=ni(({children:t,...r})=>e(lt,{children:g.map(t,e=>h(e,r))})),Ts=({name:n,fiatBalanceWithSymbol:a,tokenBalanceWithSymbol:o,tokenIcon:i,logoUrl:l,tokenBalanceFirst:d,disabled:s=!1,isLoading:c=!1})=>{const u=d||!a;return t(Je,{w:"full",justify:"space-between",opacity:s?"0.5":"1",children:[t(Je,{gap:4,children:[i?{...i,props:{...i.props,width:40,height:40}}:l?e("img",{width:40,height:40,src:l,alt:`${n} logo`}):e(Ms,{width:40,height:40}),e(Vo,{fontWeight:"medium",styles:{textTransform:"capitalize",textAlign:"left"},children:n})]}),e(Xe,{gap:0,alignItems:"flex-end",children:t(r,c?{children:[e(cl,{height:"1rem",width:"6rem"}),o&&a&&e("div",{style:{marginTop:"4px"},children:e(cl,{height:"1rem",width:"4rem"})})]}:{children:[e(Vo,{size:"sm",styles:{lineHeight:"1.5rem",textAlign:"right"},children:u?o:a}),e(Vo,{size:"sm",fontColor:"text.secondary",styles:{lineHeight:"1.5rem",textAlign:"right"},children:u?a:o})]})})]})};Object.assign(t=>{const{name:r,fiatBalanceWithSymbol:n,tokenBalanceWithSymbol:a,logoUrl:o,onPress:i,tokenBalanceFirst:l,disabled:d,isLoading:u}=t,v=s(null),f=c(()=>{i?.()},[i]);return ri(t.children,t=>{const s=t.get(Ps);return i?e($o,{ref:v,className:Ee({_dark:{bg:"surface.tertiary"},_hover:{bg:"neutral.secondary"},bg:"neutral.quaternary",px:4,py:2,minH:16}),borderRadius:"0.5rem",expand:!0,onPress:d?void 0:f,disabled:d,children:e(Ts,{name:r,fiatBalanceWithSymbol:n,tokenBalanceWithSymbol:a,tokenIcon:s,logoUrl:o,tokenBalanceFirst:l,disabled:d,isLoading:u})}):e(Ts,{name:r,fiatBalanceWithSymbol:n,tokenBalanceWithSymbol:a,tokenIcon:s,logoUrl:o,tokenBalanceFirst:l,disabled:d,isLoading:u})})},{TokenIcon:Ps});const _s={send:{title:"Send",primaryTextColor:ut("colors.text.primary"),secondaryTextColor:ut("colors.text.secondary"),icon:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2408 10.6508C17.6002 11.0701 18.2315 11.1187 18.6508 10.7593C19.0701 10.3998 19.1187 9.76853 18.7593 9.34921L12.7593 2.34921C12.5693 2.12756 12.2919 2 12 2C11.7081 2 11.4307 2.12756 11.2408 2.34921L5.24076 9.34921C4.88133 9.76853 4.9299 10.3998 5.34922 10.7593C5.76855 11.1187 6.39985 11.0701 6.75927 10.6508L11 5.70324L11 21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21L13 5.70328L17.2408 10.6508Z",fill:"currentColor"})]})},iconColor:ut("colors.negative.darker"),skeletonWidth:"89px"},receive:{title:"Receive",primaryTextColor:ut("colors.positive.base"),secondaryTextColor:`${ut("colors.positive.lighter")}`,icon:ul,iconColor:ut("colors.positive.base"),skeletonWidth:"89px"},networkFee:{title:"Network Fee",primaryTextColor:ut("colors.text.primary"),secondaryTextColor:ut("colors.text.secondary"),icon:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8393 1.18633C16.0191 1.62165 16.0904 2.13337 16.0904 2.67308V9.59219H18.4874C19.3815 9.59219 20.4183 9.86546 20.8417 10.8036C21.2652 11.7417 20.7838 12.6983 20.1937 13.3654L20.1926 13.3668L11.8726 22.8234C11.5162 23.2281 11.1246 23.5652 10.7026 23.7735C10.2763 23.9838 9.741 24.0959 9.20231 23.8936C8.66315 23.6911 8.3341 23.2538 8.15233 22.8137C7.97254 22.3783 7.90123 21.8666 7.90123 21.3269V14.4078H5.50425C4.61648 14.4078 3.58277 14.1378 3.15874 13.2018C2.73585 12.2683 3.21019 11.312 3.79247 10.6408L3.79704 10.6355L12.119 1.17665C12.4754 0.771879 12.8671 0.434796 13.2891 0.226544C13.7154 0.0161889 14.2507 -0.0959383 14.7893 0.106398C15.3285 0.308914 15.6576 0.746213 15.8393 1.18633Z",fill:"currentColor"})]})},iconColor:ut("colors.brand.base"),skeletonWidth:"54px"},spendingCap:{title:"Spending Cap",primaryTextColor:ut("colors.warning.base"),secondaryTextColor:ut("colors.warning.base"),icon:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M13 1C15.7614 1 18 3.23858 18 6C18 6.55228 17.5523 7 17 7C16.4477 7 16 6.55228 16 6C16 4.34315 14.6569 3 13 3H12C9.79086 3 8 4.79086 8 7V9H18C20.7614 9 23 11.2386 23 14V18C23 20.7614 20.7614 23 18 23H6C3.23858 23 1 20.7614 1 18V14C1 11.2386 3.23858 9 6 9V7C6 3.68629 8.68629 1 12 1H13Z",fill:"currentColor"})]})},iconColor:ut("colors.warning.base"),skeletonWidth:"89px"}},Ns=ni(({children:t,...r})=>e(lt,{children:g.map(t,e=>h(e,r))}));Object.assign(r=>{const{variant:n,primaryText:a,secondaryText:o,children:i,onPress:l,loading:d,showTitle:u=!0}=r,{title:v,primaryTextColor:f,secondaryTextColor:p,icon:g,iconColor:h,skeletonWidth:m}=_s[n],b="send"===n||"networkFee"===n,y=s(null),C=c(()=>{l?.()},[l]);return ri(i,n=>{const i=n.get(Ns);return t(Je,{w:"full",justify:"space-between",children:[t(Je,{gap:2,children:[e(g,{width:16,height:16,color:h}),u&&e(Vo,{size:"sm",fontWeight:"medium",children:v})]}),t(Je,{gap:4,children:[o&&e(Vo,{styles:{color:p},children:o}),b?e($o,{ref:y,className:Ee({px:4,py:2.5,bg:"surface.secondary"}),borderRadius:"0.75rem",onPress:C,...r,children:t(Je,{gap:3,children:[d?e(cl,{width:m}):e(Vo,{styles:{color:f},children:a}),i&&{...i,props:{...i.props,width:32,height:32}}]})}):t(Je,{gap:3,children:[d?e(cl,{width:m}):e(Vo,{styles:{color:f},children:a}),i&&{...i,props:{...i.props,width:32,height:32}}]})]})]})})},{TokenIcon:Ns});const Os=ni(({backgroundColor:t,children:r})=>e(lt,{borderRadius:60,height:11,width:11,backgroundColor:t,overflow:"hidden",children:h(g.only(r),{height:24,width:24})})),As=ni(({backgroundColor:r,children:n})=>t(Ve,{height:10,width:10,position:"relative",children:[e(Ue,{alignItems:"center",justifyContent:"center",position:"absolute",backgroundColor:r,height:7,width:7,borderRadius:30,children:h(n[0],{height:20,width:20})}),e(Ue,{alignItems:"center",justifyContent:"center",position:"absolute",backgroundColor:r,borderRadius:30,height:7,width:7,bottom:0,right:0,children:h(n[1],{height:20,width:20})})]})),Rs=ni(({backgroundColor:t,children:r})=>e(Ue,{backgroundColor:t,borderRadius:30,alignItems:"center",justifyContent:"center",borderWidth:"2",borderColor:"neutral.tertiary",width:"5",height:"5",children:h(g.only(r),{height:10,width:10})}));Object.assign(({title:r,subtitle:n,primaryValue:a,primaryValueColor:o,secondaryValue:i,children:l,onPress:d,...s})=>ri(l,l=>{const c=l.get(As),u=l.get(Os),v=l.get(Rs);return e($o,{borderRadius:"0.375rem",expand:!0,onPress:d,children:t(Je,{p:3,gap:2,w:"full",pos:"relative",className:Le(Ee({_active:{transform:"scale(0.95)"},_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary"})),borderRadius:"md",justify:"space-between",alignItems:"center",...s,children:[t(Je,{children:[c&&c,u&&u,v&&e(Ve,{position:"absolute",left:9,top:11,children:v}),t(Ve,{children:[e(Vo,{truncate:!0,size:"md",fontWeight:"bold",children:r})," ",n&&e(Vo,{truncate:!0,size:"sm",fontColor:"text.secondary",children:n})]})]}),t(Ve,{children:[e(Vo,{truncate:!0,size:"md",styles:{textAlign:"end",color:o},...s,children:a}),i&&e(Vo,{truncate:!0,size:"sm",styles:{textAlign:"end"},fontColor:"text.secondary",children:i})]})]})})}),{DoubleIcon:As,PrimaryIcon:Os,SecondaryIcon:Rs});function Fs({value:t,ecLevel:r="H",qrStyle:n="dots",eyeRadius:a=0,eyeColor:o=ut("colors.ink.90"),size:i=160,logoImage:l,logoHeight:d=32,logoWidth:s=32,logoOpacity:c=1,logoPadding:u=0,logoPaddingStyle:v="square",logoOnLoad:f,removeQrCodeBehindLogo:p=!1,enableCORS:g=!1,quietZone:h=5,bgColor:m=ut("colors.chalk"),fgColor:b=ut("colors.ink.90"),style:y,id:C="qr-code"}){return e(Ue,{alignItems:"center",justifyContent:"center",className:Ee({shadow:"0.125rem 0.125rem 1.5rem {colors.ink.70/15}",overflow:"hidden",padding:1,borderRadius:"1rem"}),children:e(Di,{value:t,ecLevel:r,qrStyle:n,eyeRadius:a,eyeColor:o,size:i,logoImage:l,logoHeight:d,logoWidth:s,logoOpacity:c,logoPadding:u,logoPaddingStyle:v,logoOnLoad:f,removeQrCodeBehindLogo:p,enableCORS:g,quietZone:h,bgColor:m,fgColor:b,style:y,id:C,"data-testid":C})})}const Ds={brand:{base:{base:0,lightest:102,lighter:51,darker:-51,darkest:-102},dark:{base:0,lightest:"25%",lighter:"66%",darker:102,darkest:102}},neutral:{base:{primary:0,secondary:51,tertiary:102,quaternary:153},dark:{primary:"16%",secondary:"12%",tertiary:"8%",quaternary:"5%"}},surface:{base:{primary:0,secondary:-51,tertiary:-102},dark:{primary:0,secondary:21,tertiary:42}},text:{base:{primary:0,secondary:51,tertiary:102},dark:{primary:0,secondary:"72%",tertiary:"44%"}}},js=(e,t)=>{e=e.replace(/[^0-9a-f]/gi,"").slice(0,6);const r=t?Math.round(.01*parseFloat(t)*255).toString(16):void 0;return e.length<3?e:(e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),r?e+r:e)},Bs=(e,t)=>{e=js(e);const r=parseInt(e,16),n=Math.min(Math.max(0,(r>>16)+t),255);return"#"+("00000"+(Math.min(Math.max(0,(255&r)+t),255)|Math.min(Math.max(0,(r>>8&255)+t),255)<<8|n<<16).toString(16)).slice(-6)};var Vs=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.ConnectionLost="CONNECTION_WAS_LOST",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(Vs||{}),Hs=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(Hs||{}),zs=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.UserRejectedAction=-10012]="UserRejectedAction",e[e.RequestCancelled=-10014]="RequestCancelled",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e[e.SessionTerminated=-10016]="SessionTerminated",e[e.PopupRequestOverriden=-10017]="PopupRequestOverriden",e[e.SanEmail=-10018]="SanEmail",e[e.DpopInvalidated=-10019]="DpopInvalidated",e[e.MaxAttemptsReached=-10031]="MaxAttemptsReached",e[e.UserRequiredMfa=-10033]="UserRequiredMfa",e))(zs||{}),Ws=(e=>(e.PROVIDER="magic_3pw_provider",e.ADDRESS="magic_3pw_address",e.CHAIN_ID="magic_3pw_chainId",e))(Ws||{}),Us=(e=>(e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e.Web3ModalSelected="web3modal_selected",e))(Us||{}),Gs=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e.GetMultichainPublicAddress="magic_get_multichain_public_address",e.Sign7702Authorization="magic_wallet_sign_7702_authorization",e.Send7702Transaction="eth_send7702Transaction",e))(Gs||{}),Ys=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e.MAGIC_PONG="MAGIC_PONG",e.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",e.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",e.MAGIC_THIRD_PARTY_WALLET_REQUEST="MAGIC_THIRD_PARTY_WALLET_REQUEST",e.MAGIC_OPEN_MOBILE_URL="MAGIC_OPEN_MOBILE_URL",e))(Ys||{}),Zs=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e.MAGIC_THIRD_PARTY_WALLET_RESPONSE="MAGIC_THIRD_PARTY_WALLET_RESPONSE",e.MAGIC_THIRD_PARTY_WALLET_UPDATE="MAGIC_THIRD_PARTY_WALLET_EVENT",e.MAGIC_PING="MAGIC_PING",e))(Zs||{}),qs=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(qs||{}),Ks=(e=>(e.Retry="retry",e))(Ks||{}),Xs=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(Xs||{}),Qs=(e=>(e.VerifyEmailOtp="verify-email-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e))(Qs||{}),Js=(e=>(e.VerifySmsOtp="verify-sms-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e.Retry="retry",e))(Js||{}),ec=(e=>(e.SmsOTPSent="sms-otp-sent",e.InvalidSmsOtp="invalid-sms-otp",e.ExpiredSmsOtp="expired-sms-otp",e.MfaSentHandle="mfa-sent-handle",e.InvalidMfaOtp="invalid-mfa-otp",e.LoginThrottled="login-throttled",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e))(ec||{}),tc=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.InvalidMfaOtp="invalid-mfa-otp",e.ExpiredEmailOtp="expired-email-otp",e.MfaSentHandle="mfa-sent-handle",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e.LoginThrottled="login-throttled",e.MaxAttemptsReached="max-attempts-reached",e))(tc||{}),rc=(e=>(e.Retry="device-retry",e))(rc||{}),nc=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(nc||{}),ac=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e.VerifyMFACode="Recency/verify-mfa-code",e))(ac||{}),oc=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(oc||{}),ic=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(ic||{}),lc=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(lc||{}),dc=(e=>(e.IDTokenCreated="Auth/id-token-created",e))(dc||{}),sc=(e=>(e.Cancel="Farcaster/cancel",e))(sc||{}),cc=(e=>(e.MFASecretGenerated="mfa-secret-generated",e.InvalidMFAOtp="invalid-mfa-otp",e.MFARecoveryCodes="mfa-recovery-codes",e))(cc||{}),uc=(e=>(e.VerifyMFACode="verify-mfa-code",e.Cancel="cancel-mfa-setup",e))(uc||{}),vc=(e=>(e.MFACodeRequested="mfa-code-requested",e.InvalidMFAOtp="invalid-mfa-otp",e.InvalidRecoveryCode="invalid-recovery-code",e))(vc||{}),fc=(e=>(e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.Cancel="cancel-mfa-disable",e))(fc||{}),pc=(e=>(e.Harmony="HARMONY",e))(pc||{}),gc=(e=>(e.ClosedByUser="closed-by-user",e))(gc||{}),hc=(e=>(e.ClosedByUser="closed-by-user-on-received",e))(hc||{}),mc=(e=>(e.EnterNewPhoneNumber="enter-new-phone-number",e.EnterOtpCode="enter-otp-code",e.RecoveryFactorAlreadyExists="recovery-factor-already-exists",e.MalformedPhoneNumber="malformed-phone-number",e.InvalidOtpCode="invalid-otp-code",e.RecoveryFactorUpdated="recovery-factor-updated",e.RecoveryFactorDeleted="recovery-factor-deleted",e))(mc||{}),bc=(e=>(e.SendNewPhoneNumber="send-new-phone-number",e.SendOtpCode="send-otp-code",e.Cancel="cancel",e.StartEditPhoneNumber="start-edit-phone-number",e))(bc||{}),yc=(e=>(e.PhoneNumber="phone_number",e))(yc||{}),Cc=(e=>(e.SmsOtpSent="sms-otp-sent",e.LoginThrottled="login-throttled",e.InvalidSmsOtp="invalid-sms-otp",e.SmsVerified="sms-verified",e.AccountRecovered="account-recovered",e.UpdateEmailRequired="update-email-required",e))(Cc||{}),$c=(e=>(e.Cancel="cancel",e.VerifyOtp="verify-otp-code",e.ResendSms="resend-sms-otp",e.UpdateEmail="update-email",e))($c||{}),wc=(e=>(e.Success="nft-checkout-success",e.Failure="nft-checkout-failure",e.Initiated="nft-checkout-initiated",e.Disconnect="disconnect",e))(wc||{}),xc=(e=>(e.WalletInfoFetched="Wallet/wallet-info-fetched",e))(xc||{}),Ec=(e=>(e.CloseMagicWindow="close-magic-window",e))(Ec||{}),kc=(e=>(e.Cancel="cancel",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e))(kc||{}),Lc=(e=>(e.MfaSentHandle="mfa-sent-handle",e.InvalidMfaOtp="invalid-mfa-otp",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e))(Lc||{}),Sc=(e=>(e.PopupUrl="popup-url",e))(Sc||{}),Ic=(e=>(e.PopupEvent="popup-event",e))(Ic||{}),Mc=(e=>(e.Cancel="cancel",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e))(Mc||{}),Pc=(e=>(e.MfaSentHandle="mfa-sent-handle",e.InvalidMfaOtp="invalid-mfa-otp",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e))(Pc||{});const Tc=[j,B];var _c;!function(e){e.GenerateNonce="magic_siwe_generate_nonce",e.Login="magic_auth_login_with_siwe"}(_c||(_c={}));const Nc="magic-widget";var Oc,Ac,Rc;!function(e){e.Popup="magic_oauth_login_with_popup"}(Oc||(Oc={})),function(e){e.GetConfig="magic_client_get_config"}(Ac||(Ac={})),function(e){e.FarcasterShowQR="farcaster_show_QR"}(Rc||(Rc={}));let Fc=null;function Dc(){if(!Fc)throw new Error("WalletKitExtension has not been initialized. Make sure to create a Magic instance with WalletKitExtension before rendering MagicWidget.");return Fc}class jc extends P.Internal{name="walletKit";config={};projectId;wagmiConfig;wagmiAdapter;clientConfig=null;configPromise=null;eventsListenerAdded=!1;reconnectPromise=null;isReauthInProgress=!1;onAccountChangedCallback;onAccountChangedErrorCallback;constructor(e){super();const{projectId:t,wagmiAdapter:r,wagmiConfig:n}=function(e){const t=e??"ce9c27dd61e602ccdc9c536b6d624c63",r=new D({projectId:t,networks:Tc});return{projectId:t,wagmiAdapter:r,wagmiConfig:r.wagmiConfig}}(e?.projectId);this.projectId=t,this.wagmiAdapter=r,this.wagmiConfig=n}init(e){super.init(e),Fc=this;localStorage.getItem(Ws.PROVIDER)===Nc&&(this.sdk.thirdPartyWallets.isConnected=!0,this.restoreWalletConnection())}async restoreWalletConnection(){if(this.reconnectPromise)return this.reconnectPromise;if(N(this.wagmiConfig).isConnected)return void this.setupEip1193EventListeners();return localStorage.getItem(Ws.PROVIDER)===Nc?(this.reconnectPromise=(async()=>{try{await O(this.wagmiConfig);N(this.wagmiConfig).isConnected&&this.setupEip1193EventListeners()}catch(e){console.error("Failed to reconnect wagmi wallet:",e)}})(),this.reconnectPromise):void 0}setConnectedState(e,t=1){localStorage.setItem(Ws.PROVIDER,Nc),localStorage.setItem(Ws.ADDRESS,e),localStorage.setItem(Ws.CHAIN_ID,t.toString()),this.sdk.thirdPartyWallets.isConnected=!0,this.setupEip1193EventListeners()}clearConnectedState(){this._cleanupWatcher&&this._cleanupWatcher(),this.sdk.thirdPartyWallets.resetThirdPartyWalletState()}async getWalletProvider(){try{await this.restoreWalletConnection();const e=N(this.wagmiConfig);if(!e.isConnected||!e.connector)return null;return await A(this.wagmiConfig)}catch(e){return console.error("Failed to get wallet provider:",e),null}}async walletRequest(e){const t=await this.getWalletProvider();if(!t)throw new T({code:zs.InternalError,message:"No wallet connected. Please connect a wallet first."});return t.request({method:e.method,params:e.params})}setupEip1193EventListeners(){if(this.eventsListenerAdded)return;this.eventsListenerAdded=!0;const e=R(this.wagmiConfig,{onChange:t=>{const r=localStorage.getItem(Ws.ADDRESS),n=localStorage.getItem(Ws.CHAIN_ID);if(!t.isConnected&&r)return this.handleWalletDisconnect(),this.eventsListenerAdded=!1,void e();t.address&&t.address!==r&&(localStorage.setItem(Ws.ADDRESS,t.address),this.sdk.rpcProvider.emit("accountsChanged",[t.address]),this.dispatchWalletUpdate({chain:t.chain,address:t.address,addresses:t.addresses,updatedField:"address"}),this.performSilentReauth(t.address,t.chainId??1)),t.chainId&&t.chainId.toString()!==n&&(localStorage.setItem(Ws.CHAIN_ID,t.chainId.toString()),this.sdk.rpcProvider.emit("chainChanged",t.chainId),this.dispatchWalletUpdate({chain:t.chain,address:t.address,addresses:t.addresses,updatedField:"chain"}))}});this._cleanupWatcher=()=>{e(),this.eventsListenerAdded=!1}}async handleWalletDisconnect(){this.sdk.thirdPartyWallets.resetThirdPartyWalletState(),this.sdk.rpcProvider.emit("accountsChanged",[]);try{const e=this.utils.createJsonRpcRequestPayload(Gs.Logout,[]);await this.request(e)}catch(e){console.error("Failed to invalidate Magic session after wallet disconnect:",e)}}async dispatchWalletUpdate(e){try{this.sdk.overlay.postThirdPartyWalletUpdate(e)}catch(e){console.error("Failed to post third party wallet event:",e)}}setAccountChangedCallbacks(e,t){this.onAccountChangedCallback=e,this.onAccountChangedErrorCallback=t}async performSilentReauth(e,t){if(!this.isReauthInProgress){this.isReauthInProgress=!0;try{const r=await this.generateMessage({address:e,chainId:t}),n=await F(this.wagmiConfig,{message:r});await this.login({message:r,signature:n}),this.onAccountChangedCallback?.({method:"wallet",walletAddress:e})}catch(e){const t=e instanceof Error?e:new Error(String(e),{cause:e});console.error("SIWE re-auth failed for new account:",t),this.onAccountChangedErrorCallback?.(t)}finally{this.isReauthInProgress=!1}}}async generateNonce(e){const t=this.utils.createJsonRpcRequestPayload(_c.GenerateNonce,[e]);return this.request(t)}async generateMessage(e){const t=await this.generateNonce({address:e.address}),r=function(e){const{domain:t,address:r,statement:n,uri:a,version:o,chainId:i,nonce:l,issuedAt:d}=e;return`${t} wants you to sign in with your Ethereum account:\n${r}\n\n${n}\n\nURI: ${a}\nVersion: ${o}\nChain ID: ${i}\nNonce: ${l}\nIssued At: ${d}`}({domain:window.location.host,address:e.address,statement:e.statement||"By signing, you are proving you own this wallet and logging in.",uri:window.location.origin,version:"1",chainId:e.chainId||1,nonce:t,issuedAt:(new Date).toISOString()});return r}async login(e){const t=this.utils.createJsonRpcRequestPayload(_c.Login,[e]);return this.request(t)}loginWithPopup(e){const t=this.utils.createJsonRpcRequestPayload(Oc.Popup,[{provider:e,showUI:!1,returnTo:window.location.href,apiKey:this.sdk.apiKey,platform:"web"}]),r=_(async(e,n)=>{try{const a=this.request(t);a.on(Lc.MfaSentHandle,()=>{r.emit(Lc.MfaSentHandle)}),a.on(Lc.InvalidMfaOtp,()=>{r.emit(Lc.InvalidMfaOtp)}),a.on(Lc.RecoveryCodeSentHandle,()=>{r.emit(Lc.RecoveryCodeSentHandle)}),a.on(Lc.InvalidRecoveryCode,()=>{r.emit(Lc.InvalidRecoveryCode)}),a.on(Lc.RecoveryCodeSuccess,()=>{r.emit(Lc.RecoveryCodeSuccess)});const o=await a,i=o,l=o;l.error?n(this.createError(l.error,l.error_description??"An error occurred.",{errorURI:l.error_uri,provider:l.provider})):e(i)}catch(e){n(e)}});return r&&(r.on(kc.VerifyMFACode,e=>{this.createIntermediaryEvent(kc.VerifyMFACode,t.id)(e)}),r.on(kc.LostDevice,()=>{this.createIntermediaryEvent(kc.LostDevice,t.id)()}),r.on(kc.VerifyRecoveryCode,e=>{this.createIntermediaryEvent(kc.VerifyRecoveryCode,t.id)(e)}),r.on(kc.Cancel,()=>{this.createIntermediaryEvent(kc.Cancel,t.id)()})),r}async fetchConfig(){if(this.clientConfig)return this.clientConfig;if(this.configPromise)return this.configPromise;const e=this.utils.createJsonRpcRequestPayload(Ac.GetConfig,[]);return this.configPromise=this.request(e),this.clientConfig=await this.configPromise,this.clientConfig}getConfig(){return this.clientConfig}loginWithEmailOTP(e){return this.sdk.auth.loginWithEmailOTP({email:e,showUI:!1,deviceCheckUI:!1})}loginWithSMS(e){return this.sdk.auth.loginWithSMS({phoneNumber:e,showUI:!1})}loginWithFarcaster(){const e=this.utils.createJsonRpcRequestPayload(Rc.FarcasterShowQR,[{data:{showUI:!1,domain:window.location.host,siweUri:window.location.origin}}]),t=this.request(e);return t.on(sc.Cancel,()=>{this.createIntermediaryEvent(sc.Cancel,e.id)()}),t}}const Bc=({onClick:e})=>{const t=Dc().getConfig(),r="dark"===t?.theme.themeColor;return a.createElement(Ve,{flex:1},a.createElement($o,{onPress:e,borderRadius:14,className:Ee({w:"full",px:4,py:3,bg:"neutral.quaternary",_hover:{bg:"neutral.tertiary"}})},a.createElement(Ue,{gap:3,w:"full",justifyContent:"flex-start",alignItems:"center"},a.createElement(Ll,{width:24,height:24,...r?{color:ut("colors.ink.70")}:{}}),a.createElement(Vo,{styles:{lineHeight:"1.5rem"}},"Continue with SMS"))))},Vc=[".cu",".ir",".kp",".sy",".gob.ve"];const Hc={METAMASK:"metamask",WALLETCONNECT:"walletconnect",COINBASE:"coinbase",PHANTOM:"phantom",RABBY:"rabby"};var zc,Wc;!function(e){e.MalformedEmail="Invalid params: Please provide a valid email address.",e.SanEmail="We are unable to create an account with that email.",e.InvalidPhoneNumber="Invalid params: Invalid phone number."}(zc||(zc={})),function(e){e.GOOGLE="google",e.APPLE="apple",e.FACEBOOK="facebook",e.GITHUB="github",e.TWITTER="twitter",e.LINKEDIN="linkedin",e.MICROSOFT="microsoft",e.TWITCH="twitch",e.BITBUCKET="bitbucket",e.DISCORD="discord",e.GITLAB="gitlab",e.TELEGRAM="telegram"}(Wc||(Wc={}));const Uc=p(null);function Gc({children:e,wallets:t=[],enableFarcaster:r=!1,onSuccess:n,onError:o,onClose:i,closeOnSuccess:l=!1}){const d=c(e=>{n?.(e),l&&i&&setTimeout(()=>{i()},2e3)},[n,l,i]),s={wallets:t,enableFarcaster:r,handleSuccess:d,handleError:c(e=>{o?.(e)},[o]),handleClose:i?()=>{i()}:void 0};return a.createElement(Uc.Provider,{value:s},e)}function Yc(){const e=u(Uc);if(!e)throw new Error("useWidgetConfig must be used within a WidgetConfigProvider");return e}const Zc=p(null);function qc({children:e,dispatch:t}){const{handleSuccess:r,handleError:n}=Yc(),o=s(null),i=s(null),l=c(e=>{i.current=e,t({type:"OTP_START",identifier:e,loginMethod:"email"});try{const a=Dc().loginWithEmailOTP(e);o.current=a,a.on(tc.EmailOTPSent,()=>{t({type:"OTP_SENT"})}),a.on(tc.InvalidEmailOtp,()=>{t({type:"OTP_INVALID"})}),a.on(tc.ExpiredEmailOtp,()=>{t({type:"OTP_EXPIRED"})}),a.on(tc.LoginThrottled,()=>{t({type:"LOGIN_ERROR",error:"Too many login attempts. Please try again later."})}),a.on(tc.MaxAttemptsReached,()=>{t({type:"OTP_MAX_ATTEMPTS_REACHED"})}),a.on(nc.DeviceNeedsApproval,()=>{t({type:"DEVICE_NEEDS_APPROVAL"})}),a.on(nc.DeviceVerificationEmailSent,()=>{t({type:"DEVICE_VERIFICATION_SENT"})}),a.on(nc.DeviceVerificationLinkExpired,()=>{t({type:"DEVICE_VERIFICATION_EXPIRED"})}),a.on(nc.DeviceApproved,()=>{t({type:"DEVICE_APPROVED"})}),a.on(tc.MfaSentHandle,()=>{t({type:"MFA_REQUIRED"})}),a.on(tc.InvalidMfaOtp,()=>{t({type:"MFA_INVALID"})}),a.on(tc.InvalidRecoveryCode,()=>{t({type:"RECOVERY_CODE_INVALID"})}),a.then(e=>{e&&(t({type:"LOGIN_SUCCESS"}),r({method:"email",didToken:e}))}).catch(e=>{const r=e instanceof Error?e:new Error(e?.message||"Login failed");t({type:"LOGIN_ERROR",error:r.message}),n(r)})}catch(e){const r=e instanceof Error?e:new Error("Failed to start login");t({type:"LOGIN_ERROR",error:r.message}),n(r)}},[t,r,n]),d=c(e=>{o.current&&(t({type:"OTP_VERIFYING"}),o.current.emit(Qs.VerifyEmailOtp,e))},[t]),u=c(e=>{o.current&&(t({type:"MFA_VERIFYING"}),o.current.emit(Qs.VerifyMFACode,e))},[t]),v=c(()=>{o.current&&(t({type:"LOST_DEVICE"}),o.current.emit(Qs.LostDevice))},[t]),f=c(e=>{o.current&&(t({type:"RECOVERY_CODE_VERIFYING"}),o.current.emit(Qs.VerifyRecoveryCode,e))},[t]),p=c(()=>{o.current&&o.current.emit(Qs.Cancel),o.current=null,i.current=null,t({type:"GO_TO_LOGIN"})},[t]),g=c(()=>{o.current&&o.current.emit(rc.Retry)},[]),h=c(()=>{const e=i.current;if(o.current&&o.current.emit(Qs.Cancel),o.current=null,i.current=null,!e)return t({type:"LOGIN_ERROR",error:"Internal error: No email found"});l(e)},[l]),m={startEmailLogin:l,submitOTP:d,submitMFA:u,lostDevice:v,submitRecoveryCode:f,cancelLogin:p,retryDeviceVerification:g,resendEmailOTP:h,email:i.current};return a.createElement(Zc.Provider,{value:m},e)}function Kc(){const e=u(Zc);if(!e)throw new Error("useEmailLogin must be used within an EmailLoginProvider");return e}const Xc=({error:e,isLoading:t})=>{const{startEmailLogin:r}=Kc(),[n,o]=d(""),[i,l]=d(null),[s,c]=d(!0),u=Dc().getConfig(),v="dark"===u?.theme.themeColor,f=e||i;return a.createElement("form",{onSubmit:e=>{var t;(e.preventDefault(),(t=n)&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t))?!function(e){if(!e)return!1;const t=e.toLowerCase();return!!Vc.find(e=>t.endsWith(e))}(n)?(c(!0),r(n)):l(zc.SanEmail):l(zc.MalformedEmail)},className:Ke({w:"full"})},a.createElement(Ve,{w:"full",maxW:"25rem"},a.createElement(xd,{"aria-label":"email input",value:n,onChange:e=>{l(null),c(!e.length),o(e.trim())},placeholder:"Email address"},a.createElement(xd.TypeIcon,null,a.createElement(yl,{...v?{color:ut("colors.ink.70")}:{}})),a.createElement(xd.ActionIcon,{onClick:()=>{}},a.createElement(xi,{"aria-label":"login-submit-button",variant:"text",textStyle:"neutral",disabled:s,validating:t,type:"submit"},a.createElement(xi.LeadingIcon,{color:ut("colors.text.tertiary")},a.createElement(fl,null)))))),f&&a.createElement(Vo,{variant:"error",size:"sm",styles:{textAlign:"center"}},f))},Qc=({label:e,Icon:t,onPress:r,hideLabel:n,center:o})=>a.createElement($o,{onPress:r,borderRadius:14,className:Ee({w:"full",px:4,py:3,bg:"neutral.quaternary",_hover:{bg:"neutral.tertiary"}})},a.createElement(Ue,{gap:3,w:"full",justifyContent:n||o?"center":"flex-start",alignItems:"center"},a.createElement(t,{width:24,height:24}),!n&&e&&a.createElement(Vo,{fontWeight:"medium",styles:{lineHeight:"1.5rem"}},e))),Jc={[Hc.WALLETCONNECT]:{displayName:"WalletConnect",Icon:({title:r,titleId:n,...a})=>t("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M4.91675 7.51605C8.83338 3.68134 15.1835 3.68134 19.1001 7.51605L19.5715 7.97756C19.7673 8.16929 19.7673 8.48016 19.5715 8.6719L17.959 10.2506C17.8611 10.3465 17.7024 10.3465 17.6044 10.2506L16.9558 9.61554C14.2234 6.94035 9.79343 6.94035 7.06109 9.61554L6.36643 10.2957C6.26851 10.3915 6.10976 10.3915 6.01184 10.2957L4.39937 8.71693C4.20354 8.5252 4.20354 8.21433 4.39937 8.0226L4.91675 7.51605ZM22.4349 10.7811L23.87 12.1861C24.0658 12.3779 24.0658 12.6887 23.87 12.8805L17.399 19.2162C17.2032 19.4079 16.8857 19.4079 16.6898 19.2162C16.6898 19.2162 16.6898 19.2162 16.6898 19.2162L12.0971 14.7196C12.0482 14.6716 11.9688 14.6716 11.9198 14.7196L7.32721 19.2162C7.13138 19.4079 6.81387 19.408 6.61804 19.2162C6.61804 19.2162 6.61804 19.2162 6.61804 19.2162L0.146874 12.8804C-0.0489579 12.6887 -0.0489579 12.3778 0.146874 12.1861L1.58198 10.781C1.77781 10.5892 2.09532 10.5892 2.29115 10.781L6.88392 15.2777C6.93288 15.3256 7.01226 15.3256 7.06122 15.2777C7.06121 15.2777 7.06122 15.2777 7.06122 15.2777L11.6538 10.781C11.8496 10.5892 12.1671 10.5892 12.3629 10.781C12.3629 10.781 12.3629 10.781 12.3629 10.781L16.9557 15.2777C17.0047 15.3256 17.084 15.3256 17.133 15.2777L21.7257 10.7811C21.9215 10.5893 22.239 10.5893 22.4349 10.7811Z",fill:"#3B99FC"})]})},[Hc.METAMASK]:{displayName:"MetaMask",Icon:({title:r,titleId:n,...a})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M28.7213 29.0412L22.4653 27.1784L17.7474 29.9987L14.4558 29.9973L9.73516 27.1784L3.48192 29.0412L1.57977 22.6199L3.48192 15.4932L1.57977 9.46778L3.48192 2L13.2531 7.8378H18.9501L28.7213 2L30.6234 9.46778L28.7213 15.4932L30.6234 22.6199L28.7213 29.0412Z",fill:"#FF5C16"}),e("path",{d:"M3.48334 2L13.2546 7.84189L12.866 11.8511L3.48334 2Z",fill:"#FF5C16"}),e("path",{d:"M9.73645 22.6226L14.0357 25.8976L9.73645 27.1783V22.6226Z",fill:"#FF5C16"}),e("path",{d:"M13.6921 17.208L12.8658 11.8538L7.5766 15.4945L7.57385 15.4931V15.4958L7.59021 19.2434L9.73509 17.208H9.73646H13.6921Z",fill:"#FF5C16"}),e("path",{d:"M28.7212 2L18.95 7.84189L19.3373 11.8511L28.7212 2Z",fill:"#FF5C16"}),e("path",{d:"M22.468 22.6226L18.1688 25.8976L22.468 27.1783V22.6226Z",fill:"#FF5C16"}),e("path",{d:"M24.6294 15.4958V15.4931L24.628 15.4945L19.3388 11.8538L18.5125 17.208H22.4682L24.6144 19.2434L24.6294 15.4958Z",fill:"#FF5C16"}),e("path",{d:"M9.73517 27.1782L3.48193 29.041L1.57977 22.6224H9.73517V27.1782Z",fill:"#E34807"}),e("path",{d:"M13.6908 17.2067L14.8853 24.947L13.23 20.6433L7.58759 19.2435L9.73384 17.2067H13.6895H13.6908Z",fill:"#E34807"}),e("path",{d:"M22.468 27.1782L28.7212 29.041L30.6233 22.6224H22.468V27.1782Z",fill:"#E34807"}),e("path",{d:"M18.5123 17.2067L17.3178 24.947L18.9732 20.6433L24.6156 19.2435L22.468 17.2067H18.5123Z",fill:"#E34807"}),e("path",{d:"M1.57977 22.6199L3.48192 15.4932H7.57259L7.58757 19.2421L13.23 20.642L14.8853 24.9457L14.0345 25.8935L9.7352 22.6185H1.57977V22.6199Z",fill:"#FF8D5D"}),e("path",{d:"M30.6234 22.6199L28.7212 15.4932H24.6306L24.6156 19.2421L18.9732 20.642L17.3178 24.9457L18.1687 25.8935L22.468 22.6185H30.6234V22.6199Z",fill:"#FF8D5D"}),e("path",{d:"M18.9502 7.83777H16.1017H13.2532L12.866 11.847L14.8854 24.9416H17.318L19.3388 11.847L18.9502 7.83777Z",fill:"#FF8D5D"}),e("path",{d:"M3.48192 2L1.57977 9.46778L3.48192 15.4932H7.57259L12.8646 11.8511L3.48192 2Z",fill:"#661800"}),e("path",{d:"M12.5086 18.7614H10.6556L9.64655 19.7503L13.2313 20.6393L12.5086 18.76V18.7614Z",fill:"#661800"}),e("path",{d:"M28.7213 2L30.6235 9.46778L28.7213 15.4932H24.6306L19.3387 11.8511L28.7213 2Z",fill:"#661800"}),e("path",{d:"M19.6973 18.7614H21.5531L22.5622 19.7517L18.9733 20.642L19.6973 18.76V18.7614Z",fill:"#661800"}),e("path",{d:"M17.746 27.4441L18.1687 25.8963L17.3178 24.9485H14.8839L14.033 25.8963L14.4557 27.4441",fill:"#661800"}),e("path",{d:"M17.7459 27.444V29.9999H14.4556V27.444H17.7459Z",fill:"#C0C4CD"}),e("path",{d:"M9.73645 27.1756L14.4584 29.9986V27.4427L14.0357 25.8949L9.73645 27.1756Z",fill:"#E7EBF6"}),e("path",{d:"M22.4681 27.1756L17.7461 29.9986V27.4427L18.1688 25.8949L22.4681 27.1756Z",fill:"#E7EBF6"})]})},[Hc.COINBASE]:{displayName:"Coinbase Wallet",Icon:({title:r,titleId:n,...a})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("circle",{cx:16,cy:16,r:16,fill:"url(#paint0_linear_8941_733)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0013 26.666C21.8923 26.666 26.668 21.8903 26.668 15.9993C26.668 10.1083 21.8923 5.33264 16.0013 5.33264C10.1103 5.33264 5.33463 10.1083 5.33463 15.9993C5.33463 21.8903 10.1103 26.666 16.0013 26.666ZM13.8659 12.8613C13.3136 12.8613 12.8659 13.309 12.8659 13.8613V18.1358C12.8659 18.6881 13.3136 19.1358 13.8659 19.1358H18.1404C18.6927 19.1358 19.1404 18.6881 19.1404 18.1358V13.8613C19.1404 13.309 18.6927 12.8613 18.1404 12.8613H13.8659Z",fill:"white"}),e("defs",{children:t("linearGradient",{id:"paint0_linear_8941_733",x1:6.5,y1:3.5,x2:26,y2:29.5,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#2A62F5"}),e("stop",{offset:1,stopColor:"#164EE0"})]})})]})},[Hc.PHANTOM]:{displayName:"Phantom",Icon:({title:r,titleId:n,...a})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("mask",{id:"mask0_10729_1440",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:1,y:1,width:30,height:30,children:e("path",{d:"M31 1H1V31H31V1Z",fill:"white"})}),t("g",{mask:"url(#mask0_10729_1440)",children:[e("path",{d:"M24.5602 1H7.4398C3.8832 1 1 3.8832 1 7.4398V24.5602C1 28.1168 3.8832 31 7.4398 31H24.5602C28.1168 31 31 28.1168 31 24.5602V7.4398C31 3.8832 28.1168 1 24.5602 1Z",fill:"#AB9FF2"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9305 20.4953C12.7525 22.3003 10.7787 24.5844 8.15225 24.5844C6.91065 24.5844 5.7168 24.0733 5.7168 21.853C5.7168 16.1986 13.437 7.44531 20.6001 7.44531C24.6751 7.44531 26.2987 10.2725 26.2987 13.4831C26.2987 17.6042 23.6245 22.3163 20.9662 22.3163C20.1225 22.3163 19.7087 21.853 19.7087 21.1183C19.7087 20.9266 19.7405 20.719 19.8042 20.4953C18.8969 22.0447 17.1459 23.4823 15.5063 23.4823C14.3125 23.4823 13.7076 22.7316 13.7076 21.6773C13.7076 21.294 13.7872 20.8947 13.9305 20.4953ZM23.6091 13.3717C23.6091 14.3073 23.0571 14.775 22.4396 14.775C21.8128 14.775 21.2702 14.3073 21.2702 13.3717C21.2702 12.4362 21.8128 11.9684 22.4396 11.9684C23.0571 11.9684 23.6091 12.4362 23.6091 13.3717ZM20.1008 13.3718C20.1008 14.3073 19.5488 14.7751 18.9313 14.7751C18.3045 14.7751 17.7619 14.3073 17.7619 13.3718C17.7619 12.4362 18.3045 11.9685 18.9313 11.9685C19.5488 11.9685 20.1008 12.4362 20.1008 13.3718Z",fill:"#FFFDF8"})]})]})},[Hc.RABBY]:{displayName:"Rabby",Icon:({title:r,titleId:n,...a})=>t("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,t("g",{clipPath:"url(#clip0_12156_1502)",children:[e("path",{d:"M30.9683 17.8945C32.1562 15.2317 26.2834 7.7924 20.6728 4.69301C17.1364 2.29195 13.4513 2.62182 12.705 3.67607C11.0671 5.98968 18.1286 7.95014 22.8511 10.2378C21.836 10.6802 20.8793 11.4741 20.3167 12.4894C18.5561 10.5609 14.6918 8.90006 10.1575 10.2378C7.10193 11.1394 4.56248 13.2647 3.58098 16.4748C3.34252 16.3685 3.07845 16.3094 2.80065 16.3094C1.73836 16.3094 0.877197 17.1735 0.877197 18.2393C0.877197 19.3052 1.73836 20.1693 2.80065 20.1693C2.99755 20.1693 3.61322 20.0368 3.61322 20.0368L13.4513 20.1083C9.51684 26.371 6.40753 27.2865 6.40753 28.3715C6.40753 29.4564 9.38264 29.1624 10.4997 28.758C15.8473 26.822 21.5909 20.7882 22.5765 19.0513C26.7154 19.5694 30.1937 19.6307 30.9683 17.8945Z",fill:"url(#paint0_linear_12156_1502)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.8507 10.2385C22.8509 10.2386 22.8512 10.2387 22.8514 10.2388C23.0704 10.1523 23.0349 9.82791 22.9748 9.57312C22.8367 8.98766 20.453 6.6259 18.2146 5.56811C15.1645 4.12666 12.9185 4.20098 12.5867 4.86535C13.208 6.14298 16.0884 7.34261 19.0965 8.59539C20.38 9.12991 21.6867 9.6741 22.8512 10.2382C22.851 10.2383 22.8508 10.2384 22.8507 10.2385Z",fill:"url(#paint1_linear_12156_1502)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9801 23.0977C18.3632 22.8612 17.6664 22.6441 16.8743 22.4473C17.7189 20.9308 17.8961 18.6858 17.0985 17.2664C15.9789 15.2744 14.5736 14.2141 11.308 14.2141C9.51189 14.2141 4.67598 14.8211 4.59017 18.8717C4.58115 19.2967 4.58993 19.6862 4.62061 20.0443L13.4513 20.1086C12.2608 22.0036 11.1458 23.409 10.1697 24.4776C11.3417 24.779 12.3088 25.032 13.1968 25.2642C14.0393 25.4845 14.8104 25.6863 15.6176 25.8929C16.8352 25.0029 17.9798 24.0324 18.9801 23.0977Z",fill:"url(#paint2_linear_12156_1502)"}),e("path",{d:"M3.4631 19.6282C3.82387 22.7051 5.56671 23.911 9.12801 24.2679C12.6893 24.6247 14.7321 24.3853 17.4518 24.6336C19.7233 24.8409 21.7515 26.0023 22.5039 25.601C23.1809 25.2398 22.8021 23.9348 21.8961 23.0975C20.7216 22.0123 19.096 21.2577 16.2359 20.9899C16.8059 19.424 16.6462 17.2284 15.7609 16.0338C14.4809 14.3066 12.1183 13.5257 9.12801 13.8669C6.00393 14.2233 3.0104 15.7666 3.4631 19.6282Z",fill:"url(#paint3_linear_12156_1502)"})]}),t("defs",{children:[t("linearGradient",{id:"paint0_linear_12156_1502",x1:9.80166,y1:15.5365,x2:30.7229,y2:21.4494,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#8697FF"}),e("stop",{offset:1,stopColor:"#ABB7FF"})]}),t("linearGradient",{id:"paint1_linear_12156_1502",x1:27.1914,y1:15.1379,x2:12.0523,y2:.0128466,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#8697FF"}),e("stop",{offset:1,stopColor:"#5156D8",stopOpacity:0})]}),t("linearGradient",{id:"paint2_linear_12156_1502",x1:19.3999,y1:23.6263,x2:4.88188,y2:15.3076,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#465EED"}),e("stop",{offset:1,stopColor:"#8697FF",stopOpacity:0})]}),t("linearGradient",{id:"paint3_linear_12156_1502",x1:11.0501,y1:15.3802,x2:20.8875,y2:27.8377,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#8898FF"}),e("stop",{offset:.983895,stopColor:"#6277F1"})]}),e("clipPath",{id:"clip0_12156_1502",children:e("rect",{width:31.5,height:28,fill:"white",transform:"translate(0.25 2)"})})]})]})}},eu={[Wc.GOOGLE]:{displayName:"Google",Icon:dl},[Wc.APPLE]:{displayName:"Apple",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M17.4523 11.6262C17.4417 9.82294 18.2587 8.46385 19.9087 7.46173C18.9859 6.13967 17.5898 5.41253 15.7495 5.27239C14.007 5.1349 12.1006 6.28774 11.4025 6.28774C10.6648 6.28774 8.97785 5.31999 7.6505 5.31999C4.91119 5.36229 2 7.50403 2 11.8616C2 13.1492 2.23533 14.4792 2.70598 15.8489C3.33528 17.6522 5.60395 22.0705 7.97044 21.9991C9.20789 21.9701 10.0831 21.1213 11.6934 21.1213C13.2561 21.1213 14.0652 21.9991 15.4454 21.9991C17.833 21.9648 19.8849 17.9483 20.4825 16.1398C17.2804 14.63 17.4523 11.7188 17.4523 11.6262ZM14.6733 3.56164C16.0139 1.96988 15.8923 0.520893 15.8526 0C14.668 0.0687473 13.2984 0.806459 12.5183 1.71339C11.659 2.68643 11.154 3.88951 11.2624 5.24595C12.5421 5.34378 13.7108 4.68539 14.6733 3.56164Z",fill:"black"})]})},[Wc.FACEBOOK]:{displayName:"Facebook",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M17.9214 14.3997L18.582 10.0883H14.4467V7.29096C14.4467 6.11245 15.0234 4.96121 16.8771 4.96121H18.7581V1.29148C18.7581 1.29148 17.0512 1 15.4197 1C12.0142 1 9.78718 3.06343 9.78718 6.80236V10.0883H6V14.3997H9.78718V24.8197C10.5463 24.9392 11.3243 25 12.1169 25C12.9096 25 13.6876 24.9371 14.4467 24.8197V14.3997H17.9214Z",fill:"#1977F3"})]})},[Wc.GITHUB]:{displayName:"GitHub",Icon:({title:r,titleId:n,...a})=>t("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3159 6.36074e-06C9.39213 -0.00296524 6.5629 1.03535 4.33518 2.92889C2.10746 4.82242 0.626879 7.4474 0.158754 10.3334C-0.30937 13.2194 0.265566 16.1778 1.78053 18.6784C3.29549 21.179 5.65146 23.0584 8.42622 23.9798C9.04554 24.0931 9.26457 23.7079 9.26457 23.3831C9.26457 23.0584 9.26457 22.3182 9.26457 21.291C5.8281 22.0387 5.10304 19.637 5.10304 19.637C4.87506 18.8926 4.39073 18.2531 3.73601 17.8319C2.62576 17.0766 3.82664 17.0766 3.82664 17.0766C4.21583 17.1316 4.5874 17.2744 4.91323 17.4942C5.23905 17.7141 5.51058 18.0052 5.70726 18.3455C5.87437 18.6485 6.09967 18.9155 6.37023 19.1312C6.64079 19.347 6.95129 19.5071 7.28391 19.6026C7.61653 19.698 7.96472 19.7268 8.3085 19.6874C8.65228 19.6479 8.98488 19.541 9.28723 19.3726C9.33463 18.7513 9.60249 18.1674 10.0425 17.7262C7.30843 17.4165 4.43841 16.3591 4.43841 11.684C4.41963 10.4627 4.87123 9.28099 5.6997 8.38349C5.33072 7.3216 5.37385 6.15988 5.82055 5.12828C5.82055 5.12828 6.85526 4.79596 9.20415 6.38958C11.2212 5.83579 13.3501 5.83579 15.3671 6.38958C17.716 4.79596 18.7432 5.12828 18.7432 5.12828C19.1961 6.14897 19.25 7.30235 18.8942 8.36083C19.7227 9.25834 20.1743 10.4401 20.1555 11.6614C20.1555 16.3893 17.278 17.424 14.5363 17.7035C14.8303 17.999 15.0573 18.3543 15.202 18.7452C15.3466 19.1361 15.4055 19.5536 15.3747 19.9693C15.3747 21.6158 15.3747 22.9451 15.3747 23.3454C15.3747 23.7456 15.5937 24.0553 16.2206 23.9345C18.9638 22.9888 21.2844 21.1041 22.7727 18.6132C24.2609 16.1223 24.8208 13.1856 24.3536 10.3219C23.8864 7.45814 22.4221 4.85167 20.2194 2.96295C18.0167 1.07422 15.2173 0.024771 12.3159 6.36074e-06Z",fill:"#191717"})]})},[Wc.TWITTER]:{displayName:"Twitter",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("g",{clipPath:"url(#clip0_8934_240)",children:e("path",{d:"M13.6408 10.4643L20.9224 2H19.1969L12.8743 9.34942L7.82442 2H2L9.63638 13.1136L2 21.9897H3.72561L10.4025 14.2285L15.7355 21.9897H21.5599L13.6404 10.4643H13.6408ZM11.2773 13.2115L10.5036 12.1049L4.34737 3.29901H6.9978L11.966 10.4056L12.7397 11.5123L19.1977 20.7498H16.5473L11.2773 13.212V13.2115Z",fill:"black"})}),e("defs",{children:e("clipPath",{id:"clip0_8934_240",children:e("rect",{width:19.5599,height:20,fill:"white",transform:"translate(2 2)"})})})]})},[Wc.LINKEDIN]:{displayName:"LinkedIn",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2946 21H21.028L21.0296 14.4043C21.0296 11.1664 20.3319 8.6775 16.548 8.6775C15.1034 8.62385 13.6913 9.37184 12.9615 10.6195V8.97649H9.37758V20.9995H13.1109V15.0518C13.1109 13.4834 13.4084 11.9644 15.3529 11.9644C17.2697 11.9644 17.2946 13.7591 17.2946 15.1533V21ZM2.99811 5.16657C2.99811 6.3551 3.97657 7.33299 5.1651 7.33299C6.3534 7.33288 7.33118 6.35442 7.33118 5.16612C7.33096 3.97781 6.35306 3.00003 5.16464 3.00003C3.97611 3.00003 2.99811 3.97804 2.99811 5.16657ZM3.29451 21H7.03174V8.97649H3.29451V21Z",fill:"#0A66C2"})]})},[Wc.MICROSOFT]:{displayName:"Microsoft",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,t("g",{clipPath:"url(#clip0_8934_233)",children:[e("path",{d:"M1.95654 1.95651H11.5218V11.5217H1.95654V1.95651Z",fill:"#F35325"}),e("path",{d:"M12.4782 1.95651H22.0435V11.5217H12.4782V1.95651Z",fill:"#81BC06"}),e("path",{d:"M1.95654 12.4783H11.5218V22.0435H1.95654V12.4783Z",fill:"#05A6F0"}),e("path",{d:"M12.4782 12.4783H22.0435V22.0435H12.4782V12.4783Z",fill:"#FFBA08"})]}),e("defs",{children:e("clipPath",{id:"clip0_8934_233",children:e("rect",{width:22,height:22,fill:"white",transform:"translate(1 1)"})})})]})},[Wc.TWITCH]:{displayName:"Twitch",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M20.8571 11.1428L17.4286 14.5714H14L11 17.5714V14.5714H7.14285V1.71426H20.8571V11.1428Z",fill:"white"}),e("path",{d:"M6.28571 0L2 4.28571V19.7143H7.14286V24L11.4286 19.7143H14.8571L22.5714 12V0H6.28571ZM20.8571 11.1429L17.4286 14.5714H14L11 17.5714V14.5714H7.14286V1.71429H20.8571V11.1429Z",fill:"#9146FF"}),e("path",{d:"M18.2857 4.71429H16.5714V9.85715H18.2857V4.71429Z",fill:"#9146FF"}),e("path",{d:"M13.5714 4.71429H11.8571V9.85715H13.5714V4.71429Z",fill:"#9146FF"})]})},[Wc.BITBUCKET]:{displayName:"Bitbucket",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M1.71397 2.00006C1.6111 1.99873 1.50919 2.01994 1.41539 2.06219C1.32159 2.10444 1.23817 2.16672 1.171 2.24464C1.10382 2.32256 1.05452 2.41424 1.02655 2.51324C0.998581 2.61225 0.992621 2.71617 1.00909 2.81772L4.00132 20.9826C4.03861 21.2049 4.15302 21.4069 4.32447 21.5532C4.49592 21.6995 4.71344 21.7808 4.93882 21.7826H19.2938C19.4627 21.7848 19.6269 21.7262 19.7562 21.6175C19.8856 21.5089 19.9717 21.3573 19.9987 21.1905L22.9909 2.82125C23.0074 2.7197 23.0014 2.61577 22.9734 2.51677C22.9455 2.41776 22.8962 2.32608 22.829 2.24816C22.7618 2.17024 22.6784 2.10797 22.5846 2.06572C22.4908 2.02346 22.3889 2.00226 22.286 2.00358L1.71397 2.00006ZM14.3138 15.1285H9.73203L8.49144 8.64712H15.424L14.3138 15.1285Z",fill:"#2684FF"}),e("path",{d:"M22.0389 8.64706H15.4236L14.3134 15.1285H9.73166L4.32167 21.55C4.49314 21.6982 4.71176 21.7807 4.93844 21.7826H19.2969C19.4659 21.7848 19.63 21.7262 19.7594 21.6175C19.8888 21.5088 19.9748 21.3573 20.0018 21.1905L22.0389 8.64706Z",fill:"url(#paint0_linear_8934_282)"}),e("defs",{children:t("linearGradient",{id:"paint0_linear_8934_282",x1:23.5685,y1:10.4621,x2:12.6358,y2:18.9948,gradientUnits:"userSpaceOnUse",children:[e("stop",{offset:.18,stopColor:"#0052CC"}),e("stop",{offset:1,stopColor:"#2684FF"})]})})]})},[Wc.DISCORD]:{displayName:"Discord",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M20.3303 4.52336C18.7535 3.80145 17.0888 3.2893 15.3789 3C15.1449 3.41829 14.9332 3.84865 14.7446 4.28928C12.9232 4.01482 11.071 4.01482 9.24961 4.28928C9.06095 3.84869 8.84924 3.41834 8.61535 3C6.90433 3.29174 5.2386 3.80511 3.66019 4.52713C0.526644 9.16327 -0.322811 13.6843 0.101917 18.1411C1.937 19.4969 3.99098 20.5281 6.17458 21.1897C6.66626 20.5284 7.10134 19.8268 7.47519 19.0925C6.76511 18.8273 6.07975 18.5001 5.42706 18.1146C5.59884 17.9901 5.76684 17.8617 5.92918 17.7371C7.82837 18.6303 9.90124 19.0933 12 19.0933C14.0987 19.0933 16.1715 18.6303 18.0707 17.7371C18.235 17.8711 18.403 17.9995 18.5729 18.1146C17.9189 18.5007 17.2323 18.8285 16.5209 19.0944C16.8943 19.8284 17.3294 20.5293 17.8216 21.1897C20.007 20.5307 22.0626 19.5001 23.898 18.143C24.3963 12.9745 23.0467 8.49503 20.3303 4.52336ZM8.01318 15.4002C6.82961 15.4002 5.85179 14.3261 5.85179 13.0047C5.85179 11.6833 6.79563 10.5998 8.0094 10.5998C9.22318 10.5998 10.1934 11.6833 10.1727 13.0047C10.1519 14.3261 9.21941 15.4002 8.01318 15.4002ZM15.9867 15.4002C14.8013 15.4002 13.8272 14.3261 13.8272 13.0047C13.8272 11.6833 14.7711 10.5998 15.9867 10.5998C17.2024 10.5998 18.1651 11.6833 18.1444 13.0047C18.1236 14.3261 17.193 15.4002 15.9867 15.4002Z",fill:"#5865F2"})]})},[Wc.GITLAB]:{displayName:"GitLab",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("path",{d:"M22.6338 9.38662L22.6029 9.30758L19.6085 1.49288C19.5476 1.33972 19.4397 1.20979 19.3004 1.12174C19.1609 1.03518 18.9983 0.993493 18.8344 1.0023C18.6705 1.01111 18.5133 1.06999 18.3839 1.171C18.256 1.2749 18.1632 1.41569 18.1182 1.57422L16.0964 7.75999H7.90937L5.88754 1.57422C5.84369 1.41483 5.75069 1.27333 5.62178 1.16985C5.49243 1.06885 5.3352 1.00996 5.17132 1.00116C5.00744 0.992348 4.8448 1.03404 4.70537 1.12059C4.56633 1.209 4.45855 1.33882 4.39722 1.49174L1.39712 9.303L1.36734 9.38204C0.936285 10.5083 0.883079 11.7442 1.21574 12.9034C1.5484 14.0625 2.2489 15.0821 3.21162 15.8084L3.22193 15.8164L3.24942 15.8359L7.81085 19.2518L10.0675 20.9597L11.4421 21.9976C11.6029 22.1197 11.7993 22.1858 12.0011 22.1858C12.203 22.1858 12.3994 22.1197 12.5602 21.9976L13.9348 20.9597L16.1914 19.2518L20.7804 15.8152L20.7918 15.8061C21.7524 15.0797 22.4512 14.0611 22.7834 12.9035C23.1156 11.746 23.0631 10.5118 22.6338 9.38662Z",fill:"#E24329"}),e("path",{d:"M22.6338 9.38663L22.6029 9.30759C21.1438 9.60707 19.7689 10.2251 18.5764 11.1175L12 16.0902C14.2395 17.7844 16.1891 19.2564 16.1891 19.2564L20.7781 15.8198L20.7895 15.8107C21.7515 15.0843 22.4514 14.0651 22.784 12.9065C23.1166 11.7479 23.0639 10.5127 22.6338 9.38663Z",fill:"#FC6D26"}),e("path",{d:"M7.81085 19.2564L10.0675 20.9643L11.4421 22.0022C11.6029 22.1243 11.7993 22.1903 12.0011 22.1903C12.203 22.1903 12.3994 22.1243 12.5602 22.0022L13.9348 20.9643L16.1914 19.2564C16.1914 19.2564 14.2395 17.7798 12 16.0902C9.76052 17.7798 7.81085 19.2564 7.81085 19.2564Z",fill:"#FCA326"}),e("path",{d:"M5.42246 11.1175C4.23089 10.2233 2.85628 9.60363 1.39712 9.30301L1.36734 9.38205C0.936285 10.5083 0.883079 11.7442 1.21574 12.9034C1.5484 14.0625 2.2489 15.0821 3.21162 15.8084L3.22193 15.8164L3.24942 15.8359L7.81085 19.2518C7.81085 19.2518 9.75823 17.7798 12 16.0856L5.42246 11.1175Z",fill:"#FC6D26"})]})},[Wc.TELEGRAM]:{displayName:"Telegram",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,t("g",{clipPath:"url(#clip0_11541_21172)",children:[e("path",{d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23Z",fill:"url(#paint0_linear_11541_21172)"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.97918 11.8839C9.18591 10.4868 11.3242 9.56571 12.3941 9.1207C15.449 7.85009 16.0837 7.62938 16.4974 7.62209C16.5884 7.62048 16.7919 7.64304 16.9237 7.74998C17.035 7.84028 17.0656 7.96226 17.0803 8.04787C17.0949 8.13348 17.1132 8.32851 17.0986 8.4809C16.9331 10.2203 16.2168 14.4412 15.8524 16.3893C15.6982 17.2137 15.3946 17.4901 15.1007 17.5171C14.4619 17.5759 13.9768 17.0949 13.3581 16.6894C12.39 16.0548 11.843 15.6597 10.9033 15.0404C9.81722 14.3247 10.5213 13.9314 11.1402 13.2885C11.3022 13.1203 14.1167 10.5603 14.1712 10.328C14.178 10.299 14.1843 10.1907 14.12 10.1335C14.0557 10.0764 13.9607 10.0959 13.8922 10.1115C13.7951 10.1335 12.2485 11.1558 9.25237 13.1782C8.81337 13.4797 8.41573 13.6266 8.05946 13.6189C7.66671 13.6104 6.9112 13.3968 6.34956 13.2142C5.66068 12.9903 5.11318 12.8719 5.16085 12.4916C5.18569 12.2935 5.45846 12.091 5.97918 11.8839Z",fill:"white"})]}),t("defs",{children:[t("linearGradient",{id:"paint0_linear_11541_21172",x1:1101,y1:1,x2:1101,y2:2184.68,gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#2AABEE"}),e("stop",{offset:1,stopColor:"#229ED9"})]}),e("clipPath",{id:"clip0_11541_21172",children:e("rect",{width:22,height:22,fill:"white",transform:"translate(1 1)"})})]})]})}},tu={[Wc.APPLE]:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{d:"M17.4523 11.6262C17.4417 9.82294 18.2587 8.46385 19.9087 7.46173C18.9859 6.13967 17.5898 5.41253 15.7495 5.27239C14.007 5.1349 12.1006 6.28774 11.4025 6.28774C10.6648 6.28774 8.97785 5.31999 7.6505 5.31999C4.91119 5.36229 2 7.50403 2 11.8616C2 13.1492 2.23533 14.4792 2.70598 15.8489C3.33528 17.6522 5.60395 22.0705 7.97044 21.9991C9.20789 21.9701 10.0831 21.1213 11.6934 21.1213C13.2561 21.1213 14.0652 21.9991 15.4454 21.9991C17.833 21.9648 19.8849 17.9483 20.4825 16.1398C17.2804 14.63 17.4523 11.7188 17.4523 11.6262ZM14.6733 3.56164C16.0139 1.96988 15.8923 0.520893 15.8526 0C14.668 0.0687473 13.2984 0.806459 12.5183 1.71339C11.659 2.68643 11.154 3.88951 11.2624 5.24595C12.5421 5.34378 13.7108 4.68539 14.6733 3.56164Z",fill:"currentColor"})]})},[Wc.TWITTER]:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("g",{clipPath:"url(#clip0_10091_39020)",children:e("path",{d:"M13.6408 10.4643L20.9224 2H19.1969L12.8743 9.34942L7.82442 2H2L9.63638 13.1136L2 21.9897H3.72561L10.4025 14.2285L15.7355 21.9897H21.5599L13.6404 10.4643H13.6408ZM11.2773 13.2115L10.5036 12.1049L4.34737 3.29901H6.9978L11.966 10.4056L12.7397 11.5123L19.1977 20.7498H16.5473L11.2773 13.212V13.2115Z",fill:"currentColor"})}),e("defs",{children:e("clipPath",{id:"clip0_10091_39020",children:e("rect",{width:19.5599,height:20,fill:"currentColor",transform:"translate(2 2)"})})})]})},[Wc.GITHUB]:({color:r,title:n,titleId:a,...o})=>{const i=r||ut("colors.text.primary");return t("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":a,...o,children:[n?e("title",{id:a,children:n}):null,e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3159 6.36074e-06C9.39213 -0.00296524 6.5629 1.03535 4.33518 2.92889C2.10746 4.82242 0.626879 7.4474 0.158754 10.3334C-0.30937 13.2194 0.265566 16.1778 1.78053 18.6784C3.29549 21.179 5.65146 23.0584 8.42622 23.9798C9.04554 24.0931 9.26457 23.7079 9.26457 23.3831C9.26457 23.0584 9.26457 22.3182 9.26457 21.291C5.8281 22.0387 5.10304 19.637 5.10304 19.637C4.87506 18.8926 4.39073 18.2531 3.73601 17.8319C2.62576 17.0766 3.82664 17.0766 3.82664 17.0766C4.21583 17.1316 4.5874 17.2744 4.91323 17.4942C5.23905 17.7141 5.51058 18.0052 5.70726 18.3455C5.87437 18.6485 6.09967 18.9155 6.37023 19.1312C6.64079 19.347 6.95129 19.5071 7.28391 19.6026C7.61653 19.698 7.96472 19.7268 8.3085 19.6874C8.65228 19.6479 8.98488 19.541 9.28723 19.3726C9.33463 18.7513 9.60249 18.1674 10.0425 17.7262C7.30843 17.4165 4.43841 16.3591 4.43841 11.684C4.41963 10.4627 4.87123 9.28099 5.6997 8.38349C5.33072 7.3216 5.37385 6.15988 5.82055 5.12828C5.82055 5.12828 6.85526 4.79596 9.20415 6.38958C11.2212 5.83579 13.3501 5.83579 15.3671 6.38958C17.716 4.79596 18.7432 5.12828 18.7432 5.12828C19.1961 6.14897 19.25 7.30235 18.8942 8.36083C19.7227 9.25834 20.1743 10.4401 20.1555 11.6614C20.1555 16.3893 17.278 17.424 14.5363 17.7035C14.8303 17.999 15.0573 18.3543 15.202 18.7452C15.3466 19.1361 15.4055 19.5536 15.3747 19.9693C15.3747 21.6158 15.3747 22.9451 15.3747 23.3454C15.3747 23.7456 15.5937 24.0553 16.2206 23.9345C18.9638 22.9888 21.2844 21.1041 22.7727 18.6132C24.2609 16.1223 24.8208 13.1856 24.3536 10.3219C23.8864 7.45814 22.4221 4.85167 20.2194 2.96295C18.0167 1.07422 15.2173 0.024771 12.3159 6.36074e-06Z",fill:"currentColor"})]})}},ru={displayName:"Farcaster",Icon:({title:r,titleId:n,...a})=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...a,children:[r?e("title",{id:n,children:r}):null,e("rect",{width:24,height:24,rx:4,fill:"#855DCD"}),e("path",{d:"M6.18667 3.73334H17.8133V20.2667H16.1067V12.6933H16.0899C15.9013 10.6002 14.1422 8.96 12 8.96C9.8578 8.96 8.0987 10.6002 7.91008 12.6933H7.89334V20.2667H6.18667V3.73334Z",fill:"white"}),e("path",{d:"M3.09334 6.08L3.78667 8.42667H4.37334V17.92C4.07879 17.92 3.84 18.1588 3.84 18.4533V19.0933H3.73334C3.43879 19.0933 3.2 19.3321 3.2 19.6267V20.2667H9.17334V19.6267C9.17334 19.3321 8.93456 19.0933 8.64 19.0933H8.53334V18.4533C8.53334 18.1588 8.29456 17.92 8 17.92H7.36V6.08H3.09334Z",fill:"white"}),e("path",{d:"M16.2133 17.92C15.9188 17.92 15.68 18.1588 15.68 18.4533V19.0933H15.5733C15.2788 19.0933 15.04 19.3321 15.04 19.6267V20.2667H21.0133V19.6267C21.0133 19.3321 20.7746 19.0933 20.48 19.0933H20.3733V18.4533C20.3733 18.1588 20.1346 17.92 19.84 17.92V8.42667H20.4267L21.12 6.08H16.8533V17.92H16.2133Z",fill:"white"})]})},nu="#855DCD",au=()=>a.createElement(wl,{className:Ee({rotate:"90deg"})}),ou=({providers:e,onPress:t,dispatch:r,enableFarcaster:n})=>{const o=Dc().getConfig(),i="dark"===o?.theme.themeColor,l=e.length+(n?1:0),d=l>5,s=d?4-(n?1:0):e.length,c=e.slice(0,s),u=l>1;return a.createElement(Je,{gap:2,w:"full"},c.map(e=>a.createElement(Qc,{key:e,hideLabel:u,label:`Continue with ${eu[e].displayName}`,Icon:i&&tu[e]||eu[e].Icon,onPress:()=>t(e)})),n&&a.createElement(Qc,{key:"farcaster",hideLabel:u,label:`Continue with ${ru.displayName}`,Icon:ru.Icon,onPress:()=>r({type:"SELECT_FARCASTER"})}),d&&a.createElement(Qc,{key:"more-providers",hideLabel:u,label:"More options",Icon:au,onPress:()=>{r({type:"GO_TO_ADDITIONAL_PROVIDERS"})}}))};function iu({showHeaderText:e=!0,onPressBack:t}){const{handleClose:r}=Yc();return a.createElement(Zi,{position:"relative"},!!t&&a.createElement(Zi.LeftAction,null,a.createElement(xi,{size:"sm",variant:"neutral",onPress:t},a.createElement(xi.LeadingIcon,null,a.createElement(vl,null)))),e&&a.createElement(Zi.Content,null,a.createElement(Vo,{size:"sm",fontColor:"text.tertiary"},"Log in or sign up")),r&&a.createElement(Zi.RightAction,null,a.createElement(xi,{size:"sm",variant:"neutral",onPress:r},a.createElement(xi.TrailingIcon,null,a.createElement(xo,null)))))}const lu=({dispatch:e,state:t})=>{const r=Dc().getConfig(),{wallets:n,enableFarcaster:o}=Yc(),{primary:i,social:l}=r?.authProviders??{},d=i?.includes("email"),s=i?.includes("sms"),c=l?.map(e=>e)??[],u=s,v=(d||s||c.length>0||o)&&n.length>0;return a.createElement(a.Fragment,null,a.createElement(iu,null),a.createElement(Xe,{w:"full",gap:10,mt:2,px:7},r?.theme.assetUri&&a.createElement("img",{src:r.theme.assetUri,alt:"Logo",width:80,height:80}),a.createElement(Xe,{width:"full",maxWidth:"25rem",gap:4},d&&a.createElement(Xc,{error:"email"===t.loginMethod?t.error:void 0,isLoading:"email"===t.loginMethod&&"sending"===t.otpLoginStatus}),u&&a.createElement(Ue,{gap:2,w:"full",justify:"center"},s&&a.createElement(Bc,{onClick:()=>{e({type:"GO_TO_SMS_LOGIN"})}})),(c.length>0||o)&&a.createElement(ou,{providers:Object.values(c),onPress:t=>{e({type:"SELECT_PROVIDER",provider:t})},dispatch:e,enableFarcaster:o}),v&&a.createElement(Je,{mb:3,w:"full"},a.createElement(st,{color:"surface.quaternary"}),a.createElement(Vo,{"aria-label":"or",fontColor:"text.tertiary"},"or"),a.createElement(st,{color:"surface.quaternary"})),n.length>0&&a.createElement(Ue,{gap:2,w:"full",direction:v?"row":"column",justify:"center"},n.map(t=>a.createElement(Qc,{key:t,hideLabel:n.length>1&&v,label:Jc[t].displayName,Icon:Jc[t].Icon,onPress:()=>(t=>{e({type:"SELECT_WALLET",provider:t})})(t)}))))))};function du(e){if("farcaster"===e)return{title:`Sign in with ${ru.displayName}`,description:"Scan QR code with Farcaster",Icon:ru.Icon};const t=Object.values(Wc).includes(e),r=t?eu[e]:Jc[e],{displayName:n,Icon:a}=r;return t?{title:`Log in with ${n}`,description:`Continue in ${n}`,Icon:a}:{title:`Continue in ${n}`,description:`Approve request in ${n}`,Icon:a}}const su={[Hc.METAMASK]:"metaMaskSDK",[Hc.COINBASE]:"coinbaseWalletSDK",[Hc.WALLETCONNECT]:"walletConnect",[Hc.PHANTOM]:"app.phantom",[Hc.RABBY]:"io.rabby"},cu={[Hc.METAMASK]:"metamask",[Hc.COINBASE]:"coinbase",[Hc.WALLETCONNECT]:"walletconnect",[Hc.PHANTOM]:"phantom",[Hc.RABBY]:"rabby"};let uu=null;function vu(e){uu=e}function fu(){return uu}const pu=Ee({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}),gu=({onPressBack:e,title:t,description:r,Icon:n,isPending:o,errorMessage:i})=>a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:o||i?e:void 0,showHeaderText:!1}),a.createElement(Xe,{gap:6,pt:4},a.createElement(Ve,{position:"relative",h:20,w:20},o&&a.createElement(Mo,{size:80,strokeWidth:8,neutral:!0,progress:40}),o?a.createElement(n,{width:36,height:36,className:pu}):i?a.createElement(ml,{width:36,height:36,color:ut("colors.negative.darker"),className:pu}):a.createElement(ko,{width:36,height:36,color:ut("colors.brand.base"),className:pu})),a.createElement(Xe,{gap:2,px:7},a.createElement(Vo.H4,{styles:{textAlign:"center"}},t),a.createElement(Vo,{fontColor:"text.tertiary",styles:{textAlign:"center"}},r),i&&a.createElement(Vo,{variant:"error",styles:{textAlign:"center"}},i)))),hu=({provider:e,state:t,dispatch:r})=>{if("wallet_pending"!==t.view)return null;const{connectWallet:n,isPending:o,error:l,address:u,isConnectedToSelectedProvider:f}=function(e){const{connect:t,connectors:r,isPending:n}=w(),{address:a,isConnected:o,connector:l}=x(),{disconnect:s}=E(),[u,v]=d(null),f=i(()=>{if(!o||!l)return!1;const t=su[e],r=cu[e],n=l.name.toLowerCase(),a=l.id===t,i=n===r||n.startsWith(r);return a||i},[o,l,e]),p=c(async()=>{v(null);try{const n=su[e],a=cu[e],i=r.find(e=>e.id===n),l=r.find(e=>{const t=e.name.toLowerCase();return t===a||t.startsWith(a)}),d=i||l;if(!d)throw new Error(`${e} connector not found. Please install the wallet extension.`);o&&(s(),await new Promise(e=>setTimeout(e,100))),await new Promise((e,r)=>{t({connector:d},{onSuccess:()=>e(),onError:e=>r(e)})})}catch(t){const r=t instanceof Error?t:new Error(`Failed to connect to ${e}`);throw v(r),r}},[t,r,e,o,s]);return{connectWallet:p,isPending:n,error:u,address:a,isConnected:o,isConnectedToSelectedProvider:f,disconnect:s}}(e),{isConnected:p}=x(),g=e===Hc.WALLETCONNECT,h=g&&t.walletAddress||u,{performSiweLogin:m,isLoading:b,error:y,isSuccess:C}=function(){const{signMessageAsync:e}=k(),t=L(),{handleSuccess:r,handleError:n}=Yc(),[a,o]=d(!1),[i,l]=d(null),[s,u]=d(!1),[v,f]=d(null);return{performSiweLogin:c(async(a,i)=>{o(!0),l(null),u(!1),f(null);try{const n=Dc(),l=i||t||1,d=await n.generateMessage({address:a,chainId:l});let s;const c=fu();if(c&&c.accounts&&c.accounts[0]?.toLowerCase()===a.toLowerCase()){if(!c.session||!c.session.topic)throw new Error("WalletConnect session not established");const e=V(d);s=await c.request({method:"personal_sign",params:[e,a]})}else s=await e({message:d});return await n.login({message:d,signature:s}),n.setConnectedState(a,l),u(!0),f(a),o(!1),r({method:"wallet",walletAddress:a}),a}catch(e){const t=e instanceof Error?e:new Error("SIWE login failed");throw l(t),o(!1),n(t),t}},[e,t,r,n]),isLoading:a,error:i,isSuccess:s,walletAddress:v}}(),{title:$,description:S,Icon:I}=du(e),M=s(!1),P=s(null),[T,_]=d(null);v(()=>{if(!M.current&&!g&&e&&"wallet_pending"===t.view){if(M.current=!0,f&&h)return;n().catch(e=>{const t=(e?.message||"").toLowerCase();t.includes("connector not connected")||t.includes("connectornotconnectederror")||(t.includes("user rejected")||t.includes("user denied")||t.includes("rejected the request")||t.includes("user cancelled")||t.includes("user canceled")?r({type:"GO_TO_LOGIN"}):_(e?.message||"Failed to connect wallet"))})}},[n,f,h,e,g]),v(()=>{if("wallet_pending"!==t.view)return;const e=g?fu():null,n=g&&h&&e&&e.session,a=g&&h&&t.walletAddress&&p&&!e;(n||a||f&&h)&&P.current!==h&&!b&&(P.current=h,_(null),m(h).catch(e=>{const t=(e?.message||"").toLowerCase();t.includes("connector not connected")||t.includes("connectornotconnectederror")||(t.includes("user rejected")||t.includes("user denied")||t.includes("rejected the request")||t.includes("user cancelled")||t.includes("user canceled")?r({type:"GO_TO_LOGIN"}):_(e?.message||"SIWE login failed"))}))},[f,h,b,m,e,g,t.walletAddress,p]),v(()=>{l&&M.current&&!g&&_(l.message)},[l,g]),v(()=>{if(y&&P.current){const e=(y.message||"").toLowerCase();if(g&&(e.includes("connector not connected")||e.includes("connectornotconnectederror")))return;_(y.message)}},[y,g]);const N=!T&&(!g&&o||b||!C&&!l&&!y);return a.createElement(gu,{onPressBack:()=>r({type:"GO_TO_LOGIN"}),title:$,description:S,Icon:I,isPending:N,errorMessage:T})},mu={view:"login",otpLoginStatus:"idle"};function bu(e,t){switch(t.type){case"GO_TO_LOGIN":return{...mu,selectedProvider:void 0,walletAddress:void 0,identifier:void 0,error:void 0,farcasterUrl:e.farcasterUrl};case"GO_TO_SMS_LOGIN":return{...e,view:"sms_login",error:void 0};case"OTP_START":return{...e,identifier:t.identifier,loginMethod:t.loginMethod||"email",otpLoginStatus:"sending",error:void 0};case"OTP_SENT":return{...e,view:"otp_pending",otpLoginStatus:"otp_sent",error:void 0};case"OTP_VERIFYING":return{...e,otpLoginStatus:"verifying_otp",error:void 0};case"OTP_INVALID":return{...e,otpLoginStatus:"invalid_otp",error:"Invalid code. Please try again."};case"OTP_EXPIRED":return{...e,otpLoginStatus:"expired_otp",error:"Code expired. Please request a new one."};case"OTP_MAX_ATTEMPTS_REACHED":return{...e,otpLoginStatus:"max_attempts_reached",error:"Max attempts reached. Please request a new code."};case"DEVICE_NEEDS_APPROVAL":return{...e,view:"device_verification",otpLoginStatus:"device_needs_approval",error:void 0};case"DEVICE_VERIFICATION_SENT":return{...e,view:"device_verification",otpLoginStatus:"device_verification_sent",error:void 0};case"DEVICE_VERIFICATION_EXPIRED":return{...e,otpLoginStatus:"device_verification_expired",error:"Verification link expired. Please try again."};case"DEVICE_APPROVED":return{...e,otpLoginStatus:"device_approved",error:void 0};case"MFA_REQUIRED":return{...e,view:"mfa_pending",otpLoginStatus:"mfa_required",error:void 0};case"MFA_VERIFYING":return{...e,otpLoginStatus:"mfa_verifying",error:void 0};case"MFA_INVALID":return{...e,otpLoginStatus:"mfa_invalid",error:"Invalid code. Please try again."};case"LOST_DEVICE":return{...e,view:"recovery_code",otpLoginStatus:"recovery_code",error:void 0};case"RECOVERY_CODE_VERIFYING":return{...e,otpLoginStatus:"recovery_code_verifying",error:void 0};case"RECOVERY_CODE_INVALID":return{...e,otpLoginStatus:"recovery_code",error:"Invalid recovery code. Please try again."};case"LOST_RECOVERY_CODE":return{...e,view:"lost_recovery_code",otpLoginStatus:"lost_recovery_code",error:void 0};case"LOGIN_SUCCESS":return{...e,view:"login_success",otpLoginStatus:"success",error:void 0};case"LOGIN_ERROR":return{...e,otpLoginStatus:"error",error:t.error};case"RESET_OTP_ERROR":return{...e,error:void 0};case"SELECT_WALLET":{const r=t.provider===Hc.WALLETCONNECT||"walletconnect"===t.provider.toLowerCase()?"walletconnect_pending":"wallet_pending";return{...e,view:r,selectedProvider:t.provider,error:void 0}}case"WALLETCONNECT_CONNECTED":return{...e,view:"wallet_pending",walletAddress:t.address,selectedProvider:Hc.WALLETCONNECT};case"SELECT_PROVIDER":return{...e,view:"oauth_pending",selectedProvider:t.provider,error:void 0};case"GO_TO_ADDITIONAL_PROVIDERS":return{...e,view:"additional_providers",error:void 0};case"SELECT_FARCASTER":return{...e,view:"farcaster_pending",farcasterUsername:void 0,error:void 0};case"FARCASTER_CHANNEL_RECEIVED":return{...e,farcasterUrl:t.url};case"FARCASTER_SUCCESS":return{...e,view:"farcaster_success",farcasterUsername:t.username,error:void 0};case"FARCASTER_FAILED":return{...e,view:"farcaster_failed",error:t.error||"Farcaster login failed"};default:return e}}const yu=p(null);function Cu({children:e,dispatch:t}){const{handleSuccess:r,handleError:n}=Yc(),o=s(null),[i,l]=d(!1),u=c(e=>{try{o.current&&(o.current.removeAllListeners(),o.current=null);const a=Dc().loginWithPopup(e);o.current=a,a.on(Lc.MfaSentHandle,()=>{o.current===a&&(l(!0),t({type:"MFA_REQUIRED"}))}),a.on(Lc.InvalidMfaOtp,()=>{o.current===a&&t({type:"MFA_INVALID"})}),a.on(Lc.InvalidRecoveryCode,()=>{o.current===a&&t({type:"RECOVERY_CODE_INVALID"})}),a.on(Lc.RecoveryCodeSentHandle,()=>{o.current===a&&t({type:"LOST_DEVICE"})}),a.on(Lc.RecoveryCodeSuccess,()=>{}),a.then(e=>{if(o.current!==a)return;if(e.error){const r=e,i=new Error(r.error_description||r.error);return t({type:"LOGIN_ERROR",error:i.message}),n(i),a.removeAllListeners(),o.current=null,void l(!1)}const i=e;t({type:"LOGIN_SUCCESS"}),r({method:"oauth",magic:i.magic,oauth:i.oauth}),a.removeAllListeners(),o.current=null,l(!1)}).catch(e=>{if(o.current!==a)return;const r=e instanceof Error?e:new Error(e?.message||"OAuth login failed"),i=(r.message||"").toLowerCase();if(i.includes("user rejected")||i.includes("user denied")||i.includes("access_denied")||i.includes("user closed")||i.includes("popup closed")||i.includes("cancelled")||i.includes("canceled"))return o.current=null,l(!1),void t({type:"GO_TO_LOGIN"});t({type:"LOGIN_ERROR",error:r.message}),n(r),a.removeAllListeners(),o.current=null,l(!1)})}catch(e){const r=e instanceof Error?e:new Error("Failed to start OAuth login");t({type:"LOGIN_ERROR",error:r.message}),n(r)}},[t,r,n,l]),v={startOAuthLogin:u,submitMFA:c(e=>{o.current&&(t({type:"MFA_VERIFYING"}),o.current.emit(kc.VerifyMFACode,e))},[t]),lostDevice:c(()=>{o.current&&o.current.emit(kc.LostDevice)},[t]),submitRecoveryCode:c(e=>{o.current&&(t({type:"RECOVERY_CODE_VERIFYING"}),o.current.emit(kc.VerifyRecoveryCode,e))},[t]),cancelLogin:c(()=>{o.current&&(o.current.emit(kc.Cancel),o.current.removeAllListeners()),o.current=null,l(!1),t({type:"GO_TO_LOGIN"})},[t,l]),isMfaActive:i};return a.createElement(yu.Provider,{value:v},e)}function $u(){const e=u(yu);if(!e)throw new Error("useOAuthLogin must be used within an OAuthLoginProvider");return e}const wu=({provider:e,state:t,dispatch:r})=>{const{title:n,description:o,Icon:i}=du(e),l=Dc().getConfig(),d="dark"===l?.theme.themeColor&&tu[e]||i,{startOAuthLogin:c}=$u(),u=s(!1),f="error"===t.otpLoginStatus,p=t.error??null;return v(()=>{u.current||(u.current=!0,c(e))},[c,e]),a.createElement(gu,{onPressBack:()=>r({type:"GO_TO_LOGIN"}),title:n,description:o,Icon:d,isPending:!f,errorMessage:f?p:null})};function xu({dispatch:e}){const t=Dc().getConfig(),r="dark"===t?.theme.themeColor,n=t?.authProviders?.social??[];return a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:()=>{e({type:"GO_TO_LOGIN"})},showHeaderText:!1}),a.createElement(Xe,{w:"full"},a.createElement(Ve,{mt:4,mb:2,overflowY:"auto",w:"full",px:4,scrollbarWidth:"thin",scrollbarColor:"rgba(143, 147, 153, 0.4) transparent",className:Ee({"&::-webkit-scrollbar":{backgroundColor:"transparent"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}})},a.createElement(Ye,{gap:2,maxH:"384px",w:"full",px:2},n.map(t=>a.createElement(Qc,{key:t,label:eu[t].displayName,Icon:r&&tu[t]||eu[t].Icon,onPress:()=>(t=>{e({type:"SELECT_PROVIDER",provider:t})})(t)}))))))}const Eu=p(null);function ku({children:e,dispatch:t}){const{handleSuccess:r,handleError:n}=Yc(),o=s(null),i=s(null),[l,u]=d(!1),v=c(e=>{i.current=e,u(!0),t({type:"OTP_START",identifier:e,loginMethod:"sms"});try{const a=Dc().loginWithSMS(e);o.current=a,a.on(ec.SmsOTPSent,()=>{t({type:"OTP_SENT"})}),a.on(ec.InvalidSmsOtp,()=>{t({type:"OTP_INVALID"})}),a.on(ec.ExpiredSmsOtp,()=>{t({type:"OTP_EXPIRED"})}),a.on(ec.LoginThrottled,()=>{t({type:"LOGIN_ERROR",error:"Too many login attempts. Please try again later."})}),a.on(nc.DeviceNeedsApproval,()=>{t({type:"DEVICE_NEEDS_APPROVAL"})}),a.on(nc.DeviceVerificationEmailSent,()=>{t({type:"DEVICE_VERIFICATION_SENT"})}),a.on(nc.DeviceVerificationLinkExpired,()=>{t({type:"DEVICE_VERIFICATION_EXPIRED"})}),a.on(nc.DeviceApproved,()=>{t({type:"DEVICE_APPROVED"})}),a.on(ec.MfaSentHandle,()=>{t({type:"MFA_REQUIRED"})}),a.on(ec.InvalidMfaOtp,()=>{t({type:"MFA_INVALID"})}),a.on(ec.InvalidRecoveryCode,()=>{t({type:"RECOVERY_CODE_INVALID"})}),a.then(e=>{e&&(t({type:"LOGIN_SUCCESS"}),r({method:"sms",didToken:e}))}).catch(e=>{const r=e instanceof Error?e:new Error(e?.message||"Login failed");t({type:"LOGIN_ERROR",error:r.message}),n(r)})}catch(e){const r=e instanceof Error?e:new Error("Failed to start login");t({type:"LOGIN_ERROR",error:r.message}),n(r)}},[t,r,n]),f=c(e=>{o.current&&(t({type:"OTP_VERIFYING"}),o.current.emit(Js.VerifySmsOtp,e))},[t]),p=c(e=>{o.current&&(t({type:"MFA_VERIFYING"}),o.current.emit(Js.VerifyMFACode,e))},[t]),g=c(()=>{o.current&&(t({type:"LOST_DEVICE"}),o.current.emit(Js.LostDevice))},[t]),h=c(e=>{o.current&&(t({type:"RECOVERY_CODE_VERIFYING"}),o.current.emit(Js.VerifyRecoveryCode,e))},[t]),m=c(()=>{o.current&&o.current.emit(Js.Cancel),o.current=null,i.current=null,u(!1),t({type:"GO_TO_LOGIN"})},[t]),b=c(()=>{o.current&&o.current.emit(rc.Retry)},[]),y=c(()=>{const e=i.current;if(o.current&&o.current.emit(Js.Cancel),o.current=null,i.current=null,!e)return t({type:"LOGIN_ERROR",error:"Internal error: No phone number found"});v(e)},[v,t]),C={startSmsLogin:v,submitOTP:f,submitMFA:p,lostDevice:g,submitRecoveryCode:h,cancelLogin:m,retryDeviceVerification:b,resendSmsOTP:y,phoneNumber:i.current,isSmsLoginActive:l};return a.createElement(Eu.Provider,{value:C},e)}function Lu(){const e=u(Eu);if(!e)throw new Error("useSmsLogin must be used within a SmsLoginProvider");return e}var Su={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,[["(?:(?:241|349)0\\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)|91(?:(?:[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}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\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]|3[23]|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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\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}"]]],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-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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|8(?:28[235-7]|3))|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])\\d|8(?:[14-6]\\d|2[0-79]))|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",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[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|427|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",["[47]"],"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","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["20"]],["(\\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]"]],["(\\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",["20"]]],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{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\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",["[67]"],"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","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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",["3[289]|4[246-8]|61|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,"[3489]",0,"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","[25-7]\\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",["[25-7]"]],["(\\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|66)\\d{7}",[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",["\\d"]]],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,[["(?:274[27]|(?: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-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],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 Iu(e,t){var r=Array.prototype.slice.call(t);return r.push(Su),e.apply(this,r)}function Mu(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),a=0;a<3;a++){var o=Number(r[a]),i=Number(n[a]);if(o>i)return 1;if(i>o)return-1;if(!isNaN(o)&&isNaN(i))return 1;if(isNaN(o)&&!isNaN(i))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 Pu={}.constructor;function Tu(e){return null!=e&&e.constructor===Pu}function _u(e){return _u="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},_u(e)}function Nu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ou(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Au(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Au(e){var t=function(e,t){if("object"!=_u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=_u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==_u(t)?t:t+""}var Ru=" ext. ",Fu=/^\d+$/,Du=function(){return Ou(function e(t){Nu(this,e),Wu(t),this.metadata=t,Yu.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&&Fu.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new ju(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new ju(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 r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[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}}])}(),ju=function(){return Ou(function e(t,r){Nu(this,e),this.globalMetadataObject=r,this.metadata=t,Yu.call(this,r.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,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map(function(t){return new Bu(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()&&zu(this.types(),e))return new Hu(zu(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ru:this.metadata[13]||Ru}}])}(),Bu=function(){return Ou(function e(t,r){Nu(this,e),this._format=t,this.metadata=r},[{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()||Vu.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),Vu=/^\(?\$1\)?$/,Hu=function(){return Ou(function e(t,r){Nu(this,e),this.type=t,this.metadata=r},[{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 zu(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 Wu(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Tu(e)||!Tu(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(Tu(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Uu(e)+": "+e,"."))}var Uu=function(e){return _u(e)};function Gu(e,t){if((t=new Du(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Yu(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===Mu(t,"1.2.0")?this.v2=!0:-1===Mu(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function Zu(e,t,r){return function(e,t,r,n){t&&(n=new Du(n.metadata)).selectNumberingPlan(t);var a=n.type(r),o=a&&a.possibleLengths()||n.possibleLengths();if(!o)return"IS_POSSIBLE";var i=e.length,l=o[0];if(l===i)return"IS_POSSIBLE";if(l>i)return"TOO_SHORT";if(o[o.length-1]<i)return"TOO_LONG";return o.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,void 0,r)}function qu(e,t,r){return"IS_POSSIBLE"===Zu(e,t,r)}function Ku(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Xu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Qu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qu(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Qu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ju=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function ev(e,t,r){if(t=t||{},e.country||e.countryCallingCode){(r=new Du(r)).selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(Ku(n,r.nationalNumberPattern())){if(tv(n,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":r.type("MOBILE")?tv(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var a,o=Xu(Ju);!(a=o()).done;){var i=a.value;if(tv(n,i,r))return i}}}}function tv(e,t,r){var n=r.type(t);return!(!n||!n.pattern())&&(!(n.possibleLengths()&&n.possibleLengths().indexOf(e.length)<0)&&Ku(e,n.pattern()))}function rv(e,t,r){var n=new Du(r).getCountryCodesForCallingCode(e);return n?n.filter(function(e){return function(e,t,r){var n=new Du(r);if(n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,r)}):[]}var nv="0-90-9٠-٩۰-۹",av="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),ov=new RegExp("(["+nv+"])");function iv(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return lv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lv(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dv(e,t){var r=t.nationalNumber,n=t.metadata,a=n.getCountryCodesForCallingCode(e);if(a)return 1===a.length?a[0]:function(e,t){var r=t.countries,n=t.metadata;n=new Du(n);for(var a,o=iv(r);!(a=o()).done;){var i=a.value;if(n.selectNumberingPlan(i),n.leadingDigits()){if(e&&0===e.search(n.leadingDigits()))return i}else if(ev({phone:e,country:i},void 0,n.metadata))return i}}(r,{countries:a,metadata:n.metadata})}function sv(e,t,r){var n=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var a,o,i,l=n.length-1,d=l>0&&n[l];if(t.nationalPrefixTransformRule()&&d)a=e.replace(r,t.nationalPrefixTransformRule()),l>1&&(o=n[1]);else{var s=n[0];a=e.slice(s.length),d&&(o=n[1])}if(d){var c=e.indexOf(n[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=n[0];return{nationalNumber:a,nationalPrefix:i,carrierCode:o}}}return{nationalNumber:e}}(e,r),a=n.carrierCode,o=n.nationalNumber;if(o!==e){if(!function(e,t,r){if(Ku(e,r.nationalNumberPattern())&&!Ku(t,r.nationalNumberPattern()))return!1;return!0}(e,o,r))return{nationalNumber:e};if(r.numberingPlan.possibleLengths()&&(t||(t=dv(r.numberingPlan.callingCode(),{nationalNumber:o,metadata:r})),!function(e,t,r){switch(Zu(e,t,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,r)))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:a}}function cv(e,t,r,n,a){if(!e)return{};var o;if("+"!==e[0]){var i=function(e,t,r,n){if(t){var a=new Du(n);a.selectNumberingPlan(t,r);var o=new RegExp(a.IDDPrefix());if(0===e.search(o)){var i=(e=e.slice(e.match(o)[0].length)).match(ov);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}(e,r,n,a);if(!i||i===e){if(r||n){var l=function(e,t,r,n,a){var o=r?Gu(r,a):n;if(0===e.indexOf(o)){(a=new Du(a)).selectNumberingPlan(r,o);var i=e.slice(o.length),l=sv(i,t,a).nationalNumber,d=sv(e,t,a).nationalNumber;if(!Ku(d,a.nationalNumberPattern())&&Ku(l,a.nationalNumberPattern())||"TOO_LONG"===Zu(d,t,a))return{countryCallingCode:o,number:i}}return{number:e}}(e,t,r,n,a),d=l.countryCallingCode,s=l.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:s}}return{number:e}}o=!0,e="+"+i}if("0"===e[1])return{};a=new Du(a);for(var c=2;c-1<=3&&c<=e.length;){var u=e.slice(1,c);if(a.hasCallingCode(u))return a.selectNumberingPlan(u),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(c)};c++}return{}}var uv=/(\$\d)/;function vv(e,t,r){var n=r.useInternationalFormat,a=r.withNationalPrefix,o=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(uv,t.nationalPrefixFormattingRule()):t.format());return n?function(e){return e.replace(new RegExp("[".concat(av,"]+"),"g")," ").trim()}(o):o}var fv=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var pv=function(e){return"([".concat(nv,"]{1,").concat(e,"})")};function gv(e){var t="[  \\t,]*",r="[:\\..]?[  \\t,-]*",n="#?",a="[  \\t]*";return";ext="+pv("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+r+pv("20")+n)+"|"+(t+"(?:[xx##~~]|int|int)"+r+pv("9")+n)+"|"+("[- ]+"+pv("6")+"#")+"|"+(a+"(?:,{2}|;)"+r+pv("15")+n)+"|"+(a+"(?:,)+"+r+pv("9")+n)}var hv="["+nv+"]{2}",mv="[++]{0,1}(?:["+av+"]*["+nv+"]){3,}["+av+nv+"]*",bv=new RegExp("^[++]{0,1}(?:["+av+"]*["+nv+"]){1,2}$","i"),yv=mv+"(?:"+gv()+")?",Cv=new RegExp("^"+hv+"$|^"+yv+"$","i");var $v={formatExtension:function(e,t,r){return"".concat(e).concat(r.ext()).concat(t)}};function wv(e,t,r,n){if(r=r?function(){for(var e=1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(;e<r.length;){if(r[e])for(var a in r[e])r[0][a]=r[e][a];e++}return r[0]}({},$v,r):$v,n=new Du(n),e.country&&"001"!==e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";n.selectNumberingPlan(e.countryCallingCode)}var a,o=n.countryCallingCode(),i=r.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?Ev(a=xv(i,e.carrierCode,"NATIONAL",n,r),e.ext,n,r.formatExtension):"";case"INTERNATIONAL":return i?(a=xv(i,null,"INTERNATIONAL",n,r),Ev(a="+".concat(o," ").concat(a),e.ext,n,r.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(i);case"RFC3966":return function(e){var t=e.number,r=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(r?";ext="+r:"")}({number:"+".concat(o).concat(i),ext:e.ext});case"IDD":if(!r.fromCountry)return;var l=function(e,t,r,n,a){var o=Gu(n,a.metadata);if(o===r){var i=xv(e,t,"NATIONAL",a);return"1"===r?r+" "+i:i}var l=function(e,t,r){var n=new Du(r);return n.selectNumberingPlan(e,t),n.defaultIDDPrefix()?n.defaultIDDPrefix():fv.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,void 0,a.metadata);if(l)return"".concat(l," ").concat(r," ").concat(xv(e,null,"INTERNATIONAL",a))}(i,e.carrierCode,o,r.fromCountry,n);if(!l)return;return Ev(l,e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function xv(e,t,r,n,a){var o,i,l=(o=n.formats(),i=e,function(e,t){for(var r=0;r<e.length;){if(t(e[r]))return e[r];r++}}(o,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==i.search(t))return!1}return Ku(i,e.pattern())}));return l?vv(e,l,{useInternationalFormat:"INTERNATIONAL"===r,withNationalPrefix:!l.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix}):e}function Ev(e,t,r,n){return t?n(e,t,r):e}function kv(e){return kv="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},kv(e)}function Lv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Sv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lv(Object(r),!0).forEach(function(t){Iv(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Iv(e,t,r){return(t=Pv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mv(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pv(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pv(e){var t=function(e,t){if("object"!=kv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=kv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==kv(t)?t:t+""}var Tv=function(){return Mv(function e(t,r,n){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]&&!r)throw new TypeError("`metadata` argument not passed");if(Tu(r)&&Tu(r.countries)){n=r;var a=t;if(!Nv.test(a))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=cv(a,void 0,void 0,void 0,n);if(t=o.countryCallingCode,!(r=o.number))throw new Error("Invalid `number` argument passed: too short")}if(!r)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof r)throw new TypeError("`nationalNumber` argument must be a string");Wu(n);var i=function(e,t){var r,n,a=new Du(t);_v(e)?(r=e,a.selectNumberingPlan(r),n=a.countryCallingCode()):n=e;return{country:r,countryCallingCode:n}}(t,n),l=i.country,d=i.countryCallingCode;this.country=l,this.countryCallingCode=d,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}},[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:rv(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,r){if(void 0===t&&(t={}),r=new Du(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return qu(e.phone||e.nationalNumber,e.country,r);if(e.countryCallingCode&&r.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 function(e,t,r){return t=t||{},(r=new Du(r)).selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes()?void 0!==ev(e,t,r.metadata):Ku(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Du(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return ev(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return wv(this,e,t?Sv(Sv({},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)}}])}(),_v=function(e){return/^[A-Z]{2}$/.test(e)};var Nv=/^\+\d+$/;function Ov(e){return Ov="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},Ov(e)}function Av(e,t,r){return t=jv(t),function(e,t){if(t&&("object"==Ov(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,Fv()?Reflect.construct(t,r||[],jv(e).constructor):t.apply(e,r))}function Rv(e){var t="function"==typeof Map?new Map:void 0;return Rv=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,r)}function r(){return function(e,t,r){if(Fv())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Dv(a,r.prototype),a}(e,arguments,jv(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Dv(r,e)},Rv(e)}function Fv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fv=function(){return!!e})()}function Dv(e,t){return Dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dv(e,t)}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jv(e)}var Bv=function(){function e(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=Av(this,e,[t]),Object.setPrototypeOf(r,e.prototype),r.name=r.constructor.name,r}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&&Dv(e,t)}(e,Rv(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),Vv=new RegExp("(?:"+gv()+")$","i");var Hv={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 zv(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Wv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wv(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Wv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Uv(e){for(var t,r="",n=zv(e.split(""));!(t=n()).done;){r+=Gv(t.value,r)||""}return r}function Gv(e,t,r){if("+"===e){if(t)return;return"+"}return function(e){return Hv[e]}(e)}var Yv="(["+nv+"]|[\\-\\.\\(\\)]?)",Zv=new RegExp("^\\+"+Yv+"*["+nv+"]"+Yv+"*$","g"),qv=new RegExp("^("+("["+nv+"]+((\\-)*["+nv+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+nv+"])*")+"\\.?$","g"),Kv="tel:",Xv=";phone-context=";function Qv(e,t){var r,n=t.extractFormattedPhoneNumber,a=function(e){var t=e.indexOf(Xv);if(t<0)return null;var r=t+15;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}(e);if(!function(e){return null===e||0!==e.length&&(Zv.test(e)||qv.test(e))}(a))throw new Bv("NOT_A_NUMBER");if(null===a)r=n(e)||"";else{r="","+"===a.charAt(0)&&(r+=a);var o,i=e.indexOf(Kv);o=i>=0?i+4:0;var l=e.indexOf(Xv);r+=e.substring(o,l)}var d=r.indexOf(";isub=");if(d>0&&(r=r.substring(0,d)),""!==r)return r}var Jv=new RegExp("[++"+nv+"]"),ef=new RegExp("[^"+nv+"#]+$");function tf(e,t,r){if(t=t||{},r=new Du(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry)){if(t.v2)throw new Bv("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var n=function(e,t,r){var n=Qv(e,{extractFormattedPhoneNumber:function(e){return function(e,t,r){if(!e)return;if(e.length>250){if(r)throw new Bv("TOO_LONG");return}if(!1===t)return e;var n=e.search(Jv);if(n<0)return;return e.slice(n).replace(ef,"")}(e,r,t)}});if(!n)return{};if(!function(e){return e.length>=2&&Cv.test(e)}(n))return function(e){return bv.test(e)}(n)?{error:"TOO_SHORT"}:{};var a=function(e){var t=e.search(Vv);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(Vv),a=1;a<n.length;){if(n[a])return{number:r,ext:n[a]};a++}}(n);if(a.ext)return a;return{number:n}}(e,t.v2,t.extract),a=n.number,o=n.ext,i=n.error;if(!a){if(t.v2){if("TOO_SHORT"===i)throw new Bv("TOO_SHORT");throw new Bv("NOT_A_NUMBER")}return{}}var l=function(e,t,r,n){var a,o=cv(Uv(e),void 0,t,r,n.metadata),i=o.countryCallingCodeSource,l=o.countryCallingCode,d=o.number;if(l)n.selectNumberingPlan(l);else{if(!d||!t&&!r)return{};n.selectNumberingPlan(t,r),t&&(a=t),l=r||Gu(t,n.metadata)}if(!d)return{countryCallingCodeSource:i,countryCallingCode:l};var s=sv(Uv(d),a,n),c=s.nationalNumber,u=s.carrierCode,v=dv(l,{nationalNumber:c,metadata:n});v&&(a=v,"001"===v||n.selectNumberingPlan(a));return{country:a,countryCallingCode:l,countryCallingCodeSource:i,nationalNumber:c,carrierCode:u}}(a,t.defaultCountry,t.defaultCallingCode,r),d=l.country,s=l.nationalNumber,c=l.countryCallingCode,u=l.countryCallingCodeSource,v=l.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Bv("INVALID_COUNTRY");return{}}if(!s||s.length<2){if(t.v2)throw new Bv("TOO_SHORT");return{}}if(s.length>17){if(t.v2)throw new Bv("TOO_LONG");return{}}if(t.v2){var f=new Tv(c,s,r.metadata);return d&&(f.country=d),v&&(f.carrierCode=v),o&&(f.ext=o),f.__countryCallingCodeSource=u,f}var p=!!(t.extended?r.hasSelectedNumberingPlan():d)&&Ku(s,r.nationalNumberPattern());return t.extended?{country:d,countryCallingCode:c,carrierCode:v,valid:p,possible:!!p||!(!0!==t.extended||!r.possibleLengths()||!qu(s,d,r)),phone:s,ext:o}:p?function(e,t,r){var n={country:e,phone:t};r&&(n.ext=r);return n}(d,s,o):{}}function rf(e){return rf="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},rf(e)}function nf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function af(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(r),!0).forEach(function(t){of(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function of(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=rf(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=rf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lf(e){return lf="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},lf(e)}function df(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=lf(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=lf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],d=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(d=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(e){s=!0,a=e}finally{try{if(!d&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uf(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uf(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 uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vf(e){var t,r,n,a=cf(Array.prototype.slice.call(e),4),o=a[0],i=a[1],l=a[2],d=a[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,i&&"string"!=typeof i){if(!Tu(i))throw new Error("Invalid second argument: ".concat(i));l?(r=i,n=l):n=i}else d?(r=l,n=d):(r=void 0,n=l),i&&(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?df(Object(r),!0).forEach(function(t){sf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({defaultCountry:i},r));return{text:t,options:r,metadata:n}}function ff(e){return ff="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},ff(e)}function pf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pf(Object(r),!0).forEach(function(t){hf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ff(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ff(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mf(e,t,r){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,r)&&(t=gf(gf({},t),{},{defaultCountry:void 0}));try{return function(e,t,r){return tf(e,af(af({},t),{},{v2:!0}),r)}(e,t,r)}catch(e){if(!(e instanceof Bv))throw e}}function bf(){var e=vf(arguments);return mf(e.text,e.options,e.metadata)}function yf(e){return yf="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},yf(e)}function Cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cf(Object(r),!0).forEach(function(t){wf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=yf(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xf(){var e=vf(arguments),t=e.text,r=e.options,n=e.metadata,a=mf(t,r=$f($f({},r),{},{extract:!1}),n);return a&&a.isValid()||!1}function Ef(){return Iu(bf,arguments)}function kf(){return Iu(xf,arguments)}const Lf=({state:e,dispatch:t})=>{const r=Kc(),n=Lu(),{otpLoginStatus:o,identifier:l,error:s,loginMethod:c}=e,[u,f]=d(!1),[p,g]=d(!1),h="sms"===c,m=h?n.submitOTP:r.submitOTP,b=h?n.cancelLogin:r.cancelLogin,y=h?n.resendSmsOTP:r.resendEmailOTP,C="verifying_otp"===o,$="success"===o,w=i(()=>{if(!l||!h)return l;try{const e=Ef(l);return e?e.formatInternational():l}catch{return l}},[l,h]);v(()=>{"otp_sent"===o&&f(!1),"expired_otp"!==o&&"max_attempts_reached"!==o||g(!0)},[o]);return a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:b,showHeaderText:!1}),a.createElement(Xe,null,a.createElement(Xe,{gap:6},h?a.createElement(Ll,{width:60,height:60,color:ut("colors.brand.base")}):a.createElement(yl,{width:60,height:60,color:ut("colors.brand.base")}),a.createElement(Xe,{gap:0},a.createElement(Vo.H4,{fontWeight:"normal",styles:{textAlign:"center"}},"Please enter the code sent to"),a.createElement(Vo.H4,{styles:{textAlign:"center"}},l&&(h?w:a.createElement(Tl,{email:l}))))),a.createElement(Jd,{originName:h?"sms":"email",pinLength:6,isPending:C||u,isSuccess:$,onChange:()=>{t({type:"RESET_OTP_ERROR"})},onComplete:m,errorMessage:u?"":s??""},a.createElement(Jd.RetryContent,null,p&&a.createElement(xi,{variant:"text",onPress:()=>{f(!0),y(),g(!1)},label:"Request a new code"})))))};const Sf=({state:e,dispatch:t})=>{const{cancelLogin:r}=function(){const e=$u(),t=Kc(),r=Lu();return e.isMfaActive?{cancelLogin:e.cancelLogin}:r.isSmsLoginActive?{cancelLogin:r.cancelLogin}:{cancelLogin:t.cancelLogin}}(),{otpLoginStatus:n,identifier:o,loginMethod:i}=e;v(()=>{"device_approved"===n&&t({type:"OTP_SENT"})},[n]);const l="sms"===i;return a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:r,showHeaderText:!1}),a.createElement(Xe,{gap:6},a.createElement(Pl,{width:60,height:60,color:ut("colors.brand.base")}),a.createElement(Vo.H4,{styles:{textAlign:"center"}},"Please register this device to continue."),a.createElement(Xe,{gap:0},a.createElement(Vo,{styles:{textAlign:"center",lineHeight:1.8}},"We sent a device registration link to"),a.createElement(Je,{gap:2},a.createElement(Vo,{styles:{textAlign:"center",fontWeight:"600"}},l?"your phone":o),a.createElement("button",{className:Ee({cursor:"pointer"}),onClick:r},a.createElement(bl,{height:18,width:18,color:ut("colors.brand.base")})))),a.createElement(Ve,{mt:4},a.createElement(Vo,{styles:{textAlign:"center"}},"This quick one-time approval will help keep your account secure."))))},If=({state:e})=>{const{identifier:t,loginMethod:r}=e,n="sms"===r,o=i(()=>{if(!t||!n)return t;try{const e=Ef(t);return e?e.formatInternational():t}catch{return t}},[t,n]);return a.createElement(a.Fragment,null,a.createElement(iu,{showHeaderText:!1}),a.createElement(Xe,{gap:8},a.createElement(ko,{width:40,height:40,color:ut("colors.brand.base")}),a.createElement(Xe,{gap:1},a.createElement(Vo,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"You have successfully logged in"),t&&a.createElement(Vo,{fontWeight:"semibold",styles:{textAlign:"center"}},o))))};function Mf(){const e=$u(),t=Kc(),r=Lu();return e.isMfaActive?{submitMFA:e.submitMFA,lostDevice:e.lostDevice,submitRecoveryCode:e.submitRecoveryCode,cancelLogin:e.cancelLogin}:r.isSmsLoginActive?{submitMFA:r.submitMFA,lostDevice:r.lostDevice,submitRecoveryCode:r.submitRecoveryCode,cancelLogin:r.cancelLogin}:{submitMFA:t.submitMFA,lostDevice:t.lostDevice,submitRecoveryCode:t.submitRecoveryCode,cancelLogin:t.cancelLogin}}const Pf=({state:e,dispatch:t})=>{const{submitMFA:r,cancelLogin:n,lostDevice:o}=Mf(),{otpLoginStatus:i,error:l}=e,d="mfa_verifying"===i,s="success"===i;return a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:n,showHeaderText:!1}),a.createElement(Xe,null,a.createElement(Xe,{gap:6},a.createElement(xl,{width:60,height:60,color:ut("colors.brand.base")}),a.createElement(Vo.H4,{styles:{textAlign:"center",fontWeight:"normal"}},"Please enter the 6-digit code from your authenticator app.")),a.createElement(Jd,{originName:"mfa",pinLength:6,isPending:d,isSuccess:s,onChange:()=>{t({type:"RESET_OTP_ERROR"})},onComplete:r,errorMessage:l??""}),a.createElement(xi,{label:"I lost my device",variant:"text",textStyle:"neutral",onPress:o,disabled:d,size:"sm"})))},Tf=({state:e,dispatch:t})=>{const{submitRecoveryCode:r}=Mf(),{otpLoginStatus:n,error:o}=e,i="recovery_code_verifying"===n,l="success"===n;v(()=>{l&&t({type:"LOGIN_SUCCESS"})},[l]);return a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:()=>{t({type:"MFA_REQUIRED"})},showHeaderText:!1}),a.createElement(Xe,null,a.createElement(Xe,{gap:6},a.createElement(xl,{width:60,height:60,color:ut("colors.brand.base")}),a.createElement(Vo.H4,{styles:{textAlign:"center",fontWeight:"normal"}},"Enter your recovery code to log in.")),i?a.createElement(lt,{h:12},a.createElement(Mo,{size:36,strokeWidth:4})):a.createElement(a.Fragment,null,a.createElement(xd,{"aria-label":"8-character code",attr:{size:35},placeholder:"8-character code",onChange:e=>{t({type:"RESET_OTP_ERROR"}),8===e.length&&r(e)},alignText:"center",errorMessage:o??"",disabled:i}),a.createElement(Io,{label:"Two-Factor Authentication will be disabled.",variant:"warning"})),!i&&!l&&a.createElement(xi,{label:"I lost my recovery code",variant:"text",textStyle:"neutral",onPress:()=>{t({type:"LOST_RECOVERY_CODE"})},disabled:i||l,size:"sm"})))},_f=({dispatch:e})=>{const t=Dc().getConfig(),{appName:r}=t?.theme??{};return a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:()=>{e({type:"LOST_DEVICE"})},showHeaderText:!1}),a.createElement(Xe,{gap:6,px:6},a.createElement(xl,{width:60,height:60,color:ut("colors.brand.base")}),a.createElement(Xe,null,a.createElement(Vo.H4,{styles:{textAlign:"center"}},"Contact ",r," support"),a.createElement(Vo,{styles:{textAlign:"center"}},"For help recovering your account, please contact the ",r," support team."))))};function Nf(){return"undefined"!=typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!=typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function Of(){return"undefined"!=typeof navigator&&/android/i.test(navigator.userAgent)||Nf()}const Af=({dispatch:e})=>{const{address:t,isConnected:r}=x(),{disconnect:n}=E(),o=s(null),[l,u]=d(null),[f,p]=d(null),g=s(!1),[h,m]=d(null),{Icon:b}=Jc[Hc.WALLETCONNECT],y="undefined"!=typeof window&&Of(),C=i(()=>{if("undefined"==typeof window)return null;if(!y)return null;const e=Dc();return z({adapters:[e.wagmiAdapter],networks:Tc,projectId:e.projectId})},[y]),$=c(()=>{if(!g.current&&C){g.current=!0,p(null);try{r&&n(),C.open()}catch(e){const t=e;p(t?.message||"Failed to open wallet selection")}}},[C,r,n]),w=c(async()=>{if(!g.current){g.current=!0,p(null);try{r&&(n(),await new Promise(e=>setTimeout(e,100)));const e=Tc.map(e=>Number(e.id)),t=await H.init({projectId:Dc().projectId,chains:e,optionalChains:e,showQrModal:!1});o.current=t,vu(t),t.on("display_uri",e=>{u(e)}),await t.connect();const a=t.accounts;a&&a.length>0&&m(a[0])}catch(t){const r=t,n=(r?.message||"").toLowerCase();if(n.includes("user rejected")||n.includes("user denied")||n.includes("rejected the request")||n.includes("user cancelled")||n.includes("user canceled"))return void e({type:"GO_TO_LOGIN"});p(r?.message||"Failed to connect wallet")}}},[r,n,e]);v(()=>{y?$():w()},[y,$,w]),v(()=>{y&&r&&t&&e({type:"WALLETCONNECT_CONNECTED",address:t})},[y,r,t,e]),v(()=>{!y&&h&&e({type:"WALLETCONNECT_CONNECTED",address:h})},[y,h,e]);const k=()=>{o.current&&(o.current.disconnect().catch(()=>{}),o.current=null,vu(null)),C&&C.close(),e({type:"GO_TO_LOGIN"})};return f?a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:k,showHeaderText:!1}),a.createElement(Xe,{gap:6,pt:4,alignItems:"center"},a.createElement(b,{width:60,height:60}),a.createElement(Xe,{gap:2,alignItems:"center",px:7},a.createElement(Vo.H4,{styles:{textAlign:"center"}},"Connection Failed"),a.createElement(Vo,{variant:"error",styles:{textAlign:"center"}},f)))):y?a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:k,showHeaderText:!1}),a.createElement(Xe,{gap:6,pt:4,alignItems:"center"},a.createElement(b,{width:60,height:60}),a.createElement(Xe,{gap:2,alignItems:"center",px:7},a.createElement(Vo.H4,{styles:{textAlign:"center"}},"Select your wallet"),a.createElement(Vo,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Choose a wallet app to connect")))):a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:k,showHeaderText:!1}),a.createElement(Xe,{gap:6,pt:4,alignItems:"center"},l?a.createElement(Fs,{eyeRadius:8,value:l,qrStyle:"dots",size:262,logoImage:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuOTE2NzUgNy41MTYwNUM4LjgzMzM4IDMuNjgxMzQgMTUuMTgzNSAzLjY4MTM0IDE5LjEwMDEgNy41MTYwNUwxOS41NzE1IDcuOTc3NTZDMTkuNzY3MyA4LjE2OTI5IDE5Ljc2NzMgOC40ODAxNiAxOS41NzE1IDguNjcxOUwxNy45NTkgMTAuMjUwNkMxNy44NjExIDEwLjM0NjUgMTcuNzAyNCAxMC4zNDY1IDE3LjYwNDQgMTAuMjUwNkwxNi45NTU4IDkuNjE1NTRDMTQuMjIzNCA2Ljk0MDM1IDkuNzkzNDMgNi45NDAzNSA3LjA2MTA5IDkuNjE1NTRMNi4zNjY0MyAxMC4yOTU3QzYuMjY4NTEgMTAuMzkxNSA2LjEwOTc2IDEwLjM5MTUgNi4wMTE4NCAxMC4yOTU3TDQuMzk5MzcgOC43MTY5M0M0LjIwMzU0IDguNTI1MiA0LjIwMzU0IDguMjE0MzMgNC4zOTkzNyA4LjAyMjZMNC45MTY3NSA3LjUxNjA1Wk0yMi40MzQ5IDEwLjc4MTFMMjMuODcgMTIuMTg2MUMyNC4wNjU4IDEyLjM3NzkgMjQuMDY1OCAxMi42ODg3IDIzLjg3IDEyLjg4MDVMMTcuMzk5IDE5LjIxNjJDMTcuMjAzMiAxOS40MDc5IDE2Ljg4NTcgMTkuNDA3OSAxNi42ODk4IDE5LjIxNjJDMTYuNjg5OCAxOS4yMTYyIDE2LjY4OTggMTkuMjE2MiAxNi42ODk4IDE5LjIxNjJMMTIuMDk3MSAxNC43MTk2QzEyLjA0ODIgMTQuNjcxNiAxMS45Njg4IDE0LjY3MTYgMTEuOTE5OCAxNC43MTk2TDcuMzI3MjEgMTkuMjE2MkM3LjEzMTM4IDE5LjQwNzkgNi44MTM4NyAxOS40MDggNi42MTgwNCAxOS4yMTYyQzYuNjE4MDQgMTkuMjE2MiA2LjYxODA0IDE5LjIxNjIgNi42MTgwNCAxOS4yMTYyTDAuMTQ2ODc0IDEyLjg4MDRDLTAuMDQ5NTc5IDEyLjY4ODcgLTAuMDQ5NTc5IDEyLjM3NzggMC4xNDY4NzQgMTIuMTg2MUwxLjU4MTk4IDEwLjc4MUMxLjc3NzgxIDEwLjU4OTIgMi4wOTUzMiAxMC41ODkyIDIuMjkxMTUgMTAuNzgxTDYuODgzOTIgMTUuMjc3N0M2LjkzMjg4IDE1LjMyNTYgNy4wMTIyNiAxNS4zMjU2IDcuMDYxMjIgMTUuMjc3N0M3LjA2MTIxIDE1LjI3NzcgNy4wNjEyMiAxNS4yNzc3IDcuMDYxMjIgMTUuMjc3N0wxMS42NTM4IDEwLjc4MUMxMS44NDk2IDEwLjU4OTIgMTIuMTY3MSAxMC41ODkyIDEyLjM2MjkgMTAuNzgxQzEyLjM2MjkgMTAuNzgxIDEyLjM2MjkgMTAuNzgxIDEyLjM2MjkgMTAuNzgxTDE2Ljk1NTcgMTUuMjc3N0MxNy4wMDQ3IDE1LjMyNTYgMTcuMDg0IDE1LjMyNTYgMTcuMTMzIDE1LjI3NzdMMjEuNzI1NyAxMC43ODExQzIxLjkyMTUgMTAuNTg5MyAyMi4yMzkgMTAuNTg5MyAyMi40MzQ5IDEwLjc4MTFaIiBmaWxsPSIjM0I5OUZDIi8+Cjwvc3ZnPgo=",logoHeight:52,logoWidth:52,logoPadding:12,style:{borderRadius:16},quietZone:12}):a.createElement(lt,{width:"294px",height:"294px"},a.createElement(cl,{width:286,height:286,borderRadius:16,backgroundColor:"surface.secondary"})),a.createElement(Xe,{gap:2,alignItems:"center",px:7},a.createElement(Vo.H4,{styles:{textAlign:"center"}},"Scan with your wallet"),a.createElement(Vo,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Open your mobile wallet and scan this QR code to connect"))))},Rf=({state:e})=>{const{cancelLogin:t,startSmsLogin:r}=Lu(),[n,o]=d(""),[i,l]=d(null),s="sms"===e.loginMethod&&"sending"===e.otpLoginStatus,c=("sms"===e.loginMethod?e.error:void 0)||i||void 0;return s?a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:t}),a.createElement(tt,{size:"2"}),a.createElement(Mo,{size:60,strokeWidth:6,neutral:!0})):a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:t}),a.createElement(Xe,{w:"full",gap:10,mt:2,px:7},a.createElement(Xe,{gap:10},a.createElement(Ll,{width:60,height:60,color:ut("colors.brand.base")}),a.createElement(Vo.H4,{fontWeight:"medium",styles:{textAlign:"center"}},"Enter phone number")),a.createElement(pd,{onChange:e=>{l(null),o(e.trim())},onSubmit:()=>{kf(n)?r(n):l(zc.InvalidPhoneNumber)},disableSubmit:()=>!(n.length>0&&kf(n)),containerStyles:{width:"100%"},errorMessage:c,showPlaceholder:!0})))};function Ff(e){const{handleSuccess:t,handleError:r}=Yc(),n=s(null),a=c(()=>{const a=Dc().loginWithFarcaster();n.current=a,a.on("channel",t=>{e({type:"FARCASTER_CHANNEL_RECEIVED",url:t.url}),Of()&&"undefined"!=typeof window&&window===window.top&&(window.location.href=t.url)}),a.on("success",r=>{a.then(n=>{const a={method:"farcaster",didToken:n,farcaster:{fid:r.fid,username:r.username,displayName:r.displayName,pfpUrl:r.pfpUrl,bio:r.bio}};e({type:"FARCASTER_SUCCESS",username:r.username}),t(a)}).catch(()=>{e({type:"FARCASTER_SUCCESS",username:r.username})})}),a.on("failed",t=>{e({type:"FARCASTER_FAILED",error:t?.message||"Farcaster login failed"}),r(t instanceof Error?t:new Error("Farcaster login failed"))})},[e,t,r]);return{startFarcasterLogin:a,cancel:c(()=>{n.current&&(n.current.emit(sc.Cancel),n.current=null),e({type:"GO_TO_LOGIN"})},[e]),retry:c(()=>{n.current&&(n.current.emit(sc.Cancel),n.current=null),e({type:"SELECT_FARCASTER"})},[e])}}let Df=0;const jf="usableReactClipboardHook";async function Bf(e){var t;if(e)try{await navigator.clipboard.writeText(e)}catch{const r=document.activeElement,n=document.createElement("textarea");n.dataset[jf]="clipboard-"+ ++Df,n.style.position="absolute",n.style.left="-2147483647em",n.setAttribute("readonly","true"),document.body.appendChild(n),n.value=e;const a=(document.getSelection()?.rangeCount??NaN)>0&&document.getSelection()?.getRangeAt(0);if(/ipad|ipod|iphone/i.test(navigator.userAgent)){const e=n.contentEditable;n.contentEditable="true";const t=document.createRange();t.selectNodeContents(n);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(t),n.setSelectionRange(0,999999),n.contentEditable=e}else n.select();document.execCommand("copy"),a&&(document.getSelection()?.removeAllRanges(),document.getSelection()?.addRange(a)),r?.focus&&(t=document.activeElement,t?.dataset?.[jf])&&r.focus()}}const Vf=({state:e,dispatch:t})=>{const{startFarcasterLogin:r,cancel:n}=Ff(t),[o,i]=d(!1),{farcasterUrl:l}=e;v(()=>{r()},[]);return a.createElement(a.Fragment,null,a.createElement(iu,{onPressBack:n,showHeaderText:!1}),a.createElement(Xe,{gap:6,pt:4,alignItems:"center"},l?a.createElement(Fs,{eyeRadius:8,value:l,qrStyle:"dots",size:262,eyeColor:nu,logoImage:"https://bafybeidkwvzd7ae6jsi23qztuuhvpextec5qks7dv2weww6c7olgeqqx7q.ipfs.dweb.link",logoHeight:52,logoWidth:52,logoPadding:12,style:{borderRadius:16},quietZone:12}):a.createElement(lt,{width:"294px",height:"294px"},a.createElement(cl,{width:286,height:286,borderRadius:16,backgroundColor:"surface.secondary"})),a.createElement(Xe,{gap:2,alignItems:"center",px:7},a.createElement(Vo.H4,{styles:{textAlign:"center"}},"Sign in with Farcaster"),a.createElement(Vo,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Scan the QR code with your phone or enter the link on a mobile browser")),l&&a.createElement(xi,{variant:"neutral",size:"sm",onPress:async()=>{l&&(await Bf(l),i(!0),setTimeout(()=>i(!1),2e3))},label:o?"Copied!":"Copy link"},a.createElement(xi.LeadingIcon,null,o?a.createElement(Po,null):a.createElement(hl,null)))))},Hf=({state:e})=>{const{farcasterUsername:t}=e;return a.createElement(a.Fragment,null,a.createElement(iu,{showHeaderText:!1}),a.createElement(Xe,{gap:8},a.createElement(ko,{width:48,height:48,color:nu}),a.createElement(Xe,{gap:1},a.createElement(Vo.H4,{styles:{textAlign:"center"}},"You're all set"),a.createElement(Vo,{fontColor:"text.tertiary",styles:{textAlign:"center"}},"Successfully signed in",t?` with ${t}`:""))))},zf=({state:e,dispatch:t})=>{const{cancel:r,retry:n}=Ff(t),{error:o}=e;return a.createElement(a.Fragment,null,a.createElement(iu,{showHeaderText:!1}),a.createElement(Xe,{gap:8},a.createElement(ml,{width:48,height:48,color:ut("colors.negative.darker")}),a.createElement(Xe,{gap:1},a.createElement(Vo.H4,{styles:{textAlign:"center"}},"Request Denied"),a.createElement(Vo,{fontColor:"text.tertiary",styles:{textAlign:"center"}},o||"Farcaster login was denied or failed")),a.createElement(Je,{gap:2,w:"full"},a.createElement(xi,{variant:"primary",expand:!0,onPress:n,label:"Try again"}),a.createElement(xi,{variant:"neutral",expand:!0,onPress:r,label:"Cancel"}))))};const Wf=new I;let Uf=!1;function Gf({state:e,dispatch:t,showFooterLogo:r,isModal:n}){const o=function(e){const[t,r]=d(!1);return v(()=>{function t(e){r(e.matches)}const n=matchMedia(e);return n.addEventListener("change",t),r(n.matches),()=>n.removeEventListener("change",t)},[e]),t}("(max-width: 768px)");return a.createElement(qc,{dispatch:t},a.createElement(ku,{dispatch:t},a.createElement(Cu,{dispatch:t},a.createElement(nl,{isWidget:!0,fullscreen:n&&o},a.createElement(Xe,{width:"full",minWidth:"380px"},(()=>{switch(e.view){case"login":default:return a.createElement(lu,{dispatch:t,state:e});case"sms_login":return a.createElement(Rf,{state:e});case"wallet_pending":return e.selectedProvider?a.createElement(hu,{key:`wallet-${e.selectedProvider}`,provider:e.selectedProvider,state:e,dispatch:t}):a.createElement(lu,{dispatch:t,state:e});case"walletconnect_pending":return a.createElement(Af,{key:"walletconnect",dispatch:t});case"oauth_pending":return e.selectedProvider?a.createElement(wu,{key:`oauth-${e.selectedProvider}`,provider:e.selectedProvider,state:e,dispatch:t}):a.createElement(lu,{dispatch:t,state:e});case"additional_providers":return a.createElement(xu,{dispatch:t});case"otp_pending":return a.createElement(Lf,{state:e,dispatch:t});case"device_verification":return a.createElement(Sf,{state:e,dispatch:t});case"mfa_pending":return a.createElement(Pf,{state:e,dispatch:t});case"recovery_code":return a.createElement(Tf,{state:e,dispatch:t});case"lost_recovery_code":return a.createElement(_f,{dispatch:t});case"login_success":return a.createElement(If,{state:e});case"farcaster_pending":return a.createElement(Vf,{state:e,dispatch:t});case"farcaster_success":return a.createElement(Hf,{state:e});case"farcaster_failed":return a.createElement(zf,{state:e,dispatch:t})}})(),a.createElement(Wi,{showLogo:r}))))))}const Yf={position:"fixed",top:0,left:0,right:0,bottom:0,backdropFilter:"blur(0.375rem)",WebkitBackdropFilter:"blur(0.375rem)",display:"flex",alignItems:"flex-start",justifyContent:"center",zIndex:9999},Zf={position:"relative"};function qf({displayMode:e="inline",isOpen:t=!0,onClose:r,closeOnSuccess:n=!1,closeOnClickOutside:o=!1,wallets:i=[],enableFarcaster:l=!1,onSuccess:s,onError:c,onAccountChanged:u,onReady:p}){const[g,h]=f(bu,mu),[m,b]=d(()=>null===Dc().getConfig()),{setColors:y,setRadius:C}=(({onError:e})=>{const[t,r]=d(null);return v(()=>{r(document?.documentElement)},[]),{setColors:(r,n)=>{const a=Ds[r].base,o=Ds[r].dark;let i;try{for(const[e,o]of Object.entries(a))i=Bs(n,o),t?.style.setProperty(`--${r}-${e}`,i);for(const[e,a]of Object.entries(o))i="string"==typeof a?"#"+js(n,a):Bs(n,a),t?.style.setProperty(`--${r}-${e}-dark`,i)}catch(t){e?.(t)}},setFont:r=>{try{t?.style.setProperty("--brand-font",r)}catch(t){e?.(t)}},setRadius:(r,n)=>{try{t?.style.setProperty(`--${r}-radius`,n)}catch(t){e?.(t)}}}})({}),[$,w]=d(null),[x,E]=d(!1);v(()=>{!function(){if(Uf||"undefined"==typeof document)return;const e=document.createElement("style");e.id="magic-widget-styles",e.textContent=':root{--made-with-panda:\'🐼\'}*,::backdrop,:after,:before{--blur: ;--brightness: ;--contrast: ;--grayscale: ;--hue-rotate: ;--invert: ;--saturate: ;--sepia: ;--drop-shadow: ;--backdrop-blur: ;--backdrop-brightness: ;--backdrop-contrast: ;--backdrop-grayscale: ;--backdrop-hue-rotate: ;--backdrop-invert: ;--backdrop-opacity: ;--backdrop-saturate: ;--backdrop-sepia: ;--scroll-snap-strictness:proximity;--border-spacing-x:0;--border-spacing-y:0;--translate-x:0;--translate-y:0;--rotate:0;--skew-x:0;--skew-y:0;--scale-x:1;--scale-y:1}html{--primary:black}:where(:root,:host){--cUJial:1/1;--joSgrv:4/3;--dXjFHz:3/4;--gqpqIn:16/9;--lixcAJ:18/5;--hSWVDT:1.618/1;--dzOvWn:none;--drrWcF:cubic-bezier(0.4,0,0.2,1);--hgfxJf:linear;--hCLxzh:cubic-bezier(0.4,0,1,1);--byCBno:cubic-bezier(0,0,0.2,1);--gSAVQW:cubic-bezier(0.4,0,0.2,1);--fuVfvZ:50ms;--fVBMec:100ms;--mUhz:150ms;--cWTXGg:200ms;--cifMdM:300ms;--goNNlj:400ms;--bPXfWW:500ms;--dRPRGd:100;--dooANa:200;--fVSZDc:300;--llFanx:400;--leEsKL:500;--hmvyHR:600;--ghWdwL:700;--janwPd:800;--bvnjIx:900;--ekeMrS:1;--jyTpIu:1.25;--ipEwfb:1.375;--lomeBD:1.5;--kwMYUX:1.625;--dVGecO:2;--dywXPJ: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";--guQdxN:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--gxQaAd:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--jrseCf:-0.05em;--glKTKc:-0.025em;--knaPyh:0em;--jwdARF:0.025em;--eUSVTv:0.05em;--lhSeXO:0.1em;--kWjDjq:0.5rem;--loLyxA:0.75rem;--eRgJXV:0.875rem;--daFrau:1rem;--gKFLFQ:1.125rem;--gFqSQX:1.25rem;--dllMvh:1.5rem;--jaXqkI:1.875rem;--cLogVb:2.25rem;--izMrAu:3rem;--hdlyfR:3.75rem;--bDBsww:4.5rem;--fwhTbD:6rem;--lkGdGW:8rem;--bUWovs:0 1px 2px 0 rgb(0 0 0/0.05);--cDhNnp:0 1px 3px 0 rgb(0 0 0/0.1),0 1px 2px -1px rgb(0 0 0/0.1);--jMKUKK:0 4px 6px -1px rgb(0 0 0/0.1),0 2px 4px -2px rgb(0 0 0/0.1);--kNVcRA:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--bnVgij:0 20px 25px -5px rgb(0 0 0/0.1),0 8px 10px -6px rgb(0 0 0/0.1);--IghlV:0 25px 50px -12px rgb(0 0 0/0.25);--gmhFEB:inset 0 2px 4px 0 rgb(0 0 0/0.05);--aZLOC:4px;--jDYzax:8px;--kMMDaR:12px;--dyIDQb:16px;--TtVDs:24px;--btncja:40px;--esAhmv:64px;--fcTUxn:0rem;--dacYEG:0.25rem;--ebuyxV:0.5rem;--bYDCFo:0.75rem;--hIimNX:1rem;--fFrqVq:1.25rem;--gGIQOF:1.5rem;--eDRUVY:1.75rem;--flZesP:2rem;--djiiAi:2.25rem;--ieMJEa:2.5rem;--cBFxYr:2.75rem;--uyqLg:3rem;--hXmVPi:3.5rem;--mYCWo:4rem;--jgejxp:5rem;--iYEvIx:6rem;--dzpWeZ:7rem;--fifqnK:8rem;--faFCyS:9rem;--bxwoov:10rem;--huPzrf:11rem;--hgdKvb:12rem;--cZMJbQ:13rem;--iXfUeA:14rem;--vWSpd:15rem;--gtqdrN:16rem;--hNtIEu:18rem;--kqIPsj:20rem;--wdMRQ:24rem;--gEfgCY:0.125rem;--jJIQbV:0.375rem;--cqwGG:0.625rem;--dhUgfD:0.875rem;--bJeTGz:spin 1s linear infinite;--cxTetH:ping 1s cubic-bezier(0,0,0.2,1) infinite;--jjLJjo:pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;--eUTuJH:bounce 1s infinite;--bLinLB:currentColor;--qLIrn:#000;--RiClf:#fff;--edNtiq:rgb(0 0 0/0);--cQacUT:#fff1f2;--fFtaKH:#ffe4e6;--eUoFZM:#fecdd3;--bPMUxN:#fda4af;--bvZVli:#fb7185;--jGTTif:#f43f5e;--iVPyxk:#e11d48;--fRnMVl:#be123c;--hxzBoW:#9f1239;--esXPMX:#881337;--epiLsK:#4c0519;--hPYfGc:#fdf2f8;--ioAkJk:#fce7f3;--eyVWNz:#fbcfe8;--nXIqK:#f9a8d4;--hGgStN:#f472b6;--dviDWY:#ec4899;--kUZZAj:#db2777;--gKbLdu:#be185d;--UhnuV:#9d174d;--hYEIxc:#831843;--dPgAHx:#500724;--kpTESD:#fdf4ff;--jfJgr:#fae8ff;--gZeVto:#f5d0fe;--gfHpEZ:#f0abfc;--dSTUoK:#e879f9;--cZwoAv:#d946ef;--jPvANs:#c026d3;--iVXUZd:#a21caf;--hYKnEO:#86198f;--hfmHQz:#701a75;--cYPdae:#4a044e;--ksTgfC:#faf5ff;--iCdJRO:#f3e8ff;--dWAXWh:#e9d5ff;--jcWlLI:#d8b4fe;--eLlnzT:#c084fc;--jRGBpu:#a855f7;--fmdPtN:#9333ea;--kszdjo:#7e22ce;--kMigIv:#6b21a8;--eDhKZa:#581c87;--eadxYH:#3b0764;--elZfLV:#f5f3ff;--jcWAkV:#ede9fe;--gHfMHa:#ddd6fe;--jSzuYT:#c4b5fd;--jDVPUQ:#a78bfa;--bzTONN:#8b5cf6;--ktyKIO:#7c3aed;--cpwJBL:#6d28d9;--foWeJc:#5b21b6;--iApNaV:#4c1d95;--cfTfyk:#2e1065;--kbclAu:#eef2ff;--gAzkHe:#e0e7ff;--gRHwoJ:#c7d2fe;--iYtjYI:#a5b4fc;--jCTsMf:#818cf8;--ujwXi:#6366f1;--LrIEN:#4f46e5;--cSdwoM:#4338ca;--irwviH:#3730a3;--kyiiSG:#312e81;--hgSANP:#1e1b4b;--glmLoi:#eff6ff;--bYrJpO:#dbeafe;--hoTvPd:#bfdbfe;--bMEoOM:#93c5fd;--hIEEwj:#60a5fa;--cgpxvS:#3b82f6;--hwRjVh:#2563eb;--bUCcUQ:#1d4ed8;--golFsv:#1e40af;--LWyse:#1e3a8a;--eJQij:#172554;--dyXAhp:#ecfeff;--eeWoox:#cffafe;--fnHbwe:#a5f3fc;--cLmYYf:#67e8f9;--bpLSHw:#22d3ee;--kcNzIt:#06b6d4;--llymQa:#0891b2;--iJeksb:#0e7490;--jTKpqw:#155e75;--hrqmSx:#164e63;--bcqAnE:#083344;--jqQOis:#f0fdfa;--hsCMHs:#ccfbf1;--jcJhxj:#99f6e4;--czjDVi:#5eead4;--kfgCt:#2dd4bf;--eWbmzo:#14b8a6;--gGhHpf:#0d9488;--cIdNe:#0f766e;--catTvB:#115e59;--gMpZsw:#134e4a;--bnTNlF:#042f2e;--jVPfey:#ecfdf5;--gSyYHy:#d1fae5;--dOyJRJ:#a7f3d0;--jOMcLk:#6ee7b7;--bLsBkr:#34d399;--hLFUdS:#10b981;--eHFFod:#059669;--kHSYhE:#047857;--iuBcgT:#065f46;--dfsLBy:#064e3b;--jJEloz:#022c22;--hXozqf:#f0fdf4;--iDDIAz:#dcfce7;--khfuXU:#bbf7d0;--hypAVx:#86efac;--wGfza:#4ade80;--jdlUVz:#22c55e;--kGNHsU:#16a34a;--hXXNqx:#15803d;--bAQeLK:#166534;--khvUij:#14532d;--cbdKOS:#052e16;--dhEleJ:#f7fee7;--gFFbyh:#ecfccb;--fjFsBy:#d9f99d;--cfdGZz:#bef264;--bxLPEk:#a3e635;--jIFNBh:#84cc16;--imGeEy:#65a30d;--fietcz:#4d7c0f;--crovfQ:#3f6212;--kCitcN:#365314;--gEQkrg:#1a2e05;--cLFWMs:#fefce8;--kxGpio:#fef9c3;--cbZZGT:#fef08a;--fwcFBW:#fde047;--hUTJsd:#facc15;--loWpng:#eab308;--cTpZLL:#ca8a04;--gnsFGO:#a16207;--ByZWN:#854d0e;--dVBFRQ:#713f12;--iLqZUR:#422006;--kVxzTd:#fffbeb;--jZPQXp:#fef3c7;--hCWpXC:#fde68a;--bCKrrD:#fcd34d;--wuHbc:#fbbf24;--fLErTZ:#f59e0b;--doKQUm:#d97706;--iDUBNj:#b45309;--iOnUJo:#92400e;--cObWdp:#78350f;--frxesg:#451a03;--NQTLQ:#fff7ed;--JsfmQ:#ffedd5;--gBjjlD:#fed7aa;--QMCLK:#fdba74;--ijESlZ:#fb923c;--czilMg:#f97316;--iqZpKT:#ea580c;--cGCJla:#c2410c;--dUhLNN:#9a3412;--jzgOMQ:#7c2d12;--igBpVl:#431407;--bINrJX:#fef2f2;--fKgVwH:#fee2e2;--bLdQLg:#fecaca;--fMUQaR:#fca5a5;--hwCQam:#f87171;--iYfRb:#ef4444;--hzqKEw:#dc2626;--lMavl:#b91c1c;--bLDcWa:#991b1b;--fNuclL:#7f1d1d;--jHDsLG:#450a0a;--kltIHN:#fafafa;--hzpwrB:#f5f5f5;--lbfZji:#e5e5e5;--fcfsVb:#d4d4d4;--kPKNfw:#a3a3a3;--eQKgRp:#737373;--isAJIW:#525252;--ctAduP:#404040;--bqFRBA:#262626;--gHaUMp:#171717;--fhFoEQ:#0a0a0a;--NNaBX:#fafaf9;--juQpUX:#f5f5f4;--jjsRgY:#e7e5e4;--hxarzx:#d6d3d1;--dmyqvy:#a8a29e;--bAfQNX:#78716c;--boIrZY:#57534e;--kRLBRt:#44403c;--iKBpmW:#292524;--gYiPFv:#1c1917;--kshUcS:#0c0a09;--dhFdXS:#fafafa;--dGhjba:#f4f4f5;--efoVXJ:#e4e4e7;--ljOqfc:#d4d4d8;--cXLRGr:#a1a1aa;--kcllNK:#71717a;--kBsYKt:#52525b;--gqwJsQ:#3f3f46;--ylgyn:#27272a;--hCKAFG:#18181b;--dtmsQb:#09090b;--dcmCJN:#f9fafb;--ePJGsV:#f3f4f6;--dnVpUm:#e5e7eb;--bMJKSL:#d1d5db;--jSiOQk:#9ca3af;--iqXjOJ:#6b7280;--gPiTqa:#4b5563;--fnXooz:#374151;--fKIyfA:#1f2937;--ejwTdZ:#111827;--jympbw:#030712;--oXohi:#19191A;--gyKIIT:#252525;--eSphig:#303030;--lccBJR:#383838;--lfBdGG:#474747;--kcXOlL:#f8fafc;--kbRDfH:#f1f5f9;--ivwbEU:#e2e8f0;--dpNMHJ:#cbd5e1;--dtmoEy:#94a3b8;--jCZJgj:#64748b;--hWEhFw:#475569;--cQVSIl:#334155;--hVLXiS:#1e293b;--cQdIlH:#0f172a;--iFDdka:#020617;--izlnso:#F8F8FA;--eRgqfH:#EDEDF3;--KVTme:#E2E0E5;--dkJQoR:#CCCAD0;--ktVcUk:#B6B4BA;--gLQfHD:#97959A;--cFFIOa:#77767A;--cJEYlt:#4E4D52;--jSQkQM:#18171A;--hLOWYd:#EDEBFF;--bVhZHK:#CAC2FF;--jYNVEH:#A799FF;--emDeSE:#8875FF;--aNrqF:#6851FF;--gzCdzi:#5D40EA;--dnMpXj:#522FD4;--cLqlCI:#4421C3;--kOWhzF:#3512B2;--dNokDG:#E3FAF3;--fIEsRl:#BAF5E3;--kuAyOg:#90F0D3;--hUmnXD:#48DEB1;--bqMKvC:#00CC8F;--dmcSJh:#00AA77;--hXYYGc:#00875F;--domHof:#007753;--iaiNla:#006647;--dDaZDc:#FFEAE5;--bYjnoT:#FFC3B3;--jcIHwm:#FF9B80;--iuhUtx:#FE7C58;--ejlFbU:#FC5C30;--cEtSNL:#E84718;--jITmVe:#D43100;--hhKBFJ:#C12E02;--cWOmog:#AD2B03;--loKVxo:#FCF4E5;--crbXrL:#FEE5BD;--eXQnMG:#FFD594;--dYBcpd:#EDBD72;--gFpsJY:#DBA550;--iXcedr:#BF8832;--ouKZq:#A36B14;--kXQUUR:#97630C;--cpjBQQ:#8A5A03;--dpZiSB:#EBF0FE;--bZrrvu:#AFC4FF;--cGNUcb:#7398FF;--cGWcRs:#5482FB;--dosFxZ:#346BF7;--bXKOaS:#295EE7;--cFhqHz:#1E50D6;--cvyBYk:#1344C7;--dcVeER:#0737B8;--bMxFwZ:#e0f2fe;--vPNZS:#bae6fd;--bdmqGz:#7dd3fc;--bduzvQ:#38bdf8;--bKRccx:#0ea5e9;--ujkFq:#0284c7;--bbFNlX:#0369a1;--RWYCI:#075985;--bztBjp:#0c4a6e;--iNVpnc:#082f49;--cemPJF:#FFFFFF;--iTjmdu:#FFFFFF;--fFEzoc:0.0625rem;--fCuVLy:0.09375rem;--hiYFxW:0.125rem;--ixNmpi:0.125rem;--bewZvn:0.25rem;--kLOfAE:0.375rem;--dxfumK:0.5rem;--UXfgJ:0.75rem;--bphCwb:1rem;--eougbK:1.5rem;--kkkBVq:9999px;--cDRSmz:var(--button-radius,9999px);--insZoq:var(--container-radius,1.75rem);--hxxJkr:var(--input-radius,0.875rem);--kTdGYg:0rem;--cCUBeV:0.25rem;--gsUKim:0.5rem;--jshnNX:0.75rem;--juMtMc:1rem;--beDnSR:1.25rem;--eUDwWi:1.5rem;--hTQaBT:1.75rem;--cAmzCM:2rem;--fzzdix:2.25rem;--dDnfaV:2.5rem;--cpjPHA:2.75rem;--ckODEv:3rem;--WLola:3.25rem;--hTmzdp:3.5rem;--gFjjJU:3.75rem;--gANXGP:4rem;--htnoem:5rem;--tQYHK:6rem;--kcGldO:7rem;--gMkTEx:8rem;--lcknGR:9rem;--kveXIc:10rem;--gsriJI:11rem;--bPcliI:12rem;--Mxqsr:13rem;--hZfkST:14rem;--fUWaSi:15rem;--bSilTO:16rem;--fnTGst:18rem;--dAFdyM:20rem;--jxszKr:24rem;--hghuKL:0.125rem;--drtIxO:0.375rem;--siblR:0.625rem;--hSPYxQ:0.875rem;--izvCpj:20rem;--aTIGG:24rem;--kMQJUV:28rem;--dyNKmL:32rem;--ToPgI:36rem;--btoFLe:42rem;--esBjqP:48rem;--hrOPNc:56rem;--krbtsN:64rem;--cRFSXi:72rem;--fQSwCT:80rem;--iQceEA:90rem;--jAesVz:65ch;--khWApH:100%;--eOXrSu:min-content;--jNBRbM:max-content;--UhpHH:fit-content;--eomHOU:640px;--iujnmj:768px;--gThSgZ:1024px;--cssArG:1280px;--jESPPc:1536px;--exvVve:2147483647;--ikokJA:640px;--kSvAmr:768px;--uwdhN:1024px;--eyfDzy:1280px;--dgHGKE:1536px;--jlmaOs:var(--surface-primary,var(--iTjmdu));--Iycdi:var(--surface-secondary,var(--izlnso));--crPUBo:var(--surface-tertiary,var(--eRgqfH));--kJiqPO:var(--surface-quaternary,var(--KVTme));--iagzVE:var(--text-primary,var(--jSQkQM));--YyYdq:var(--text-secondary,var(--cJEYlt));--kFAOBM:var(--text-tertiary,var(--cFFIOa));--iodyUC:var(--text-quaternary,var(--cemPJF));--DLYOY:var(--neutral-primary,var(--ktVcUk));--gfUEye:var(--neutral-secondary,var(--KVTme));--qsPVo:var(--neutral-tertiary,var(--eRgqfH));--kyjnqS:var(--neutral-quaternary,var(--izlnso));--iAjuTO:var(--brand-lightest,var(--hLOWYd));--gzHfkH:var(--brand-lighter,var(--jYNVEH));--gBHQLb:var(--brand-base,var(--aNrqF));--etZyR:var(--brand-darker,var(--dnMpXj));--enVPNY:var(--brand-darkest,var(--kOWhzF));--itfeCm:var(--dNokDG);--qkXv:var(--kuAyOg);--gHzsmL:var(--bqMKvC);--cOyFst:var(--hXYYGc);--fKbyps:var(--iaiNla);--dxaFjW:var(--dDaZDc);--dnTPVf:var(--jcIHwm);--bWuoqD:var(--ejlFbU);--iqIoUR:var(--jITmVe);--iZlvjY:var(--cWOmog);--ldafrz:var(--loKVxo);--leQkZS:var(--eXQnMG);--jmTbXW:var(--gFpsJY);--dLLYUY:var(--ouKZq);--dZIprB:var(--cpjBQQ);--gaBiDO:var(--dpZiSB);--fxHMpn:var(--cGNUcb);--fQFmqL:var(--dosFxZ);--dUMcYZ:var(--cFhqHz);--dntrJc:var(--dcVeER)}[data-color-mode=light]{--jlmaOs:var(--surface-primary,var(--iTjmdu));--Iycdi:var(--surface-secondary,var(--izlnso));--crPUBo:var(--surface-tertiary,var(--eRgqfH));--kJiqPO:var(--surface-quaternary,var(--KVTme));--iagzVE:var(--text-primary,var(--jSQkQM));--YyYdq:var(--text-secondary,var(--cJEYlt));--kFAOBM:var(--text-tertiary,var(--cFFIOa));--iodyUC:var(--text-quaternary,var(--cemPJF));--DLYOY:var(--neutral-primary,var(--ktVcUk));--gfUEye:var(--neutral-secondary,var(--KVTme));--qsPVo:var(--neutral-tertiary,var(--eRgqfH));--kyjnqS:var(--neutral-quaternary,var(--izlnso));--iAjuTO:var(--brand-lightest,var(--hLOWYd));--gzHfkH:var(--brand-lighter,var(--jYNVEH));--gBHQLb:var(--brand-base,var(--aNrqF));--etZyR:var(--brand-darker,var(--dnMpXj));--enVPNY:var(--brand-darkest,var(--kOWhzF));--itfeCm:var(--dNokDG);--qkXv:var(--kuAyOg);--gHzsmL:var(--bqMKvC);--cOyFst:var(--hXYYGc);--fKbyps:var(--iaiNla);--dxaFjW:var(--dDaZDc);--dnTPVf:var(--jcIHwm);--bWuoqD:var(--ejlFbU);--iqIoUR:var(--jITmVe);--iZlvjY:var(--cWOmog);--ldafrz:var(--loKVxo);--leQkZS:var(--eXQnMG);--jmTbXW:var(--gFpsJY);--dLLYUY:var(--ouKZq);--dZIprB:var(--cpjBQQ);--gaBiDO:var(--dpZiSB);--fxHMpn:var(--cGNUcb);--fQFmqL:var(--dosFxZ);--dUMcYZ:var(--cFhqHz);--dntrJc:var(--dcVeER) }[data-color-mode=dark]{--jlmaOs:var(--surface-primary-dark,var(--oXohi));--Iycdi:var(--surface-secondary-dark,var(--gyKIIT));--crPUBo:var(--surface-tertiary-dark,var(--eSphig));--kJiqPO:var(--surface-quaternary-dark,var(--lccBJR));--iagzVE:var(--text-primary-dark,var(--cemPJF));--YyYdq:var(--text-secondary-dark,var(--text-secondary-dark,color-mix(in srgb,var(--cemPJF) 72%,transparent)));--kFAOBM:var(--text-tertiary-dark,var(--text-tertiary-dark,color-mix(in srgb,var(--cemPJF) 44%,transparent)));--iodyUC:var(--text-quaternary-dark,var(--jSQkQM));--DLYOY:var(--neutral-primary-dark,var(--neutral-primary-dark,color-mix(in srgb,var(--cemPJF) 16%,transparent)));--gfUEye:var(--neutral-secondary-dark,var(--neutral-secondary-dark,color-mix(in srgb,var(--cemPJF) 12%,transparent)));--qsPVo:var(--neutral-tertiary-dark,var(--neutral-tertiary-dark,color-mix(in srgb,var(--cemPJF) 8%,transparent)));--kyjnqS:var(--neutral-quaternary-dark,var(--neutral-quaternary-dark,color-mix(in srgb,var(--cemPJF) 5%,transparent)));--iAjuTO:var(--brand-lightest-dark,var(--brand-lightest-dark,color-mix(in srgb,var(--jYNVEH) 25%,transparent)));--gzHfkH:var(--brand-lighter-dark,var(--brand-lighter-dark,color-mix(in srgb,var(--jYNVEH) 66%,transparent)));--gBHQLb:var(--brand-base-dark,var(--jYNVEH));--etZyR:var(--brand-darker-dark,var(--hLOWYd));--enVPNY:var(--brand-darkest-dark,var(--hLOWYd));--itfeCm:color-mix(in srgb,var(--kuAyOg) 8%,transparent);--qkXv:color-mix(in srgb,var(--kuAyOg) 72%,transparent);--gHzsmL:var(--kuAyOg);--cOyFst:var(--bqMKvC);--fKbyps:var(--bqMKvC);--dxaFjW:color-mix(in srgb,var(--jcIHwm) 8%,transparent);--dnTPVf:color-mix(in srgb,var(--jcIHwm) 72%,transparent);--bWuoqD:var(--jcIHwm);--iqIoUR:var(--ejlFbU);--iZlvjY:var(--ejlFbU);--ldafrz:color-mix(in srgb,var(--eXQnMG) 8%,transparent);--leQkZS:color-mix(in srgb,var(--eXQnMG) 72%,transparent);--jmTbXW:var(--eXQnMG);--dLLYUY:var(--gFpsJY);--dZIprB:var(--gFpsJY);--gaBiDO:color-mix(in srgb,var(--cGNUcb) 8%,transparent);--fxHMpn:color-mix(in srgb,var(--cGNUcb) 72%,transparent);--fQFmqL:var(--cGNUcb);--dUMcYZ:var(--dosFxZ);--dntrJc:var(--dosFxZ) }@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:0.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(0.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,0.2,1)}}@keyframes fadeIn{0%{opacity:0}}@keyframes fadeOut{to{opacity:0}}@keyframes scaleIn{0%{opacity:0}to{opacity:1;scale:1}}@keyframes scaleOut{0%{opacity:1;scale:1}to{opacity:0;scale:0.9}}@keyframes slideIn{0%{opacity:0;transform:translateY(1.25rem)}to{opacity:1;transform:translateY(0)}}@keyframes slideOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(1.25rem)}}@keyframes slideRight{0%{left:-150%}to{left:175%}}@keyframes moveRight{0%{transform:translateX(0rem)}80%{transform:translateX(1.25rem)}to{transform:translateX(1.2rem)}}@keyframes moveLeft{0%{transform:translateX(0rem)}80%{transform:translateX(-1.25rem)}to{transform:translateX(-1.2rem)}}@keyframes animateSpinnerSmall{0%{stroke-dasharray:0.4,60;stroke-dashoffset:0}50%{stroke-dasharray:36,60;stroke-dashoffset:-14}to{stroke-dasharray:36,60;stroke-dashoffset:-52}}@keyframes animateSpinnerLarge{0%{stroke-dasharray:0.875,175;stroke-dashoffset:0}50%{stroke-dasharray:78.75,131.25;stroke-dashoffset:-31}to{stroke-dasharray:0.875,175;stroke-dashoffset:-158}}@keyframes popIn{0%{scale:0}to{scale:1}}@keyframes popOut{0%{scale:1}to{scale:0}}.JIGdQ{font-size:0.75rem;line-height:1.25rem;font-weight:var(--llFanx)}.caxCit{font-size:0.875rem}.AEdnq,.caxCit{line-height:1.5rem;font-weight:var(--llFanx)}.AEdnq{font-size:1rem}.ggkuag{font-size:1.125rem;line-height:1.75rem}.KOyzo,.ggkuag{font-weight:var(--llFanx)}.KOyzo{font-size:0.75rem;line-height:1.25rem}.bqPPXX{font-size:0.875rem}.bqPPXX,.iBKgpR{line-height:1.5rem;font-weight:var(--llFanx)}.iBKgpR{font-size:1rem}.dVmflu{font-size:0.875rem}.dVmflu,.hkxWuN{line-height:1.5rem;font-family:var(--gxQaAd)}.hkxWuN{font-size:1rem}.eIvlPr{font-size:1.125rem;line-height:1.75rem;font-family:var(--gxQaAd)}.ZlnHu{line-height:3.25rem}.ZlnHu,.dNxFtD{font-size:2.5rem;font-weight:var(--janwPd)}.dNxFtD{line-height:3.5rem}.bcvUKl{font-size:2.25rem;line-height:3rem;font-weight:var(--janwPd)}.fDZIkY,.gRVYOk{font-size:2rem;line-height:2.75rem;font-weight:var(--janwPd)}.cqslnx{font-size:1.5rem;line-height:2.25rem;font-weight:var(--ghWdwL)}.cFGrCm,.cSachX{font-size:1.25rem;line-height:2rem;font-weight:var(--ghWdwL)}.brKaZa,.efWsLj{font-size:1.125rem;line-height:1.75rem;font-weight:var(--ghWdwL)}.buUIbR{font-size:0.625rem}.buUIbR,.hkuMfQ{letter-spacing:0.06rem;text-transform:uppercase;line-height:0.75rem;font-weight:var(--hmvyHR)}.hkuMfQ{font-size:0.75rem}@media screen and (min-width: 64rem){.KOyzo{font-size:0.875rem}.KOyzo,.bqPPXX{line-height:1.5rem}.bqPPXX{font-size:1rem}.iBKgpR{font-size:1.125rem;line-height:1.75rem}.ZlnHu{font-size:5rem;line-height:5.5rem}.bcvUKl{font-size:4rem;line-height:4.75rem}.fDZIkY{font-size:3rem;line-height:4rem}.cSachX{font-size:1.5rem;line-height:2.25rem}.brKaZa{font-size:1.25rem;line-height:2rem}.buUIbR{font-size:0.75rem;line-height:0.75rem}}.fEVEmD{display:inline-flex}.jTWvec{position:relative}.iPfXWl{box-sizing:border-box}.dKuXep{border-radius:var(--cDRSmz)}.lbmNld{border:thin solid}.bZRhvx{cursor:pointer}.hWbyxU{transition:all 0.1s ease}.diIxfU{outline:var(--dzOvWn)}.efvJEH{will-change:transform,opacity}.kFYpif{background:none}.Axmbx{height:var(--fzzdix)}.jGqtLL{padding-block:var(--jJIQbV)}.fzoqgU{padding-inline:var(--hIimNX)}.fzpabD{height:var(--ckODEv)}.fzoAXm{padding-block:var(--bYDCFo)}.fznPAm{padding-inline:var(--gGIQOF)}.fznKiw{height:var(--gFjjJU)}.fzoqgp{padding-block:var(--hIimNX)}.cPRswh{background:var(--gBHQLb)}.dTWubc{background:var(--iAjuTO)}.edEltL{background:var(--cOyFst)}.gDSsAr{background:var(--iqIoUR)}.hoYZte{background:var(--qsPVo)}.foDtdn{background:var(--edNtiq)}.AxjtU{padding:var(--fcTUxn)}.gsynQv{height:fit-content}.hZLYvv{background:#ffffff14}.kXEOGR{backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.hmegja{background:var(--jSQkQM)}.cERSkX{pointer-events:none}.dMMuNs{width:var(--khWApH)}.bYJPrM{border-radius:var(--kkkBVq)}.fPSBzf{display:flex}.gzBMzy{text-align:center}.cbkwRf{white-space:nowrap}.bunRPm{color:var(--jlmaOs)}.rbsQX{color:var(--etZyR)}.flFbEq{color:var(--iagzVE)}.ecosjt{color:var(--gBHQLb)}.jiGUEY{color:var(--cemPJF)}.deYFWh{color:var(--gHzsmL)}.iATurT{color:var(--iqIoUR)}.drDZIi{color:var(--kFAOBM)}.fQAFQl{outline-offset:var(--gEfgCY)}.AxmbG{width:var(--fzzdix)}.pitAi{padding:var(--jJIQbV)}.fzpabA{width:var(--ckODEv)}.Axikr{padding:var(--bYDCFo)}.fznKij{width:var(--gFjjJU)}.AxhTk{padding:var(--hIimNX)}.gsynQA{width:fit-content}.DyZUq{border-radius:10px}.lnVchA{background:var(--itfeCm)}.gCOtIw{background:var(--dxaFjW)}.fmhFEF{background:var(--ldafrz)}.kRLutI{background:var(--Iycdi)}.gIDZqd{transition:transform 0.2s ease,opacity 0.2s ease}.dLFxYe{text-align:left}.kkElPi{color:var(--enVPNY)}.jsoGzi{color:var(--fKbyps)}.bKCYEC{color:var(--iZlvjY)}.jnqkcv{color:var(--dZIprB)}.buzaNI{color:var(--YyYdq)}.kypCfT{text-transform:uppercase}.fkBQxR{letter-spacing:0.06rem}.gcohXo{border-radius:1rem}.fyplMZ{cursor:default}.ioQIUn{height:10.75rem}.ioQIUI{width:10.75rem}.dXscgu{overflow:hidden}.eLuUPu{overflow:visible}.qbege{gap:var(--fcTUxn)}.pvuga{gap:var(--hIimNX)}.pnxsH{gap:var(--fFrqVq)}.pezuA{gap:var(--gGIQOF)}.flMYjT{box-shadow:0px 1px 2px rgba(189,189,189,0.3)}.fMKpTj{box-shadow:8px 8px 48px rgba(16,15,17,0.14)}.fzrkhE{padding-inline:var(--flZesP)}.fznPzH{padding-block:var(--gGIQOF)}.fzpabv{padding:var(--uyqLg)}.kdFIjO{flex:1 1 0%}.bKPWST{max-width:29.125rem}.iZstbk{opacity:0.3}.dMMuMP{height:var(--khWApH)}.kbJfZC{background:var(--jlmaOs)}.gWzzAr{overflow:auto}.fLVKVB{scrollbar-width:none}.djBLSD{height:100vh}.dnFyWD{width:100vw}.eJvMDV{scale:1}.AxiEa{padding:var(--ebuyxV)}.Axmvo{padding:var(--flZesP)}.eAZrqn{height:auto}.dNXUzv{max-width:25rem}.coifUy{margin-inline:auto}.jeqdDQ{border-radius:var(--insZoq)}.jieZfE{pointer-events:all}.hdAwi{position:fixed}.csnEyP{--backdrop-blur:blur(0.375rem)}.crPXqh{backdrop-filter:var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-saturate) var(--backdrop-sepia);-webkit-backdrop-filter:var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-saturate) var(--backdrop-sepia)}.deAqKV{max-width:100rem}.hkIdtl{margin:0 auto}.cORRFI{max-width:none}.fDWVKV{border-radius:var(--hxxJkr)}.JcTPa{transition:all linear 120ms}.hYZFkb{width:100%}.fzozCt{height:var(--dDnfaV)}.fzoNwz{padding-block:var(--ebuyxV)}.AxjtB{margin:var(--fcTUxn)}.iQHTXh{min-width:var(--dDnfaV)}.dvMkiN{text-align:right}.dpjQla{transition:opacity linear 120ms}.dsySWt{text-wrap:wrap}.gsGAeM{color:var(--jmTbXW)}.fNCCNu{padding:20px}.AYoSK{z-index:var(--exvVve)}.kVkdUe{box-shadow:4px 8px 20px 0px rgba(0,0,0,0.15)}.dSXBgr{height:1rem}.dSXBfY{width:1rem}.eAZrpM{width:auto}.AYoSP{width:var(--jNBRbM)}.hQiMIj{max-width:var(--fnTGst)}.jXSfKH{position:absolute}.fzoAWH{padding-inline:var(--bYDCFo)}.eeKCgv{border-radius:var(--UXfgJ)}.Oxeoj{box-shadow:0px 4px 20px 0px rgba(0,0,0,0.10)}.ddgODW{display:none}.cGFOJB{display:block}.izPYod{transform:translateX(-50%) translateY(calc(-100% - 0.75rem))}.cPkmfo{transform:translateX(10%) translateY(calc(-100% - 0.75rem))}.cXTUEh{transform:translateX(-10%) translateY(calc(-100% - 0.75rem))}.iqmoHh{transform:translateX(calc(-100% - 0.75rem)) translateY(-50%)}.emrspq{transform:translateX(calc(-100% - 0.75rem)) translateY(-75%)}.zFGjL{transform:translateX(calc(-100% - 0.75rem)) translateY(-25%)}.ddBtbm{transform:translateX(calc(100% + 0.75rem)) translateY(-50%)}.kSbzJl{transform:translateX(calc(100% + 0.75rem)) translateY(-75%)}.hdzMuI{transform:translateX(calc(100% + 0.75rem)) translateY(-25%)}.jSRWPC{transform:translateX(-50%) translateY(calc(100% + 0.75rem))}.depkmP{transform:translateX(10%) translateY(calc(100% + 0.75rem))}.eqVTfG{transform:translateX(-10%) translateY(calc(100% + 0.75rem))}.fzoWka{width:var(--fnTGst)}.AxhSM{height:var(--juMtMc)}.kmFTYl{transform:translateX(-50%) translateY(0.75rem)}.hFunKo{transform:translateX(-50%) translateY(-0.75rem)}.AxhTf{width:var(--juMtMc)}.fzqACo{height:var(--bPcliI)}.kwEkgw{transform:translateX(-0.75rem) translateY(-50%)}.LwqbV{transform:translateX(0.75rem) translateY(-50%)}.jHxAip{background:linear-gradient(#00CC8F,#6851FF)}.hWgZTB{inset:var(--fcTUxn)}.dKLBtz{gap:10px}.cYdhWw{display:grid}.jZwGWY{fill:var(--RiClf)}.hGQgmY{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jcgYsf{--mix-background:color-mix(in srgb,var(--iagzVE) 20%,transparent);background:var(--mix-background,var(--iagzVE))}.jDVJRS{transform:translateY(0)}.japwPO{transform:translateY(100%)}.bTJmyy{transition:transform 0.3s}.fClTjd{border-top-left-radius:var(--eougbK);border-top-right-radius:var(--eougbK)}.jvjRt{box-shadow:0px -12px 56px 0px rgba(119,118,122,0.15)}.fzozCb{z-index:10}.cFLICG{transform:translateX(-100%)}.byXyn{transform:translateX(100%)}.khiFRn{transform:translateX(0)}.fzoCXr{width:var(--dAFdyM)}.fjzPTS{border-top-right-radius:var(--bphCwb);border-bottom-right-radius:var(--bphCwb)}.dXSjkM{border-top-left-radius:var(--bphCwb);border-bottom-left-radius:var(--bphCwb)}.eVHffH{--thickness:1px}.bjGQXr{gap:var(--cqwGG)}.cpnrKk{box-shadow:true}.fgrICX{background:#ffc439}.fnjBrW{border:1px solid transparent}.jGoIIY{padding-block:var(--cqwGG)}.lopGBb{stroke-width:2.5}.pThsL{gap:var(--dacYEG)}.fzoxFp{width:var(--fUWaSi)}.jonSOI{flex:0 0 auto}.lkYUqX{border-radius:9999px}.cUqkcP{animation:popIn 150ms}.ksKAre{animation:popOut 150ms}.ZlVyD{animation:spin 1.5s linear infinite}.emRNBL{stroke:var(--iagzVE)}.elaIWr{transform-origin:center center}.bkLsBk{gap:var(--jJIQbV)}.kRRXUg{stroke:var(--gBHQLb)}.jAmlUX{stroke:var(--jlmaOs)}.kYoAXZ{stroke-opacity:0.12}.jQNDvc{animation:spin 1s linear infinite}.dITaCb{border-radius:2rem}.bKdxLy{transform:skewX(-20deg)}.chmhDV{overflow-wrap:break-word}.bWVcuP{word-break:break-word}.llnClk{background:var(--kyjnqS)}.fRIRtM{border-radius:var(--dxfumK)}.dWKkCe{min-width:15rem}.mDYqS{width:40%}.dZeDlI{border-left:thin solid}.Axmvg{height:var(--cAmzCM)}.pCmHl{gap:var(--bYDCFo)}.bGySga{-webkit-user-select:none;user-select:none}.GzWLz{-webkit-user-select:auto;user-select:auto}.fMSoJ{filter:blur(10px)}.rHLwk{text-wrap:nowrap}.fzoYeD{width:22px}.fzoYeI{height:22px}.iiBJGO{font-variant:no-contextual}.dJRcZd{transition:none}.pKjuE{gap:var(--ebuyxV)}.fznYYc{width:var(--gANXGP)}.fzozgh{width:var(--htnoem)}.fznYYn{height:var(--gANXGP)}.fzozgi{height:var(--htnoem)}.hYbcjk{width:1.125rem}.hYbciH{height:1.125rem}.dgzwbo{object-fit:cover}.clyxRL{border-start-start-radius:var(--hxxJkr);border-end-start-radius:var(--hxxJkr)}.cMWMBT{border-radius:0}.duralB{transform:rotate(180)}.fznyyO{width:var(--hTmzdp)}.fznyzd{height:var(--hTmzdp)}.faAYXy{max-height:17.5rem}.fzqBIS{width:18px}.fzqBJp{height:18px}.hVpAQY{min-width:var(--kTdGYg)}.cEowv{max-width:30rem}.dGnaHP{caret-color:var(--edNtiq)}.eGizhS{border-radius:0.5rem}.fzoqgI{margin-block:var(--hIimNX)}.iWbCEa{max-width:var(--iQceEA)}.XApuw{overlay:true}.fznycS{height:var(--tQYHK)}.fznycJ{width:var(--tQYHK)}.Axhdq{padding:var(--gGIQOF)}.kInNhr{max-width:393px}.Axhdp{width:var(--eUDwWi)}.enrCNZ{border-radius:60px}.fzoLlM{height:var(--cpjPHA)}.fzoLlH{width:var(--cpjPHA)}.fzozCm{width:var(--dDnfaV)}.AxgJj{height:var(--hTQaBT)}.AxgJE{width:var(--hTQaBT)}.kZwhzw{border-radius:30px}.Axhzu{width:var(--beDnSR)}.Axhzd{height:var(--beDnSR)}.dtwJUe{border-radius:0.375rem}.gNnTtK{border-radius:var(--kLOfAE)}.bnMKLm{color:var(--DLYOY)}.fVXeaF{border-radius:var(--bphCwb)}.bMpqsa{opacity:0.5}.frJqtw{opacity:1}.fzoyvf{width:var(--kveXIc)}.fzoyvs{height:var(--kveXIc)}.dSXzlv{width:6rem}.dSXBCd{width:4rem}.kEPjac{min-height:var(--gANXGP)}.dLESCV{border-radius:0.75rem}.bVQpjJ{border-radius:var(--bewZvn)}.hLsNni{pointer-events:auto}.fGSyrq{transition:background-color 0.2s ease,border-color 0.2s ease}.piqPW{width:var(--siblR)}.pitgX{height:var(--hghuKL)}.mBgaT{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.lfSec{caret:18px}.kEVDGR{check:16px}.dSXBWl{height:3rem}.flFnwR{mult:2.5px}.bUyOMB{display:inline-block}.eOXPNx{max-width:var(--Mxqsr)}.jSqJiD{gap:var(--ieMJEa)}.ljqpme{transition:border-color 0.2s ease}.AxhcS{height:var(--eUDwWi)}.Axikw{width:var(--jshnNX)}.AxijT{height:var(--jshnNX)}.Axjal{padding:var(--dacYEG)}.kyvghW{background:var(--izlnso)}.fyBLPL{background:var(--iTjmdu)}.jqgBXf{box-shadow:0px 4px 20px 0px color-mix(in srgb,var(--jSQkQM) 10%,transparent)}.jIGVye{transition:transform 0.2s ease}.cXjUyC{border-radius:inherit}.fzplPS{height:var(--WLola)}.gnKssF{transition:background 0s}.gNPhbY{transition:background 0.2s ease}.AxjtK{z-index:0}.cgfjYq{background:var(--DLYOY)}.jGqhlT{padding-inline:var(--gEfgCY)}.cBWyVA{transition:background-color 0.2s ease}.iLEfrF{transition:left 0.2s ease}.jYtJnS{stroke-width:4}.fznWHu{width:var(--lcknGR)}.fznWHJ{height:var(--lcknGR)}.fzoAXP{margin-block:var(--bYDCFo)}.kwGEGT{pointer-events:initial}.fNCbQd{height:76px}.jXIVTv{max-width:115px}.hYZFjI{height:100%}.flXdLu{min-width:var(--htnoem)}.pBpid{padding-inline:var(--ieMJEa)}.gtdXBX{width:max-content}.cqBabc{border:thin solid transparent}.jzlacV{height:6.25rem}.evQrdT{--mix-background:color-mix(in srgb,var(--iagzVE) 6%,transparent);background:var(--mix-background,var(--iagzVE))}.bdwxhc{border-radius:52px}.gAFyjk{backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.hYxQqf{height:2.625rem}.hYxQqA{width:2.625rem}.fubjOl{box-shadow:0.125rem 0.125rem 1.5rem color-mix(in srgb,var(--cFFIOa) 15%,transparent)}.eWAJiI{fill:var(--ktVcUk)}.eWyFtu{color:var(--ktVcUk)}.gSVYRP{animation:fadeIn 0.5s,moveRight 1s 0.5s forwards}.kJWAhn{border-radius:50%}.imIknl{height:3.875rem}.imIknm{width:3.875rem}.Axjab{z-index:1}.iAVgSo{animation:fadeIn 0.5s,moveLeft 1s 0.5s forwards}.fznxJj{height:34px}.fznxIY{width:34px}.fzoayX{height:var(--hZfkST)}.fzoayU{width:var(--hZfkST)}.eliKuq{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.fzodHc{padding-block:var(--fFrqVq)}.pBpiF{margin-block:var(--ieMJEa)}.pzYgn{height:250px}.gWDyZg{color:var(--cFFIOa)}.fzozCl{padding:var(--ieMJEa)}.gnCXEd{overflow:scroll}.jsxjhB{width:200px}.hMIFzk{max-width:200px}.gHsxkk{min-width:88px}.gWcfgT{min-width:fit-content}.gVwSKA{min-height:fit-content}.cUIwgI{transition:transform 0.1s}.jrPJbn{width:114px}.fNAzWg{height:48px}.ATFQA{width:7px}.ATFQv{height:7px}.bxgBRd{background:var(--gHzsmL)}.ihDaVZ{--translate-x:var(--gGIQOF)}.cBAuwg{--translate-y:var(--gGIQOF)}.djKBfg{--translate-x:var(--bYDCFo)}.iPNhEZ{--translate-y:var(--bYDCFo)}.BJXMm{min-height:18px}.AORKl{min-width:18px}.AxiZQ{margin:var(--dacYEG)}.rmyfW{gap:var(--flZesP)}.bTqNYb{min-width:380px}.uLMIu{border-radius:14px}.jJQbUA{transform:translate(-50%,-50%)}.fznCZP{padding-inline:var(--eDRUVY)}.eYxvy{stroke-width:8}.iriloe{rotate:90deg}.kBkDOg{scrollbar-width:thin}.fUTAcQ{scrollbar-color:rgba(143,147,153,0.4) transparent}.eGSram{max-height:384px}.fzoNxe{padding-inline:var(--ebuyxV)}.fzoxFy{height:var(--fUWaSi)}.fzqABL{width:var(--bPcliI)}.jrNHos{width:294px}.jrNHnX{height:294px}.plVOb{width:286px}.plVNY{height:286px}.jGeaAw{border-radius:16px}.cLEzBZ{flex:0 0 2}.gAMrck{stroke-width:6}.kSmiQp{align-items:center}.legDhJ{justify-content:center}.bsdAgg{font-weight:var(--hmvyHR)}.gKedlK{border-color:var(--edNtiq)}.lcwbhf{border-color:var(--DLYOY)}.xYowz{font-size:var(--eRgJXV)}.lgBfkU{line-height:1.5rem}.wzdQU{font-size:var(--daFrau)}.xEQJi{font-size:var(--gKFLFQ)}.RiFXn{line-height:1.75rem}.ecsDQq{outline-color:var(--gBHQLb)}.dkFkBb{outline-style:solid}.jUIfTb{outline-width:var(--hiYFxW)}.uLlkq{animation-fill-mode:forwards}.hgoZRe{animation-name:scaleOut}.bXxxmv{animation-duration:150ms}.AMuyK{font-size:var(--loLyxA)}.fznCNG{margin-left:var(--eDRUVY)}.fznDiI{margin-right:var(--eDRUVY)}.kbJfZC{background-color:var(--jlmaOs)}.dRCFAU{align-items:flex-start}.fUfBYX{align-items:flex-end}.fRDJQy{background-color:var(--crPUBo)}.cZtwqS{animation-name:none}.fzpnVC{padding-bottom:var(--fcTUxn)}.bZlPyP{animation-name:scaleIn}.fDIibI{animation-duration:250ms}.qbeer{top:var(--fcTUxn)}.kiKDyH{left:var(--fcTUxn)}.hIekUp{animation-name:fadeIn}.Brknr{animation-duration:400ms}.hdbihI{animation-name:fadeOut}.iYhTva{font-weight:var(--leEsKL)}.foDtdn{background-color:var(--edNtiq)}.hDGJaH{border-style:solid}.lbLLll{border-width:var(--fFEzoc)}.kMhkax{border-color:var(--gfUEye)}.dwaifQ{border-color:var(--bWuoqD)}.hhWyss{font-weight:var(--llFanx)}.xNKXN{font-size:var(--gFqSQX)}.fvBKJs{justify-content:flex-start}.jUJMFv{justify-content:flex-end}.cPRswh{background-color:var(--gBHQLb)}.edEltL{background-color:var(--cOyFst)}.gCeNqG{background-color:var(--dLLYUY)}.gDSsAr{background-color:var(--iqIoUR)}.btsPBS{background-color:var(--kFAOBM)}.hZBAaK{top:0%}.eCaVMz{left:50%}.dlNJxY{right:100%}.eCzFHr{left:100%}.dDihBf{top:50%}.dTRYzG{left:0%}.dRndGF{right:0%}.ktFiky{bottom:0%}.kyGdCf{bottom:var(--fcTUxn)}.jIomzn{right:calc(var(--gGIQOF) * -1)}.eMGDsc{left:calc(var(--gGIQOF) * -1)}.ksWBqx{flex-direction:row}.cMoGaw{grid-template-columns:repeat(6,minmax(0,1fr))}.cxWwua{column-gap:2rem}.cxzifT{row-gap:2rem}.fznPDb{margin-top:var(--gGIQOF)}.iLbQFp{flex-direction:column}.jzuiJt{flex-shrink:0}.fznPCO{padding-top:var(--gGIQOF)}.hWgptE{right:var(--fcTUxn)}.fznPzA{padding-bottom:var(--gGIQOF)}.gSKPcF{justify-content:space-between}.gsLSP{border-block-end-width:var(--thickness)}.kNSbHl{border-color:var(--kJiqPO)}.iFtuvY{outline-color:#ffc439}.jGqhje{margin-top:var(--gEfgCY)}.iWITAz{border-width:var(--hiYFxW)}.OpsJf{border-color:var(--jlmaOs)}.cIFhny{left:-50%}.hhfvpY{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.1),transparent)}.bheJpJ{font-weight:600}.ckDurQ{justify-content:space-around}.bJrRn{border-color:var(--qsPVo)}.kWIjhW{font-family:inherit}.evhJrM{outline-style:none}.fzopUQ{padding-left:var(--hIimNX)}.fzoNFU{padding-right:var(--ebuyxV)}.fzpnWM{padding-left:var(--fcTUxn)}.fzoqim{padding-right:var(--hIimNX)}.jCnIUz{top:55px}.WUSvz{overflow-y:auto}.fzoqir{margin-right:var(--hIimNX)}.fzpofr{margin-right:var(--fcTUxn)}.fzrkfx{margin-top:var(--flZesP)}.fzoqjJ{margin-top:var(--hIimNX)}.kiIPsp{flex-grow:0}.fzoBen{padding-top:var(--bYDCFo)}.eRLFrQ{border-bottom-color:var(--DLYOY)}.ikkoWx{border-bottom-width:1px}.gvTxLc{flex-direction:column-reverse}.kRUpGi{left:var(--djiiAi)}.jXbniH{top:var(--cBFxYr)}.jppWeU{border-width:2px}.hoYZte{background-color:var(--qsPVo)}.dKiwaS{font-weight:var(--ghWdwL)}.hQJXOm{align-items:start}.jgxhLI{border-color:var(--gBHQLb)}.jfQXOb{border-color:var(--kFAOBM)}.fNUXA{outline-color:var(--edNtiq)}.fzoAPu{margin-left:var(--bYDCFo)}.cLWmJb{border-width:1px}.pNAEp{margin-left:calc(var(--dacYEG) * -1)}.fzpbES{margin-right:var(--dacYEG)}.fzoNGh{margin-right:var(--ebuyxV)}.jDRgcp{left:var(--gGIQOF)}.cXMndB{--mix-borderColor:color-mix(in srgb,var(--iagzVE) 10%,transparent);border-color:var(--mix-borderColor,var(--iagzVE))}.boHRSr{border-width:var(--fCuVLy)}.dsEUfT{background-color:var(--hLOWYd)}.kAiqVl{border-width:3px}.jsWSlz{margin-top:-3px}.jbWTdm{margin-right:0.9rem}.jbWSUo{margin-left:0.9rem}.kFJmaE{--mix-backgroundColor:color-mix(in srgb,var(--iagzVE) 1%,transparent)}.ftGyaA,.kFJmaE{background-color:var(--mix-backgroundColor,var(--iagzVE))}.ftGyaA{--mix-backgroundColor:color-mix(in srgb,var(--iagzVE) 5%,transparent)}.fydxLC{--mix-borderColor:color-mix(in srgb,var(--iagzVE) 6%,transparent);border-color:var(--mix-borderColor,var(--iagzVE))}.fjYTfT{bottom:-1px}.bEeUNc{right:-1px}.kQauLJ{align-items:baseline}.fcwWhs{background-color:var(--gfUEye)}.hHdgel{background-color:var(--dnTPVf)}.bbHqQM{grid-template-columns:repeat(2,minmax(0,1fr))}.fzoqjw{padding-top:var(--hIimNX)}.fzoNvZ{margin-bottom:var(--ebuyxV)}.kRLutI{background-color:var(--Iycdi)}.fzoNEP{margin-top:var(--ebuyxV)}.fzoAVA{margin-bottom:var(--bYDCFo)}.iPoSYb{align-self:stretch}.iTUeDg{justify-self:stretch}.XyjJy:is(:disabled,[disabled],[data-disabled]){opacity:0.3}.iFUqYl:is(:disabled,[disabled],[data-disabled]){pointer-events:none}.jrpcxw:before{position:absolute}.heDbSF:before{border-radius:inherit}.dwmXuW:before{opacity:0}.huWYIz:before{transition:opacity 0.1s ease}[data-color-mode=light] .jtDWvE{mix-blend-mode:multiply}[data-color-mode=dark] .gLaBRL{background:#ffffff29}.jNgRkF:before{display:none}[data-color-mode=dark] .hAWTSp{background:var(--iTjmdu)}[data-color-mode=dark] .ehbthU{color:var(--jSQkQM)}[data-color-mode=dark] .kkleQX{color:var(--bWuoqD)}[data-color-mode=dark] .dcESjf{border-block:solid}.iqcWiz::placeholder,.iqcWiz[data-placeholder]{color:var(--kFAOBM)}[data-color-mode=dark] .dSbdfc{background:var(--crPUBo)}.FuZjR:is(:disabled,[disabled],[data-disabled]){opacity:0.8}[data-color-mode=dark] .iuzRWK{background:rgba(0,0,0,.7)}[data-color-mode=dark] .jrIQHe{background:var(--Iycdi)}[data-color-mode=dark] .cDAZzQ{background:var(--jlmaOs)}[data-color-mode=dark] .dUhjQY{background:var(--eSphig)}[data-color-mode=dark] .egesjy{background:var(--lfBdGG)}[data-color-mode=dark] .ixYntQ{fill:var(--cFFIOa)}[data-color-mode=dark] .kmeQgS{color:var(--cFFIOa)}.dLVhZe:before{content:""}.gjcwJg:before{top:var(--fcTUxn)}.WaBms:before{left:var(--fcTUxn)}.dqEIyP:before{right:var(--fcTUxn)}.knajvY:before{bottom:var(--fcTUxn)}.cNKdvI:before{background-image:linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05))}.hSfsjI:before{background-image:linear-gradient(rgba(255,255,255,0.05),rgba(255,255,255,0.05))}[data-color-mode=dark] .cEVFqR{border-width:1px}[data-color-mode=dark] .jCzVrn{border-color:var(--gfUEye)}[data-color-mode=dark] .ccPJnH{border-color:var(--cFFIOa)}[data-color-mode=dark] .dYDocO{background-color:var(--YyYdq)}[data-color-mode=dark] .HKuZu{background-image:linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent)}.fmEGpT::-webkit-scrollbar,.hVrpDN::-webkit-scrollbar-track{background-color:var(--edNtiq)}.jOgXfC:focus-within{outline-offset:var(--gEfgCY)}.keDhFF:focus-within{outline-color:var(--gBHQLb)}.dLOUfk:focus-within{outline-style:solid}.hqoPOw:focus-within{outline-width:var(--hiYFxW)}.codFrx:is(:focus-visible,[data-focus-visible]){outline-offset:var(--gEfgCY)}.flBQvp:is(:focus-visible,[data-focus-visible]){border-radius:2px}.dmiQBo:is(:focus,[data-focus]){fill:url("#logo-gradient")}.AIGHf:is(:focus-visible,[data-focus-visible]){outline-color:var(--iAjuTO)}.dGEQaj:is(:focus-visible,[data-focus-visible]){outline-color:var(--itfeCm)}.hyjrVf:is(:focus-visible,[data-focus-visible]){outline-color:var(--dxaFjW)}.gcvzK:is(:focus-visible,[data-focus-visible]){outline-color:var(--ldafrz)}.bIoiOr:is(:focus-visible,[data-focus-visible]){outline-color:var(--Iycdi)}.hLPNjH:is(:focus-visible,[data-focus-visible]){outline-style:solid}.dTHceD:is(:focus-visible,[data-focus-visible]){outline-width:var(--hiYFxW)}.bXLdKW:is(:focus-visible,[data-focus-visible]){outline-color:var(--gBHQLb)}.eqIqpK:is(:hover,[data-hover]){background:#ffffff4d}.group:is(:hover,[data-hover]) .crpBMh{color:var(--enVPNY)}.group:is(:hover,[data-hover]) .dkgTgI{color:var(--cOyFst)}.group:is(:hover,[data-hover]) .dsNmcp{color:var(--iZlvjY)}.group:is(:hover,[data-hover]) .ejxEyT{color:var(--YyYdq)}.gFOtbv:is(:hover,[data-hover]){opacity:0.8}.gNRPsX:is(:hover,[data-hover]){filter:brightness(0.9)}.cNdQqS:is(:hover,[data-hover]){background:var(--crPUBo)}.hQYScc:is(:hover,[data-hover]){background:var(--iAjuTO)}.juloA:is(:hover,[data-hover]){background:var(--gfUEye)}.ekkLYF:is(:hover,[data-hover]){box-shadow:0 6px 8px 2px rgba(0,0,0,.18)}.ieWvIF:is(:hover,[data-hover]){cursor:pointer}.kznAev:is(:hover,[data-hover]){background:var(--edNtiq)}.lpgyhx:is(:hover,[data-hover]){background:var(--eRgqfH)}.gJEFOw:is(:hover,[data-hover]){background:var(--cFFIOa)}.eJlUjp:is(:hover,[data-hover]){background:var(--gBHQLb)}.group:is(:hover,[data-hover]) .fOIArh{color:var(--iagzVE)}.dmulsi:is(:hover,[data-hover]){fill:url("#logo-gradient")}.group:is(:hover,[data-hover]) .ejwVfp{color:var(--kFAOBM)}.dpCLFW:is(:hover,[data-hover]){background:var(--qsPVo)}.fFyjxH:is(:hover,[data-hover]){border-color:var(--DLYOY)}.khQJeR:is(:hover,[data-hover]){border-color:var(--gfUEye)}.group:is(:hover,[data-hover]) .jRgrno{border-color:var(--DLYOY)}.juloA:is(:hover,[data-hover]){background-color:var(--gfUEye)}.XicUs:is(:hover,[data-hover]){border-color:var(--gBHQLb)}.bhyTbN:is(:active,[data-active]){transform:scale(0.95)}.dLUGsc:is(:active,[data-active]){fill:url("#logo-gradient")}.fwLKPv>:first-child{min-width:var(--cAmzCM)}.kYYdmz>:last-child{min-width:var(--cAmzCM)}[data-color-mode=dark] .iBxkaW:before{background-image:linear-gradient(rgba(255,255,255,0.05),rgba(255,255,255,0.05))}[data-color-mode=dark] .gYKIuG:before{background-image:linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05))}.feLnkv:is(:hover,[data-hover]):before{opacity:1}.hEvetW:is(:hover,[data-hover]):before{opacity:0}[data-color-mode=dark] .group:is(:hover,[data-hover]) .hOYqkw{color:var(--gzHfkH)}[data-color-mode=dark] .group:is(:hover,[data-hover]) .tdpny{color:var(--cOyFst)}[data-color-mode=dark] .group:is(:hover,[data-hover]) .jMRjnY{color:var(--dnTPVf)}[data-color-mode=dark] .group:is(:hover,[data-hover]) .hEkRYZ{color:var(--YyYdq)}[data-color-mode=dark] .cbdIkB:is(:hover,[data-hover]){background:var(--edNtiq)}[data-color-mode=dark] .bLXejb:is(:hover,[data-hover]){background:var(--gyKIIT)}[data-color-mode=dark] .leneMy:is(:hover,[data-hover]){background:var(--lfBdGG)}[data-color-mode=dark] .iCKJWv:is(:hover,[data-hover]){background:var(--gBHQLb)}[data-color-mode=dark] .chhjLx:is(:hover,[data-hover]){border-color:var(--ktVcUk)}@media (min-width: 48rem){.XrXGK{margin-inline:auto}.blyVxi{width:25rem}.jBZMtD{height:fit-content}.dOrSJl{box-shadow:0px 12px 56px color-mix(in srgb,var(--cFFIOa) 15%,transparent)}.cRloWQ{border-radius:var(--insZoq)}.fHEbLY{top:var(--uyqLg)}.ctyfRj{top:var(--fcTUxn)}}@media (min-width: 48rem){[data-color-mode=dark] .iueHSe{box-shadow:none}}@media (min-width: 48rem){[data-color-mode=dark] .isQWtr{border-block:solid}}@media (min-width: 48rem){[data-color-mode=dark] .ceYPvB{border-width:1px}}@media (min-width: 48rem){[data-color-mode=dark] .btXYvH{border-color:var(--gfUEye)}}@media screen and (min-width: 48rem){.kVsPah{padding-inline:var(--gGIQOF)}}@media (min-width: 769px){.fdZOLs{padding-top:15vh}}@media screen and (min-width: 64rem){.kTqchV{padding-inline:var(--flZesP)}}@media screen and (max-width: 47.9975rem){.hUYDug{max-width:var(--khWApH)}}@media only screen and (max-width: 767px){.fcSmAp{height:100dvh}}@media (max-width: 370px){.hYevRO{display:none}}@media (prefers-reduced-motion: reduce){.kuxZR{scale:1}}',document.head.appendChild(e),Uf=!0}(),m&&Dc().fetchConfig().then(e=>{w(e.theme),E(2!==e.theme.customBrandingType),b(!1)}).catch(e=>{console.error("Failed to fetch config:",e),b(!1)})},[]),v(()=>(Dc().setAccountChangedCallbacks(u,c),()=>Dc().setAccountChangedCallbacks(void 0,void 0)),[u,c]),v(()=>{if(!$)return;(async()=>{try{const e="dark"===$.themeColor?"dark":"light",{textColor:t,buttonColor:r,buttonRadius:n,containerRadius:a,backgroundColor:o,neutralColor:i}=$;document.documentElement.setAttribute("data-color-mode",e),t&&y("text",t),n&&C("button",n),a&&C("container",a),o&&y("surface",o),i&&y("neutral",i),r&&y("brand",r),p?.()}catch(e){console.error("Error setting client theme",e)}})()},[$]);const k=a.useRef(t);if(v(()=>{!t&&k.current&&h({type:"GO_TO_LOGIN"}),t&&!k.current&&h({type:"GO_TO_LOGIN"}),k.current=t},[t,h]),!t)return null;const L="modal"===e,I=e=>{o&&e.target===e.currentTarget&&r&&r()};if(m)return null;const P=a.createElement(Gc,{wallets:i,enableFarcaster:l,onSuccess:s,onError:c,onClose:r,closeOnSuccess:n},a.createElement(S,{config:Dc().wagmiConfig},a.createElement(M,{client:Wf},a.createElement("div",{id:"magic-widget-container"},a.createElement(Gf,{state:g,dispatch:h,showFooterLogo:x,isModal:L})))));return L?a.createElement("div",{style:Yf,className:Ee({"@media (min-width: 769px)":{paddingTop:"15vh"}}),onClick:I},a.createElement("div",{style:Zf},P)):P}export{Nc as MAGIC_WIDGET_PROVIDER,qf as MagicWidget,Wc as OAuthProvider,Hc as ThirdPartyWallets,jc as WalletKitExtension,Dc as getExtensionInstance};