@seamless-auth/oidc-provider 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +80 -10
- package/dist/accessTokenClaims.d.ts +11 -0
- package/dist/accessTokenClaims.js +30 -0
- package/dist/accessTokenClaims.js.map +1 -1
- package/dist/accountClaims.d.ts +51 -0
- package/dist/accountClaims.js +102 -0
- package/dist/accountClaims.js.map +1 -0
- package/dist/adapter.js +16 -3
- package/dist/adapter.js.map +1 -1
- package/dist/apiClient.d.ts +3 -2
- package/dist/apiClient.js +3 -2
- package/dist/apiClient.js.map +1 -1
- package/dist/brandingContrast.d.ts +4 -0
- package/dist/brandingContrast.js +59 -0
- package/dist/brandingContrast.js.map +1 -0
- package/dist/claimsMismatch.d.ts +15 -0
- package/dist/claimsMismatch.js +90 -0
- package/dist/claimsMismatch.js.map +1 -0
- package/dist/createOidcEdge.d.ts +5 -0
- package/dist/createOidcEdge.js +43 -7
- package/dist/createOidcEdge.js.map +1 -1
- package/dist/deviceFlow.d.ts +2 -6
- package/dist/deviceFlow.js +2 -10
- package/dist/deviceFlow.js.map +1 -1
- package/dist/env.d.ts +1 -4
- package/dist/env.js +46 -4
- package/dist/env.js.map +1 -1
- package/dist/errorPage.d.ts +10 -0
- package/dist/errorPage.js +24 -0
- package/dist/errorPage.js.map +1 -0
- package/dist/hostedPages.d.ts +1 -0
- package/dist/hostedPages.js +24 -1
- package/dist/hostedPages.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interactions.js +83 -30
- package/dist/interactions.js.map +1 -1
- package/dist/jwtAccessTokens.d.ts +1 -1
- package/dist/jwtAccessTokens.js +2 -1
- package/dist/jwtAccessTokens.js.map +1 -1
- package/dist/logout.d.ts +4 -0
- package/dist/logout.js +8 -1
- package/dist/logout.js.map +1 -1
- package/dist/providerConfig.d.ts +3 -3
- package/dist/providerConfig.js +22 -8
- package/dist/providerConfig.js.map +1 -1
- package/dist/requestContext.d.ts +1 -2
- package/dist/requestContext.js.map +1 -1
- package/dist/requestObjectErrors.d.ts +12 -0
- package/dist/requestObjectErrors.js +47 -0
- package/dist/requestObjectErrors.js.map +1 -0
- package/dist/resumeCookie.js +3 -1
- package/dist/resumeCookie.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/signingKey.d.ts +31 -3
- package/dist/signingKey.js +104 -4
- package/dist/signingKey.js.map +1 -1
- package/dist/ui/assets/index-BLikvo1E.js +18 -0
- package/dist/ui/assets/index-DKah8G4b.css +1 -0
- package/dist/ui/index.html +2 -2
- package/package.json +11 -8
- package/dist/ui/assets/index-CydLXRvo.js +0 -18
- package/dist/ui/assets/index-y3LME-Gv.css +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))c(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function u(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(s){if(s.ep)return;s.ep=!0;const f=u(s);fetch(s.href,f)}})();var Ls={exports:{}},kr={};var pm;function lv(){if(pm)return kr;pm=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function u(c,s,f){var m=null;if(f!==void 0&&(m=""+f),s.key!==void 0&&(m=""+s.key),"key"in s){f={};for(var v in s)v!=="key"&&(f[v]=s[v])}else f=s;return s=f.ref,{$$typeof:l,type:c,key:m,ref:s!==void 0?s:null,props:f}}return kr.Fragment=r,kr.jsx=u,kr.jsxs=u,kr}var $m;function rv(){return $m||($m=1,Ls.exports=lv()),Ls.exports}var y=rv();const _m=document.querySelector('meta[name="seamless-csp-nonce"]')?.getAttribute("content");if(_m){const l=document.createElement.bind(document);document.createElement=((r,u)=>{const c=l(r,u);return c instanceof HTMLStyleElement&&(c.nonce=_m),c})}var ks={exports:{}},ue={};var bm;function iv(){if(bm)return ue;bm=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),$=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),x=Symbol.for("react.view_transition"),M=Symbol.iterator;function z(N){return N===null||typeof N!="object"?null:(N=M&&N[M]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,B={};function X(N,G,te){this.props=N,this.context=G,this.refs=B,this.updater=te||A}X.prototype.isReactComponent={},X.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,G,"setState")},X.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function Y(){}Y.prototype=X.prototype;function U(N,G,te){this.props=N,this.context=G,this.refs=B,this.updater=te||A}var H=U.prototype=new Y;H.constructor=U,R(H,X.prototype),H.isPureReactComponent=!0;var q=Array.isArray;function K(){}var Q={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function de(N,G,te){var ne=te.ref;return{$$typeof:l,type:N,key:G,ref:ne!==void 0?ne:null,props:te}}function he(N,G){return de(N.type,G,N.props)}function qe(N){return typeof N=="object"&&N!==null&&N.$$typeof===l}function at(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(te){return G[te]})}var ke=/\/+/g;function Ee(N,G){return typeof N=="object"&&N!==null&&N.key!=null?at(""+N.key):G.toString(36)}function F(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(K,K):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ae(N,G,te,ne,pe){var $e=typeof N;($e==="undefined"||$e==="boolean")&&(N=null);var be=!1;if(N===null)be=!0;else switch($e){case"bigint":case"string":case"number":be=!0;break;case"object":switch(N.$$typeof){case l:case r:be=!0;break;case _:return be=N._init,ae(be(N._payload),G,te,ne,pe)}}if(be)return pe=pe(N),be=ne===""?"."+Ee(N,0):ne,q(pe)?(te="",be!=null&&(te=be.replace(ke,"$&/")+"/"),ae(pe,G,te,"",function(Sn){return Sn})):pe!=null&&(qe(pe)&&(pe=he(pe,te+(pe.key==null||N&&N.key===pe.key?"":(""+pe.key).replace(ke,"$&/")+"/")+be)),G.push(pe)),1;be=0;var J=ne===""?".":ne+":";if(q(N))for(var ie=0;ie<N.length;ie++)ne=N[ie],$e=J+Ee(ne,ie),be+=ae(ne,G,te,$e,pe);else if(ie=z(N),typeof ie=="function")for(N=ie.call(N),ie=0;!(ne=N.next()).done;)ne=ne.value,$e=J+Ee(ne,ie++),be+=ae(ne,G,te,$e,pe);else if($e==="object"){if(typeof N.then=="function")return ae(F(N),G,te,ne,pe);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return be}function re(N,G,te){if(N==null)return N;var ne=[],pe=0;return ae(N,ne,"","",function($e){return G.call(te,$e,pe++)}),ne}function Ae(N){if(N._status===-1){var G=N._result,te=G();te.then(function(ne){(N._status===0||N._status===-1)&&(N._status=1,N._result=ne,te.status===void 0&&(te.status="fulfilled",te.value=ne))},function(ne){(N._status===0||N._status===-1)&&(N._status=2,N._result=ne,te.status===void 0&&(te.status="rejected",te.reason=ne))}),N._status===-1&&(N._status=0,N._result=te)}if(N._status===1)return N._result.default;throw N._result}var xe=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function Zt(N){var G=Q.T,te={};te.types=G!==null?G.types:null,Q.T=te;try{var ne=N(),pe=Q.S;pe!==null&&pe(te,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(K,xe)}catch($e){xe($e)}finally{G!==null&&te.types!==null&&(G.types=te.types),Q.T=G}}function bn(N){var G=Q.T;if(G!==null){var te=G.types;te===null?G.types=[N]:te.indexOf(N)===-1&&te.push(N)}else Zt(bn.bind(null,N))}var ga={map:re,forEach:function(N,G,te){re(N,function(){G.apply(this,arguments)},te)},count:function(N){var G=0;return re(N,function(){G++}),G},toArray:function(N){return re(N,function(G){return G})||[]},only:function(N){if(!qe(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ue.Activity=p,ue.Children=ga,ue.Component=X,ue.Fragment=u,ue.Profiler=s,ue.PureComponent=U,ue.StrictMode=c,ue.Suspense=h,ue.ViewTransition=x,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,ue.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Q.H.useMemoCache(N)}},ue.addTransitionType=bn,ue.cache=function(N){return function(){return N.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(N,G,te){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ne=R({},N.props),pe=N.key;if(G!=null)for($e in G.key!==void 0&&(pe=""+G.key),G)!Te.call(G,$e)||$e==="key"||$e==="__self"||$e==="__source"||$e==="ref"&&G.ref===void 0||(ne[$e]=G[$e]);var $e=arguments.length-2;if($e===1)ne.children=te;else if(1<$e){for(var be=Array($e),J=0;J<$e;J++)be[J]=arguments[J+2];ne.children=be}return de(N.type,pe,ne)},ue.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},ue.createElement=function(N,G,te){var ne,pe={},$e=null;if(G!=null)for(ne in G.key!==void 0&&($e=""+G.key),G)Te.call(G,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(pe[ne]=G[ne]);var be=arguments.length-2;if(be===1)pe.children=te;else if(1<be){for(var J=Array(be),ie=0;ie<be;ie++)J[ie]=arguments[ie+2];pe.children=J}if(N&&N.defaultProps)for(ne in be=N.defaultProps,be)pe[ne]===void 0&&(pe[ne]=be[ne]);return de(N,$e,pe)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(N){return{$$typeof:v,render:N}},ue.isValidElement=qe,ue.lazy=function(N){return{$$typeof:_,_payload:{_status:-1,_result:N},_init:Ae}},ue.memo=function(N,G){return{$$typeof:$,type:N,compare:G===void 0?null:G}},ue.startTransition=Zt,ue.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},ue.use=function(N){return Q.H.use(N)},ue.useActionState=function(N,G,te){return Q.H.useActionState(N,G,te)},ue.useCallback=function(N,G){return Q.H.useCallback(N,G)},ue.useContext=function(N){return Q.H.useContext(N)},ue.useDebugValue=function(){},ue.useDeferredValue=function(N,G){return Q.H.useDeferredValue(N,G)},ue.useEffect=function(N,G){return Q.H.useEffect(N,G)},ue.useEffectEvent=function(N){return Q.H.useEffectEvent(N)},ue.useId=function(){return Q.H.useId()},ue.useImperativeHandle=function(N,G,te){return Q.H.useImperativeHandle(N,G,te)},ue.useInsertionEffect=function(N,G){return Q.H.useInsertionEffect(N,G)},ue.useLayoutEffect=function(N,G){return Q.H.useLayoutEffect(N,G)},ue.useMemo=function(N,G){return Q.H.useMemo(N,G)},ue.useOptimistic=function(N,G){return Q.H.useOptimistic(N,G)},ue.useReducer=function(N,G,te){return Q.H.useReducer(N,G,te)},ue.useRef=function(N){return Q.H.useRef(N)},ue.useState=function(N){return Q.H.useState(N)},ue.useSyncExternalStore=function(N,G,te){return Q.H.useSyncExternalStore(N,G,te)},ue.useTransition=function(){return Q.H.useTransition()},ue.version="19.3.1",ue}var Sm;function Ed(){return Sm||(Sm=1,ks.exports=iv()),ks.exports}var b=Ed(),Hs={exports:{}},Hr={},Bs={exports:{}},Gs={};var Em;function uv(){return Em||(Em=1,(function(l){function r(F,ae){var re=F.length;F.push(ae);e:for(;0<re;){var Ae=re-1>>>1,xe=F[Ae];if(0<s(xe,ae))F[Ae]=ae,F[re]=xe,re=Ae;else break e}}function u(F){return F.length===0?null:F[0]}function c(F){if(F.length===0)return null;var ae=F[0],re=F.pop();if(re!==ae){F[0]=re;e:for(var Ae=0,xe=F.length,Zt=xe>>>1;Ae<Zt;){var bn=2*(Ae+1)-1,ga=F[bn],N=bn+1,G=F[N];if(0>s(ga,re))N<xe&&0>s(G,ga)?(F[Ae]=G,F[N]=re,Ae=N):(F[Ae]=ga,F[bn]=re,Ae=bn);else if(N<xe&&0>s(G,re))F[Ae]=G,F[N]=re,Ae=N;else break e}}return ae}function s(F,ae){var re=F.sortIndex-ae.sortIndex;return re!==0?re:F.id-ae.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var m=Date,v=m.now();l.unstable_now=function(){return m.now()-v}}var h=[],$=[],_=1,p=null,x=3,M=!1,z=!1,A=!1,R=!1,B=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function U(F){for(var ae=u($);ae!==null;){if(ae.callback===null)c($);else if(ae.startTime<=F)c($),ae.sortIndex=ae.expirationTime,r(h,ae);else break;ae=u($)}}function H(F){if(A=!1,U(F),!z)if(u(h)!==null)z=!0,q||(q=!0,qe());else{var ae=u($);ae!==null&&Ee(H,ae.startTime-F)}}var q=!1,K=-1,Q=5,Te=-1;function de(){return R?!0:!(l.unstable_now()-Te<Q)}function he(){if(R=!1,q){var F=l.unstable_now();Te=F;var ae=!0;try{e:{z=!1,A&&(A=!1,X(K),K=-1),M=!0;var re=x;try{t:{for(U(F),p=u(h);p!==null&&!(p.expirationTime>F&&de());){var Ae=p.callback;if(typeof Ae=="function"){p.callback=null,x=p.priorityLevel;var xe=Ae(p.expirationTime<=F);if(F=l.unstable_now(),typeof xe=="function"){p.callback=xe,U(F),ae=!0;break t}p===u(h)&&c(h),U(F)}else c(h);p=u(h)}if(p!==null)ae=!0;else{var Zt=u($);Zt!==null&&Ee(H,Zt.startTime-F),ae=!1}}break e}finally{p=null,x=re,M=!1}ae=void 0}}finally{ae?qe():q=!1}}}var qe;if(typeof Y=="function")qe=function(){Y(he)};else if(typeof MessageChannel<"u"){var at=new MessageChannel,ke=at.port2;at.port1.onmessage=he,qe=function(){ke.postMessage(null)}}else qe=function(){B(he,0)};function Ee(F,ae){K=B(function(){F(l.unstable_now())},ae)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(F){F.callback=null},l.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<F?Math.floor(1e3/F):5},l.unstable_getCurrentPriorityLevel=function(){return x},l.unstable_next=function(F){switch(x){case 1:case 2:case 3:var ae=3;break;default:ae=x}var re=x;x=ae;try{return F()}finally{x=re}},l.unstable_requestPaint=function(){R=!0},l.unstable_runWithPriority=function(F,ae){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var re=x;x=F;try{return ae()}finally{x=re}},l.unstable_scheduleCallback=function(F,ae,re){var Ae=l.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Ae+re:Ae):re=Ae,F){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=re+xe,F={id:_++,callback:ae,priorityLevel:F,startTime:re,expirationTime:xe,sortIndex:-1},re>Ae?(F.sortIndex=re,r($,F),u(h)===null&&F===u($)&&(A?(X(K),K=-1):A=!0,Ee(H,re-Ae))):(F.sortIndex=xe,r(h,F),z||M||(z=!0,q||(q=!0,qe()))),F},l.unstable_shouldYield=de,l.unstable_wrapCallback=function(F){var ae=x;return function(){var re=x;x=ae;try{return F.apply(this,arguments)}finally{x=re}}}})(Gs)),Gs}var xm;function ov(){return xm||(xm=1,Bs.exports=uv()),Bs.exports}var qs={exports:{}},dt={};var Nm;function cv(){if(Nm)return dt;Nm=1;var l=Ed();function r(_){var p="https://react.dev/errors/"+_;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+_+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(r(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},s=Symbol.for("react.portal"),f=Symbol.for("react.recoverable"),m=Symbol.for("react.optimistic_key");function v(_,p,x){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:M==null?null:M===m?m:""+M,children:_,containerInfo:p,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function $(_,p){if(_==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,dt.browser=function(_){return{$$typeof:f,_reason:_}},dt.createPortal=function(_,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return v(_,p,null,x)},dt.flushSync=function(_){var p=h.T,x=c.p;try{if(h.T=null,c.p=2,_)return _()}finally{h.T=p,c.p=x,c.d.f()}},dt.preconnect=function(_,p){typeof _=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(_,p))},dt.prefetchDNS=function(_){typeof _=="string"&&c.d.D(_)},dt.preinit=function(_,p){if(typeof _=="string"&&p&&typeof p.as=="string"){var x=p.as,M=$(x,p.crossOrigin),z=typeof p.integrity=="string"?p.integrity:void 0,A=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?c.d.S(_,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:M,integrity:z,fetchPriority:A}):x==="script"&&c.d.X(_,{crossOrigin:M,integrity:z,fetchPriority:A,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},dt.preinitModule=function(_,p){if(typeof _=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=$(p.as,p.crossOrigin);c.d.M(_,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&c.d.M(_)},dt.preload=function(_,p){if(typeof _=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,M=$(x,p.crossOrigin);c.d.L(_,x,{crossOrigin:M,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},dt.preloadModule=function(_,p){if(typeof _=="string")if(p){var x=$(p.as,p.crossOrigin);c.d.m(_,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else c.d.m(_)},dt.requestFormReset=function(_){c.d.r(_)},dt.unstable_batchedUpdates=function(_,p){return _(p)},dt.useFormState=function(_,p,x){return h.H.useFormState(_,p,x)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.3.1",dt}var Tm;function sv(){if(Tm)return qs.exports;Tm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),qs.exports=cv(),qs.exports}var Om;function dv(){if(Om)return Hr;Om=1;var l=ov(),r=Ed(),u=sv();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(c(188))}function $(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return h(i),e;if(o===a)return h(i),t;o=o.sibling}throw Error(c(188))}if(n.return!==a.return)n=i,a=o;else{for(var d=!1,g=i.child;g;){if(g===n){d=!0,n=i,a=o;break}if(g===a){d=!0,a=i,n=o;break}g=g.sibling}if(!d){for(g=o.child;g;){if(g===n){d=!0,n=o,a=i;break}if(g===a){d=!0,a=o,n=i;break}g=g.sibling}if(!d)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function p(e,t,n,a,i,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,i,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,a,i,o))return!0;e=e.sibling}return!1}function x(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function M(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function z(e){var t=[null,null],n=x(e);return n===null||A(t,e,n.child,{foundSelf:!1}),t}function A(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&A(e,t,n.child,a))return!0;n=n.sibling}return!1}function R(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(c(559))}}var B=null,X=null;function Y(e,t,n){return e===n?!0:e===t?(B=e,!0):!1}function U(e,t,n){return e===n?(X=e,!1):e===t?(X!==null&&(B=e),!0):!1}function H(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function q(e,t,n){for(var a=0,i=e;i;i=n(i))a++;i=0;for(var o=t;o;o=n(o))i++;for(;0<a-i;)e=n(e),a--;for(;0<i-a;)t=n(t),i--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var K=Object.assign,Q=Symbol.for("react.element"),Te=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),Ee=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Zt=Symbol.for("react.activity"),bn=Symbol.for("react.legacy_hidden"),ga=Symbol.for("react.memo_cache_sentinel"),N=Symbol.for("react.view_transition"),G=Symbol.for("react.recoverable"),te=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function $e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case at:return"Profiler";case qe:return"StrictMode";case ae:return"Suspense";case re:return"SuspenseList";case Zt:return"Activity";case N:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case de:return"Portal";case Ee:return e.displayName||"Context";case ke:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ae:return t=e.displayName||null,t!==null?t:$e(e.type)||"Memo";case xe:t=e._payload,e=e._init;try{return $e(e(t))}catch{}}return null}var be=Array.isArray,J=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sn={pending:!1,data:null,method:null,action:null},to=[],qa=-1;function rn(e){return{current:e}}function lt(e){0>qa||(e.current=to[qa],to[qa]=null,qa--)}function Me(e,t){qa++,to[qa]=e.current,e.current=t}var un=rn(null),Yl=rn(null),Gn=rn(null),ti=rn(null);function ni(e,t){switch(Me(Gn,t),Me(Yl,e),Me(un,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?O2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=O2(t),e=C2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}lt(un),Me(un,e)}function Pa(){lt(un),lt(Yl),lt(Gn)}function no(e){var t=e.memoizedState;t!==null&&(wl._currentValue=t.memoizedState,Me(ti,e)),t=un.current;var n=C2(t,e.type);t!==n&&(Me(Yl,e),Me(un,n))}function ai(e){Yl.current===e&&(lt(un),lt(Yl)),ti.current===e&&(lt(ti),wl._currentValue=Sn)}var ao,Fd;function qn(e){if(ao===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ao=t&&t[1]||"",Fd=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+ao+e+Fd}var lo=!1;function ro(e,t){if(!e||lo)return"";lo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(V){var T=V}Reflect.construct(e,[],k)}else{try{k.call()}catch(V){T=V}k=!1;try{var j=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),k=!0,new e}finally{k&&(j!==void 0?Object.defineProperty(e.prototype,"props",j):delete e.prototype.props)}}}else{try{throw Error()}catch(V){T=V}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(V){if(V&&T&&typeof V.stack=="string")return[V.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),d=o[0],g=o[1];if(d&&g){var S=d.split(`
|
|
4
|
-
`),C=g.split(`
|
|
5
|
-
`);for(i=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===S.length||i===C.length)for(a=S.length-1,i=C.length-1;1<=a&&0<=i&&S[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(S[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||S[a]!==C[i]){var D=`
|
|
6
|
-
`+S[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=i);break}}}finally{lo=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?qn(n):""}function oy(e,t){switch(e.tag){case 26:case 27:case 5:return qn(e.type);case 16:return qn("Lazy");case 13:return e.child!==t&&t!==null?qn("Suspense Fallback"):qn("Suspense");case 19:return qn("SuspenseList");case 0:case 15:return ro(e.type,!1);case 11:return ro(e.type.render,!1);case 1:return ro(e.type,!0);case 31:return qn("Activity");case 30:return qn("ViewTransition");default:return""}}function Kd(e){try{var t="",n=null;do t+=oy(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var io=Object.prototype.hasOwnProperty,uo=l.unstable_scheduleCallback,oo=l.unstable_cancelCallback,cy=l.unstable_shouldYield,sy=l.unstable_requestPaint,Tt=l.unstable_now,dy=l.unstable_getCurrentPriorityLevel,Zd=l.unstable_ImmediatePriority,Qd=l.unstable_UserBlockingPriority,li=l.unstable_NormalPriority,fy=l.unstable_LowPriority,Id=l.unstable_IdlePriority,my=l.log,hy=l.unstable_setDisableYieldValue,Vl=null,Ot=null;function Pn(e){if(typeof my=="function"&&hy(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Vl,e)}catch{}}var Ct=Math.clz32?Math.clz32:vy,yy=Math.log,gy=Math.LN2;function vy(e){return e>>>=0,e===0?32:31-(yy(e)/gy|0)|0}var ri=256,ii=262144,ui=4194304;function va(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function oi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=a&134217727;return g!==0?(a=g&~o,a!==0?i=va(a):(d&=g,d!==0?i=va(d):n||(n=g&~e,n!==0&&(i=va(n))))):(g=a&~o,g!==0?i=va(g):d!==0?i=va(d):n||(n=a&~e,n!==0&&(i=va(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Xl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Jd(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Ct(n),i=1<<a;t|=e[a],n&=~i}return t}function py(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wd(){var e=ui;return ui<<=1,(ui&62914560)===0&&(ui=4194304),e}function co(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $y(e,t,n,a,i,o){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(n=d&~n;0<n;){var D=31-Ct(n),k=1<<D;g[D]=0,S[D]=-1;var T=C[D];if(T!==null)for(C[D]=null,D=0;D<T.length;D++){var j=T[D];j!==null&&(j.lane&=-536870913)}n&=~k}a!==0&&ef(e,a,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function ef(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function tf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ct(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function nf(e,t){var n=t&-t;return n=(n&42)!==0?1:so(n),(n&(e.suspendedLanes|t))!==0?0:n}function so(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function fo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function af(){var e=ie.p;return e!==0?e:(e=window.event,e===void 0?32:dm(e.type))}function lf(e,t){var n=ie.p;try{return ie.p=e,t()}finally{ie.p=n}}var En=Math.random().toString(36).slice(2),rt="__reactFiber$"+En,$t="__reactProps$"+En,Ya="__reactContainer$"+En,rf="__reactEvents$"+En,_y="__reactListeners$"+En,by="__reactHandles$"+En,uf="__reactResources$"+En,Kl="__reactMarker$"+En,ci="__reactLoad$"+En;function si(e){delete e[rt],delete e[$t],delete e[_y],delete e[by]}function pa(e){var t;if(t=e[rt])return t;for(var n=e.parentNode;n;){if(t=n[Ya]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=V2(e);e!==null;){if(n=e[rt])return n;e=V2(e)}return t}e=n,n=e.parentNode}return null}function Va(e){if(e=e[rt]||e[Ya]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Zl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Xa(e){var t=e[uf];return t||(t=e[uf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[Kl]=!0}function of(e){e[ci]=void 0}var cf=new Set,sf={};function $a(e,t){Fa(e,t),Fa(e+"Capture",t)}function Fa(e,t){for(sf[e]=t,e=0;e<t.length;e++)cf.add(t[e])}var Sy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),df={},ff={};function Ey(e){return io.call(ff,e)?!0:io.call(df,e)?!1:Sy.test(e)?ff[e]=!0:(df[e]=!0,!1)}var _e=!1;function mf(){var e=_e;return _e=!1,e}function di(e,t,n){if(Ey(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function fi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function xn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mo(e){if(!e._valueTracker){var t=hf(e)?"checked":"value";e._valueTracker=xy(e,t,""+e[t])}}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=hf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var Ny=/[\n"\\]/g;function kt(e){return e.replace(Ny,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ho(e,t,n,a,i,o,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?d==="number"&&e.value==t?yo(e,Rt(e.value)):yo(e,Rt(t)):n!=null?yo(e,Rt(n)):a!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Rt(g):e.removeAttribute("name")}function gf(e,t,n,a,i,o,d,g){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){mo(e);return}n=n!=null?""+Rt(n):"",t=t!=null?""+Rt(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=g?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),mo(e)}function yo(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Ka(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Rt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function vf(e,t,n){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Rt(n):""}function pf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(c(92));if(be(a)){if(1<a.length)throw Error(c(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Rt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),mo(e)}function Za(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ty=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $f(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Ty.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function _f(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",_e=!0);for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&($f(e,i,a),_e=!0)}else for(var o in t)t.hasOwnProperty(o)&&$f(e,o,t[o])}function go(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Cy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function mi(e){return Cy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function on(){}var vo=null;function po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Ia=null;function bf(e){var t=Va(e);if(t&&(e=t.stateNode)){var n=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(ho(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[$t]||null;if(!i)throw Error(c(90));ho(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&yf(a)}break e;case"textarea":vf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ka(e,!!n.multiple,t,!1)}}}var $o=!1;function Sf(e,t,n){if($o)return e(t,n);$o=!0;try{var a=e(t);return a}finally{if($o=!1,(Qa!==null||Ia!==null)&&(mu(),Qa&&(t=Qa,e=Ia,Ia=Qa=null,bf(t),e)))for(t=0;t<e.length;t++)bf(e[t])}}function Ql(e,t){var n=e.stateNode;if(n===null)return null;var a=n[$t]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(Nn)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){_o=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{_o=!1}var Yn=null,bo=null,hi=null;function Ef(){if(hi)return hi;var e,t=bo,n=t.length,a,i="value"in Yn?Yn.value:Yn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===i[o-a];a++);return hi=i.slice(e,1<a?1-a:void 0)}function yi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gi(){return!0}function xf(){return!1}function yt(e){function t(n,a,i,o,d){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(o):o[g]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?gi:xf,this.isPropagationStopped=xf,this}return K(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gi)},persist:function(){},isPersistent:gi}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vi=yt(Vn),Jl=K({},Vn,{view:0,detail:0}),Ry=yt(Jl),So,Eo,Wl,pi=K({},Jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wl&&(Wl&&e.type==="mousemove"?(So=e.screenX-Wl.screenX,Eo=e.screenY-Wl.screenY):Eo=So=0,Wl=e),So)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),Nf=yt(pi),wy=K({},pi,{dataTransfer:0}),Ay=yt(wy),jy=K({},Jl,{relatedTarget:0}),xo=yt(jy),My=K({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),zy=yt(My),Dy=K({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=yt(Dy),Ly=K({},Vn,{data:0}),Tf=yt(Ly),ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=By[e])?!!t[e]:!1}function No(){return Gy}var qy=K({},Jl,{key:function(e){if(e.key){var t=ky[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(e){return e.type==="keypress"?yi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Py=yt(qy),Yy=K({},pi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=yt(Yy),Vy=K({},Vn,{submitter:0}),Xy=yt(Vy),Fy=K({},Jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),Ky=yt(Fy),Zy=K({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qy=yt(Zy),Iy=K({},pi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Jy=yt(Iy),Wy=K({},Vn,{newState:0,oldState:0,source:0}),eg=yt(Wy),tg=[9,13,27,32],To=Nn&&"CompositionEvent"in window,er=null;Nn&&"documentMode"in document&&(er=document.documentMode);var ng=Nn&&"TextEvent"in window&&!er,Cf=Nn&&(!To||er&&8<er&&11>=er),Rf=" ",wf=!1;function Af(e,t){switch(e){case"keyup":return tg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function ag(e,t){switch(e){case"compositionend":return jf(t);case"keypress":return t.which!==32?null:(wf=!0,Rf);case"textInput":return e=t.data,e===Rf&&wf?null:e;default:return null}}function lg(e,t){if(Ja)return e==="compositionend"||!To&&Af(e,t)?(e=Ef(),hi=bo=Yn=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cf&&t.locale!=="ko"?null:t.data;default:return null}}var rg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rg[e.type]:t==="textarea"}function zf(e,t,n,a){Qa?Ia?Ia.push(a):Ia=[a]:Qa=a,t=$u(t,"onChange"),0<t.length&&(n=new vi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var tr=null,nr=null;function ig(e){b2(e,0)}function $i(e){var t=Zl(e);if(yf(t))return e}function Df(e,t){if(e==="change")return t}var Uf=!1;if(Nn){var Oo;if(Nn){var Co="oninput"in document;if(!Co){var Lf=document.createElement("div");Lf.setAttribute("oninput","return;"),Co=typeof Lf.oninput=="function"}Oo=Co}else Oo=!1;Uf=Oo&&(!document.documentMode||9<document.documentMode)}function kf(){tr&&(tr.detachEvent("onpropertychange",Hf),nr=tr=null)}function Hf(e){if(e.propertyName==="value"&&$i(nr)){var t=[];zf(t,nr,e,po(e)),Sf(ig,t)}}function ug(e,t,n){e==="focusin"?(kf(),tr=t,nr=n,tr.attachEvent("onpropertychange",Hf)):e==="focusout"&&kf()}function og(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(nr)}function cg(e,t){if(e==="click")return $i(t)}function sg(e,t){if(e==="input"||e==="change")return $i(t)}function dg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:dg;function ar(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!io.call(t,i)||!wt(e[i],t[i]))return!1}return!0}function Ro(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gf(e,t){var n=Bf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bf(n)}}function qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ro(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ro(e.document)}return t}function wo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var fg=Nn&&"documentMode"in document&&11>=document.documentMode,Wa=null,Ao=null,lr=null,jo=!1;function Yf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jo||Wa==null||Wa!==Ro(a)||(a=Wa,"selectionStart"in a&&wo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),lr&&ar(lr,a)||(lr=a,a=$u(Ao,"onSelect"),0<a.length&&(t=new vi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Wa)))}function _a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var el={animationend:_a("Animation","AnimationEnd"),animationiteration:_a("Animation","AnimationIteration"),animationstart:_a("Animation","AnimationStart"),transitionrun:_a("Transition","TransitionRun"),transitionstart:_a("Transition","TransitionStart"),transitioncancel:_a("Transition","TransitionCancel"),transitionend:_a("Transition","TransitionEnd")},Mo={},Vf={};Nn&&(Vf=document.createElement("div").style,"AnimationEvent"in window||(delete el.animationend.animation,delete el.animationiteration.animation,delete el.animationstart.animation),"TransitionEvent"in window||delete el.transitionend.transition);function ba(e){if(Mo[e])return Mo[e];if(!el[e])return e;var t=el[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vf)return Mo[e]=t[n];return e}var Xf=ba("animationend"),Ff=ba("animationiteration"),Kf=ba("animationstart"),mg=ba("transitionrun"),hg=ba("transitionstart"),yg=ba("transitioncancel"),Zf=ba("transitionend"),Qf=new Map,zo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zo.push("scrollEnd");function Qt(e,t){Qf.set(e,t),$a(t,[e])}var gg=0;function Tn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=en.identifierPrefix;var n=gg++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function If(e){if(e==null||typeof e=="string")return e;var t=null,n=_l;if(n!==null)for(var a=0;a<n.length;a++){var i=e[n[a]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function On(e,t){return e=If(e),t=If(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var _i=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],tl=0,Do=0;function bi(){for(var e=tl,t=Do=tl=0;t<e;){var n=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var o=Ht[t];if(Ht[t++]=null,a!==null&&i!==null){var d=a.pending;d===null?i.next=i:(i.next=d.next,d.next=i),a.pending=i}o!==0&&Jf(n,i,o)}}function Si(e,t,n,a){Ht[tl++]=e,Ht[tl++]=t,Ht[tl++]=n,Ht[tl++]=a,Do|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Uo(e,t,n,a){return Si(e,t,n,a),Ei(e)}function Sa(e,t){return Si(e,null,null,t),Ei(e)}function Jf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Ct(n),e=o.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),o):null}function Ei(e){if(50<Tr)throw Tr=0,fu=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var nl={};function vg(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,a){return new vg(e,t,n,a)}function Lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cn(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Wf(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function xi(e,t,n,a,i,o){var d=0;if(a=e,typeof a=="function")Lo(a)&&(d=1);else if(typeof a=="string")d=V4(e,n,un.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Zt:return e=_t(31,n,t,i),e.elementType=Zt,e.lanes=o,e;case he:return Ea(n.children,i,o,t);case qe:d=8,i|=24;break;case at:return e=_t(12,n,t,i|2),e.elementType=at,e.lanes=o,e;case ae:return e=_t(13,n,t,i),e.elementType=ae,e.lanes=o,e;case re:return e=_t(19,n,t,i),e.elementType=re,e.lanes=o,e;case bn:case N:return e=i|32,e=_t(30,n,t,e),e.elementType=N,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ee:d=10;break e;case ke:d=9;break e;case F:d=11;break e;case Ae:d=14;break e;case xe:d=16,a=null;break e}d=29,n=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=_t(d,n,t,i),t.elementType=e,t.type=a,t.lanes=o,t}function Ea(e,t,n,a){return e=_t(7,e,a,t),e.lanes=n,e}function ko(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function e0(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Ho(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var t0=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=t0.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Kd(t)},t0.set(e,t),t)}return{value:e,source:t,stack:Kd(t)}}var al=[],ll=0,Ni=null,rr=0,Gt=[],qt=0,Xn=null,cn=1,sn="";function Rn(e,t){al[ll++]=rr,al[ll++]=Ni,Ni=e,rr=t}function n0(e,t,n){Gt[qt++]=cn,Gt[qt++]=sn,Gt[qt++]=Xn,Xn=e;var a=cn;e=sn;var i=32-Ct(a)-1;a&=~(1<<i),n+=1;var o=32-Ct(t)+i;if(30<o){var d=i-i%5;o=(a&(1<<d)-1).toString(32),a>>=d,i-=d,cn=1<<32-Ct(t)+i|n<<i|a,sn=o+e}else cn=1<<o|n<<i|a,sn=e}function Ti(e){e.return!==null&&(Rn(e,1),n0(e,1,0))}function Bo(e){for(;e===Ni;)Ni=al[--ll],al[ll]=null,rr=al[--ll],al[ll]=null;for(;e===Xn;)Xn=Gt[--qt],Gt[qt]=null,sn=Gt[--qt],Gt[qt]=null,cn=Gt[--qt],Gt[qt]=null}function a0(e,t){Gt[qt++]=cn,Gt[qt++]=sn,Gt[qt++]=Xn,cn=t.id,sn=t.overflow,Xn=e}var We=null,ze=null,se=!1,Fn=null,Pt=!1,Go=Error(c(519));function Kn(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ir(Bt(t,e)),Go}function l0(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[rt]=e,t[$t]=a,n){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(n=0;n<Cr.length;n++)me(Cr[n],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),gf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),pf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||N2(t.textContent,n)?(a.popover!=null&&(me("beforetoggle",t),me("toggle",t)),a.onScroll!=null&&me("scroll",t),a.onScrollEnd!=null&&me("scrollend",t),a.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Kn(e,!0)}function Oi(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:We=We.return}}function rl(e){if(e!==We)return!1;if(!se)return Oi(e),se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||vs(e.type,e.memoizedProps)),n=!n),n&&ze&&Kn(e),Oi(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));ze=Y2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));ze=Y2(e)}else t===27?(t=ze,sa(e.type)?(e=Ts,Ts=null,ze=e):ze=t):ze=We?Vt(e.stateNode.nextSibling):null;return!0}function xa(){ze=We=null,se=!1}function qo(){var e=Fn;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),Fn=null),e}function ir(e){Fn===null?Fn=[e]:Fn.push(e)}var Po=rn(null),Na=null,wn=null;function Zn(e,t,n){Me(Po,t._currentValue),t._currentValue=n}function An(e){e._currentValue=Po.current,lt(Po)}function Ci(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Yo(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var d=i.child;o=o.firstContext;e:for(;o!==null;){var g=o;o=i;for(var S=0;S<t.length;S++)if(g.context===t[S]){o.lanes|=n,g=o.alternate,g!==null&&(g.lanes|=n),Ci(o.return,n,e),a||(d=null);break e}o=g.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(c(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Ci(d,n,e),d=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),Ci(i.return,n,e),d=i.child,d=d!==null?d.sibling:null):d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Ta(e,t,n,a){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(c(387));if(d=d.memoizedProps,d!==null){var g=i.type;wt(i.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(i===ti.current){if(d=i.alternate,d===null)throw Error(c(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(wl):e=[wl])}i=i.return}return e!==null&&Yo(t,e,n,a),t.flags|=262144,e!==null}function Ri(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){Na=e,wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return r0(Na,e)}function wi(e,t){return Na===null&&Oa(e),r0(e,t)}function r0(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},wn===null){if(e===null)throw Error(c(308));wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wn=wn.next=t;return n}var pg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},$g=l.unstable_scheduleCallback,_g=l.unstable_NormalPriority,Ye={$$typeof:Ee,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new pg,data:new Map,refCount:0}}function ur(e){e.refCount--,e.refCount===0&&$g(_g,function(){e.controller.abort()})}function i0(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var or=null;function bg(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var cr=null,Xo=0,Ca=0,il=null;function Sg(e,t){if(cr===null){var n=cr=[];Xo=0,Ca=os(),il={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Xo++,t.then(u0,u0),t}function u0(){if(--Xo===0&&(or=null,cr!==null)){il!==null&&(il.status="fulfilled");var e=cr;cr=null,Ca=0,il=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Eg(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var o0=J.S;J.S=function(e,t){if(e2=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Sg(e,t),or!==null)for(var n=xl;n!==null;)i0(n,or),n=n.next;if(n=e.types,n!==null){for(var a=xl;a!==null;)i0(a,n),a=a.next;if(Ca!==0){a=or,a===null&&(a=or=[]);for(var i=0;i<n.length;i++){var o=n[i];a.indexOf(o)===-1&&a.push(o)}}}o0!==null&&o0(e,t)};var Ra=rn(null);function Fo(){var e=Ra.current;return e!==null?e:je.pooledCache}function Ai(e,t){t===null?Me(Ra,Ra.current):Me(Ra,t.pool)}function c0(){var e=Fo();return e===null?null:{parent:Ye._currentValue,pool:e}}var ul=Error(c(460)),Ko=Error(c(474)),ji=Error(c(542)),Mi={then:function(){}};function s0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function d0(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,m0(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then(on,on);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,m0(e),e}throw Aa=t,ul}}function wa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Aa=n,ul):n}}var Aa=null;function f0(){if(Aa===null)throw Error(c(459));var e=Aa;return Aa=null,e}function m0(e){if(e===ul||e===ji)throw Error(c(483))}var ol=null,sr=0;function zi(e){var t=sr;return sr+=1,ol===null&&(ol=[]),d0(ol,e,t)}function Qn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Di(e,t){throw t.$$typeof===Q?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function h0(e){function t(O,E){if(e){var w=O.deletions;w===null?(O.deletions=[E],O.flags|=16):w.push(E)}}function n(O,E){if(!e)return null;for(;E!==null;)t(O,E),E=E.sibling;return null}function a(O){for(var E=new Map;O!==null;)O.key===null?E.set(O.index,O):E.set(O.key,O),O=O.sibling;return E}function i(O,E){return O=Cn(O,E),O.index=0,O.sibling=null,O}function o(O,E,w){return O.index=w,e?(w=O.alternate,w!==null?(w=w.index,w<E?(O.flags|=2,E):w):(O.flags|=134217730,E)):(O.flags|=1048576,E)}function d(O){return e&&O.alternate===null&&(O.flags|=134217730),O}function g(O,E,w,L){return E===null||E.tag!==6?(E=ko(w,O.mode,L),E.return=O,E):(E=i(E,w),E.return=O,E)}function S(O,E,w,L){var Z=w.type;return Z===he?(O=D(O,E,w.props.children,L,w.key),Qn(O,w),O):E!==null&&(E.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===xe&&wa(Z)===E.type)?(E=i(E,w.props),Qn(E,w),E.return=O,E):(E=xi(w.type,w.key,w.props,null,O.mode,L),Qn(E,w),E.return=O,E)}function C(O,E,w,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==w.containerInfo||E.stateNode.implementation!==w.implementation?(E=Ho(w,O.mode,L),E.return=O,E):(E=i(E,w.children||[]),E.return=O,E)}function D(O,E,w,L,Z){return E===null||E.tag!==7?(E=Ea(w,O.mode,L,Z),E.return=O,E):(E=i(E,w),E.return=O,E)}function k(O,E,w){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=ko(""+E,O.mode,w),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Te:return w=xi(E.type,E.key,E.props,null,O.mode,w),Qn(w,E),w.return=O,w;case de:return E=Ho(E,O.mode,w),E.return=O,E;case xe:return E=wa(E),k(O,E,w)}if(be(E)||ne(E))return E=Ea(E,O.mode,w,null),E.return=O,E;if(typeof E.then=="function")return k(O,zi(E),w);if(E.$$typeof===Ee)return k(O,wi(O,E),w);Di(O,E)}return null}function T(O,E,w,L){var Z=E!==null?E.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return Z!==null?null:g(O,E,""+w,L);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Te:return w.key===Z?S(O,E,w,L):null;case de:return w.key===Z?C(O,E,w,L):null;case xe:return w=wa(w),T(O,E,w,L)}if(be(w)||ne(w))return Z!==null?null:D(O,E,w,L,null);if(typeof w.then=="function")return T(O,E,zi(w),L);if(w.$$typeof===Ee)return T(O,E,wi(O,w),L);Di(O,w)}return null}function j(O,E,w,L,Z){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return O=O.get(w)||null,g(E,O,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case Te:return O=O.get(L.key===null?w:L.key)||null,S(E,O,L,Z);case de:return O=O.get(L.key===null?w:L.key)||null,C(E,O,L,Z);case xe:return L=wa(L),j(O,E,w,L,Z)}if(be(L)||ne(L))return O=O.get(w)||null,D(E,O,L,Z,null);if(typeof L.then=="function")return j(O,E,w,zi(L),Z);if(L.$$typeof===Ee)return j(O,E,w,wi(E,L),Z);Di(E,L)}return null}function V(O,E,w,L){for(var Z=null,ge=null,W=E,le=E=0,Fe=null;W!==null&&le<w.length;le++){W.index>le?(Fe=W,W=null):Fe=W.sibling;var ve=T(O,W,w[le],L);if(ve===null){W===null&&(W=Fe);break}e&&W&&ve.alternate===null&&t(O,W),E=o(ve,E,le),ge===null?Z=ve:ge.sibling=ve,ge=ve,W=Fe}if(le===w.length)return n(O,W),se&&Rn(O,le),Z;if(W===null){for(;le<w.length;le++)W=k(O,w[le],L),W!==null&&(E=o(W,E,le),ge===null?Z=W:ge.sibling=W,ge=W);return se&&Rn(O,le),Z}for(W=a(W);le<w.length;le++)Fe=j(W,O,le,w[le],L),Fe!==null&&(e&&(ve=Fe.alternate,ve!==null&&W.delete(ve.key===null?le:ve.key)),E=o(Fe,E,le),ge===null?Z=Fe:ge.sibling=Fe,ge=Fe);return e&&W.forEach(function(ya){return t(O,ya)}),se&&Rn(O,le),Z}function I(O,E,w,L){if(w==null)throw Error(c(151));for(var Z=null,ge=null,W=E,le=E=0,Fe=null,ve=w.next();W!==null&&!ve.done;le++,ve=w.next()){W.index>le?(Fe=W,W=null):Fe=W.sibling;var ya=T(O,W,ve.value,L);if(ya===null){W===null&&(W=Fe);break}e&&W&&ya.alternate===null&&t(O,W),E=o(ya,E,le),ge===null?Z=ya:ge.sibling=ya,ge=ya,W=Fe}if(ve.done)return n(O,W),se&&Rn(O,le),Z;if(W===null){for(;!ve.done;le++,ve=w.next())ve=k(O,ve.value,L),ve!==null&&(E=o(ve,E,le),ge===null?Z=ve:ge.sibling=ve,ge=ve);return se&&Rn(O,le),Z}for(W=a(W);!ve.done;le++,ve=w.next())ve=j(W,O,le,ve.value,L),ve!==null&&(e&&(Fe=ve.alternate,Fe!==null&&W.delete(Fe.key===null?le:Fe.key)),E=o(ve,E,le),ge===null?Z=ve:ge.sibling=ve,ge=ve);return e&&W.forEach(function(av){return t(O,av)}),se&&Rn(O,le),Z}function ce(O,E,w,L){if(typeof w=="object"&&w!==null&&w.type===he&&w.key===null&&w.props.ref===void 0&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Te:e:{for(var Z=w.key;E!==null;){if(E.key===Z){if(Z=w.type,Z===he){if(E.tag===7){n(O,E.sibling),L=i(E,w.props.children),Qn(L,w),L.return=O,O=L;break e}}else if(E.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===xe&&wa(Z)===E.type){n(O,E.sibling),L=i(E,w.props),Qn(L,w),L.return=O,O=L;break e}n(O,E);break}else t(O,E);E=E.sibling}w.type===he?(L=Ea(w.props.children,O.mode,L,w.key),Qn(L,w),L.return=O,O=L):(L=xi(w.type,w.key,w.props,null,O.mode,L),Qn(L,w),L.return=O,O=L)}return d(O);case de:e:{for(Z=w.key;E!==null;){if(E.key===Z)if(E.tag===4&&E.stateNode.containerInfo===w.containerInfo&&E.stateNode.implementation===w.implementation){n(O,E.sibling),L=i(E,w.children||[]),L.return=O,O=L;break e}else{n(O,E);break}else t(O,E);E=E.sibling}L=Ho(w,O.mode,L),L.return=O,O=L}return d(O);case xe:return w=wa(w),ce(O,E,w,L)}if(be(w))return V(O,E,w,L);if(ne(w)){if(Z=ne(w),typeof Z!="function")throw Error(c(150));return w=Z.call(w),I(O,E,w,L)}if(typeof w.then=="function")return ce(O,E,zi(w),L);if(w.$$typeof===Ee)return ce(O,E,wi(O,w),L);Di(O,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,E!==null&&E.tag===6?(n(O,E.sibling),L=i(E,w),L.return=O,O=L):(n(O,E),L=ko(w,O.mode,L),L.return=O,O=L),d(O)):n(O,E)}return function(O,E,w,L){try{sr=0;var Z=ce(O,E,w,L);return ol=null,Z}catch(W){if(W===ul||W===ji)throw W;var ge=_t(29,W,null,O.mode);return ge.lanes=L,ge.return=O,ge}}}var ja=h0(!0),y0=h0(!1),In=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Ei(e),Jf(e,null,n),t}return Si(e,a,t,n),Ei(e)}function dr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,tf(e,n)}}function Io(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Jo=!1;function fr(){if(Jo){var e=il;if(e!==null)throw e}}function mr(e,t,n,a){Jo=!1;var i=e.updateQueue;In=!1;var o=i.firstBaseUpdate,d=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var S=g,C=S.next;S.next=null,d===null?o=C:d.next=C,d=S;var D=e.alternate;D!==null&&(D=D.updateQueue,g=D.lastBaseUpdate,g!==d&&(g===null?D.firstBaseUpdate=C:g.next=C,D.lastBaseUpdate=S))}if(o!==null){var k=i.baseState;d=0,D=C=S=null,g=o;do{var T=g.lane&-536870913,j=T!==g.lane;if(j?(ye&T)===T:(a&T)===T){T!==0&&T===Ca&&(Jo=!0),D!==null&&(D=D.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var V=e,I=g;T=t;var ce=n;switch(I.tag){case 1:if(V=I.payload,typeof V=="function"){k=V.call(ce,k,T);break e}k=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=I.payload,T=typeof V=="function"?V.call(ce,k,T):V,T==null)break e;k=K({},k,T);break e;case 2:In=!0}}T=g.callback,T!==null&&(e.flags|=64,j&&(e.flags|=8192),j=i.callbacks,j===null?i.callbacks=[T]:j.push(T))}else j={lane:T,tag:g.tag,payload:g.payload,callback:g.callback,next:null},D===null?(C=D=j,S=k):D=D.next=j,d|=T;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;j=g,g=j.next,j.next=null,i.lastBaseUpdate=j,i.shared.pending=null}}while(!0);D===null&&(S=k),i.baseState=S,i.firstBaseUpdate=C,i.lastBaseUpdate=D,o===null&&(i.shared.lanes=0),ia|=d,e.lanes=d,e.memoizedState=k}}function g0(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function v0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)g0(n[e],t)}var ea=rn(null),Ui=rn(0);function p0(e,t){e=Un,Me(Ui,e),Me(ea,t),Un=e|t.baseLanes}function Wo(){Me(Ui,Un),Me(ea,ea.current)}function ec(){Un=Ui.current,lt(ea),lt(Ui)}var ut=rn(null),mt=null;function ta(e){var t=e.alternate;Me(ot,ot.current&1),Me(ut,e),mt===null&&(t===null||ea.current!==null||t.memoizedState!==null)&&(mt=e)}function tc(e){Me(ot,ot.current),Me(ut,e),mt===null&&(mt=e)}function $0(e){e.tag===22?(Me(ot,ot.current),Me(ut,e),mt===null&&(mt=e)):na()}function na(){Me(ot,ot.current),Me(ut,ut.current)}function At(e){lt(ut),mt===e&&(mt=null),lt(ot)}var ot=rn(0);function hr(e,t){Me(ut,ut.current),Me(ot,t)}function nc(e){lt(ot),lt(ut),mt===e&&(mt=null)}function Li(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xs(n)||Ns(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jn=0,oe=null,we=null,Ve=null,ki=!1,cl=!1,Ma=!1,Hi=0,yr=0,sl=null,xg=0;function Be(){throw Error(c(321))}function ac(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function lc(e,t,n,a,i,o){return jn=o,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,J.H=e===null||e.memoizedState===null?n1:a1,Ma=!1,o=n(a,i),Ma=!1,cl&&(o=b0(t,n,a,i)),_0(e),o}function _0(e){J.H=Xi;var t=we!==null&&we.next!==null;if(jn=0,Ve=we=oe=null,ki=!1,yr=0,sl=null,t)throw Error(c(300));e===null||Xe||(e=e.dependencies,e!==null&&Ri(e)&&(Xe=!0))}function b0(e,t,n,a){oe=e;var i=0;do{if(cl&&(sl=null),yr=0,cl=!1,25<=i)throw Error(c(301));if(i+=1,Ve=we=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}J.H=jg,o=t(n,a)}while(cl);return o}function Ng(){var e=J.H,t=e.useState()[0];return t=typeof t.then=="function"?gr(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(oe.flags|=1024),t}function rc(){var e=Hi!==0;return Hi=0,e}function ic(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function uc(e){if(ki){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ki=!1}jn=0,Ve=we=oe=null,cl=!1,yr=Hi=0,sl=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?oe.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Pe(){if(we===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Ve===null?oe.memoizedState:Ve.next;if(t!==null)Ve=t,we=e;else{if(e===null)throw oe.alternate===null?Error(c(467)):Error(c(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Ve===null?oe.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Bi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gr(e){var t=yr;return yr+=1,sl===null&&(sl=[]),e=d0(sl,e,t),t=oe,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,J.H=t===null||t.memoizedState===null?n1:a1),e}function Gi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gr(e);if(e.$$typeof===G)return;if(e.$$typeof===Ee)return it(e)}throw Error(c(438,String(e)))}function oc(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=oe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Bi(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ga;return t.index++,n}function Mn(e,t){return typeof t=="function"?t(e):t}function qi(e){var t=Pe();return cc(t,we,e)}function cc(e,t,n){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(o!==null){if(i!==null){var d=i.next;i.next=o.next,o.next=d}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var g=d=null,S=null,C=t,D=!1;do{var k=C.lane&-536870913;if(k!==C.lane?(ye&k)===k:(jn&k)===k){var T=C.revertLane;if(T===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),k===Ca&&(D=!0);else if((jn&T)===T){C=C.next,T===Ca&&(D=!0);continue}else k={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(g=S=k,d=o):S=S.next=k,oe.lanes|=T,ia|=T;k=C.action,Ma&&n(o,k),o=C.hasEagerState?C.eagerState:n(o,k)}else T={lane:k,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(g=S=T,d=o):S=S.next=T,oe.lanes|=k,ia|=k;C=C.next}while(C!==null&&C!==t);if(S===null?d=o:S.next=g,!wt(o,e.memoizedState)&&(Xe=!0,D&&(n=il,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=S,a.lastRenderedState=o}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function sc(e){var t=Pe(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var d=i=i.next;do o=e(o,d.action),d=d.next;while(d!==i);wt(o,t.memoizedState)||(Xe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function S0(e,t,n){var a=oe,i=Pe(),o=se;if(o){if(n===void 0)throw Error(c(407));n=n()}else n=t();var d=!wt((we||i).memoizedState,n);if(d&&(i.memoizedState=n,Xe=!0),i=i.queue,mc(N0.bind(null,a,i,e),[e]),e=i.getSnapshot!==t||d||Ve!==null&&(Ve.memoizedState.tag&1)!==0,dl(e?9:8,{destroy:void 0},x0.bind(null,a,i,n,t),null),e){if(a.flags|=2048,je===null)throw Error(c(349));o||(jn&127)!==0||E0(a,t,n)}return n}function E0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=Bi(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function x0(e,t,n,a){t.value=n,t.getSnapshot=a,T0(t)&&O0(e)}function N0(e,t,n){return n(function(){T0(t)&&O0(e)})}function T0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function O0(e){var t=Sa(e,2);t!==null&&xt(t,e,2)}function dc(e){var t=gt();if(typeof e=="function"){var n=e;if(e=n(),Ma){Pn(!0);try{n()}finally{Pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function C0(e,t,n,a){return e.baseState=n,cc(e,we,typeof a=="function"?a:Mn)}function Tg(e,t,n,a,i){if(Vi(e))throw Error(c(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};J.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,R0(t,o)):(o.next=n.next,t.pending=n.next=o)}}function R0(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=J.T,d={};d.types=o!==null?o.types:null,J.T=d;try{var g=n(i,a),S=J.S;S!==null&&S(d,g),w0(e,t,g)}catch(C){fc(e,t,C)}finally{o!==null&&d.types!==null&&(o.types=d.types),J.T=o}}else try{o=n(i,a),w0(e,t,o)}catch(C){fc(e,t,C)}}function w0(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){A0(e,t,a)},function(a){return fc(e,t,a)}):A0(e,t,n)}function A0(e,t,n){t.status="fulfilled",t.value=n,j0(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,R0(e,n)))}function fc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,j0(t),t=t.next;while(t!==a)}e.action=null}function j0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function M0(e,t){return t}function z0(e,t){if(se){var n=je.formState;if(n!==null){e:{var a=oe;if(se){if(ze){t:{for(var i=ze,o=Pt;i.nodeType!==8;){if(!o){i=null;break t}if(i=Vt(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){ze=Vt(i.nextSibling),a=i.data==="F!";break e}}Kn(a)}a=!1}a&&(t=n[0])}}return n=gt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M0,lastRenderedState:t},n.queue=a,n=W0.bind(null,oe,a),a.dispatch=n,a=dc(!1),o=pc.bind(null,oe,!1,a.queue),a=gt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=Tg.bind(null,oe,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function D0(e){var t=Pe();return U0(t,we,e)}function U0(e,t,n){if(t=cc(e,t,M0)[0],e=qi(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=gr(t)}catch(d){throw d===ul?ji:d}else a=t;t=Pe();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,dl(9,{destroy:void 0},Og.bind(null,i,n),null)),[a,o,e]}function Og(e,t){e.action=t}function L0(e){var t=Pe(),n=we;if(n!==null)return U0(t,n,e);Pe(),t=t.memoizedState,n=Pe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function dl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Bi(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function k0(){return Pe().memoizedState}function Pi(e,t,n,a){var i=gt();oe.flags|=e,i.memoizedState=dl(1|t,{destroy:void 0},n,a===void 0?null:a)}function Yi(e,t,n,a){var i=Pe();a=a===void 0?null:a;var o=i.memoizedState.inst;we!==null&&a!==null&&ac(a,we.memoizedState.deps)?i.memoizedState=dl(t,o,n,a):(oe.flags|=e,i.memoizedState=dl(1|t,o,n,a))}function H0(e,t){Pi(8390656,8,e,t)}function mc(e,t){Yi(2048,8,e,t)}function Cg(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=Bi(),oe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function B0(e){var t=Pe().memoizedState;return Cg({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function G0(e,t){return Yi(4,2,e,t)}function q0(e,t){return Yi(4,4,e,t)}function P0(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Y0(e,t,n){n=n!=null?n.concat([e]):null,Yi(4,4,P0.bind(null,t,e),n)}function hc(){}function V0(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&ac(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function X0(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&ac(t,a[1]))return a[0];if(a=e(),Ma){Pn(!0);try{e()}finally{Pn(!1)}}return n.memoizedState=[a,t],a}function yc(e,t,n){return n===void 0||(jn&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=n2(),oe.lanes|=e,ia|=e,n)}function F0(e,t,n,a){return wt(n,t)?n:ea.current!==null?(e=yc(e,n,a),wt(e,t)||(Xe=!0),e):(jn&106)===0||(jn&1073741824)!==0&&(ye&261930)===0?(Xe=!0,e.memoizedState=n):(e=n2(),oe.lanes|=e,ia|=e,t)}function K0(e,t,n,a,i){var o=ie.p;ie.p=o!==0&&8>o?o:8;var d=J.T,g={};g.types=d!==null?d.types:null,J.T=g,pc(e,!1,t,n);try{var S=i(),C=J.S;if(C!==null&&C(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var D=Eg(S,a);vr(e,t,D,Dt(e))}else vr(e,t,a,Dt(e))}catch(k){vr(e,t,{then:function(){},status:"rejected",reason:k},Dt())}finally{ie.p=o,d!==null&&g.types!==null&&(d.types=g.types),J.T=d}}function Rg(){}function gc(e,t,n,a){if(e.tag!==5)throw Error(c(476));var i=Z0(e).queue;K0(e,i,t,Sn,n===null?Rg:function(){return Q0(e),n(a)})}function Z0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Sn,baseState:Sn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:Sn},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Q0(e){var t=Z0(e);t.next===null&&(t=e.alternate.memoizedState),vr(e,t.next.queue,{},Dt())}function vc(){return it(wl)}function I0(){return Pe().memoizedState}function J0(){return Pe().memoizedState}function wg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dt();e=Jn(n);var a=Wn(t,e,n);a!==null&&(xt(a,t,n),dr(a,t,n)),t={cache:Vo()},e.payload=t;return}t=t.return}}function Ag(e,t,n){var a=Dt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vi(e)?e1(t,n):(n=Uo(e,t,n,a),n!==null&&(xt(n,e,a),t1(n,t,a)))}function W0(e,t,n){var a=Dt();vr(e,t,n,a)}function vr(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vi(e))e1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,g=o(d,n);if(i.hasEagerState=!0,i.eagerState=g,wt(g,d))return Si(e,t,i,0),je===null&&bi(),!1}catch{}if(n=Uo(e,t,i,a),n!==null)return xt(n,e,a),t1(n,t,a),!0}return!1}function pc(e,t,n,a){if(a={lane:2,revertLane:os(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Vi(e)){if(t)throw Error(c(479))}else t=Uo(e,n,a,2),t!==null&&xt(t,e,2)}function Vi(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function e1(e,t){cl=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t1(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,tf(e,n)}}var Xi={readContext:it,use:Gi,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be,useEffectEvent:Be},n1={readContext:it,use:Gi,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:H0,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Pi(4194308,4,P0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){Pi(4,2,e,t)},useMemo:function(e,t){var n=gt();t=t===void 0?null:t;var a=e();if(Ma){Pn(!0);try{e()}finally{Pn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=gt();if(n!==void 0){var i=n(t);if(Ma){Pn(!0);try{n(t)}finally{Pn(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=Ag.bind(null,oe,e),[a.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=dc(e);var t=e.queue,n=W0.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hc,useDeferredValue:function(e,t){var n=gt();return yc(n,e,t)},useTransition:function(){var e=dc(!1);return e=K0.bind(null,oe,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=oe,i=gt();if(se){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),je===null)throw Error(c(349));(ye&127)!==0||E0(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,H0(N0.bind(null,a,o,e),[e]),a.flags|=2048,dl(9,{destroy:void 0},x0.bind(null,a,o,n,t),null),n},useId:function(){var e=gt(),t=je.identifierPrefix;if(se){var n=sn,a=cn;n=(a&~(1<<32-Ct(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Hi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=xg++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vc,useFormState:z0,useActionState:z0,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pc.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:oc,useCacheRefresh:function(){return gt().memoizedState=wg.bind(null,oe)},useEffectEvent:function(e){var t=gt(),n={impl:e};return t.memoizedState=n,function(){if((Se&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},a1={readContext:it,use:Gi,useCallback:V0,useContext:it,useEffect:mc,useImperativeHandle:Y0,useInsertionEffect:G0,useLayoutEffect:q0,useMemo:X0,useReducer:qi,useRef:k0,useState:function(){return qi(Mn)},useDebugValue:hc,useDeferredValue:function(e,t){var n=Pe();return F0(n,we.memoizedState,e,t)},useTransition:function(){var e=qi(Mn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:gr(e),t]},useSyncExternalStore:S0,useId:I0,useHostTransitionStatus:vc,useFormState:D0,useActionState:D0,useOptimistic:function(e,t){var n=Pe();return C0(n,we,e,t)},useMemoCache:oc,useCacheRefresh:J0,useEffectEvent:B0},jg={readContext:it,use:Gi,useCallback:V0,useContext:it,useEffect:mc,useImperativeHandle:Y0,useInsertionEffect:G0,useLayoutEffect:q0,useMemo:X0,useReducer:sc,useRef:k0,useState:function(){return sc(Mn)},useDebugValue:hc,useDeferredValue:function(e,t){var n=Pe();return we===null?yc(n,e,t):F0(n,we.memoizedState,e,t)},useTransition:function(){var e=sc(Mn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:gr(e),t]},useSyncExternalStore:S0,useId:I0,useHostTransitionStatus:vc,useFormState:L0,useActionState:L0,useOptimistic:function(e,t){var n=Pe();return we!==null?C0(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:oc,useCacheRefresh:J0,useEffectEvent:B0};function $c(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Dt(),i=Jn(a);i.payload=t,n!=null&&(i.callback=n),t=Wn(e,i,a),t!==null&&(xt(t,e,a),dr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Dt(),i=Jn(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wn(e,i,a),t!==null&&(xt(t,e,a),dr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),a=Jn(n);a.tag=2,t!=null&&(a.callback=t),t=Wn(e,a,n),t!==null&&(xt(t,e,n),dr(t,e,n))}};function l1(e,t,n,a,i,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,d):t.prototype&&t.prototype.isPureReactComponent?!ar(n,a)||!ar(i,o):!0}function r1(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function za(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=K({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function i1(e){_i(e)}function u1(e){console.error(e)}function o1(e){_i(e)}function Fi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function c1(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function bc(e,t,n){return n=Jn(n),n.tag=3,n.payload={element:null},n.callback=function(){Fi(e,t)},n}function s1(e){return e=Jn(e),e.tag=3,e}function d1(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){c1(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){c1(t,n,a),typeof i!="function"&&(ua===null?ua=new Set([this]):ua.add(this));var g=a.stack;this.componentDidCatch(a.value,{componentStack:g!==null?g:""})})}function Mg(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ta(t,n,i,!0),n=ut.current,n!==null){switch(n.tag){case 31:case 13:case 19:return mt===null?hu():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===Mi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),rs(e,a,i)),!1;case 22:return n.flags|=65536,a===Mi?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),rs(e,a,i)),!1}throw Error(c(435,n.tag))}return rs(e,a,i),hu(),!1}if(se)return t=ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Go&&(e=Error(c(422),{cause:a}),ir(Bt(e,n)))):(a!==Go&&(t=Error(c(423),{cause:a}),ir(Bt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Bt(a,n),i=bc(e.stateNode,a,i),Io(e,i),Ge!==4&&(Ge=2)),!1;var o=Error(c(520),{cause:a});if(o=Bt(o,n),Nr===null?Nr=[o]:Nr.push(o),Ge!==4&&(Ge=2),t===null)return!0;a=Bt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=bc(n.stateNode,a,e),Io(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ua===null||!ua.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=s1(i),d1(i,e,n,a),Io(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Sc=Error(c(461)),Xe=!1;function Ke(e,t,n,a){t.child=e===null?y0(t,null,n,a):ja(t,e.child,n,a)}function f1(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var d={};for(var g in a)g!=="ref"&&(d[g]=a[g])}else d=a;return Oa(t),a=lc(e,t,n,d,o,i),g=rc(),e!==null&&!Xe?(ic(e,t,i),zn(e,t,i)):(se&&g&&Ti(t),t.flags|=1,Ke(e,t,a,i),t.child)}function m1(e,t,n,a,i){if(e===null){var o=n.type;return typeof o=="function"&&!Lo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,h1(e,t,o,a,i)):(e=xi(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!wc(e,i)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:ar,n(d,a)&&e.ref===t.ref)return zn(e,t,i)}return t.flags|=1,e=Cn(o,a),e.ref=t.ref,e.return=t,t.child=e}function h1(e,t,n,a,i){if(e!==null){var o=e.memoizedProps;if(ar(o,a)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=a=o,wc(e,i))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,zn(e,t,i)}return Ec(e,t,n,a,i)}function y1(e,t,n,a){var i=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return g1(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ai(t,o!==null?o.cachePool:null),o!==null?p0(t,o):Wo(),$0(t);else return a=t.lanes=536870912,g1(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(Ai(t,o.cachePool),p0(t,o),na(),t.memoizedState=null):(e!==null&&Ai(t,null),Wo(),na());return Ke(e,t,i,n),t.child}function pr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function g1(e,t,n,a,i){var o=Fo();return o=o===null?null:{parent:Ye._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Ai(t,null),Wo(),$0(t),e!==null&&Ta(e,t,a,!0),t.childLanes=i,null}function Ki(e,t){return t=Zi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function v1(e,t,n){return ja(t,e.child,null,n),e=Ki(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function zg(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(se){if(a.mode==="hidden")return e=Ki(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},pr(null,e);if(tc(t),(e=ze)?(e=P2(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:cn,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=e0(e),n.return=t,t.child=n,We=t,ze=null)):e=null,e===null)throw Kn(t);return t.lanes=536870912,null}return Ki(t,a)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(tc(t),i)if(t.flags&256)t.flags&=-257,t=v1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Xe||Ta(e,t,n,!1),i=(n&e.childLanes)!==0,Xe||i){if(ea.current===null){if(a=je,a!==null&&(d=nf(a,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,Sa(e,d),xt(a,e,d),Sc;hu()}t=v1(e,t,n)}else e=o.treeContext,ze=Vt(d.nextSibling),We=t,se=!0,Fn=null,Pt=!1,e!==null&&a0(t,e),t=Ki(t,a),t.flags|=134221824;return t}return e=Cn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ec(e,t,n,a,i){return Oa(t),n=lc(e,t,n,a,void 0,i),a=rc(),e!==null&&!Xe?(ic(e,t,i),zn(e,t,i)):(se&&a&&Ti(t),t.flags|=1,Ke(e,t,n,i),t.child)}function p1(e,t,n,a,i,o){return Oa(t),t.updateQueue=null,n=b0(t,a,n,i),_0(e),a=rc(),e!==null&&!Xe?(ic(e,t,o),zn(e,t,o)):(se&&a&&Ti(t),t.flags|=1,Ke(e,t,n,o),t.child)}function $1(e,t,n,a,i){if(Oa(t),t.stateNode===null){var o=nl,d=n.contextType;typeof d=="object"&&d!==null&&(o=it(d)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=_c,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Zo(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?it(d):nl,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&($c(t,n,d,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&_c.enqueueReplaceState(o,o.state,null),mr(t,a,o,i),fr(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var g=t.memoizedProps,S=za(n,g);o.props=S;var C=o.context,D=n.contextType;d=nl,typeof D=="object"&&D!==null&&(d=it(D));var k=n.getDerivedStateFromProps;D=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,D||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(g||C!==d)&&r1(t,o,a,d),In=!1;var T=t.memoizedState;o.state=T,mr(t,a,o,i),fr(),C=t.memoizedState,g||T!==C||In?(typeof k=="function"&&($c(t,n,k,a),C=t.memoizedState),(S=In||l1(t,n,S,a,T,C,d))?(D||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),o.props=a,o.state=C,o.context=d,a=S):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Qo(e,t),d=t.memoizedProps,D=za(n,d),o.props=D,k=t.pendingProps,T=o.context,C=n.contextType,S=nl,typeof C=="object"&&C!==null&&(S=it(C)),g=n.getDerivedStateFromProps,(C=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==k||T!==S)&&r1(t,o,a,S),In=!1,T=t.memoizedState,o.state=T,mr(t,a,o,i),fr();var j=t.memoizedState;d!==k||T!==j||In||e!==null&&e.dependencies!==null&&Ri(e.dependencies)?(typeof g=="function"&&($c(t,n,g,a),j=t.memoizedState),(D=In||l1(t,n,D,a,T,j,S)||e!==null&&e.dependencies!==null&&Ri(e.dependencies))?(C||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,j,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,j,S)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),o.props=a,o.state=j,o.context=S,a=D):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,fl(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=ja(t,e.child,null,i),t.child=ja(t,null,n,i)):Ke(e,t,n,i),t.memoizedState=o.state,e=t.child):e=zn(e,t,i),e}function _1(e,t,n,a){return xa(),t.flags|=256,Ke(e,t,n,a),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(e){return{baseLanes:e,cachePool:c0()}}function Tc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function b1(e,t,n){var a=t.pendingProps,i=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(se){if(i?ta(t):na(),(e=ze)?(e=P2(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:cn,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=e0(e),n.return=t,t.child=n,We=t,ze=null)):e=null,e===null)throw Kn(t);return Ns(e)?t.lanes=32:t.lanes=536870912,null}return o=a.children,a=a.fallback,i?(na(),i=t.mode,o=Zi({mode:"hidden",children:o},i),a=Ea(a,i,n,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=Nc(n),a.childLanes=Tc(e,d,n),t.memoizedState=xc,pr(null,a)):(ta(t),Oc(t,o))}var g=e.memoizedState;if(g!==null){var S=g.dehydrated;if(S!==null)return Dg(e,t,o,d,a,S,g,n)}return i?(na(),i=a.fallback,o=t.mode,g=e.child,S=g.sibling,a=Cn(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&1206910976,S!==null?i=Cn(S,i):(i=Ea(i,o,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,pr(null,a),a=t.child,i=e.child.memoizedState,i===null?i=Nc(n):(o=i.cachePool,o!==null?(g=Ye._currentValue,o=o.parent!==g?{parent:g,pool:g}:o):o=c0(),i={baseLanes:i.baseLanes|n,cachePool:o}),a.memoizedState=i,a.childLanes=Tc(e,d,n),t.memoizedState=xc,pr(e.child,a)):(ta(t),n=e.child,e=n.sibling,n=Cn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Oc(e,t){return t=Zi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zi(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function Qi(e,t,n){return ja(t,e.child,null,n),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dg(e,t,n,a,i,o,d,g){if(n)return t.flags&256?(ta(t),t.flags&=-257,Qi(e,t,g)):t.memoizedState!==null?(na(),t.child=e.child,t.flags|=128,null):(na(),o=i.fallback,d=t.mode,i=Zi({mode:"visible",children:i.children},d),o=Ea(o,d,g,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,ja(t,e.child,null,g),i=t.child,i.memoizedState=Nc(g),i.childLanes=Tc(e,a,g),t.memoizedState=xc,pr(null,i));if(ta(t),Ns(o)){if(a=o.nextSibling&&o.nextSibling.dataset,a)var S=a.dgst;return a=S,a!==""&&(i=Error(c(419)),i.stack="",i.digest=a,ir({value:i,source:null,stack:null})),Qi(e,t,g)}if(Xe||Ta(e,t,g,!1),a=(g&e.childLanes)!==0,Xe||a){if(ea.current!==null)return Qi(e,t,g);if(a=je,a!==null&&(i=nf(a,g),i!==0&&i!==d.retryLane))throw d.retryLane=i,Sa(e,i),xt(a,e,i),Sc;return xs(o)||hu(),Qi(e,t,g)}return xs(o)?(t.flags|=192,t.child=e.child,null):(e=d.treeContext,ze=Vt(o.nextSibling),We=t,se=!0,Fn=null,Pt=!1,e!==null&&a0(t,e),t=Oc(t,i.children),t.flags|=134221824,t)}function S1(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ci(e.return,t,n)}function E1(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Li(n)===null&&(t=e),e=e.sibling}return t}function Ii(e,t,n,a,i,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=i,d.treeForkCount=o)}function Cc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Rc(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var d=ot.current;if(t.flags&128)return hr(t,d),null;var g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,hr(t,d),i==="backwards"&&e!==null?(Cc(e),Ke(e,t,a,n),Cc(e)):Ke(e,t,a,n),a=se?rr:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&S1(e,n,t);else if(e.tag===19)S1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":n=E1(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,Cc(t)),Ii(t,!0,i,null,o,a);break;case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Li(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ii(t,!0,n,null,o,a);break;case"together":Ii(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=E1(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ii(t,!1,i,n,o,a)}return t.child}function x1(e,t,n){var a=t.pendingProps;return Zn(t,t.type,a.value),Ke(e,t,a.children,n),t.child}function zn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ia|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ri(e)))}function Ug(e,t,n){switch(t.tag){case 3:ni(t,t.stateNode.containerInfo),Zn(t,Ye,e.memoizedState.cache),xa();break;case 27:case 5:no(t);break;case 4:ni(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tc(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return ta(t),t.flags|=128,null;a=Ta(e,t,n,!1);var i=t.child.childLanes;return a||(n&i)!==0?b1(e,t,n):(ta(t),e=zn(e,t,n),e!==null?e.sibling:null)}ta(t);break;case 19:if(t.flags&128)return Rc(e,t,n);if(i=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(Ta(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Rc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),hr(t,ot.current),a)break;return null;case 22:return t.lanes=0,y1(e,t,n,t.pendingProps);case 24:Zn(t,Ye,e.memoizedState.cache)}return zn(e,t,n)}function N1(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!wc(e,n)&&(t.flags&128)===0)return Xe=!1,Ug(e,t,n);Xe=(e.flags&131072)!==0}else Xe=!1,se&&(t.flags&1048576)!==0&&n0(t,rr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=wa(t.elementType),t.type=e,typeof e=="function")Lo(e)?(a=za(e,a),t.tag=1,t=$1(null,t,e,a,n)):(t.tag=0,t=Ec(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===F){t.tag=11,t=f1(null,t,e,a,n);break e}else if(i===Ae){t.tag=14,t=m1(null,t,e,a,n);break e}else if(i===Ee){t.tag=10,t.type=e,t=x1(null,t,n);break e}}throw t=$e(e)||e,Error(c(306,t,""))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=za(a,t.pendingProps),$1(e,t,a,i,n);case 3:e:{if(ni(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,Qo(e,t),mr(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Zn(t,Ye,a),a!==o.cache&&Yo(t,[Ye],n,!0),fr(),a=d.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=_1(e,t,a,n);break e}else if(a!==i){i=Bt(Error(c(424)),t),ir(i),t=_1(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ze=Vt(e.firstChild),We=t,se=!0,Fn=null,Pt=!0,n=y0(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(xa(),a===i){t=zn(e,t,n);break e}Ke(e,t,a,n)}t=t.child}return t;case 26:return fl(e,t),e===null?(n=Q2(t.type,null,t.pendingProps,null))?t.memoizedState=n:se||(t.stateNode=R2(t.type,t.pendingProps,Gn.current,t)):t.memoizedState=Q2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return no(t),e===null&&se&&(a=t.stateNode=X2(t.type,t.pendingProps,Gn.current),We=t,Pt=!0,i=ze,sa(t.type)?(Ts=i,ze=Vt(a.firstChild)):ze=i),Ke(e,t,t.pendingProps.children,n),fl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&se&&((i=a=ze)&&(a=w4(a,t.type,t.pendingProps,Pt),a!==null?(t.stateNode=a,We=t,ze=Vt(a.firstChild),Pt=!1,i=!0):i=!1),i||Kn(t)),no(t),i=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,a=o.children,vs(i,o)?a=null:d!==null&&vs(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=lc(e,t,Ng,null,null,n),wl._currentValue=i),fl(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&se&&((e=n=ze)&&(n=A4(n,t.pendingProps,Pt),n!==null?(t.stateNode=n,We=t,ze=null,e=!0):e=!1),e||Kn(t)),null;case 13:return b1(e,t,n);case 4:return ni(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ja(t,null,a,n):Ke(e,t,a,n),t.child;case 11:return f1(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,fl(e,t),Ke(e,t,a,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:return x1(e,t,n);case 9:return i=t.type._context,a=t.pendingProps.children,Oa(t),i=it(i),a=a(i),t.flags|=1,Ke(e,t,a,n),t.child;case 14:return m1(e,t,t.type,t.pendingProps,n);case 15:return h1(e,t,t.type,t.pendingProps,n);case 19:return Rc(e,t,n);case 31:return zg(e,t,n);case 22:return y1(e,t,n,t.pendingProps);case 24:return Oa(t),a=it(Ye),e===null?(i=Fo(),i===null&&(i=je,o=Vo(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},Zo(t),Zn(t,Ye,i)):((e.lanes&n)!==0&&(Qo(e,t),mr(t,null,null,n),fr()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Zn(t,Ye,a)):(a=o.cache,Zn(t,Ye,a),a!==i.cache&&Yo(t,[Ye],n,!0))),Ke(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:se&&Ti(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:fl(e,t),Ke(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Dn(e){e.flags|=4}function Ac(e,t,n,a,i){var o;if((o=(e.mode&32)!==0)&&(o=n===null?em(t,a):em(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(i2())e.flags|=8192;else throw Aa=Mi,Ko}else e.flags&=-16777217}function T1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tm(t))if(i2())e.flags|=8192;else throw Aa=Mi,Ko}function Ji(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Wd():536870912,e.lanes|=t,vl|=t)}function $r(e,t){if(!se)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&1206910976,a|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Lg(e,t,n){var a=t.pendingProps;switch(Bo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),An(Ye),Pa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(rl(t)?Dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qo())),De(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Dn(t),o!==null?(De(t),T1(t,o)):(De(t),Ac(t,i,null,a,n))):o?o!==e.memoizedState?(Dn(t),De(t),T1(t,o)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Dn(t),De(t),Ac(t,i,e,a,n)),null;case 27:if(ai(t),n=Gn.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Dn(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),t.subtreeFlags&=-33554433,null}e=un.current,rl(t)?l0(t):(e=X2(i,a,n),t.stateNode=e,Dn(t))}return De(t),t.subtreeFlags&=-33554433,null;case 5:if(ai(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Dn(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),t.subtreeFlags&=-33554433,null}if(o=un.current,rl(t))l0(t);else{var d=wr(Gn.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?d.createElement(i,{is:a.is}):d.createElement(i)}}o[rt]=t,o[$t]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(st(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Dn(t)}}return De(t),t.subtreeFlags&=-33554433,Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Dn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=Gn.current,rl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=We,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||N2(e.nodeValue,n)),e||Kn(t,!0)}else e=wr(e).createTextNode(a),e[rt]=t,t.stateNode=e}return De(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=rl(t),n!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[rt]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else n=qo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(c(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=rl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[rt]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),i=!1}else i=qo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ji(t,t.updateQueue),De(t),null);case 4:return Pa(),e===null&&fs(t.stateNode.containerInfo),t.flags|=67108864,De(t),null;case 10:return An(t.type),De(t),null;case 19:if(nc(t),a=t.memoizedState,a===null)return De(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)$r(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Li(e),o!==null){for(t.flags|=128,$r(a,!1),e=o.updateQueue,t.updateQueue=e,Ji(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Wf(n,e),n=n.sibling;return hr(t,ot.current&1|2),se&&Rn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Tt()>su&&(t.flags|=128,i=!0,$r(a,!1),t.lanes=4194304)}else{if(!i)if(e=Li(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ji(t,e),$r(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!o.alternate&&!se)return De(t),null}else 2*Tt()-a.renderingStartTime>su&&n!==536870912&&(t.flags|=128,i=!0,$r(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Tt(),e.sibling=null,o=ot.current,o=i?o&1|2:o&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||se?hr(t,o):(n=o,Me(ut,t),Me(ot,n),mt===null&&(mt=t)),se&&Rn(t,a.treeForkCount),e}return De(t),null;case 22:case 23:return At(t),ec(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),n=t.updateQueue,n!==null&&Ji(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&<(Ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),An(Ye),De(t),null;case 25:return null;case 30:return t.flags|=33554432,De(t),null}throw Error(c(156,t.tag))}function kg(e,t){switch(Bo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return An(Ye),Pa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ai(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(c(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nc(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Pa(),null;case 10:return An(t.type),null;case 22:case 23:return At(t),ec(),e!==null&<(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return An(Ye),null;case 25:return null;default:return null}}function O1(e,t){switch(Bo(t),t.tag){case 3:An(Ye),Pa();break;case 26:case 27:case 5:ai(t);break;case 4:Pa();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:nc(t);break;case 10:An(t.type);break;case 22:case 23:At(t),ec(),e!==null&<(Ra);break;case 24:An(Ye)}}function _r(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,d=n.inst;a=o(),d.destroy=a}n=n.next}while(n!==i)}}catch(g){Ce(t,t.return,g)}}function aa(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){var d=a.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,i=t;var S=n,C=g;try{C()}catch(D){Ce(i,S,D)}}}a=a.next}while(a!==o)}}catch(D){Ce(t,t.return,D)}}function C1(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{v0(t,n)}catch(a){Ce(e,e.return,a)}}}function R1(e,t,n){n.props=za(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ce(e,t,a)}}function dn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var i=e.stateNode,o=Tn(e.memoizedProps,i);(i.ref===null||i.ref.name!==o)&&(i.ref=U2(o)),a=i.ref;break;case 7:if(e.stateNode===null){var d=new Ut(e);p(e.child,!1,C4,d,void 0,void 0),e.stateNode=d}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(g){Ce(e,t,g)}}function ct(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ce(e,t,i)}else n.current=null}function Wi(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)q2(e.stateNode,t[n])}function w1(e){for(var t=e.return;t!==null&&(Mc(t)&&q2(e.stateNode,t.stateNode),!jc(t));)t=t.return}function br(e){for(var t=e.return;t!==null&&(Mc(t)&&R4(e.stateNode,t.stateNode),!jc(t));)t=t.return}function jc(e){return e.tag===5||e.tag===3||e.tag===27}function Mc(e){return e&&e.tag===7&&e.stateNode!==null}function zc(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Ce(e,e.return,i)}}function Dc(e,t,n){try{var a=e.stateNode;s4(a,e.type,n,t),a[$t]=t}catch(i){Ce(e,e.return,i)}}function A1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||A1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lc(e,t,n,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on)),Wi(e,a),_e=!0;else if(i!==4&&(i===27&&(Wi(e,a),a=null,sa(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Lc(e,t,n,a),e=e.sibling;e!==null;)Lc(e,t,n,a),e=e.sibling}function eu(e,t,n,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Wi(e,a),_e=!0;else if(i!==4&&(i===27&&(Wi(e,a),a=null,sa(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(eu(e,t,n,a),e=e.sibling;e!==null;)eu(e,t,n,a),e=e.sibling}function j1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);st(t,a,n),t[rt]=e,t[$t]=n}catch(o){Ce(e,e.return,o)}}var tu=!1,jt=null;function M1(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(tu=!0)}var fn=null;function z1(){var e=fn;return fn=null,e}var bt=0;function ml(e,t,n,a,i){return bt=0,D1(e.child,t,n,a,i)}function D1(e,t,n,a,i){for(var o=!1;e!==null;){if(e.tag===5){var d=e.stateNode;if(a!==null){var g=_s(d);a.push(g),g.view&&(o=!0)}else o||_s(d).view&&(o=!0);tu=!0,z2(d,bt===0?t:t+"_"+bt,n),bt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||D1(e.child,t,n,a,i)&&(o=!0));e=e.sibling}return o}function mn(e,t){for(;e!==null;)e.tag===5?D2(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||mn(e.child,t)),e=e.sibling}function nu(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(nu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(c(544));var n=t.name;t=On(t.default,t.share),t!=="none"&&(ml(e,n,t,null,!1)||mn(e.child,!1))}e=e.sibling}}function kc(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,i=Tn(a,n),o=On(a.default,n.paired?a.share:a.enter);o!=="none"?ml(e,i,o,null,!1)?(nu(e),n.paired||t||bl(e,a.onEnter)):mn(e.child,!1):nu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)kc(e,t),e=e.sibling;else nu(e)}function Hc(e){if(jt!==null&&jt.size!==0){var t=jt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var i=t.get(a);if(i!==void 0){var o=On(n.default,n.share);if(o!=="none"&&(ml(e,a,o,null,!1)?(o=e.stateNode,i.paired=o,o.paired=i,bl(e,n.onShare)):mn(e.child,!1)),t.delete(a),t.size===0)break}}}Hc(e)}e=e.sibling}}}function Bc(e){if(e.tag===30){var t=e.memoizedProps,n=Tn(t,e.stateNode),a=jt!==null?jt.get(n):void 0,i=On(t.default,a!==void 0?t.share:t.exit);i!=="none"&&(ml(e,n,i,null,!1)?a!==void 0?(i=e.stateNode,a.paired=i,i.paired=a,jt.delete(n),bl(e,t.onShare)):bl(e,t.onExit):mn(e.child,!1)),jt!==null&&Hc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Bc(e),e=e.sibling;else jt!==null&&Hc(e)}function U1(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Tn(t,e.stateNode);t=On(t.default,t.update),e.flags&=-5,t!=="none"&&ml(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&U1(e);e=e.sibling}}function Gc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,mn(e.child,!1))}Gc(e)}e=e.sibling}}function au(e){if(e.tag===30)e.stateNode.paired=null,mn(e.child,!1),Gc(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)au(e),e=e.sibling;else Gc(e)}function L1(e){for(e=e.child;e!==null;)e.tag===30?mn(e.child,!1):(e.subtreeFlags&33554432)!==0&&L1(e),e=e.sibling}function qc(e,t,n,a,i,o,d){for(var g=!1;t!==null;){if(t.tag===5){var S=t.stateNode;if(o!==null&&bt<o.length){var C=o[bt],D=_s(S);(C.view||D.view)&&(g=!0);var k;if(k=(e.flags&4)===0)if(D.clip)k=!0;else{k=C.rect;var T=D.rect;k=k.y!==T.y||k.x!==T.x||k.height!==T.height||k.width!==T.width}k&&(e.flags|=4),D.abs?D=!C.abs:(C=C.rect,D=D.rect,D=C.height!==D.height||C.width!==D.width),D&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&z2(S,bt===0?n:n+"_"+bt,i),g&&(e.flags&4)!==0||(fn===null&&(fn=[]),fn.push(S,bt===0?a:a+"_"+bt,t.memoizedProps)),bt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&d?e.flags|=t.flags&32:qc(e,t.child,n,a,i,o,d)&&(g=!0));t=t.sibling}return g}function k1(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,i=Tn(n,a),o=On(n.default,n.update),d;d=e.memoizedState,e.memoizedState=null,a=e;var g=e.child;bt=0,i=qc(a,g,i,i,o,d,!1),(e.flags&4)!==0&&i&&bl(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&k1(e);e=e.sibling}}var et=!1,Ne=!1,hn=!1,Pc=!1,H1=typeof WeakSet=="function"?WeakSet:Set,tt=null,yn=!1,Sr=!1,lu=!1,Yc=!1;function Hg(e,t,n){if(e=e.containerInfo,ys=Al,e=Pf(e),wo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var g=0,S=-1,C=-1,D=0,k=0,T=e,j=null;t:for(;;){for(var V;T!==a||o!==0&&T.nodeType!==3||(S=g+o),T!==d||i!==0&&T.nodeType!==3||(C=g+i),T.nodeType===3&&(g+=T.nodeValue.length),(V=T.firstChild)!==null;)j=T,T=V;for(;;){if(T===e)break t;if(j===a&&++D===o&&(S=g),j===d&&++k===i&&(C=g),(V=T.nextSibling)!==null)break;T=j,j=T.parentNode}T=V}a=S===-1||C===-1?null:{start:S,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for(gs={focusedElem:e,selectionRange:a},Al=!1,n=(n&335544064)===n,tt=t,t=n?9270:1024;tt!==null;){if(e=tt,n&&(a=e.deletions,a!==null))for(o=0;o<a.length;o++)n&&Bc(a[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&M1(e),ru(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&Bc(a),ru(n);continue}else if(a!==null&&a.memoizedState!==null){n&&M1(e),ru(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,tt=a):(n&&U1(e),ru(n))}}jt=null}function ru(e){for(;tt!==null;){var t=tt,n=e,a=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&a!==null){n=void 0,i=a.memoizedProps,a=a.memoizedState;var o=t.stateNode;try{var d=za(t.type,i);n=o.getSnapshotBeforeUpdate(d,a),o.__reactInternalSnapshotBeforeUpdate=n}catch(g){Ce(t,t.return,g)}}break;case 3:if((i&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)Es(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Es(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=Tn(a.memoizedProps,a.stateNode),i=t.memoizedProps,i=On(i.default,i.update),i!=="none"&&ml(a,n,i,a.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(c(163))}if(a=t.sibling,a!==null){a.return=t.return,tt=a;break}tt=t.return}}function B1(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:gn(e,n),a&4&&_r(5,n);break;case 1:if(gn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Ce(n,n.return,d)}else{var i=za(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ce(n,n.return,d)}}a&64&&C1(n),a&512&&dn(n,n.return);break;case 3:if(gn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{v0(e,t)}catch(d){Ce(n,n.return,d)}}break;case 27:t===null&&a&4&&j1(n);case 26:case 5:gn(e,n),t===null&&a&4&&zc(n),a&512&&dn(n,n.return);break;case 12:gn(e,n);break;case 31:gn(e,n),a&4&&Y1(e,n);break;case 13:gn(e,n),a&4&&V1(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ig.bind(null,n),j4(e,n))));break;case 22:if(a=n.memoizedState!==null||et,!a){var o=t!==null&&t.memoizedState!==null||Ne;t=et,i=Ne,et=a,(Ne=o)&&!i?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),Wt(e,n,a)):gn(e,n),et=t,Ne=i}break;case 30:gn(e,n),a&512&&dn(n,n.return);break;case 7:a&512&&dn(n,n.return);default:gn(e,n)}}function Vc(e,t){for(e=e.child;e!==null;)G1(e,t),e=e.sibling}function G1(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var i=e.stateNode,o=e.memoizedProps.style,d=o!=null&&o.hasOwnProperty("display")?o.display:null;i.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(S){Ce(e,e.return,S)}Xc(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,_e=!0}catch(S){Ce(e,e.return,S)}break;case 18:try{var g=e.stateNode;t?M2(g,!0):M2(e.stateNode,!1)}catch(S){Ce(e,e.return,S)}break;case 22:case 23:e.memoizedState===null&&Vc(e,t);break;default:Vc(e,t)}}function Xc(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:G1(n,a);break e;case 22:n.memoizedState===null&&Xc(n,a);break e;default:Xc(n,a)}}e=e.sibling}}function q1(e){var t=e.alternate;t!==null&&(e.alternate=null,q1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&si(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,St=!1;function It(e,t,n){for(n=n.child;n!==null;)P1(e,t,n),n=n.sibling}function P1(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 26:Ne||ct(n,t),It(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Ne&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ne||ct(n,t),br(n);var a=Ue,i=St;sa(n.type)&&(Ue=n.stateNode,St=!1),It(e,t,n),F2(n.stateNode,n.type,n.memoizedProps),Ue=a,St=i;break;case 5:Ne||ct(n,t),br(n);case 6:if(n.tag===6&&br(n),a=Ue,i=St,Ue=null,It(e,t,n),Ue=a,St=i,Ue!==null)if(St)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),_e=!0}catch(o){Ce(n,t,o)}else try{Ue.removeChild(n.stateNode),_e=!0}catch(o){Ce(n,t,o)}break;case 18:Ue!==null&&(St?(e=Ue,j2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),jl(e)):j2(Ue,n.stateNode));break;case 4:a=Ue,i=St,Ue=n.stateNode.containerInfo,St=!0,It(e,t,n),Ue=a,St=i;break;case 0:case 11:case 14:case 15:aa(2,n,t),Ne||aa(4,n,t),It(e,t,n);break;case 1:Ne||(ct(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&R1(n,t,a)),It(e,t,n);break;case 21:It(e,t,n);break;case 22:Ne=(a=Ne)||n.memoizedState!==null,It(e,t,n),Ne=a;break;case 30:ct(n,t),It(e,t,n);break;case 7:Ne||ct(n,t),It(e,t,n);break;default:It(e,t,n)}}function Y1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{jl(e)}catch(n){Ce(t,t.return,n)}}}function V1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jl(e)}catch(n){Ce(t,t.return,n)}}function Bg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new H1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new H1),t;default:throw Error(c(435,e.tag))}}function iu(e,t){var n=Bg(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=Jg.bind(null,e,a);a.then(i,i)}})}function vt(e,t,n){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],d=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(sa(S.type)){Ue=S.stateNode,St=!1;break e}break;case 5:Ue=S.stateNode,St=!1;break e;case 3:case 4:Ue=S.stateNode.containerInfo,St=!0;break e}S=S.return}if(Ue===null)throw Error(c(160));P1(d,g,o),Ue=null,St=!1,d=o.alternate,d!==null&&(d.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)X1(t,e,n),t=t.sibling}var Jt=null;function X1(e,t,n){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var o=0;o<a.length;o++){var d=a[o];d.ref.impl=d.nextImpl}vt(t,e,n),pt(e),i&4&&(aa(3,e,e.return),_r(3,e),aa(5,e,e.return));break;case 1:vt(t,e,n),pt(e),i&512&&(Ne||a===null||ct(a,a.return)),i&64&&et&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Jt,vt(t,e,n),pt(e),i&512&&(Ne||a===null||ct(a,a.return)),i&4)if(i=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(et)e.stateNode=R2(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,i=o.ownerDocument||o;t:switch(t){case"title":a=i.getElementsByTagName("title")[0],(!a||a[Kl]||a[rt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(t),i.head.insertBefore(a,i.querySelector("head > title"))),st(a,t,n),a[rt]=e,Je(a),t=a;break e;case"link":if(o=W2("link","href",i).get(t+(n.href||""))){for(d=0;d<o.length;d++)if(a=o[d],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(d,1);break t}}a=i.createElement(t),st(a,t,n),i.head.appendChild(a);break;case"meta":if(o=W2("meta","content",i).get(t+(n.content||""))){for(d=0;d<o.length;d++)if(a=o[d],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(d,1);break t}}a=i.createElement(t),st(a,t,n),i.head.appendChild(a);break;default:throw Error(c(468,t))}a[rt]=e,Je(a),t=a}e.stateNode=t}else et||ws(o,e.type,e.stateNode);else e.stateNode=J2(o,n,e.memoizedProps);else i!==n?(i===null?(t=a.stateNode,t===null||Ne||t.parentNode.removeChild(t)):i.count--,n===null?et||ws(o,e.type,e.stateNode):J2(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Dc(e,e.memoizedProps,a.memoizedProps);break;case 27:vt(t,e,n),pt(e),i&512&&(Ne||a===null||ct(a,a.return)),a!==null&&i&4&&Dc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(o=hn,hn=!1,vt(t,e,n),hn=o,pt(e),i&512&&(Ne||a===null||ct(a,a.return)),e.flags&32){t=e.stateNode;try{Za(t,""),_e=!0}catch(D){Ce(e,e.return,D)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Dc(e,t,a!==null?a.memoizedProps:t)),i&1024&&(Pc=!0);break;case 6:if(vt(t,e,n),pt(e),i&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,_e=!0}catch(D){Ce(e,e.return,D)}}break;case 3:if(_e=!1,bu=null,o=Jt,Jt=Ar(t.containerInfo),vt(t,e,n),Jt=o,pt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{jl(t.containerInfo)}catch(D){Ce(e,e.return,D)}Pc&&(Pc=!1,F1(e)),_e=!1;break;case 4:i=hn,hn=et,a=mf(),o=Jt,Jt=Ar(e.stateNode.containerInfo),vt(t,e,n),pt(e),Jt=o,_e&&Sr&&(lu=!0),_e=a,hn=i;break;case 12:vt(t,e,n),pt(e);break;case 31:vt(t,e,n),pt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,iu(e,t)));break;case 13:vt(t,e,n),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(cu=Tt()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,iu(e,t)));break;case 22:o=e.memoizedState!==null,d=a!==null&&a.memoizedState!==null;var g=et,S=Ne,C=hn;et=g||o,hn=C||o,Ne=S||d,vt(t,e,n),Ne=S,hn=C,et=g,pt(e),i&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||a===null||d||et||Ne||(t=d||Ne,n=et,a=Ne,et=o||et,Ne=t,la(e,2),et=n,Ne=a),!o&&hn||Vc(e,o)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,iu(e,n))));break;case 19:vt(t,e,n),pt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,iu(e,t)));break;case 30:i&512&&(Ne||a===null||ct(a,a.return)),i=mf(),o=Sr,d=(n&335544064)===n,g=e.memoizedProps,Sr=d&&On(g.default,g.update)!=="none",vt(t,e,n),pt(e),d&&a!==null&&_e&&(e.flags|=4),Sr=o,_e=i;break;case 21:break;case 7:i&512&&(Ne||a===null||ct(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:vt(t,e,n),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(A1(a)){n=a;break}a=a.return}a=null;for(var i=e.return;i!==null;){if(Mc(i)){var o=i.stateNode;a===null?a=[o]:a.push(o)}if(jc(i))break;i=i.return}var d=a;if(n==null)throw Error(c(160));switch(n.tag){case 27:var g=n.stateNode,S=Uc(e);eu(e,S,g,d);break;case 5:var C=n.stateNode;n.flags&32&&(Za(C,""),n.flags&=-33);var D=Uc(e);eu(e,D,C,d);break;case 3:case 4:var k=n.stateNode.containerInfo,T=Uc(e);Lc(e,T,k,d);break;default:throw Error(c(161))}}catch(j){Ce(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function F1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;F1(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Al=!0,t.reset(),Al=!1),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)K1(t,e),t=t.sibling;else k1(t)}function K1(e,t){var n=e.alternate;if(n===null)kc(e,!1);else switch(e.tag){case 3:if(Yc=yn=!1,z1(),hl(t,e),!yn&&!lu){if(e=fn,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var i=e[a+1];D2(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Yc=!0}fn=null;break;case 5:hl(t,e);break;case 4:a=yn,yn=!1,hl(t,e),yn&&(lu=!0),yn=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?kc(e,!1):hl(t,e));break;case 30:a=yn,i=z1(),yn=!1,hl(t,e),yn&&(e.flags|=4);var o=e.memoizedProps,d=e.stateNode;t=Tn(o,d),d=Tn(n.memoizedProps,d);var g=On(o.default,o.update);g==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,bt=0,t=qc(e,n,t,d,g,o,!0),bt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(bl(e,e.memoizedProps.onUpdate),fn=i):i!==null&&(i.push.apply(i,fn),fn=i),yn=(e.flags&32)!==0?!0:a;break;default:hl(t,e)}}function gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)B1(e,t.alternate,t),t=t.sibling}function la(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:aa(4,n,n.return),la(n,a);break;case 1:ct(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&R1(n,n.return,i),la(n,a);break;case 27:(a&2)!==0&&F2(n.stateNode,n.type,n.memoizedProps);case 5:ct(n,n.return),n.tag!==5&&n.tag!==27||br(n),la(n,a);break;case 6:br(n);break;case 26:ct(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||Ne||i.parentNode.removeChild(i),la(n,a);break;case 22:n.memoizedState===null&&la(n,a);break;case 30:ct(n,n.return),la(n,a);break;case 7:ct(n,n.return);default:la(n,a)}e=e.sibling}}function Wt(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,i=e,o=t,d=o.flags,g=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:Wt(i,o,n),_r(4,o);break;case 1:if(Wt(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(D){Ce(a,a.return,D)}if(a=o,i=a.updateQueue,i!==null){var S=a.stateNode;try{var C=i.shared.hiddenCallbacks;if(C!==null)for(i.shared.hiddenCallbacks=null,i=0;i<C.length;i++)g0(C[i],S)}catch(D){Ce(a,a.return,D)}}g&&d&64&&C1(o),dn(o,o.return);break;case 27:(n&2)!==0&&j1(o);case 5:o.tag!==5&&o.tag!==27||w1(o),Wt(i,o,n),g&&a===null&&d&4&&zc(o),dn(o,o.return);break;case 6:w1(o);break;case 26:S=o.stateNode,o.memoizedState!==null||S===null||et||ws(Ar(S.ownerDocument),o.type,S),Wt(i,o,n),g&&a===null&&d&4&&zc(o),dn(o,o.return);break;case 12:Wt(i,o,n);break;case 31:Wt(i,o,n),g&&d&4&&Y1(i,o);break;case 13:Wt(i,o,n),g&&d&4&&V1(i,o);break;case 22:o.memoizedState===null&&Wt(i,o,n),dn(o,o.return);break;case 30:Wt(i,o,n),dn(o,o.return);break;case 7:dn(o,o.return);default:Wt(i,o,n)}t=t.sibling}}function Fc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ur(n))}function Kc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ur(e))}function Yt(e,t,n,a){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Z1(e,t,n,a),t=t.sibling;else i&&L1(t)}function Z1(e,t,n,a){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&au(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,n,a),o&2048&&_r(9,t);break;case 1:Yt(e,t,n,a);break;case 3:Yt(e,t,n,a),i&&Yc&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&ur(o)));break;case 12:if(o&2048){Yt(e,t,n,a),o=t.stateNode;try{var d=t.memoizedProps,g=d.id,S=d.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(C){Ce(t,t.return,C)}}else Yt(e,t,n,a);break;case 31:Yt(e,t,n,a);break;case 13:Yt(e,t,n,a);break;case 23:break;case 22:d=t.stateNode,g=t.alternate,t.memoizedState!==null?(i&&g!==null&&g.memoizedState===null&&au(g),d._visibility&2?Yt(e,t,n,a):Er(e,t)):(i&&g!==null&&g.memoizedState!==null&&au(t),d._visibility&2?Yt(e,t,n,a):(d._visibility|=2,yl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Fc(g,t);break;case 24:Yt(e,t,n,a),o&2048&&Kc(t.alternate,t);break;case 30:i&&(o=t.alternate,o!==null&&(mn(o.child,!0),mn(t.child,!0))),Yt(e,t,n,a);break;default:Yt(e,t,n,a)}}function yl(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,g=n,S=a,C=d.flags;switch(d.tag){case 0:case 11:case 15:yl(o,d,g,S,i),_r(8,d);break;case 23:break;case 22:var D=d.stateNode;d.memoizedState!==null?D._visibility&2?yl(o,d,g,S,i):Er(o,d):(D._visibility|=2,yl(o,d,g,S,i)),i&&C&2048&&Fc(d.alternate,d);break;case 24:yl(o,d,g,S,i),i&&C&2048&&Kc(d.alternate,d);break;default:yl(o,d,g,S,i)}t=t.sibling}}function Er(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Er(n,a),i&2048&&Fc(a.alternate,a);break;case 24:Er(n,a),i&2048&&Kc(a.alternate,a);break;default:Er(n,a)}t=t.sibling}}var Da=8192;function Ua(e,t,n){if(e.subtreeFlags&Da)for(e=e.child;e!==null;)Q1(e,t,n),e=e.sibling}function Q1(e,t,n){switch(e.tag){case 26:Ua(e,t,n),e.flags&Da&&(e.memoizedState!==null?X4(n,Jt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&am(n,e)));break;case 5:Ua(e,t,n),e.flags&Da&&(e=e.stateNode,(t&335544128)===t&&am(n,e));break;case 3:case 4:var a=Jt;Jt=Ar(e.stateNode.containerInfo),Ua(e,t,n),Jt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Da,Da=16777216,Ua(e,t,n),Da=a):Ua(e,t,n));break;case 30:if((e.flags&Da)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var i=e.stateNode;i.paired=null,jt===null&&(jt=new Map),jt.set(a,i)}Ua(e,t,n);break;default:Ua(e,t,n)}}function I1(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,W1(a,e)}I1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)J1(e),e=e.sibling}function J1(e){switch(e.tag){case 0:case 11:case 15:xr(e),e.flags&2048&&aa(9,e,e.return);break;case 3:xr(e);break;case 12:xr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,uu(e)):xr(e);break;default:xr(e)}}function uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,W1(a,e)}I1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:aa(8,t,t.return),uu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function W1(e,t){for(;tt!==null;){var n=tt;switch(n.tag){case 0:case 11:case 15:aa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ur(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,tt=a;else e:for(n=e;tt!==null;){a=tt;var i=a.sibling,o=a.return;if(q1(a),a===n){tt=null;break e}if(i!==null){i.return=o,tt=i;break e}tt=o}}}var Gg={getCacheForType:function(e){var t=it(Ye),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return it(Ye).controller.signal}},qg=typeof WeakMap=="function"?WeakMap:Map,Se=0,je=null,fe=null,ye=0,Oe=0,Mt=null,ra=!1,gl=!1,Zc=!1,Un=0,Ge=0,ia=0,La=0,ou=0,zt=0,vl=0,Nr=null,Et=null,Qc=!1,cu=0,e2=0,su=1/0,du=null,ua=null,He=0,en=null,ka=null,vn=0,Ic=0,Jc=null,t2=null,pl=null,$l=null,_l=null,Tr=0,fu=null;function Dt(){return(Se&2)!==0&&ye!==0?ye&-ye:J.T!==null?os():af()}function n2(){if(zt===0)if((ye&536870912)===0||se){var e=ii;ii<<=1,(ii&3932160)===0&&(ii=262144),zt=e}else zt=536870912;return e=ut.current,e!==null&&(e.flags|=32),zt}function bl(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=U2(Tn(e.memoizedProps,n))),$l===null&&($l=[]),$l.push(t.bind(null,a))}}function xt(e,t,n){(e===je&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(Sl(e,0),oa(e,ye,zt,!1)),Fl(e,n),((Se&2)===0||e!==je)&&(e===je&&((Se&2)===0&&(La|=n),Ge===4&&oa(e,ye,zt,!1)),pn(e))}function a2(e,t,n){if((Se&6)!==0)throw Error(c(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Xl(e,t),i=a?Vg(e,t):es(e,t,!0),o=a;do{if(i===0){gl&&!a&&oa(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Pg(n)){i=es(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;i=Nr;var S=g.current.memoizedState.isDehydrated;if(S&&(Sl(g,d).flags|=256),d=es(g,d,!1),d!==2&&d!==6){if(Zc&&!S){g.errorRecoveryDisabledLanes|=o,La|=o,i=4;break e}o=Et,Et=i,o!==null&&(Et===null?Et=o:Et.push.apply(Et,o))}i=d}if(o=!1,i!==2)continue}}if(i===1){Sl(e,0),oa(e,t,0,!0);break}e:{switch(a=e,o=i,o){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:oa(a,t,zt,!ra);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=cu+300-Tt(),10<i)){if(oa(a,t,zt,!ra),oi(a,0,!0)!==0)break e;vn=t,a.timeoutHandle=$s(l2.bind(null,a,n,Et,du,Qc,t,zt,La,vl,ra,o,"Throttled",-0,0),i);break e}l2(a,n,Et,du,Qc,t,zt,La,vl,ra,o,null,-0,0)}}break}while(!0);pn(e)}function l2(e,t,n,a,i,o,d,g,S,C,D,k,T,j){e.timeoutHandle=-1;var V=t.subtreeFlags,I=(o&335544064)===o;if(k=null,(I||V&8192||(V&16785408)===16785408)&&(k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},jt=null,Q1(t,o,k),I&&(V=k,I=e.containerInfo,I=(I.nodeType===9?I:I.ownerDocument).__reactViewTransition,I!=null&&(V.count++,V.waitingForViewTransition=!0,V=zr.bind(V),I.finished.then(V,V))),V=(o&62914560)===o?cu-Tt():(o&4194048)===o?e2-Tt():0,V=F4(k,V),V!==null)){vn=o,e.cancelPendingCommit=V(f2.bind(null,e,t,o,n,a,i,d,g,S,C,D,k,null,T,j)),oa(e,o,d,!C);return}f2(e,t,o,n,a,i,d,g,S,C,D,k)}function Pg(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!wt(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function oa(e,t,n,a){t=Jd(e,t),t&=~ou,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-Ct(i),d=1<<o;a[o]=-1,i&=~d}n!==0&&ef(e,n,t)}function mu(){return(Se&6)===0?(Or(0),!1):!0}function Wc(){if(fe!==null){if(Oe===0)var e=fe.return;else e=fe,wn=Na=null,uc(e),ol=null,sr=0,e=fe;for(;e!==null;)O1(e.alternate,e),e=e.return;fe=null}}function Sl(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,m4(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),vn=0,Wc(),je=e,fe=n=Cn(e.current,null),ye=t,Oe=0,Mt=null,ra=!1,gl=Xl(e,t),Zc=!1,vl=zt=ou=La=ia=Ge=0,Et=Nr=null,Qc=!1,Un=Jd(e,t),bi(),n}function r2(e,t){oe=null,J.H=Xi,t===ul||t===ji?(t=f0(),Oe=3):t===Ko?(t=f0(),Oe=4):Oe=t===Sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,fe===null&&(Ge=1,Fi(e,Bt(t,e.current)))}function i2(){var e=ut.current;return e===null?!0:(ye&4194048)===ye?mt===null:(ye&62914560)===ye||(ye&536870912)!==0?e===mt:!1}function u2(){var e=J.H;return J.H=Xi,e===null?Xi:e}function o2(){var e=J.A;return J.A=Gg,e}function hu(){Ge=4,ra||(ye&4194048)!==ye&&ut.current!==null||(gl=!0),(ia&134217727)===0&&(La&134217727)===0||je===null||oa(je,ye,zt,!1)}function es(e,t,n){var a=Se;Se|=2;var i=u2(),o=o2();(je!==e||ye!==t)&&(du=null,Sl(e,t)),t=!1;var d=Ge;e:do try{if(Oe!==0&&fe!==null){var g=fe,S=Mt;switch(Oe){case 8:Wc(),d=6;break e;case 3:case 2:case 9:case 6:ut.current===null&&(t=!0);var C=Oe;if(Oe=0,Mt=null,El(e,g,S,C),n&&gl){d=0;break e}break;default:C=Oe,Oe=0,Mt=null,El(e,g,S,C)}}Yg(),d=Ge;break}catch(D){r2(e,D)}while(!0);return t&&e.shellSuspendCounter++,wn=Na=null,Se=a,J.H=i,J.A=o,fe===null&&(je=null,ye=0,bi()),d}function Yg(){for(;fe!==null;)c2(fe)}function Vg(e,t){var n=Se;Se|=2;var a=u2(),i=o2();je!==e||ye!==t?(du=null,su=Tt()+500,Sl(e,t)):gl=Xl(e,t);e:do try{if(Oe!==0&&fe!==null){t=fe;var o=Mt;t:switch(Oe){case 1:Oe=0,Mt=null,El(e,t,o,1);break;case 2:case 9:if(s0(o)){Oe=0,Mt=null,s2(t);break}t=function(){Oe!==2&&Oe!==9||je!==e||(Oe=7),pn(e)},o.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:s0(o)?(Oe=0,Mt=null,s2(t)):(Oe=0,Mt=null,El(e,t,o,7));break;case 5:var d=null;switch(fe.tag){case 26:d=fe.memoizedState;case 5:case 27:var g=fe;if(d?tm(d):g.stateNode.complete){Oe=0,Mt=null;var S=g.sibling;if(S!==null)fe=S;else{var C=g.return;C!==null?(fe=C,yu(C)):fe=null}break t}}Oe=0,Mt=null,El(e,t,o,5);break;case 6:Oe=0,Mt=null,El(e,t,o,6);break;case 8:Wc(),Ge=6;break e;default:throw Error(c(462))}}Xg();break}catch(D){r2(e,D)}while(!0);return wn=Na=null,J.H=a,J.A=i,Se=n,fe!==null?0:(je=null,ye=0,bi(),Ge)}function Xg(){for(;fe!==null&&!cy();)c2(fe)}function c2(e){var t=N1(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?yu(e):fe=t}function s2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=p1(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=p1(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:uc(t);var a=t;a===We&&(se?(Oi(a),a.tag===5&&a.stateNode!=null&&(ze=a.stateNode)):(Oi(a),se=!0));default:O1(n,t),t=fe=Wf(t,Un),t=N1(n,t,Un)}e.memoizedProps=e.pendingProps,t===null?yu(e):fe=t}function El(e,t,n,a){wn=Na=null,uc(t),ol=null,sr=0;var i=t.return;try{if(Mg(e,i,t,n,ye)){Ge=1,Fi(e,Bt(n,e.current)),fe=null;return}}catch(o){if(i!==null)throw fe=i,o;Ge=1,Fi(e,Bt(n,e.current)),fe=null;return}t.flags&32768?(se||a===1?e=!0:gl||(ye&536870912)!==0?e=!1:(ra=e=!0,(a===2||a===9||a===3||a===6)&&(a=ut.current,a!==null&&a.tag===13&&(a.flags|=16384))),d2(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){d2(t,ra);return}e=t.return;var n=Lg(t.alternate,t,Un);if(n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ge===0&&(Ge=5)}function d2(e,t){do{var n=kg(e.alternate,e);if(n!==null){n.flags&=32767,fe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=n}while(e!==null);Ge=6,fe=null}function f2(e,t,n,a,i,o,d,g,S,C,D,k){e.cancelPendingCommit=null;do gu();while(He!==0);if((Se&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===je&&(fe=je=null,ye=0),ka=t,en=e,vn=n,Jc=i,t2=a,Fg(e,t,n,d,g,S,k)}}function Fg(e,t,n,a,i,o,d){var g=t.lanes|t.childLanes;if(Ic=g,g|=Do,$y(e,n,g,a,i,o),$l=null,(n&335544064)===n?(_l=bg(e),a=10262):(_l=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,Wg(li,function(){return ls(),null})):(e.callbackNode=null,e.callbackPriority=0),tu=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=J.T,J.T=null,i=ie.p,ie.p=2,o=Se,Se|=4;try{Hg(e,t,n)}finally{Se=o,ie.p=i,J.T=a}}He=1,tu?pl=$4(d,e.containerInfo,_l,ts,ns,Zg,as,ls,Kg):(ts(),ns(),as())}function Kg(e){if(He!==0){var t=en.onRecoverableError;t(e,{componentStack:null})}}function Zg(){He===3&&(He=0,K1(ka,en),He=4)}function ts(){if(He===1){He=0;var e=en,t=ka,n=vn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=J.T,J.T=null;var i=ie.p;ie.p=2;var o=Se;Se|=4;try{Sr=lu=!1,X1(t,e,n),n=gs;var d=Pf(e.containerInfo),g=n.focusedElem,S=n.selectionRange;if(d!==g&&g&&g.ownerDocument&&qf(g.ownerDocument.documentElement,g)){if(S!==null&&wo(g)){var C=S.start,D=S.end;if(D===void 0&&(D=C),"selectionStart"in g)g.selectionStart=C,g.selectionEnd=Math.min(D,g.value.length);else{var k=g.ownerDocument||document,T=k&&k.defaultView||window;if(T.getSelection){var j=T.getSelection(),V=g.textContent.length,I=Math.min(S.start,V),ce=S.end===void 0?I:Math.min(S.end,V);!j.extend&&I>ce&&(d=ce,ce=I,I=d);var O=Gf(g,I),E=Gf(g,ce);if(O&&E&&(j.rangeCount!==1||j.anchorNode!==O.node||j.anchorOffset!==O.offset||j.focusNode!==E.node||j.focusOffset!==E.offset)){var w=k.createRange();w.setStart(O.node,O.offset),j.removeAllRanges(),I>ce?(j.addRange(w),j.extend(E.node,E.offset)):(w.setEnd(E.node,E.offset),j.addRange(w))}}}}for(k=[],j=g;j=j.parentNode;)j.nodeType===1&&k.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<k.length;g++){var L=k[g];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Al=!!ys,gs=ys=null}finally{Se=o,ie.p=i,J.T=a}}e.current=t,He=2}}function ns(){if(He===2){He=0;var e=en,t=ka,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=J.T,J.T=null;var a=ie.p;ie.p=2;var i=Se;Se|=4;try{B1(e,t.alternate,t)}finally{Se=i,ie.p=a,J.T=n}}He=3}}function as(){if(He===4||He===3){He=0;var e=pl;pl=null,sy();var t=en,n=ka,a=vn,i=t2,o=(a&335544064)===a?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?He=5:(He=0,ka=en=null,m2(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(ua=null),fo(a),n=n.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Vl,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=J.T,o=ie.p,ie.p=2,J.T=null;try{for(var d=t.onRecoverableError,g=0;g<i.length;g++){var S=i[g];d(S.value,{componentStack:S.stack})}}finally{J.T=n,ie.p=o}}if(i=$l,d=_l,_l=null,i!==null&&($l=null,d===null&&(d=[]),e!==null))for(S=0;S<i.length;S++)n=(0,i[S])(d),n!==void 0&&e.finished.finally(n);(vn&3)!==0&&gu(),pn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===fu?Tr++:(Tr=0,fu=t):(Tr=0,fu=null),Or(0)}}function m2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ur(t)))}function gu(){return pl!==null&&(pl.skipTransition(),pl=null),ts(),ns(),as(),ls()}function ls(){if(He!==5)return!1;var e=en,t=Ic;Ic=0;var n=fo(vn),a=J.T,i=ie.p;try{ie.p=32>n?32:n,J.T=null,n=Jc,Jc=null;var o=en,d=vn;if(He=0,ka=en=null,vn=0,(Se&6)!==0)throw Error(c(331));var g=Se;if(Se|=4,J1(o.current),Z1(o,o.current,d,n),Se=g,Or(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Vl,o)}catch{}return!0}finally{ie.p=i,J.T=a,m2(e,t)}}function h2(e,t,n){t=Bt(n,t),t=bc(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Fl(e,2),pn(e))}function Ce(e,t,n){if(e.tag===3)h2(e,e,n);else for(;t!==null;){if(t.tag===3){h2(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ua===null||!ua.has(a))){e=Bt(n,e),n=s1(2),a=Wn(t,n,2),a!==null&&(d1(n,a,t,e),Fl(a,2),pn(a));break}}t=t.return}}function rs(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new qg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Zc=!0,i.add(n),e=Qg.bind(null,e,t,n),t.then(e,e))}function Qg(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(ye&n)===n&&((Ge===4||Ge===3&&(ye&62914560)===ye&&300>Tt()-cu)&&(Se&2)===0?Sl(e,0):ou|=n,vl===ye&&(vl=0)),pn(e)}function y2(e,t){t===0&&(t=Wd()),e=Sa(e,t),e!==null&&(Fl(e,t),pn(e))}function Ig(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),y2(e,n)}function Jg(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),y2(e,n)}function Wg(e,t){return uo(e,t)}var xl=null,Nl=null,is=!1,vu=!1,us=!1,ca=0;function pn(e){e!==Nl&&e.next===null&&(Nl===null?xl=Nl=e:Nl=Nl.next=e),vu=!0,is||(is=!0,t4())}function Or(e,t){if(!us&&vu){us=!0;do for(var n=!1,a=xl;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var d=a.suspendedLanes,g=a.pingedLanes;o=(1<<31-Ct(42|e)+1)-1,o&=i&~(d&~g),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,$2(a,o))}else o=ye,o=oi(a,a===je?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Xl(a,o)||(n=!0,$2(a,o));a=a.next}while(n);us=!1}}function e4(){g2()}function g2(){vu=is=!1;var e=0;ca!==0&&f4()&&(e=ca);for(var t=Tt(),n=null,a=xl;a!==null;){var i=a.next,o=v2(a,t);o===0?(a.next=null,n===null?xl=i:n.next=i,i===null&&(Nl=n)):(n=a,(e!==0||(o&3)!==0)&&(vu=!0)),a=i}He!==0&&He!==5||Or(e),ca!==0&&(ca=0)}function v2(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-Ct(o),g=1<<d,S=i[d];S===-1?((g&n)===0||(g&a)!==0)&&(i[d]=py(g,t)):S<=t&&(e.expiredLanes|=g),o&=~g}if(t=je,n=ye,n=oi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&oo(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Xl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&oo(a),fo(n)){case 2:case 8:n=Qd;break;case 32:n=li;break;case 268435456:n=Id;break;default:n=li}return a=p2.bind(null,e),n=uo(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&oo(a),e.callbackPriority=2,e.callbackNode=null,2}function p2(e,t){if(He!==0&&He!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(gu()&&e.callbackNode!==n)return null;var a=ye;return a=oi(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(a2(e,a,t),v2(e,Tt()),e.callbackNode!=null&&e.callbackNode===n?p2.bind(null,e):null)}function $2(e,t){if(gu())return null;a2(e,t,!0)}function t4(){h4(function(){(Se&6)!==0?uo(Zd,e4):g2()})}function os(){if(ca===0){var e=Ca;e===0&&(e=ri,ri<<=1,(ri&261888)===0&&(ri=256)),ca=e}return ca}function _2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:mi(e)}function n4(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var o=_2((i[$t]||null).action),d=a.submitter;d&&(t=(t=d[$t]||null)?_2(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var g=new vi("action","action",null,a,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ca!==0){var S=new FormData(i,d);gc(n,{pending:!0,data:S,method:i.method,action:o},null,S)}}else typeof o=="function"&&(g.preventDefault(),S=new FormData(i,d),gc(n,{pending:!0,data:S,method:i.method,action:o},o,S))},currentTarget:i}]})}}for(var cs=0;cs<zo.length;cs++){var ss=zo[cs],a4=ss.toLowerCase(),l4=ss[0].toUpperCase()+ss.slice(1);Qt(a4,"on"+l4)}Qt(Xf,"onAnimationEnd"),Qt(Ff,"onAnimationIteration"),Qt(Kf,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(mg,"onTransitionRun"),Qt(hg,"onTransitionStart"),Qt(yg,"onTransitionCancel"),Qt(Zf,"onTransitionEnd"),Fa("onMouseEnter",["mouseout","mouseover"]),Fa("onMouseLeave",["mouseout","mouseover"]),Fa("onPointerEnter",["pointerout","pointerover"]),Fa("onPointerLeave",["pointerout","pointerover"]),$a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$a("onBeforeInput",["compositionend","keypress","textInput","paste"]),$a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),r4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cr));function b2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var d=a.length-1;0<=d;d--){var g=a[d],S=g.instance,C=g.currentTarget;if(g=g.listener,S!==o&&i.isPropagationStopped())break e;o=g,i.currentTarget=C;try{o(i)}catch(D){_i(D)}i.currentTarget=null,o=S}else for(d=0;d<a.length;d++){if(g=a[d],S=g.instance,C=g.currentTarget,g=g.listener,S!==o&&i.isPropagationStopped())break e;o=g,i.currentTarget=C;try{o(i)}catch(D){_i(D)}i.currentTarget=null,o=S}}}}function me(e,t){var n=t[rf];n===void 0&&(n=t[rf]=new Set);var a=e+"__bubble";n.has(a)||(S2(t,e,2,!1),n.add(a))}function ds(e,t,n){var a=0;t&&(a|=4),S2(n,e,a,t)}var pu="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[pu]){e[pu]=!0,cf.forEach(function(n){n!=="selectionchange"&&(r4.has(n)||ds(n,!1,e),ds(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pu]||(t[pu]=!0,ds("selectionchange",!1,t))}}function S2(e,t,n,a){switch(dm(t)){case 2:var i=I4;break;case 8:i=J4;break;default:i=js}n=i.bind(null,t,n,e),i=void 0,!_o||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ms(e,t,n,a,i){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var g=a.stateNode.containerInfo;if(g===i)break;if(d===4)for(d=a.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;g!==null;){if(d=pa(g),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){a=o=d;continue e}g=g.parentNode}}a=a.return}Sf(function(){var C=o,D=po(n),k=[];e:{var T=Qf.get(e);if(T!==void 0){var j=vi,V=e;switch(e){case"keypress":if(yi(n)===0)break e;case"keydown":case"keyup":j=Py;break;case"focusin":V="focus",j=xo;break;case"focusout":V="blur",j=xo;break;case"beforeblur":case"afterblur":j=xo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Ay;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Ky;break;case Xf:case Ff:case Kf:j=zy;break;case Zf:j=Qy;break;case"scroll":case"scrollend":j=Ry;break;case"wheel":j=Jy;break;case"copy":case"cut":case"paste":j=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Of;break;case"submit":j=Xy;break;case"toggle":case"beforetoggle":j=eg}var I=(t&4)!==0,ce=!I&&(e==="scroll"||e==="scrollend"),O=I?T!==null?T+"Capture":null:T;I=[];for(var E=C,w;E!==null;){var L=E;if(w=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||w===null||O===null||(L=Ql(E,O),L!=null&&I.push(Rr(E,L,w))),ce)break;E=E.return}0<I.length&&(T=new j(T,V,null,n,D),k.push({event:T,listeners:I}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",j&&n!==vo&&(V=n.relatedTarget||n.fromElement)&&(pa(V)||V[Ya]))break e;(T||j)&&(V=D.window===D?D:(j=D.ownerDocument)?j.defaultView||j.parentWindow:window,T?(j=n.relatedTarget||n.toElement,T=C,j=j?pa(j):null,j!==null&&(ce=f(j),I=j.tag,j!==ce||I!==5&&I!==27&&I!==6)&&(j=null)):(T=null,j=C),T!==j&&(I=Nf,L="onMouseLeave",O="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(I=Of,L="onPointerLeave",O="onPointerEnter",E="pointer"),ce=T==null?V:Zl(T),w=j==null?V:Zl(j),V=new I(L,E+"leave",T,n,D),V.target=ce,V.relatedTarget=w,L=null,pa(D)===C&&(I=new I(O,E+"enter",j,n,D),I.target=w,I.relatedTarget=ce,L=I),ce=L,I=T&&j?q(T,j,i4):null,T!==null&&E2(k,V,T,I,!1),j!==null&&ce!==null&&E2(k,ce,j,I,!0)))}e:{if(T=C?Zl(C):window,j=T.nodeName&&T.nodeName.toLowerCase(),j==="select"||j==="input"&&T.type==="file")var Z=Df;else if(Mf(T))if(Uf)Z=sg;else{Z=og;var ge=ug}else j=T.nodeName,!j||j.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?C&&go(C.elementType)&&(Z=Df):Z=cg;if(Z&&(Z=Z(e,C))){zf(k,Z,n,D);break e}ge&&ge(e,T,C)}switch(ge=C?Zl(C):window,e){case"focusin":(Mf(ge)||ge.contentEditable==="true")&&(Wa=ge,Ao=C,lr=null);break;case"focusout":lr=Ao=Wa=null;break;case"mousedown":jo=!0;break;case"contextmenu":case"mouseup":case"dragend":jo=!1,Yf(k,n,D);break;case"selectionchange":if(fg)break;case"keydown":case"keyup":Yf(k,n,D)}var W;if(To)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Ja?Af(e,n)&&(le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(le="onCompositionStart");le&&(Cf&&n.locale!=="ko"&&(Ja||le!=="onCompositionStart"?le==="onCompositionEnd"&&Ja&&(W=Ef()):(Yn=D,bo="value"in Yn?Yn.value:Yn.textContent,Ja=!0)),ge=$u(C,le),0<ge.length&&(le=new Tf(le,e,null,n,D),k.push({event:le,listeners:ge}),W?le.data=W:(W=jf(n),W!==null&&(le.data=W)))),(W=ng?ag(e,n):lg(e,n))&&(le=$u(C,"onBeforeInput"),0<le.length&&(ge=new Tf("onBeforeInput","beforeinput",null,n,D),k.push({event:ge,listeners:le}),ge.data=W)),n4(k,e,C,n,D)}b2(k,t)})}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $u(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Ql(e,n),i!=null&&a.unshift(Rr(e,i,o)),i=Ql(e,t),i!=null&&a.push(Rr(e,i,o))),e.tag===3)return a;e=e.return}return[]}function i4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function E2(e,t,n,a,i){for(var o=t._reactName,d=[];n!==null&&n!==a;){var g=n,S=g.alternate,C=g.stateNode;if(g=g.tag,S!==null&&S===a)break;g!==5&&g!==26&&g!==27||C===null||(S=C,i?(C=Ql(n,o),C!=null&&d.unshift(Rr(n,C,S))):i||(C=Ql(n,o),C!=null&&d.push(Rr(n,C,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var u4=/\r\n?/g,o4=/\u0000|\uFFFD/g;function x2(e){return(typeof e=="string"?e:""+e).replace(u4,`
|
|
9
|
-
`).replace(o4,"")}function N2(e,t){return t=x2(t),x2(e)===t}function Re(e,t,n,a,i,o){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Za(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Za(e,""+a);else return;break;case"className":fi(e,"class",a);break;case"tabIndex":fi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fi(e,n,a);break;case"style":_f(e,a,o);return;case"data":if(t!=="object"){fi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=mi(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",i.name,i,null),Re(e,t,"formEncType",i.formEncType,i,null),Re(e,t,"formMethod",i.formMethod,i,null),Re(e,t,"formTarget",i.formTarget,i,null)):(Re(e,t,"encType",i.encType,i,null),Re(e,t,"method",i.method,i,null),Re(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=mi(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=on);return;case"onScroll":a!=null&&me("scroll",e);return;case"onScrollEnd":a!=null&&me("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=mi(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":me("beforetoggle",e),me("toggle",e),di(e,"popover",a);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":di(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=Oy.get(n)||n,di(e,n,a);else return}_e=!0}function hs(e,t,n,a,i,o){switch(n){case"style":_f(e,a,o);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")Za(e,a);else if(typeof a=="number"||typeof a=="bigint")Za(e,""+a);else return;break;case"onScroll":a!=null&&me("scroll",e);return;case"onScrollEnd":a!=null&&me("scrollend",e);return;case"onClick":a!=null&&(e.onclick=on);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!sf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),o=n.slice(2,i?n.length-7:void 0),t=e[$t]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,i),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,a,i);break e}_e=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):di(e,n,a)}return}_e=!0}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,o,d,n,null)}}i&&Re(e,t,"srcSet",n.srcSet,n,null),a&&Re(e,t,"src",n.src,n,null);return;case"input":me("invalid",e);var g=o=d=i=null,S=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var D=n[a];if(D!=null)switch(a){case"name":i=D;break;case"type":d=D;break;case"checked":S=D;break;case"defaultChecked":C=D;break;case"value":o=D;break;case"defaultValue":g=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:Re(e,t,a,D,n,null)}}gf(e,o,g,S,C,d,i,!1);return;case"select":me("invalid",e),a=d=o=null;for(i in n)if(n.hasOwnProperty(i)&&(g=n[i],g!=null))switch(i){case"value":o=g;break;case"defaultValue":d=g;break;case"multiple":a=g;default:Re(e,t,i,g,n,null)}t=o,n=d,e.multiple=!!a,t!=null?Ka(e,!!a,t,!1):n!=null&&Ka(e,!!a,n,!0);return;case"textarea":me("invalid",e),o=i=a=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":a=g;break;case"defaultValue":i=g;break;case"children":o=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:Re(e,t,d,g,n,null)}pf(e,a,i,o);return;case"option":for(S in n)n.hasOwnProperty(S)&&(a=n[S],a!=null)&&(S==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Re(e,t,S,a,n,null));return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(a=0;a<Cr.length;a++)me(Cr[a],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,C,a,n,null)}return;default:if(go(t)){for(D in n)n.hasOwnProperty(D)&&(a=n[D],a!==void 0&&hs(e,t,D,a,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(a=n[g],a!=null&&Re(e,t,g,a,n,null))}var c4={};function s4(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,d=null,g=null,S=null,C=null,D=null;for(j in n){var k=n[j];if(n.hasOwnProperty(j)&&k!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":S=k;default:a.hasOwnProperty(j)||Re(e,t,j,null,a,k)}}for(var T in a){var j=a[T];if(k=n[T],a.hasOwnProperty(T)&&(j!=null||k!=null))switch(T){case"type":j!==k&&(_e=!0),o=j;break;case"name":j!==k&&(_e=!0),i=j;break;case"checked":j!==k&&(_e=!0),C=j;break;case"defaultChecked":j!==k&&(_e=!0),D=j;break;case"value":j!==k&&(_e=!0),d=j;break;case"defaultValue":j!==k&&(_e=!0),g=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(c(137,t));break;default:j!==k&&Re(e,t,T,j,a,k)}}ho(e,d,g,S,C,D,o,i);return;case"select":j=d=g=T=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":j=S;default:a.hasOwnProperty(o)||Re(e,t,o,null,a,S)}for(i in a)if(o=a[i],S=n[i],a.hasOwnProperty(i)&&(o!=null||S!=null))switch(i){case"value":o!==S&&(_e=!0),T=o;break;case"defaultValue":o!==S&&(_e=!0),g=o;break;case"multiple":o!==S&&(_e=!0),d=o;default:o!==S&&Re(e,t,i,o,a,S)}t=g,n=d,a=j,T!=null?Ka(e,!!n,T,!1):!!a!=!!n&&(t!=null?Ka(e,!!n,t,!0):Ka(e,!!n,n?[]:"",!1));return;case"textarea":j=T=null;for(g in n)if(i=n[g],n.hasOwnProperty(g)&&i!=null&&!a.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Re(e,t,g,null,a,i)}for(d in a)if(i=a[d],o=n[d],a.hasOwnProperty(d)&&(i!=null||o!=null))switch(d){case"value":i!==o&&(_e=!0),T=i;break;case"defaultValue":i!==o&&(_e=!0),j=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==o&&Re(e,t,d,i,a,o)}vf(e,T,j);return;case"option":for(var V in n)T=n[V],n.hasOwnProperty(V)&&T!=null&&!a.hasOwnProperty(V)&&(V==="selected"?e.selected=!1:Re(e,t,V,null,a,T));for(S in a)T=a[S],j=n[S],a.hasOwnProperty(S)&&T!==j&&(T!=null||j!=null)&&(S==="selected"?(T!==j&&(_e=!0),e.selected=T&&typeof T!="function"&&typeof T!="symbol"):Re(e,t,S,T,a,j));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in n)T=n[I],n.hasOwnProperty(I)&&T!=null&&!a.hasOwnProperty(I)&&Re(e,t,I,null,a,T);for(C in a)if(T=a[C],j=n[C],a.hasOwnProperty(C)&&T!==j&&(T!=null||j!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(c(137,t));break;default:Re(e,t,C,T,a,j)}return;default:if(go(t)){for(var ce in n)T=n[ce],n.hasOwnProperty(ce)&&T!==void 0&&!a.hasOwnProperty(ce)&&hs(e,t,ce,void 0,a,T);for(D in a)T=a[D],j=n[D],!a.hasOwnProperty(D)||T===j||T===void 0&&j===void 0||hs(e,t,D,T,a,j);return}}for(var O in n)T=n[O],n.hasOwnProperty(O)&&T!=null&&!a.hasOwnProperty(O)&&Re(e,t,O,null,a,T);for(k in a)T=a[k],j=n[k],!a.hasOwnProperty(k)||T===j||T==null&&j==null||Re(e,t,k,T,a,j)}function T2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,d=i.initiatorType,g=i.duration;if(o&&g&&T2(d)){for(d=0,g=i.responseEnd,a+=1;a<n.length;a++){var S=n[a],C=S.startTime;if(C>g)break;var D=S.transferSize,k=S.initiatorType;D&&T2(k)&&(S=S.responseEnd,d+=D*(S<g?1:(g-C)/(S-C)))}if(--a,t+=8*(o+d)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ys=null,gs=null;function wr(e){return e.nodeType===9?e:e.ownerDocument}function O2(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function C2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function R2(e,t,n,a){return n=wr(n).createElement(e),n[rt]=a,n[$t]=t,st(n,e,t),Je(n),n}function vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ps=null;function f4(){var e=window.event;return e&&e.type==="popstate"?e===ps?!1:(ps=e,!0):(ps=null,!1)}var $s=typeof setTimeout=="function"?setTimeout:void 0,m4=typeof clearTimeout=="function"?clearTimeout:void 0,w2=typeof Promise=="function"?Promise:void 0,A2=typeof requestAnimationFrame=="function"?requestAnimationFrame:$s,h4=typeof queueMicrotask=="function"?queueMicrotask:typeof w2<"u"?function(e){return w2.resolve(null).then(e).catch(y4)}:$s;function y4(e){setTimeout(function(){throw e})}function sa(e){return e==="head"}function j2(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),jl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Os(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Os(n);for(var o=n.firstChild;o;){var d=o.nextSibling,g=o.nodeName;o[Kl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&Os(e.ownerDocument.body);n=i}while(n);jl(t)}function M2(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function z2(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var i=a=0;i<t.length;i++){var o=t[i];0<o.width&&0<o.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function D2(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function g4(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function _s(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return g4(t,n,e)}function v4(e){return e.documentElement.clientHeight}function p4(e){this.addEventListener("load",e),this.addEventListener("error",e)}function $4(e,t,n,a,i,o,d,g,S){var C=t.nodeType===9?t:t.ownerDocument;try{var D=C.startViewTransition({update:function(){var T=C.defaultView,j=T.navigation&&T.navigation.transition,V=C.fonts.status;a();var I=[];if(V==="loaded"&&(v4(C),C.fonts.status==="loading"&&I.push(C.fonts.ready)),V=I.length,e!==null)for(var ce=e.suspenseyImages,O=0,E=0;E<ce.length;E++){var w=ce[E];if(!w.complete){var L=w.getBoundingClientRect();if(0<L.bottom&&0<L.right&&L.top<T.innerHeight&&L.left<T.innerWidth){if(O+=nm(w),O>Su){I.length=V;break}w=new Promise(p4.bind(w)),I.push(w)}}}if(0<I.length)return T=Promise.race([Promise.all(I),new Promise(function(Z){return setTimeout(Z,500)})]).then(i,i),(j?Promise.allSettled([j.finished,T]):T).then(o,o);if(i(),j)return j.finished.then(o,o);o()},types:n});C.__reactViewTransition=D;var k=[];return D.ready.then(function(){for(var T=C.documentElement.getAnimations({subtree:!0}),j=0;j<T.length;j++){var V=T[j],I=V.effect,ce=I.pseudoElement;if(ce!=null&&ce.startsWith("::view-transition")){k.push(V),V=I.getKeyframes();for(var O=ce=void 0,E=!0,w=0;w<V.length;w++){var L=V[w],Z=L.width;if(ce===void 0)ce=Z;else if(ce!==Z){E=!1;break}if(Z=L.height,O===void 0)O=Z;else if(O!==Z){E=!1;break}delete L.width,delete L.height,L.transform==="none"&&delete L.transform}E&&ce!==void 0&&O!==void 0&&(I.setKeyframes(V),E=getComputedStyle(I.target,I.pseudoElement),E.width!==ce||E.height!==O)&&(E=V[0],E.width=ce,E.height=O,E=V[V.length-1],E.width=ce,E.height=O,I.setKeyframes(V))}}d()},function(T){C.__reactViewTransition===D&&(C.__reactViewTransition=null);try{typeof T=="object"&&T!==null&&T.name==="InvalidStateError"&&(T.message==="View transition was skipped because document visibility state is hidden."||T.message==="Skipping view transition because document visibility state has become hidden."||T.message==="Skipping view transition because viewport size changed."||T.message==="Transition was aborted because of invalid state")&&(T=null),T!==null&&S(T)}finally{a(),i(),d()}}),D.finished.finally(function(){for(var T=0;T<k.length;T++)k[T].cancel();C.__reactViewTransition===D&&(C.__reactViewTransition=null),g()}),D}catch{return a(),i(),d(),null}}function Ha(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Ha.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:K({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ha.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],i=0;i<n.length;i++){var o=n[i].effect;o!==null&&o.target===e&&o.pseudoElement===t&&a.push(n[i])}return a},Ha.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function U2(e){return{name:e,group:new Ha("group",e),imagePair:new Ha("image-pair",e),old:new Ha("old",e),new:new Ha("new",e)}}function Ut(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Ut.prototype.addEventListener=function(e,t,n){var a=null,i=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(k2(o,e,t,n)===-1){var d=this,g=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(g=function(S){d.removeEventListener(e,t,n),typeof t=="function"?t.call(this,S):t.handleEvent(S)}),a!==null&&(i=d.removeEventListener.bind(d,e,t,n),a.addEventListener("abort",i,{once:!0}),i=a.removeEventListener.bind(a,"abort",i)),a=Tl(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:g,cleanup:i}),p(this._fragmentFiber.child,!1,_4,e,g,a)}this._eventListeners=o}};function _4(e,t,n,a){return R(e).addEventListener(t,n,a),!1}Ut.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=k2(a,e,t,n),t!==-1)){var i=a[t];n=i.attachedListener;var o=i.cleanup;i=Tl(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,b4,e,n,i),a.splice(t,1),o!==null&&o()}};function b4(e,t,n,a){return R(e).removeEventListener(t,n,a),!1}function Tl(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function L2(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function k2(e,t,n,a){if(e.length===0)return-1;a=L2(a);for(var i=0;i<e.length;i++){var o=e[i];if(o.type===t&&o.listener===n&&L2(o.optionsOrUseCapture)===a)return i}return-1}Ut.prototype.dispatchEvent=function(e){var t=x(this._fragmentFiber);if(t===null)return!0;t=R(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var i=0;i<n.length;i++){var o=n[i];a.addEventListener(o.type,o.attachedListener,Tl(o.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(i=0;i<n.length;i++)o=n[i],a.removeEventListener(o.type,o.attachedListener,Tl(o.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Ut.prototype.focus=function(e){p(this._fragmentFiber.child,!0,H2,e,void 0,void 0)};function H2(e,t){return e.tag===6?!1:(e=R(e),M4(e,t))}Ut.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,bs,t,void 0,void 0);for(var n=t.length-1;0<=n&&!H2(t[n],e);n--);};function bs(e,t){return t.push(e),!1}Ut.prototype.blur=function(){var e=x(this._fragmentFiber);e!==null&&(e=R(e),e=wr(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,S4,e,void 0,void 0))};function S4(e,t){return e.tag===6?!1:(e=R(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Ut.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,E4,e,void 0,void 0)};function E4(e,t){return e.tag===6||(e=R(e),t.observe(e)),!1}Ut.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,x4,e,void 0,void 0);for(var n=t=0;n<tn.length;n++){var a=tn[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):tn[t++]=a}tn.length=t}};function x4(e,t){return e.tag===6||(e=R(e),t.unobserve(e)),!1}var tn=[],Ss=!1;function N4(e,t,n){tn.push({fragmentInstance:e,observer:t,instance:n}),Ss||(Ss=!0,z4(function(){Ss=!1;var a=tn;tn=[];for(var i=0;i<a.length;i++){var o=a[i];o.observer.unobserve(o.instance)}}))}Ut.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,T4,e,void 0,void 0),e};function T4(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=R(e),t.push.apply(t,e.getClientRects());return!1}Ut.prototype.getRootNode=function(e){var t=x(this._fragmentFiber);return t===null?this:R(t).getRootNode(e)},Ut.prototype.compareDocumentPosition=function(e){var t=x(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,bs,n,void 0,void 0);var a=R(t);if(n.length===0){if(n=a,M(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=a=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=z(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=R(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=R(n[0]),i=R(n[n.length-1]);var o=M(this._fragmentFiber)?t.parentElement:a;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var d=t.compareDocumentPosition(e),g=i.compareDocumentPosition(e),S=d&Node.DOCUMENT_POSITION_CONTAINED_BY||g&Node.DOCUMENT_POSITION_CONTAINED_BY;return g=a&&o&&d&Node.DOCUMENT_POSITION_FOLLOWING&&g&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||o&&i===e||S||g?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!o&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:d,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||O4(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function O4(e,t,n,a,i){var o=pa(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=i.ownerDocument,i===o||i===o.documentElement||i===o.body;e:{for(o=t,t=x(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=q(n,o,H),t===null?t=!1:(p(t,!0,Y,o,n),o=B,B=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===a)&&(t=q(a,o,H),t===null?t=!1:(p(t,!0,U,o,a),o=B,X=B=null,t=o!==null)),t):!1}function B2(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Ut.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];p(this._fragmentFiber.child,!1,bs,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=z(this._fragmentFiber);if(a=n?a[1]||a[0]||x(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=R(a),B2(e,n);return}if(a=R(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var i=t[a];i.tag===6?(i=R(i),B2(i,n)):R(i).scrollIntoView(e),a+=n?-1:1}};function C4(e,t){return e=R(e),G2(e,t),!1}function G2(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function q2(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a];e.addEventListener(i.type,i.attachedListener,Tl(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var d=0,g=0;g<tn.length;g++){var S=tn[g];(S.fragmentInstance!==t||S.observer!==o||S.instance!==e)&&(tn[d++]=S)}tn.length=d,o.observe(e)}),G2(e,t))}function R4(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a];e.removeEventListener(i.type,i.attachedListener,Tl(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?N4(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Es(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Es(n),si(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function w4(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Kl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function A4(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Vt(e.nextSibling),e===null))return null;return e}function P2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function xs(e){return e.data==="$?"||e.data==="$~"}function Ns(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function j4(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ts=null;function Y2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Vt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function V2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function M4(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function z4(e){A2(function(){A2(function(t){return e(t)})})}function X2(e,t,n){switch(t=wr(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function F2(e,t,n){for(var a in n){var i=n[a];n.hasOwnProperty(a)&&i!=null&&Re(e,t,a,null,c4,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===on&&(e.onclick=null),si(e)}function Os(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);si(e)}var Xt=new Map,K2=new Set;function Ar(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Ln=ie.d;ie.d={f:D4,r:U4,D:L4,C:k4,L:H4,m:B4,X:q4,S:G4,M:P4};function D4(){var e=Ln.f(),t=mu();return e||t}function U4(e){var t=Va(e);t!==null&&t.tag===5&&t.type==="form"?Q0(t):Ln.r(e)}var Ol=typeof document>"u"?null:document;function Z2(e,t,n){var a=Ol;if(a&&typeof t=="string"&&t){var i=kt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),K2.has(i)||(K2.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),st(t,"link",e),Je(t),a.head.appendChild(t)))}}function L4(e){Ln.D(e),Z2("dns-prefetch",e,null)}function k4(e,t){Ln.C(e,t),Z2("preconnect",e,t)}function H4(e,t,n){Ln.L(e,t,n);var a=Ol;if(a&&e&&t){var i='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+kt(n.imageSizes)+'"]')):i+='[href="'+kt(e)+'"]';var o=i;switch(t){case"style":o=Cl(e);break;case"script":o=Rl(e)}if(!(Xt.has(o)||(e=K({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Xt.set(o,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(jr(o))||t==="script"&&a.querySelector(Mr(o))))){var d=a.createElement("link");st(d,"link",e),t==="style"&&(d[ci]=!0,d.onload=d.onerror=function(){of(d)}),Je(d),a.head.appendChild(d)}}}function B4(e,t){Ln.m(e,t);var n=Ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+kt(a)+'"][href="'+kt(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Rl(e)}if(!Xt.has(o)&&(e=K({rel:"modulepreload",href:e},t),Xt.set(o,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mr(o)))return}a=n.createElement("link"),st(a,"link",e),Je(a),n.head.appendChild(a)}}}function G4(e,t,n){Ln.S(e,t,n);var a=Ol;if(a&&e){var i=Xa(a).hoistableStyles,o=Cl(e);t=t||"default";var d=i.get(o);if(!d){var g={loading:0,preload:null};if(d=a.querySelector(jr(o)))g.loading=5;else{e=K({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Xt.get(o))&&Cs(e,n);var S=d=a.createElement("link");Je(S),st(S,"link",e),S._p=new Promise(function(C,D){S.onload=C,S.onerror=D}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,_u(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:g},i.set(o,d)}}}function q4(e,t){Ln.X(e,t);var n=Ol;if(n&&e){var a=Xa(n).hoistableScripts,i=Rl(e),o=a.get(i);o||(o=n.querySelector(Mr(i)),o||(e=K({src:e,async:!0},t),(t=Xt.get(i))&&Rs(e,t),o=n.createElement("script"),Je(o),st(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function P4(e,t){Ln.M(e,t);var n=Ol;if(n&&e){var a=Xa(n).hoistableScripts,i=Rl(e),o=a.get(i);o||(o=n.querySelector(Mr(i)),o||(e=K({src:e,async:!0,type:"module"},t),(t=Xt.get(i))&&Rs(e,t),o=n.createElement("script"),Je(o),st(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Q2(e,t,n,a){var i=(i=Gn.current)?Ar(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Cl(n.href),t=Xa(i).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Cl(n.href);var o=Xa(i).hoistableStyles,d=o.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=i.querySelector(jr(e)))?o._p||(d.instance=o,d.state.loading=5):(o=Xt.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Xt.set(e,o)),Y4(i,e,o,d.state))),t&&a===null)throw Error(c(528,""));return d}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Rl(n),t=Xa(i).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Cl(e){return'href="'+kt(e)+'"'}function jr(e){return'link[rel="stylesheet"]['+e+"]"}function I2(e){return K({},e,{"data-precedence":e.precedence,precedence:null})}function Y4(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[ci]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[ci]=!0,t.onload=t.onerror=of.bind(null,t),st(t,"link",n),Je(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Rl(e){return'[src="'+kt(e)+'"]'}function Mr(e){return"script[async]"+e}function J2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kt(n.href)+'"]');if(a)return t.instance=a,Je(a),a;var i=K({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),st(a,"style",i),_u(a,n.precedence,e),t.instance=a;case"stylesheet":i=Cl(n.href);var o=e.querySelector(jr(i));if(o)return t.state.loading|=4,t.instance=o,Je(o),o;a=I2(n),(i=Xt.get(i))&&Cs(a,i),o=(e.ownerDocument||e).createElement("link"),Je(o);var d=o;return d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),st(o,"link",a),t.state.loading|=4,_u(o,n.precedence,e),t.instance=o;case"script":return o=Rl(n.src),(i=e.querySelector(Mr(o)))?(t.instance=i,Je(i),i):(a=n,(i=Xt.get(o))&&(a=K({},n),Rs(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),st(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,_u(a,n.precedence,e));return t.instance}function _u(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,d=0;d<a.length;d++){var g=a[d];if(g.dataset.precedence===t)o=g;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Cs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function W2(e,t,n){if(bu===null){var a=new Map,i=bu=new Map;i.set(n,a)}else i=bu,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Kl]||o[rt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var g=a.get(d);g?g.push(o):a.set(d,[o])}}return a}function ws(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function V4(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function em(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function tm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function nm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function am(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=nm(t),e.suspenseyImages.push(t)),e=K4.bind(e),t.decode().then(e,e))}function X4(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Cl(a.href),o=t.querySelector(jr(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Je(o);return}o=t.ownerDocument||t,a=I2(a),(i=Xt.get(i))&&Cs(a,i),o=o.createElement("link"),Je(o);var d=o;d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),st(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=zr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Su=0;function F4(e,t){return e.stylesheets&&e.count===0&&xu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Su===0&&(Su=62500*d4());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Su?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lm(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)xu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function zr(){this.count--,lm(this)}function K4(){this.imgCount--,lm(this)}var Eu=null;function xu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Eu=new Map,t.forEach(Z4,e),Eu=null,zr.call(e))}function Z4(e,t){if(!(t.state.loading&4)){var n=Eu.get(e);if(n)var a=n.get(null);else{n=new Map,Eu.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var d=i[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}i=t.instance,d=i.getAttribute("data-precedence"),o=n.get(d)||a,o===a&&n.set(null,i),n.set(d,i),this.count++,a=zr.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var wl={$$typeof:Ee,Provider:null,Consumer:null,_currentValue:Sn,_currentValue2:Sn,_threadCount:0};function Q4(e,t,n,a,i,o,d,g,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=co(0),this.hiddenUpdates=co(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.transitionTypes=null,this.incompleteTransitions=new Map}function rm(e,t,n,a,i,o,d,g,S,C,D,k){return e=new Q4(e,t,n,d,S,C,D,k,g),t=1,o===!0&&(t|=24),o=_t(3,null,null,t),e.current=o,o.stateNode=e,t=Vo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Zo(o),e}function im(e){return e?(e=nl,e):nl}function um(e,t,n,a,i,o){i=im(i),a.context===null?a.context=i:a.pendingContext=i,a=Jn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Wn(e,a,t),n!==null&&(xt(n,e,t),dr(n,e,t))}function om(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function As(e,t){om(e,t),(e=e.alternate)&&om(e,t)}function cm(e){if(e.tag===13||e.tag===31){var t=Sa(e,67108864);t!==null&&xt(t,e,67108864),As(e,67108864)}}function sm(e){if(e.tag===13||e.tag===31){var t=Dt();t=so(t);var n=Sa(e,t);n!==null&&xt(n,e,t),As(e,t)}}var Al=!0;function I4(e,t,n,a){var i=J.T;J.T=null;var o=ie.p;try{ie.p=2,js(e,t,n,a)}finally{ie.p=o,J.T=i}}function J4(e,t,n,a){var i=J.T;J.T=null;var o=ie.p;try{ie.p=8,js(e,t,n,a)}finally{ie.p=o,J.T=i}}function js(e,t,n,a){if(Al){var i=Ms(a);if(i===null)ms(e,t,a,Nu,n),fm(e,a);else if(ev(i,e,t,n,a))a.stopPropagation();else if(fm(e,a),t&4&&-1<W4.indexOf(e)){for(;i!==null;){var o=Va(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=va(o.pendingLanes);if(d!==0){var g=o;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var S=1<<31-Ct(d);g.entanglements[1]|=S,d&=~S}pn(o),(Se&6)===0&&(su=Tt()+500,Or(0))}}break;case 31:case 13:g=Sa(o,2),g!==null&&xt(g,o,2),mu(),As(o,2)}if(o=Ms(a),o===null&&ms(e,t,a,Nu,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else ms(e,t,a,null,n)}}function Ms(e){return e=po(e),zs(e)}var Nu=null;function zs(e){if(Nu=null,e=pa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Nu=e,null}function dm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dy()){case Zd:return 2;case Qd:return 8;case li:case fy:return 32;case Id:return 268435456;default:return 32}default:return 32}}var Ds=!1,da=null,fa=null,ma=null,Dr=new Map,Ur=new Map,ha=[],W4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function fm(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":ma=null;break;case"pointerover":case"pointerout":Dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ur.delete(t.pointerId)}}function Lr(e,t,n,a,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Va(t),t!==null&&cm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ev(e,t,n,a,i){switch(t){case"focusin":return da=Lr(da,e,t,n,a,i),!0;case"dragenter":return fa=Lr(fa,e,t,n,a,i),!0;case"mouseover":return ma=Lr(ma,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Dr.set(o,Lr(Dr.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Ur.set(o,Lr(Ur.get(o)||null,e,t,n,a,i)),!0}return!1}function mm(e){var t=pa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,lf(e.priority,function(){sm(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,lf(e.priority,function(){sm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ms(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);vo=a,n.target.dispatchEvent(a),vo=null}else return t=Va(n),t!==null&&cm(t),e.blockedOn=n,!1;t.shift()}return!0}function hm(e,t,n){Tu(e)&&n.delete(t)}function tv(){Ds=!1,da!==null&&Tu(da)&&(da=null),fa!==null&&Tu(fa)&&(fa=null),ma!==null&&Tu(ma)&&(ma=null),Dr.forEach(hm),Ur.forEach(hm)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Ds||(Ds=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,tv)))}var Cu=null;function ym(e){Cu!==e&&(Cu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Cu===e&&(Cu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(zs(a||n)===null)continue;break}var o=Va(n);o!==null&&(e.splice(t,3),t-=3,gc(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function jl(e){function t(S){return Ou(S,e)}da!==null&&Ou(da,e),fa!==null&&Ou(fa,e),ma!==null&&Ou(ma,e),Dr.forEach(t),Ur.forEach(t);for(var n=0;n<ha.length;n++){var a=ha[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ha.length&&(n=ha[0],n.blockedOn===null);)mm(n),n.blockedOn===null&&ha.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],d=i[$t]||null;if(typeof o=="function")d||ym(n);else if(d){var g=null;if(o&&o.hasAttribute("formAction")){if(i=o,d=o[$t]||null)g=d.formAction;else if(zs(i)!==null)continue}else g=d.action;typeof g=="function"?n[a+1]=g:(n.splice(a,3),a-=3),ym(n)}}}function gm(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Us(e){this._internalRoot=e}Ru.prototype.render=Us.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,a=Dt();um(n,a,e,t,null,null)},Ru.prototype.unmount=Us.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;um(e.current,2,null,e,null,null),mu(),t[Ya]=null}};function Ru(e){this._internalRoot=e}Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=af();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ha.length&&t!==0&&t<ha[n].priority;n++);ha.splice(n,0,e),n===0&&mm(e)}};var vm=r.version;if(vm!=="19.3.1")throw Error(c(527,vm,"19.3.1"));ie.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=$(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var nv={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:J,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wu.isDisabled&&wu.supportsFiber)try{Vl=wu.inject(nv),Ot=wu}catch{}}return Hr.createRoot=function(e,t){if(!s(e))throw Error(c(299));var n=!1,a="",i=i1,o=u1,d=o1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=rm(e,1,!1,null,null,n,a,null,i,o,d,gm),e[Ya]=t.current,fs(e),new Us(t)},Hr.hydrateRoot=function(e,t,n){if(!s(e))throw Error(c(299));var a=!1,i="",o=i1,d=u1,g=o1,S=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=rm(e,1,!0,t,n??null,a,i,S,o,d,g,gm),t.context=im(null),n=t.current,a=Dt(),a=so(a),i=Jn(a),i.callback=null,Wn(n,i,a),n=a,t.current.lanes=n,Fl(t,n),pn(t),e[Ya]=t.current,fs(e),new Ru(t)},Hr.version="19.3.1",Hr}var Cm;function fv(){if(Cm)return Hs.exports;Cm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Hs.exports=dv(),Hs.exports}var mv=fv();var xd=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Mh=/^[\\/]{2}/;function hv(l,r){return r+l.replace(/\\/g,"/")}var Rm="popstate";function wm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function yv(l={}){function r(c,s){let f=s.state?.masked,{pathname:m,search:v,hash:h}=f||c.location;return od("",{pathname:m,search:v,hash:h},s.state&&s.state.usr||null,s.state&&s.state.key||"default",f?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function u(c,s){return typeof s=="string"?s:Ba(s)}return vv(r,u,null,l)}function Le(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function Ft(l,r){if(!l){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function gv(){return Math.random().toString(36).substring(2,10)}function Am(l,r){return{usr:l.state,key:l.key,idx:r,masked:l.mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function od(l,r,u=null,c,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof r=="string"?Gl(r):r,state:u,key:r&&r.key||c||gv(),mask:s}}function Ba({pathname:l="/",search:r="",hash:u=""}){return r&&r!=="?"&&(l+=r.charAt(0)==="?"?r:"?"+r),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Gl(l){let r={};if(l){let u=l.indexOf("#");u>=0&&(r.hash=l.substring(u),l=l.substring(0,u));let c=l.indexOf("?");c>=0&&(r.search=l.substring(c),l=l.substring(0,c)),l&&(r.pathname=l)}return r}function vv(l,r,u,c={}){let{window:s=document.defaultView,v5Compat:f=!1}=c,m=s.history,v="POP",h=null,$=_();$==null&&($=0,m.replaceState({...m.state,idx:$},""));function _(){return(m.state||{idx:null}).idx}function p(){v="POP";let R=_(),B=R==null?null:R-$;$=R,h&&h({action:v,location:A.location,delta:B})}function x(R,B){v="PUSH";let X=wm(R)?R:od(A.location,R,B);$=_()+1;let Y=Am(X,$),U=A.createHref(X.mask||X);try{m.pushState(Y,"",U)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;s.location.assign(U)}f&&h&&h({action:v,location:A.location,delta:1})}function M(R,B){v="REPLACE";let X=wm(R)?R:od(A.location,R,B);$=_();let Y=Am(X,$),U=A.createHref(X.mask||X);m.replaceState(Y,"",U),f&&h&&h({action:v,location:A.location,delta:0})}function z(R){return pv(s,R)}let A={get action(){return v},get location(){return l(s,m)},listen(R){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Rm,p),h=R,()=>{s.removeEventListener(Rm,p),h=null}},createHref(R){return r(s,R)},createURL:z,encodeLocation(R){let B=z(R);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:x,replace:M,go(R){return m.go(R)}};return A}function pv(l,r,u=!1){let c="http://localhost";l&&(c=l.location.origin!=="null"?l.location.origin:l.location.href),Le(c,"No window.location.(origin|href) available to create URL");let s=typeof r=="string"?r:Ba(r);return s=s.replace(/ $/,"%20"),!u&&Mh.test(s)&&(s=c+s),new URL(s,c)}function zh(l,r,u="/"){return $v(l,r,u,!1)}function $v(l,r,u,c,s){let f=typeof r=="string"?Gl(r):r,m=Hn(f.pathname||"/",u);if(m==null)return null;let v=_v(l),h=null,$=Av(m);for(let _=0;h==null&&_<v.length;++_)h=wv(v[_],$,c);return h}function _v(l){let r=Dh(l);return bv(r),r}function Dh(l,r=[],u=[],c="",s=!1){let f=(m,v,h=s,$)=>{let _={relativePath:$===void 0?m.path||"":$,caseSensitive:m.caseSensitive===!0,childrenIndex:v,route:m};if(_.relativePath.startsWith("/")){if(!_.relativePath.startsWith(c)&&h)return;Le(_.relativePath.startsWith(c),`Absolute route path "${_.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_.relativePath=_.relativePath.slice(c.length)}let p=nn([c,_.relativePath]),x=u.concat(_);m.children&&m.children.length>0&&(Le(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Dh(m.children,r,x,p,h)),!(m.path==null&&!m.index)&&r.push({path:p,score:Cv(p,m.index),routesMeta:x.map((M,z)=>{let[A,R]=kh(M.relativePath,M.caseSensitive,z===x.length-1);return{...M,matcher:A,compiledParams:R}})})};return l.forEach((m,v)=>{if(m.path===""||!m.path?.includes("?"))f(m,v);else for(let h of Uh(m.path))f(m,v,!0,h)}),r}function Uh(l){let r=l.split("/");if(r.length===0)return[];let[u,...c]=r,s=u.endsWith("?"),f=u.replace(/\?$/,"");if(c.length===0)return s?[f,""]:[f];let m=Uh(c.join("/")),v=[];return v.push(...m.map(h=>h===""?f:[f,h].join("/"))),s&&v.push(...m),v.map(h=>l.startsWith("/")&&h===""?"/":h)}function bv(l){l.sort((r,u)=>r.score!==u.score?u.score-r.score:Rv(r.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}var Sv=/^:[\w-]+$/,Ev=3,xv=2,Nv=1,Tv=10,Ov=-2,jm=l=>l==="*";function Cv(l,r){let u=l.split("/"),c=u.length;return u.some(jm)&&(c+=Ov),r&&(c+=xv),u.filter(s=>!jm(s)).reduce((s,f)=>s+(Sv.test(f)?Ev:f===""?Nv:Tv),c)}function Rv(l,r){return l.length===r.length&&l.slice(0,-1).every((c,s)=>c===r[s])?l[l.length-1]-r[r.length-1]:0}function wv(l,r,u=!1){let{routesMeta:c}=l,s={},f="/",m=[];for(let v=0;v<c.length;++v){let h=c[v],$=v===c.length-1,_=f==="/"?r:r.slice(f.length)||"/",p={path:h.relativePath,caseSensitive:h.caseSensitive,end:$},x=h.matcher&&h.compiledParams?Lh(p,_,h.matcher,h.compiledParams):Bu(p,_),M=h.route;if(!x&&$&&u&&!c[c.length-1].route.index&&(x=Bu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},_)),!x)return null;Object.assign(s,x.params),m.push({params:s,pathname:nn([f,x.pathname]),pathnameBase:zv(nn([f,x.pathnameBase])),route:M}),x.pathnameBase!=="/"&&(f=nn([f,x.pathnameBase]))}return m}function Bu(l,r){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,c]=kh(l.path,l.caseSensitive,l.end);return Lh(l,r,u,c)}function Lh(l,r,u,c){let s=r.match(u);if(!s)return null;let f=s[0],m=kl(f,1),v=s.slice(1);return{params:c.reduce(($,{paramName:_,isOptional:p},x)=>{if(_==="*"){let z=v[x]||"";m=kl(f.slice(0,f.length-z.length),1)}const M=v[x];return p&&!M?$[_]=void 0:$[_]=(M||"").replace(/%2F/g,"/"),$},{}),pathname:f,pathnameBase:m,pattern:l}}function kh(l,r=!1,u=!0){Ft(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let c=[],s="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,v,h,$,_)=>{if(c.push({paramName:v,isOptional:h!=null}),h){let p=_.charAt($+m.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),s+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?s+="\\/*$":l!==""&&l!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,r?void 0:"i"),c]}function Av(l){try{return l.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Ft(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),l}}function Hn(l,r){if(r==="/")return l;if(!l.toLowerCase().startsWith(r.toLowerCase()))return null;let u=r.endsWith("/")?r.length-1:r.length,c=l.charAt(u);return c&&c!=="/"?null:l.slice(u)||"/"}function jv(l,r="/"){let{pathname:u,search:c="",hash:s=""}=typeof l=="string"?Gl(l):l,f;return u?(u=Hh(u),u.startsWith("/")||u.startsWith("\\")?f=Mm(u.substring(1),"/"):f=Mm(u,r)):f=r,{pathname:f,search:Dv(c),hash:Uv(s)}}function Mm(l,r){let u=kl(r).split("/");return l.split("/").forEach(s=>{s===".."?u.length>1&&u.pop():s!=="."&&u.push(s)}),u.length>1?u.join("/"):"/"}function Ps(l,r,u,c){return`Cannot include a '${l}' character in a manually specified \`to.${r}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Mv(l){return l.filter((r,u)=>u===0||r.route.path&&r.route.path.length>0)}function Nd(l){let r=Mv(l);return r.map((u,c)=>c===r.length-1?u.pathname:u.pathnameBase)}function Xu(l,r,u,c=!1){let s;typeof l=="string"?s=Gl(l):(s={...l},Le(!s.pathname||!s.pathname.includes("?"),Ps("?","pathname","search",s)),Le(!s.pathname||!s.pathname.includes("#"),Ps("#","pathname","hash",s)),Le(!s.search||!s.search.includes("#"),Ps("#","search","hash",s)));let f=l===""||s.pathname==="",m=f?"/":s.pathname,v;if(m==null)v=u;else{let p=r.length-1;if(!c&&m.startsWith("..")){let x=m.split("/");for(;x[0]==="..";)x.shift(),p-=1;s.pathname=x.join("/")}v=p>=0?r[p]:"/"}let h=jv(s,v),$=m&&m!=="/"&&m.endsWith("/"),_=(f||m===".")&&u.endsWith("/");return!h.pathname.endsWith("/")&&($||_)&&(h.pathname+="/"),h}var Hh=l=>l.replace(/[\\/]{2,}/g,"/"),nn=l=>Hh(l.join("/"));function kl(l,r=0){let u=l.length;for(;u>r&&l.charCodeAt(u-1)===47;)u--;return u===l.length?l:l.slice(0,u)}var zv=l=>kl(l).replace(/^\/*/,"/"),Dv=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Uv=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Lv=class{constructor(l,r,u,c=!1){this.status=l,this.statusText=r||"",this.internal=c,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function kv(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function Hv(l){let r=l.map(u=>u.route.path).filter(Boolean);return nn(r)||"/"}var Bh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gh(l,r){let u=l;if(typeof u!="string"||!xd.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let c=u,s=!1;if(Bh)try{let f=new URL(window.location.href),m=Mh.test(u)?new URL(hv(u,f.protocol)):new URL(u),v=Hn(m.pathname,r);m.origin===f.origin&&v!=null?u=v+m.search+m.hash:s=!0}catch{Ft(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:s,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var zm=new URL("http://localhost");function Td(l){if(l.createURL)return l.createURL("/");try{return new URL(l.createHref("/"),zm)}catch{return zm}}function Ys(l,r){return l.origin===r.origin&&(l.origin!=="null"||l.protocol===r.protocol&&l.host===r.host)}function Bv(l,r){if(l.startsWith("//"))return!0;let u=r.protocol.toLowerCase();return l.toLowerCase().startsWith(u)?r.host===""||l.slice(u.length).startsWith("//"):!1}function Od(l,r,u,c){let s=null;try{s=l==null?null:new URL(l,u)}catch{}let f=new URL(r,u),m=s!=null&&!Ys(s,u),v=!Ys(f,u);if(c==="reject"){if(m||v)throw new Error("External navigation is not allowed")}else if(v&&(s==null||!Bv(l,s)||!Ys(s,f)))throw new Error("External navigation is not allowed")}var qh=["POST","PUT","PATCH","DELETE"];new Set(qh);var Gv=["GET",...qh];new Set(Gv);var qv=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Pv(l){try{return qv.includes(new URL(l).protocol)}catch{return!1}}var ql=b.createContext(null);ql.displayName="DataRouter";var Fu=b.createContext(null);Fu.displayName="DataRouterState";var Ph=b.createContext(!1);function Yv(){return b.useContext(Ph)}var Yh=b.createContext({isTransitioning:!1});Yh.displayName="ViewTransition";var Vv=b.createContext(new Map);Vv.displayName="Fetchers";var Xv=b.createContext(null);Xv.displayName="Await";var Lt=b.createContext(null);Lt.displayName="Navigation";var Jr=b.createContext(null);Jr.displayName="Location";var ln=b.createContext({outlet:null,matches:[],isDataRoute:!1});ln.displayName="Route";var Cd=b.createContext(null);Cd.displayName="RouteError";var Vh="REACT_ROUTER_ERROR",Fv="REDIRECT",Kv="ROUTE_ERROR_RESPONSE";function Zv(l){if(l.startsWith(`${Vh}:${Fv}:{`))try{let r=JSON.parse(l.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Qv(l){if(l.startsWith(`${Vh}:${Kv}:{`))try{let r=JSON.parse(l.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new Lv(r.status,r.statusText,r.data)}catch{}}function Xh(l,{relative:r}={}){Le(Pl(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:c}=b.useContext(Lt),{hash:s,pathname:f,search:m}=Wr(l,{relative:r}),v=f;return u!=="/"&&(v=f==="/"?u:nn([u,f])),c.createHref({pathname:v,search:m,hash:s})}function Pl(){return b.useContext(Jr)!=null}function nt(){return Le(Pl(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Jr).location}var Fh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kh(l){b.useContext(Lt).static||b.useLayoutEffect(l)}function Qe(){let{isDataRoute:l}=b.useContext(ln);return l?sp():Iv()}function Iv(){Le(Pl(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(ql),{basename:r,navigator:u}=b.useContext(Lt),{matches:c}=b.useContext(ln),{pathname:s}=nt(),f=JSON.stringify(Nd(c)),m=b.useRef(!1);return Kh(()=>{m.current=!0}),b.useCallback((h,$={})=>{if(Ft(m.current,Fh),!m.current)return;if(typeof h=="number"){u.go(h);return}let _=Xu(h,JSON.parse(f),s,$.relative==="path");l==null&&r!=="/"&&(_.pathname=_.pathname==="/"?r:nn([r,_.pathname])),Od(typeof h=="string"?h:Ba(h),u.createHref(_),Td(u),"reject"),($.replace?u.replace:u.push)(_,$.state,$)},[r,u,f,s,l])}b.createContext(null);function Jv(){let{matches:l}=b.useContext(ln);return l[l.length-1]?.params??{}}function Wr(l,{relative:r}={}){let{matches:u}=b.useContext(ln),{pathname:c}=nt(),s=JSON.stringify(Nd(u));return b.useMemo(()=>Xu(l,JSON.parse(s),c,r==="path"),[l,s,c,r])}function Wv(l,r){return Zh(l,r)}function Zh(l,r,u){Le(Pl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=b.useContext(Lt),{matches:s}=b.useContext(ln),f=s[s.length-1],m=f?f.params:{},v=f?f.pathname:"/",h=f?f.pathnameBase:"/",$=f&&f.route;{let R=$&&$.path||"";Ih(v,!$||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
-
|
|
11
|
-
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let _=nt(),p;if(r){let R=typeof r=="string"?Gl(r):r;Le(h==="/"||R.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${R.pathname}" was given in the \`location\` prop.`),p=R}else p=_;let x=p.pathname||"/",M=x;if(h!=="/"){let R=h.replace(/^\//,"").split("/");M="/"+x.replace(/^\//,"").split("/").slice(R.length).join("/")}let z=u&&u.state.matches.length?u.state.matches.map(R=>Object.assign(R,{route:u.manifest[R.route.id]||R.route})):zh(l,{pathname:M});Ft($||z!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ft(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=lp(z&&z.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:nn([h,c.encodeLocation?c.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?h:nn([h,c.encodeLocation?c.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),s,u);return r&&A?b.createElement(Jr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},A):A}function ep(){let l=cp(),r=kv(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:c},f={padding:"2px 4px",backgroundColor:c},m=null;return console.error("Error handled by React Router default ErrorBoundary:",l),m=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},r),u?b.createElement("pre",{style:s},u):null,m)}var tp=b.createElement(ep,null),Qh=class extends b.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,r){return r.location!==l.location||r.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:r.error,location:r.location,revalidation:l.revalidation||r.revalidation}}componentDidCatch(l,r){this.props.onError?this.props.onError(l,r):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=Qv(l.digest);u&&(l=u)}let r=l!==void 0?b.createElement(ln.Provider,{value:this.props.routeContext},b.createElement(Cd.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?b.createElement(np,{error:l},r):r}};Qh.contextType=Ph;var Vs=new WeakMap;function np({children:l,error:r}){let{basename:u,navigator:c}=b.useContext(Lt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=Zv(r.digest);if(s){let f=Vs.get(r);if(f)throw f;let m=Gh(s.location,u),v=m.absoluteURL||m.to;if(Od(s.location,v,Td(c),"allow-explicit"),Pv(v))throw new Error("Invalid redirect location");if(Bh&&!Vs.get(r))if(m.isExternal||s.reloadDocument)window.location.href=v;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:s.replace}));throw Vs.set(r,h),h}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v}`})}}return l}function ap({routeContext:l,match:r,children:u}){let c=b.useContext(ql);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(ln.Provider,{value:l},u)}function lp(l,r=[],u){let c=u?.state;if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(r.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let s=l,f=c?.errors;if(f!=null){let _=s.findIndex(p=>p.route.id&&f?.[p.route.id]!==void 0);Le(_>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),s=s.slice(0,Math.min(s.length,_+1))}let m=!1,v=-1;if(u&&c){m=c.renderFallback;for(let _=0;_<s.length;_++){let p=s[_];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(v=_),p.route.id){let{loaderData:x,errors:M}=c,z=p.route.loader&&!x.hasOwnProperty(p.route.id)&&(!M||M[p.route.id]===void 0);if(p.route.lazy||z){u.isStatic&&(m=!0),v>=0?s=s.slice(0,v+1):s=[s[0]];break}}}}let h=u?.onError,$=c&&h?(_,p)=>{h(_,{location:c.location,params:c.matches?.[0]?.params??{},pattern:Hv(c.matches),errorInfo:p})}:void 0;return s.reduceRight((_,p,x)=>{let M,z=!1,A=null,R=null;c&&(M=f&&p.route.id?f[p.route.id]:void 0,A=p.route.errorElement||tp,m&&(v<0&&x===0?(Ih("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,R=null):v===x&&(z=!0,R=p.route.hydrateFallbackElement||null)));let B=r.concat(s.slice(0,x+1)),X=()=>{let Y;return M?Y=A:z?Y=R:p.route.Component?Y=b.createElement(p.route.Component,null):p.route.element?Y=p.route.element:Y=_,b.createElement(ap,{match:p,routeContext:{outlet:_,matches:B,isDataRoute:c!=null},children:Y})};return c&&(p.route.ErrorBoundary||p.route.errorElement||x===0)?b.createElement(Qh,{location:c.location,revalidation:c.revalidation,component:A,error:M,children:X(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:$}):X()},null)}function Rd(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rp(l){let r=b.useContext(ql);return Le(r,Rd(l)),r}function ip(l){let r=b.useContext(Fu);return Le(r,Rd(l)),r}function up(l){let r=b.useContext(ln);return Le(r,Rd(l)),r}function wd(l){let r=up(l),u=r.matches[r.matches.length-1];return Le(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function op(){return wd("useRouteId")}function cp(){let l=b.useContext(Cd),r=ip("useRouteError"),u=wd("useRouteError");return l!==void 0?l:r.errors?.[u]}function sp(){let{router:l}=rp("useNavigate"),r=wd("useNavigate"),u=b.useRef(!1);return Kh(()=>{u.current=!0}),b.useCallback(async(s,f={})=>{Ft(u.current,Fh),u.current&&(typeof s=="number"?await l.navigate(s):await l.navigate(s,{fromRouteId:r,...f}))},[l,r])}var Dm={};function Ih(l,r,u){!r&&!Dm[l]&&(Dm[l]=!0,Ft(!1,u))}b.memo(dp);function dp({routes:l,manifest:r,future:u,state:c,isStatic:s,onError:f}){return Zh(l,void 0,{manifest:r,state:c,isStatic:s,onError:f})}function fp({to:l,replace:r,state:u,relative:c}){Le(Pl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s,navigator:f}=b.useContext(Lt);Ft(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=b.useContext(ln),{pathname:v}=nt(),h=Qe(),$=Xu(l,Nd(m),v,c==="path");Od(typeof l=="string"?l:Ba(l),f.createHref($),Td(f),"reject");let _=JSON.stringify($);return b.useEffect(()=>{h(JSON.parse(_),{replace:r,state:u,relative:c})},[h,_,c,r,u]),null}function Ze(l){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function mp({basename:l="/",children:r=null,location:u,navigationType:c="POP",navigator:s,static:f=!1,useTransitions:m}){Le(!Pl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=l.replace(/^\/*/,"/"),h=b.useMemo(()=>({basename:v,navigator:s,static:f,useTransitions:m,future:{}}),[v,s,f,m]);typeof u=="string"&&(u=Gl(u));let{pathname:$="/",search:_="",hash:p="",state:x=null,key:M="default",mask:z}=u,A=b.useMemo(()=>{let R=Hn($,v);return R==null?null:{location:{pathname:R,search:_,hash:p,state:x,key:M,mask:z},navigationType:c}},[v,$,_,p,x,M,c,z]);return Ft(A!=null,`<Router basename="${v}"> is not able to match the URL "${$}${_}${p}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:b.createElement(Lt.Provider,{value:h},b.createElement(Jr.Provider,{children:r,value:A}))}function Jh({children:l,location:r}){return Wv(cd(l),r)}function cd(l,r=[]){let u=[];return b.Children.forEach(l,(c,s)=>{if(!b.isValidElement(c))return;let f=[...r,s];if(c.type===b.Fragment){u.push.apply(u,cd(c.props.children,f));return}Le(c.type===Ze,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!c.props.index||!c.props.children,"An index route cannot have child routes.");let m={id:c.props.id||f.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(m.children=cd(c.props.children,f)),u.push(m)}),u}var zu="get",Du="application/x-www-form-urlencoded";function Ku(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function hp(l){return Ku(l)&&l.tagName.toLowerCase()==="button"}function yp(l){return Ku(l)&&l.tagName.toLowerCase()==="form"}function gp(l){return Ku(l)&&l.tagName.toLowerCase()==="input"}function vp(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function pp(l,r){return l.button===0&&(!r||r==="_self")&&!vp(l)}function sd(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((r,u)=>{let c=l[u];return r.concat(Array.isArray(c)?c.map(s=>[u,s]):[[u,c]])},[]))}function $p(l,r){let u=sd(l);return r&&r.forEach((c,s)=>{u.has(s)||r.getAll(s).forEach(f=>{u.append(s,f)})}),u}var Au=null;function _p(){if(Au===null)try{new FormData(document.createElement("form"),0),Au=!1}catch{Au=!0}return Au}var bp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xs(l){return l!=null&&!bp.has(l)?(Ft(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Du}"`),null):l}function Sp(l,r){let u,c,s,f,m;if(yp(l)){let v=l.getAttribute("action");c=v?Hn(v,r):null,u=l.getAttribute("method")||zu,s=Xs(l.getAttribute("enctype"))||Du,f=new FormData(l)}else if(hp(l)||gp(l)&&(l.type==="submit"||l.type==="image")){let v=l.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=l.getAttribute("formaction")||v.getAttribute("action");if(c=h?Hn(h,r):null,u=l.getAttribute("formmethod")||v.getAttribute("method")||zu,s=Xs(l.getAttribute("formenctype"))||Xs(v.getAttribute("enctype"))||Du,f=new FormData(v,l),!_p()){let{name:$,type:_,value:p}=l;if(_==="image"){let x=$?`${$}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else $&&f.append($,p)}}else{if(Ku(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=zu,c=null,s=Du,m=l}return f&&s==="text/plain"&&(m=f,f=void 0),{action:c,method:u.toLowerCase(),encType:s,formData:f,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ad(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function Wh(l,r,u,c){let s=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${c}`:s.pathname=`${s.pathname}.${c}`:s.pathname==="/"?s.pathname=`_root.${c}`:r&&Hn(s.pathname,r)==="/"?s.pathname=`${kl(r)}/_root.${c}`:s.pathname=`${kl(s.pathname)}.${c}`,s}async function Ep(l,r){if(l.id in r)return r[l.id];try{let u=await import(l.module);return r[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function xp(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Np(l,r,u){let c=await Promise.all(l.map(async s=>{let f=r.routes[s.route.id];if(f){let m=await Ep(f,u);return m.links?m.links():[]}return[]}));return Rp(c.flat(1).filter(xp).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Um(l,r,u,c,s,f){let m=(h,$)=>u[$]?h.route.id!==u[$].route.id:!0,v=(h,$)=>u[$].pathname!==h.pathname||u[$].route.path?.endsWith("*")&&u[$].params["*"]!==h.params["*"];return f==="assets"?r.filter((h,$)=>m(h,$)||v(h,$)):f==="data"?r.filter((h,$)=>{let _=c.routes[h.route.id];if(!_||!_.hasLoader)return!1;if(m(h,$)||v(h,$))return!0;if(h.route.shouldRevalidate){let p=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Tp(l,r,{includeHydrateFallback:u}={}){return Op(l.map(c=>{let s=r.routes[c.route.id];if(!s)return[];let f=[s.module];return s.clientActionModule&&(f=f.concat(s.clientActionModule)),s.clientLoaderModule&&(f=f.concat(s.clientLoaderModule)),u&&s.hydrateFallbackModule&&(f=f.concat(s.hydrateFallbackModule)),s.imports&&(f=f.concat(s.imports)),f}).flat(1))}function Op(l){return[...new Set(l)]}function Cp(l){let r={},u=Object.keys(l).sort();for(let c of u)r[c]=l[c];return r}function Rp(l,r){let u=new Set;return new Set(r),l.reduce((c,s)=>{let f=JSON.stringify(Cp(s));return u.has(f)||(u.add(f),c.push({key:f,link:s})),c},[])}function jd(){let l=b.useContext(ql);return Ad(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function wp(){let l=b.useContext(Fu);return Ad(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Md=b.createContext(void 0);Md.displayName="FrameworkContext";function Zu(){let l=b.useContext(Md);return Ad(l,"You must render this element inside a <HydratedRouter> element"),l}function Ap(l,r){let u=b.useContext(Md),[c,s]=b.useState(!1),[f,m]=b.useState(!1),{onFocus:v,onBlur:h,onMouseEnter:$,onMouseLeave:_,onTouchStart:p}=r,x=b.useRef(null);b.useEffect(()=>{if(l==="render"&&m(!0),l==="viewport"){let A=B=>{B.forEach(X=>{m(X.isIntersecting)})},R=new IntersectionObserver(A,{threshold:.5});return x.current&&R.observe(x.current),()=>{R.disconnect()}}},[l]),b.useEffect(()=>{if(c){let A=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(A)}}},[c]);let M=()=>{s(!0)},z=()=>{s(!1),m(!1)};return u?l!=="intent"?[f,x,{}]:[f,x,{onFocus:Br(v,M),onBlur:Br(h,z),onMouseEnter:Br($,M),onMouseLeave:Br(_,z),onTouchStart:Br(p,M)}]:[!1,x,{}]}function Br(l,r){return u=>{l&&l(u),u.defaultPrevented||r(u)}}function jp({page:l,...r}){let u=Yv(),{nonce:c}=Zu(),{router:s}=jd(),f=b.useMemo(()=>zh(s.routes,l,s.basename),[s.routes,l,s.basename]);return f?(r.nonce==null&&c&&(r={...r,nonce:c}),u?b.createElement(zp,{page:l,matches:f,...r}):b.createElement(Dp,{page:l,matches:f,...r})):null}function Mp(l){let{manifest:r,routeModules:u}=Zu(),[c,s]=b.useState([]);return b.useEffect(()=>{let f=!1;return Np(l,r,u).then(m=>{f||s(m)}),()=>{f=!0}},[l,r,u]),c}function zp({page:l,matches:r,...u}){let c=nt(),{future:s}=Zu(),{basename:f}=jd(),m=b.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let v=Wh(l,f,s.v8_trailingSlashAwareDataRequests,"rsc"),h=!1,$=[];for(let _ of r)typeof _.route.shouldRevalidate=="function"?h=!0:$.push(_.route.id);return h&&$.length>0&&v.searchParams.set("_routes",$.join(",")),[v.pathname+v.search]},[f,s.v8_trailingSlashAwareDataRequests,l,c,r]);return b.createElement(b.Fragment,null,m.map(v=>b.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...u})))}function Dp({page:l,matches:r,...u}){let c=nt(),{future:s,manifest:f,routeModules:m}=Zu(),{basename:v}=jd(),{loaderData:h,matches:$}=wp(),_=b.useMemo(()=>Um(l,r,$,f,c,"data"),[l,r,$,f,c]),p=b.useMemo(()=>Um(l,r,$,f,c,"assets"),[l,r,$,f,c]),x=b.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let A=new Set,R=!1;if(r.forEach(X=>{let Y=f.routes[X.route.id];!Y||!Y.hasLoader||(!_.some(U=>U.route.id===X.route.id)&&X.route.id in h&&m[X.route.id]?.shouldRevalidate||Y.hasClientLoader?R=!0:A.add(X.route.id))}),A.size===0)return[];let B=Wh(l,v,s.v8_trailingSlashAwareDataRequests,"data");return R&&A.size>0&&B.searchParams.set("_routes",r.filter(X=>A.has(X.route.id)).map(X=>X.route.id).join(",")),[B.pathname+B.search]},[v,s.v8_trailingSlashAwareDataRequests,h,c,f,_,r,l,m]),M=b.useMemo(()=>Tp(p,f),[p,f]),z=Mp(p);return b.createElement(b.Fragment,null,x.map(A=>b.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...u})),M.map(A=>b.createElement("link",{key:A,rel:"modulepreload",href:A,...u})),z.map(({key:A,link:R})=>b.createElement("link",{key:A,nonce:u.nonce,...R,crossOrigin:R.crossOrigin??u.crossOrigin})))}function Up(...l){return r=>{l.forEach(u=>{typeof u=="function"?u(r):u!=null&&(u.current=r)})}}var Lp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lp&&(window.__reactRouterVersion="7.18.5")}catch{}function kp({basename:l,children:r,useTransitions:u,window:c}){let s=b.useRef();s.current==null&&(s.current=yv({window:c,v5Compat:!0}));let f=s.current,[m,v]=b.useState({action:f.action,location:f.location}),h=b.useCallback($=>{u===!1?v($):b.startTransition(()=>v($))},[u]);return b.useLayoutEffect(()=>f.listen(h),[f,h]),b.createElement(mp,{basename:l,children:r,location:m.location,navigationType:m.action,navigator:f,useTransitions:u})}var e3=b.forwardRef(function({onClick:r,discover:u="render",prefetch:c="none",relative:s,reloadDocument:f,replace:m,mask:v,state:h,target:$,to:_,preventScrollReset:p,viewTransition:x,defaultShouldRevalidate:M,...z},A){let{basename:R,navigator:B,useTransitions:X}=b.useContext(Lt),Y=typeof _=="string"&&xd.test(_),U=Gh(_,R);_=U.to;let H=Xh(_,{relative:s}),q=nt(),K=null;if(v){let Ee=Xu(v,[],q.mask?q.mask.pathname:"/",!0);R!=="/"&&(Ee.pathname=Ee.pathname==="/"?R:nn([R,Ee.pathname])),K=B.createHref(Ee)}let[Q,Te,de]=Ap(c,z),he=qp(_,{replace:m,mask:v,state:h,target:$,preventScrollReset:p,relative:s,viewTransition:x,defaultShouldRevalidate:M,useTransitions:X});function qe(Ee){r&&r(Ee),Ee.defaultPrevented||he(Ee)}let at=!(U.isExternal||f),ke=b.createElement("a",{...z,...de,href:(at?K:void 0)||U.absoluteURL||H,onClick:at?qe:r,ref:Up(A,Te),target:$,"data-discover":!Y&&u==="render"?"true":void 0});return Q&&!Y?b.createElement(b.Fragment,null,ke,b.createElement(jp,{page:H})):ke});e3.displayName="Link";var Hp=b.forwardRef(function({"aria-current":r="page",caseSensitive:u=!1,className:c="",end:s=!1,style:f,to:m,viewTransition:v,children:h,...$},_){let p=Wr(m,{relative:$.relative}),x=nt(),M=b.useContext(Fu),{navigator:z,basename:A}=b.useContext(Lt),R=M!=null&&Fp(p)&&v===!0,B=z.encodeLocation?z.encodeLocation(p).pathname:p.pathname,X=x.pathname,Y=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;u||(X=X.toLowerCase(),Y=Y?Y.toLowerCase():null,B=B.toLowerCase()),Y&&A&&(Y=Hn(Y,A)||Y);const U=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let H=X===B||!s&&X.startsWith(B)&&X.charAt(U)==="/",q=Y!=null&&(Y===B||!s&&Y.startsWith(B)&&Y.charAt(B.length)==="/"),K={isActive:H,isPending:q,isTransitioning:R},Q=H?r:void 0,Te;typeof c=="function"?Te=c(K):Te=[c,H?"active":null,q?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let de=typeof f=="function"?f(K):f;return b.createElement(e3,{...$,"aria-current":Q,className:Te,ref:_,style:de,to:m,viewTransition:v},typeof h=="function"?h(K):h)});Hp.displayName="NavLink";var Bp=b.forwardRef(({discover:l="render",fetcherKey:r,navigate:u,reloadDocument:c,replace:s,state:f,method:m=zu,action:v,onSubmit:h,relative:$,preventScrollReset:_,viewTransition:p,defaultShouldRevalidate:x,...M},z)=>{let{useTransitions:A}=b.useContext(Lt),R=Vp(),B=Xp(v,{relative:$}),X=m.toLowerCase()==="get"?"get":"post",Y=typeof v=="string"&&xd.test(v),U=H=>{if(h&&h(H),H.defaultPrevented)return;H.preventDefault();let q=H.nativeEvent.submitter,K=q?.getAttribute("formmethod")||m,Q=()=>R(q||H.currentTarget,{fetcherKey:r,method:K,navigate:u,replace:s,state:f,relative:$,preventScrollReset:_,viewTransition:p,defaultShouldRevalidate:x});A&&u!==!1?b.startTransition(()=>Q()):Q()};return b.createElement("form",{ref:z,method:X,action:B,onSubmit:c?h:U,...M,"data-discover":!Y&&l==="render"?"true":void 0})});Bp.displayName="Form";function Gp(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function t3(l){let r=b.useContext(ql);return Le(r,Gp(l)),r}function qp(l,{target:r,replace:u,mask:c,state:s,preventScrollReset:f,relative:m,viewTransition:v,defaultShouldRevalidate:h,useTransitions:$}={}){let _=Qe(),p=nt(),x=Wr(l,{relative:m});return b.useCallback(M=>{if(pp(M,r)){M.preventDefault();let z=u!==void 0?u:Ba(p)===Ba(x),A=()=>_(l,{replace:z,mask:c,state:s,preventScrollReset:f,relative:m,viewTransition:v,defaultShouldRevalidate:h});$?b.startTransition(()=>A()):A()}},[p,_,x,u,c,s,r,l,f,m,v,h,$])}function n3(l){Ft(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=b.useRef(sd(l)),u=b.useRef(!1),c=nt(),s=b.useMemo(()=>$p(c.search,u.current?null:r.current),[c.search]),f=Qe(),m=b.useCallback((v,h)=>{const $=sd(typeof v=="function"?v(new URLSearchParams(s)):v);u.current=!0,f("?"+$,h)},[f,s]);return[s,m]}var Pp=0,Yp=()=>`__${String(++Pp)}__`;function Vp(){let{router:l}=t3("useSubmit"),{basename:r}=b.useContext(Lt),u=op(),c=l.fetch,s=l.navigate;return b.useCallback(async(f,m={})=>{let{action:v,method:h,encType:$,formData:_,body:p}=Sp(f,r);if(m.navigate===!1){let x=m.fetcherKey||Yp();await c(x,u,m.action||v,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:_,body:p,formMethod:m.method||h,formEncType:m.encType||$,flushSync:m.flushSync})}else await s(m.action||v,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:_,body:p,formMethod:m.method||h,formEncType:m.encType||$,replace:m.replace,state:m.state,fromRouteId:u,flushSync:m.flushSync,viewTransition:m.viewTransition})},[c,s,r,u])}function Xp(l,{relative:r}={}){let{basename:u}=b.useContext(Lt),c=b.useContext(ln);Le(c,"useFormAction must be used inside a RouteContext");let[s]=c.matches.slice(-1),f={...Wr(l||".",{relative:r})},m=nt();if(l==null){f.search=m.search;let v=new URLSearchParams(f.search),h=v.getAll("index");if(h.some(_=>_==="")){v.delete("index"),h.filter(p=>p).forEach(p=>v.append("index",p));let _=v.toString();f.search=_?`?${_}`:""}}return(!l||l===".")&&s.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:nn([u,f.pathname])),Ba(f)}function Fp(l,{relative:r}={}){let u=b.useContext(Yh);Le(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=t3("useViewTransitionState"),s=Wr(l,{relative:r});if(!u.isTransitioning)return!1;let f=Hn(u.currentLocation.pathname,c)||u.currentLocation.pathname,m=Hn(u.nextLocation.pathname,c)||u.nextLocation.pathname;return Bu(s.pathname,m)!=null||Bu(s.pathname,f)!=null}function $n(l){const r=new Uint8Array(l);let u="";for(const s of r)u+=String.fromCharCode(s);return btoa(u).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Gu(l){const r=l.replace(/-/g,"+").replace(/_/g,"/"),u=(4-r.length%4)%4,c=r.padEnd(r.length+u,"="),s=atob(c),f=new ArrayBuffer(s.length),m=new Uint8Array(f);for(let v=0;v<s.length;v++)m[v]=s.charCodeAt(v);return f}function Qu(){return Kp.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const Kp={stubThis:l=>l};function a3(l){const{id:r}=l;return{...l,id:Gu(r),transports:l.transports}}function l3(l){return l==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(l)}class ft extends Error{constructor({message:r,code:u,cause:c,name:s}){super(r,{cause:c}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s??c.name,this.code=u}}function Zp({error:l,options:r}){const{publicKey:u}=r;if(!u)throw Error("options was missing required publicKey property");if(l.name==="AbortError"){if(r.signal instanceof AbortSignal)return new ft({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:l})}else if(l.name==="ConstraintError"){if(u.authenticatorSelection?.requireResidentKey===!0)return new ft({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:l});if(r.mediation==="conditional"&&u.authenticatorSelection?.userVerification==="required")return new ft({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:l});if(u.authenticatorSelection?.userVerification==="required")return new ft({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:l})}else{if(l.name==="InvalidStateError")return new ft({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:l});if(l.name==="NotAllowedError")return new ft({message:l.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:l});if(l.name==="NotSupportedError")return u.pubKeyCredParams.filter(s=>s.type==="public-key").length===0?new ft({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:l}):new ft({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:l});if(l.name==="SecurityError"){const c=globalThis.location.hostname;if(l3(c)){if(u.rp.id!==c)return new ft({message:`The RP ID "${u.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:l})}else return new ft({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:l})}else if(l.name==="TypeError"){if(u.user.id.byteLength<1||u.user.id.byteLength>64)return new ft({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:l})}else if(l.name==="UnknownError")return new ft({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:l})}return l}class Qp{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const u=new Error("Cancelling existing WebAuthn API call for new one");u.name="AbortError",this.controller.abort(u)}const r=new AbortController;return this.controller=r,r.signal}cancelCeremony(){if(this.controller){const r=new Error("Manually cancelling existing WebAuthn API call");r.name="AbortError",this.controller.abort(r),this.controller=void 0}}}const r3=new Qp,Ip=["cross-platform","platform"];function i3(l){if(l&&!(Ip.indexOf(l)<0))return l}async function Jp(l){!l.optionsJSON&&l.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),l={optionsJSON:l});const{optionsJSON:r,useAutoRegister:u=!1}=l;if(!Qu())throw new Error("WebAuthn is not supported in this browser");const c={...r,challenge:Gu(r.challenge),user:{...r.user,id:Gu(r.user.id)},excludeCredentials:r.excludeCredentials?.map(a3)},s={};u&&(s.mediation="conditional"),s.publicKey=c,s.signal=r3.createNewAbortSignal();let f;try{f=await navigator.credentials.create(s)}catch(z){throw Zp({error:z,options:s})}if(!f)throw new Error("Registration was not completed");const{id:m,rawId:v,response:h,type:$}=f;let _;typeof h.getTransports=="function"&&(_=h.getTransports());let p;if(typeof h.getPublicKeyAlgorithm=="function")try{p=h.getPublicKeyAlgorithm()}catch(z){Fs("getPublicKeyAlgorithm()",z)}let x;if(typeof h.getPublicKey=="function")try{const z=h.getPublicKey();z!==null&&(x=$n(z))}catch(z){Fs("getPublicKey()",z)}let M;if(typeof h.getAuthenticatorData=="function")try{M=$n(h.getAuthenticatorData())}catch(z){Fs("getAuthenticatorData()",z)}return{id:m,rawId:$n(v),response:{attestationObject:$n(h.attestationObject),clientDataJSON:$n(h.clientDataJSON),transports:_,publicKeyAlgorithm:p,publicKey:x,authenticatorData:M},type:$,clientExtensionResults:f.getClientExtensionResults(),authenticatorAttachment:i3(f.authenticatorAttachment)}}function Fs(l,r){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${l}. You should report this error to them.
|
|
12
|
-
`,r)}function Wp(){if(!Qu())return Ks.stubThis(new Promise(r=>r(!1)));const l=globalThis.PublicKeyCredential;return l?.isConditionalMediationAvailable===void 0?Ks.stubThis(new Promise(r=>r(!1))):Ks.stubThis(l.isConditionalMediationAvailable())}const Ks={stubThis:l=>l};function e8({error:l,options:r}){const{publicKey:u}=r;if(!u)throw Error("options was missing required publicKey property");if(l.name==="AbortError"){if(r.signal instanceof AbortSignal)return new ft({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:l})}else{if(l.name==="NotAllowedError")return new ft({message:l.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:l});if(l.name==="SecurityError"){const c=globalThis.location.hostname;if(l3(c)){if(u.rpId!==c)return new ft({message:`The RP ID "${u.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:l})}else return new ft({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:l})}else if(l.name==="UnknownError")return new ft({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:l})}return l}async function t8(l){!l.optionsJSON&&l.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),l={optionsJSON:l});const{optionsJSON:r,useBrowserAutofill:u=!1,verifyBrowserAutofillInput:c=!0}=l;if(!Qu())throw new Error("WebAuthn is not supported in this browser");let s;r.allowCredentials?.length!==0&&(s=r.allowCredentials?.map(a3));const f={...r,challenge:Gu(r.challenge),allowCredentials:s},m={};if(u){if(!await Wp())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&c)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');m.mediation="conditional",f.allowCredentials=[]}m.publicKey=f,m.signal=r3.createNewAbortSignal();let v;try{v=await navigator.credentials.get(m)}catch(M){throw e8({error:M,options:m})}if(!v)throw new Error("Authentication was not completed");const{id:h,rawId:$,response:_,type:p}=v;let x;return _.userHandle&&(x=$n(_.userHandle)),{id:h,rawId:$n($),response:{authenticatorData:$n(_.authenticatorData),clientDataJSON:$n(_.clientDataJSON),signature:$n(_.signature),userHandle:x},type:p,clientExtensionResults:v.getClientExtensionResults(),authenticatorAttachment:i3(v.authenticatorAttachment)}}const n8={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|[2-467])\\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)|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","[024-7]\\d{7}",[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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\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]|[67]3)|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]|3[01]|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","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"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{2})(\\d{2})(\\d{2})","$1 $2 $3",["[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","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|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{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"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","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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(?:05|[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-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],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",["11|2[16]"],"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","7091\\d{5}|(?:[56]9|[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{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-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-9]"]],["(\\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[02-46-9]"]],["(\\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",["30|(?: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","30|(?: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","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"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,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?: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(?:[0-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[013]|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{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\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|[3689]\\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-7]\\d{7}",[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$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{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?: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","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"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,[["983[2-57-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[02469]|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[02589]|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-2478]|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{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1357-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","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?: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","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|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",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"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|5[12]"]],["(\\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})|5(?:0\\d{3}|2[0-2]))\\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 a8(l,r){var u=Array.prototype.slice.call(r);return u.push(n8),l.apply(this,u)}function Lm(l,r){l=l.split("-"),r=r.split("-");for(var u=l[0].split("."),c=r[0].split("."),s=0;s<3;s++){var f=Number(u[s]),m=Number(c[s]);if(f>m)return 1;if(m>f)return-1;if(!isNaN(f)&&isNaN(m))return 1;if(isNaN(f)&&!isNaN(m))return-1}return l[1]&&r[1]?l[1]>r[1]?1:l[1]<r[1]?-1:0:!l[1]&&r[1]?1:l[1]&&!r[1]?-1:0}var l8={}.constructor;function Ll(l){return l!=null&&l.constructor===l8}var r8=/^\d+$/;function i8(l){return r8.test(l)}function Hl(l){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hl(l)}function Iu(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function u8(l,r){for(var u=0;u<r.length;u++){var c=r[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,o8(c.key),c)}}function Ju(l,r,u){return r&&u8(l.prototype,r),Object.defineProperty(l,"prototype",{writable:!1}),l}function o8(l){var r=c8(l,"string");return Hl(r)=="symbol"?r:r+""}function c8(l,r){if(Hl(l)!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var c=u.call(l,r);if(Hl(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var s8="1.2.0",d8="1.7.35",km=" ext. ",ht=(function(){function l(r){Iu(this,l),u3(r),this.metadata=r,c3.call(this,r)}return Ju(l,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(u){return u!=="001"})}},{key:"getCountryMetadata",value:function(u){return this.metadata.countries[u]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(u){return this.getCountryMetadata(u)!==void 0}},{key:"hasCallingCode",value:function(u){if(this.getCountryCodesForCallingCode(u))return!0;if(this.nonGeographic()){if(this.nonGeographic()[u])return!0}else{var c=this.countryCallingCodes()[u];if(c&&c.length===1&&c[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(u){return this.nonGeographic()?!!this.nonGeographic()[u]:!this.getCountryCodesForCallingCode(u)}},{key:"country",value:function(u){return this.selectNumberingPlan(u)}},{key:"selectNumberingPlan",value:function(u,c){var s,f;if(u&&(i8(u)?f=u:s=u),c&&(f=c),s&&s!=="001"){var m=this.getCountryMetadata(s);if(!m)throw new Error("Unknown country: ".concat(s));this.numberingPlan=new Hm(m,this)}else if(f){if(!this.hasCallingCode(f))throw new Error("Unknown calling code: ".concat(f));this.numberingPlan=new Hm(this.getNumberingPlanMetadata(f),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(u){var c=this.countryCallingCodes()[u];if(c)return c.length===1&&c[0].length===3?void 0:c}},{key:"getCountryCodeForCallingCode",value:function(u){var c=this.getCountryCodesForCallingCode(u);if(c)return c[0]}},{key:"getNumberingPlanMetadata",value:function(u){var c=this.getCountryCodeForCallingCode(u);if(c)return this.getCountryMetadata(c);if(this.nonGeographic()){var s=this.nonGeographic()[u];if(s)return s}else{var f=this.countryCallingCodes()[u];if(f&&f.length===1&&f[0]==="001")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(u){return this.numberingPlan.type(u)}},{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(u){return this.selectNumberingPlan(u)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Hm=(function(){function l(r,u){Iu(this,l),this.globalMetadataObject=u,this.metadata=r,c3.call(this,u.metadata)}return Ju(l,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{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(u){return u[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var u=this,c=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return c.map(function(s){return new f8(s,u)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(u){return u[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{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._getDefaultCountryMetadataForThisCallingCode())}},{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()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(u){if(this.hasTypes()&&Bm(this.types(),u))return new h8(Bm(this.types(),u),this)}},{key:"ext",value:function(){return this.v1||this.v2?km:this.metadata[13]||km}}])})(),f8=(function(){function l(r,u){Iu(this,l),this._format=r,this.metadata=u}return Ju(l,[{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()&&!m8.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),m8=/^\(?\$1\)?$/,h8=(function(){function l(r,u){Iu(this,l),this.type=r,this.metadata=u}return Ju(l,[{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 Bm(l,r){switch(r){case"FIXED_LINE":return l[0];case"MOBILE":return l[1];case"TOLL_FREE":return l[2];case"PREMIUM_RATE":return l[3];case"PERSONAL_NUMBER":return l[4];case"VOICEMAIL":return l[5];case"UAN":return l[6];case"PAGER":return l[7];case"VOIP":return l[8];case"SHARED_COST":return l[9]}}function u3(l){if(!l)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Ll(l)||!Ll(l.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(Ll(l)?"an object of shape: { "+Object.keys(l).join(", ")+" }":"a "+y8(l)+": "+l,"."))}var y8=function(r){return Hl(r)};function o3(l,r){var u=new ht(r);if(u.hasCountry(l))return u.selectNumberingPlan(l).countryCallingCode();throw new Error("Unknown country: ".concat(l))}function g8(l,r){return r.countries.hasOwnProperty(l)}function c3(l){var r=l.version;typeof r=="number"?(this.v1=r===1,this.v2=r===2,this.v3=r===3,this.v4=r===4):r?Lm(r,s8)===-1?this.v2=!0:Lm(r,d8)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function zd(l,r,u){return v8(l,void 0,r,u)}function v8(l,r,u,c){u&&(c=new ht(c.metadata),c.selectNumberingPlan(u));var s=c.type(r),f=s&&s.possibleLengths()||c.possibleLengths();if(!f)return"IS_POSSIBLE";var m=l.length,v=f[0];return v===m?"IS_POSSIBLE":v>m?"TOO_SHORT":f[f.length-1]<m?"TOO_LONG":f.indexOf(m,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function p8(l,r,u){r===void 0&&(r={});var c=new ht(u);if(r.v2){if(!l.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(l.country||l.countryCallingCode)}else{if(!l.phone)return!1;if(l.country){if(!c.hasCountry(l.country))throw new Error("Unknown country: ".concat(l.country));c.selectNumberingPlan(l.country)}else{if(!l.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(l.countryCallingCode)}}if(c.possibleLengths())return s3(l.phone||l.nationalNumber,c);if(l.countryCallingCode&&c.isNonGeographicCallingCode(l.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function s3(l,r){return zd(l,void 0,r)==="IS_POSSIBLE"}function Bn(l,r){return l=l||"",new RegExp("^(?:"+r+")$").test(l)}function $8(l,r){var u=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u)return(u=u.call(l)).next.bind(u);if(Array.isArray(l)||(u=_8(l))||r){u&&(l=u);var c=0;return function(){return c>=l.length?{done:!0}:{done:!1,value:l[c++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _8(l,r){if(l){if(typeof l=="string")return Gm(l,r);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Gm(l,r):void 0}}function Gm(l,r){(r==null||r>l.length)&&(r=l.length);for(var u=0,c=Array(r);u<r;u++)c[u]=l[u];return c}var b8=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Dd(l,r,u){if(r=r||{},!(!l.country&&!l.countryCallingCode)){var c=new ht(u);c.selectNumberingPlan(l.country||l.countryCallingCode);var s=r.v2?l.nationalNumber:l.phone;if(Bn(s,c.nationalNumberPattern())){if(Zs(s,"FIXED_LINE",c))return c.type("MOBILE")&&c.type("MOBILE").pattern()===""||!c.type("MOBILE")||Zs(s,"MOBILE",c)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var f=$8(b8),m;!(m=f()).done;){var v=m.value;if(Zs(s,v,c))return v}}}}function Zs(l,r,u){var c=u.type(r);return!c||!c.pattern()||c.possibleLengths()&&c.possibleLengths().indexOf(l.length)<0?!1:Bn(l,c.pattern())}function S8(l,r,u){r=r||{};var c=new ht(u);if(c.selectNumberingPlan(l.country||l.countryCallingCode),c.hasTypes())return Dd(l,r,c.metadata)!==void 0;var s=r.v2?l.nationalNumber:l.phone;return Bn(s,c.nationalNumberPattern())}var E8=/^[A-Z]{2}$/;function x8(l){return E8.test(l)}function N8(l,r){var u,c,s=new ht(r);return x8(l)?(u=l,s.selectNumberingPlan(u),c=s.countryCallingCode()):c=l,{country:u,callingCode:c}}function T8(l,r,u){var c=new ht(u),s=c.getCountryCodesForCallingCode(l);return s?s.filter(function(f){return O8(r,f,u)}):[]}function O8(l,r,u){var c=new ht(u);return c.selectNumberingPlan(r),c.numberingPlan.possibleLengths().indexOf(l.length)>=0}var Ud=2,C8=17,R8=3,an="0-90-9٠-٩۰-۹",w8="-‐-―−ー-",A8="//",j8="..",M8=" ",z8="()()[]\\[\\]",D8="~⁓∼~",qu="".concat(w8).concat(A8).concat(j8).concat(M8).concat(z8).concat(D8),Ld="++",U8=new RegExp("(["+an+"])");function L8(l,r,u,c){if(r){var s=new ht(c);s.selectNumberingPlan(r||u);var f=new RegExp(s.IDDPrefix());if(l.search(f)===0){l=l.slice(l.match(f)[0].length);var m=l.match(U8);if(!(m&&m[1]!=null&&m[1].length>0&&m[1]==="0"))return l}}}function k8(l,r){if(l&&r.numberingPlan.nationalPrefixForParsing()){var u=new RegExp("^(?:"+r.numberingPlan.nationalPrefixForParsing()+")"),c=u.exec(l);if(c){var s,f,m=c.length-1,v=m>0&&c[m];if(r.nationalPrefixTransformRule()&&v)s=l.replace(u,r.nationalPrefixTransformRule()),m>1&&(f=c[1]);else{var h=c[0];s=l.slice(h.length),v&&(f=c[1])}var $;if(v){var _=l.indexOf(c[1]),p=l.slice(0,_);p===r.numberingPlan.nationalPrefix()&&($=r.numberingPlan.nationalPrefix())}else $=c[0];return{nationalNumber:s,nationalPrefix:$,carrierCode:f}}}return{nationalNumber:l}}function H8(l,r){var u=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u)return(u=u.call(l)).next.bind(u);if(Array.isArray(l)||(u=B8(l))||r){u&&(l=u);var c=0;return function(){return c>=l.length?{done:!0}:{done:!1,value:l[c++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B8(l,r){if(l){if(typeof l=="string")return qm(l,r);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?qm(l,r):void 0}}function qm(l,r){(r==null||r>l.length)&&(r=l.length);for(var u=0,c=Array(r);u<r;u++)c[u]=l[u];return c}function G8(l,r,u){for(var c=new ht(u),s=H8(r),f;!(f=s()).done;){var m=f.value;if(c.selectNumberingPlan(m),c.leadingDigits()){if(l&&l.search(c.leadingDigits())===0)return m}else if(Dd({phone:l,country:m},void 0,c.metadata))return m}}function d3(l,r){var u=r.nationalNumber,c=r.metadata,s=c.getCountryCodesForCallingCode(l);if(s)return s.length===1?s[0]:G8(u,s,c.metadata)}function dd(l,r,u){var c=k8(l,u),s=c.carrierCode,f=c.nationalNumber;if(f!==l){if(!q8(l,f,u))return{nationalNumber:l};if(u.numberingPlan.possibleLengths()&&(r||(r=d3(u.numberingPlan.callingCode(),{nationalNumber:f,metadata:u})),!P8(f,r,u)))return{nationalNumber:l}}return{nationalNumber:f,carrierCode:s}}function q8(l,r,u){return!(Bn(l,u.nationalNumberPattern())&&!Bn(r,u.nationalNumberPattern()))}function P8(l,r,u){switch(zd(l,r,u)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Y8(l,r,u,c,s){if(!(u||c))return{number:l};var f=u?o3(u,s):c;if(l.indexOf(f)===0){var m=new ht(s);m.selectNumberingPlan(u||c);var v=l.slice(f.length),h=dd(v,void 0,m),$=h.nationalNumber,_=dd(l,void 0,m),p=_.nationalNumber;if(!Bn(p,m.nationalNumberPattern())&&Bn($,m.nationalNumberPattern())||zd(p,void 0,m)==="TOO_LONG")return{countryCallingCode:f,number:v}}return{number:l}}function f3(l,r,u,c,s){if(!l)return{};var f;if(l[0]!=="+"){var m=L8(l,u,c,s);if(m&&m!==l)f=!0,l="+"+m;else{if(u||c){var v=Y8(l,r,u,c,s),h=v.countryCallingCode,$=v.number;if(h)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:h,number:$}}return{number:l}}}if(l[1]==="0")return{};for(var _=new ht(s),p=2;p-1<=R8&&p<=l.length;){var x=l.slice(1,p);if(_.hasCallingCode(x))return _.selectNumberingPlan(x),{countryCallingCodeSource:f?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:x,number:l.slice(p)};p++}return{}}function V8(l){return l.replace(new RegExp("[".concat(qu,"]+"),"g")," ").trim()}var X8=/(\$\d)/;function F8(l,r,u){var c=u.useInternationalFormat,s=u.withNationalPrefix,f=l.replace(new RegExp(r.pattern()),c?r.internationalFormat():s&&r.nationalPrefixFormattingRule()?r.format().replace(X8,r.nationalPrefixFormattingRule()):r.format());return c?V8(f):f}var K8=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Z8(l,r,u){var c=new ht(u);if(c.selectNumberingPlan(l||r),c.defaultIDDPrefix())return c.defaultIDDPrefix();if(K8.test(c.IDDPrefix()))return c.IDDPrefix()}var Q8=";ext=",Ml=function(r){return"([".concat(an,"]{1,").concat(r,"})")};function m3(l){var r="20",u="15",c="9",s="6",f="[ \\t,]*",m="[:\\..]?[ \\t,-]*",v="#?",h="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",$="(?:[xx##~~]|int|int)",_="[- ]+",p="[ \\t]*",x="(?:,{2}|;)",M=Q8+Ml(r),z=f+h+m+Ml(r)+v,A=f+$+m+Ml(c)+v,R=_+Ml(s)+"#",B=p+x+m+Ml(u)+v,X=p+"(?:,)+"+m+Ml(c)+v;return M+"|"+z+"|"+A+"|"+R+"|"+B+"|"+X}var I8="["+an+"]{"+Ud+"}",J8="["+Ld+"]{0,1}(?:["+qu+"]*["+an+"]){3,}["+qu+an+"]*",W8=new RegExp("^["+Ld+"]{0,1}(?:["+qu+"]*["+an+"]){1,2}$","i"),e9=J8+"(?:"+m3()+")?",t9=new RegExp("^"+I8+"$|^"+e9+"$","i");function n9(l){return l.length>=Ud&&t9.test(l)}function a9(l){return W8.test(l)}function l9(l){var r=l.number,u=l.ext;if(!r)return"";if(r[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(r).concat(u?";ext="+u:"")}var Pm={formatExtension:function(r,u,c){return"".concat(r).concat(c.ext()).concat(u)}};function r9(l,r,u,c){u?u=o9({},Pm,u):u=Pm;var s=new ht(c);if(l.country&&l.country!=="001"){if(!s.hasCountry(l.country))throw new Error("Unknown country: ".concat(l.country));s.selectNumberingPlan(l.country)}else if(l.countryCallingCode)s.selectNumberingPlan(l.countryCallingCode);else return l.phone||"";var f=s.countryCallingCode(),m=u.v2?l.nationalNumber:l.phone,v;switch(r){case"NATIONAL":return m?(v=Pu(m,l.carrierCode,"NATIONAL",s,u),Qs(v,l.ext,s,u.formatExtension)):"";case"INTERNATIONAL":return m?(v=Pu(m,null,"INTERNATIONAL",s,u),v="+".concat(f," ").concat(v),Qs(v,l.ext,s,u.formatExtension)):"+".concat(f);case"E.164":return"+".concat(f).concat(m);case"RFC3966":return l9({number:"+".concat(f).concat(m),ext:l.ext});case"IDD":if(!u.fromCountry)return;var h=u9(m,l.carrierCode,f,u.fromCountry,s);return h?Qs(h,l.ext,s,u.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(r,'"'))}}function Pu(l,r,u,c,s){var f=i9(c.formats(),l);return f?F8(l,f,{useInternationalFormat:u==="INTERNATIONAL",withNationalPrefix:!(f.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&s&&s.nationalPrefix===!1)}):l}function i9(l,r){return c9(l,function(u){if(u.leadingDigitsPatterns().length>0){var c=u.leadingDigitsPatterns()[u.leadingDigitsPatterns().length-1];if(r.search(c)!==0)return!1}return Bn(r,u.pattern())})}function Qs(l,r,u,c){return r?c(l,r,u):l}function u9(l,r,u,c,s){var f=o3(c,s.metadata);if(f===u){var m=Pu(l,r,"NATIONAL",s);return u==="1"?u+" "+m:m}var v=Z8(c,void 0,s.metadata);if(v)return"".concat(v," ").concat(u," ").concat(Pu(l,null,"INTERNATIONAL",s))}function o9(){for(var l=1,r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];for(;l<u.length;){if(u[l])for(var s in u[l])u[0][s]=u[l][s];l++}return u[0]}function c9(l,r){for(var u=0;u<l.length;){if(r(l[u]))return l[u];u++}}function Vr(l){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vr(l)}function Ym(l,r){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);r&&(c=c.filter(function(s){return Object.getOwnPropertyDescriptor(l,s).enumerable})),u.push.apply(u,c)}return u}function Vm(l){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?Ym(Object(u),!0).forEach(function(c){s9(l,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):Ym(Object(u)).forEach(function(c){Object.defineProperty(l,c,Object.getOwnPropertyDescriptor(u,c))})}return l}function s9(l,r,u){return(r=h3(r))in l?Object.defineProperty(l,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[r]=u,l}function d9(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function f9(l,r){for(var u=0;u<r.length;u++){var c=r[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,h3(c.key),c)}}function m9(l,r,u){return r&&f9(l.prototype,r),Object.defineProperty(l,"prototype",{writable:!1}),l}function h3(l){var r=h9(l,"string");return Vr(r)=="symbol"?r:r+""}function h9(l,r){if(Vr(l)!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var c=u.call(l,r);if(Vr(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var y9=(function(){function l(r,u,c){if(d9(this,l),!r)throw new TypeError("First argument is required");if(typeof r!="string")throw new TypeError("First argument must be a string");if(r[0]==="+"&&!u)throw new TypeError("`metadata` argument not passed");if(Ll(u)&&Ll(u.countries)){c=u;var s=r;if(!g9.test(s))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var f=f3(s,void 0,void 0,void 0,c),m=f.countryCallingCode,v=f.number;if(u=v,r=m,!u)throw new Error("Invalid `number` argument passed: too short")}if(!u)throw new TypeError("`nationalNumber` argument is required");if(typeof u!="string")throw new TypeError("`nationalNumber` argument must be a string");u3(c);var h=N8(r,c),$=h.country,_=h.callingCode;this.country=$,this.countryCallingCode=_,this.nationalNumber=u,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return c}}return m9(l,[{key:"setExt",value:function(u){this.ext=u}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:T8(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return p8(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return S8(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var u=new ht(this.getMetadata());return u.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(u){return this.number===u.number&&this.ext===u.ext}},{key:"getType",value:function(){return Dd(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(u,c){return r9(this,u,c?Vm(Vm({},c),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(u){return this.format("NATIONAL",u)}},{key:"formatInternational",value:function(u){return this.format("INTERNATIONAL",u)}},{key:"getURI",value:function(u){return this.format("RFC3966",u)}}])})(),g9=/^\+\d+$/;function fd(l){"@babel/helpers - typeof";return fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fd(l)}function v9(l,r,u){return Object.defineProperty(l,"prototype",{writable:!1}),l}function p9(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function $9(l,r,u){return r=Fr(r),_9(l,kd()?Reflect.construct(r,u||[],Fr(l).constructor):r.apply(l,u))}function _9(l,r){if(r&&(fd(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b9(l)}function b9(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function S9(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),r&&Xr(l,r)}function md(l){var r=typeof Map=="function"?new Map:void 0;return md=function(c){if(c===null||!x9(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(c))return r.get(c);r.set(c,s)}function s(){return E9(c,arguments,Fr(this).constructor)}return s.prototype=Object.create(c.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Xr(s,c)},md(l)}function E9(l,r,u){if(kd())return Reflect.construct.apply(null,arguments);var c=[null];c.push.apply(c,r);var s=new(l.bind.apply(l,c));return u&&Xr(s,u.prototype),s}function kd(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kd=function(){return!!l})()}function x9(l){try{return Function.toString.call(l).indexOf("[native code]")!==-1}catch{return typeof l=="function"}}function Xr(l,r){return Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,c){return u.__proto__=c,u},Xr(l,r)}function Fr(l){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fr(l)}var kn=(function(l){function r(u){var c;return p9(this,r),c=$9(this,r,[u]),Object.setPrototypeOf(c,r.prototype),c.name=c.constructor.name,c}return S9(r,l),v9(r)})(md(Error)),Xm=new RegExp("(?:"+m3()+")$","i");function N9(l){var r=l.search(Xm);if(r<0)return{};for(var u=l.slice(0,r),c=l.match(Xm),s=1;s<c.length;){if(c[s])return{number:u,ext:c[s]};s++}}var T9={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 O9(l){return T9[l]}function C9(l,r){var u=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u)return(u=u.call(l)).next.bind(u);if(Array.isArray(l)||(u=R9(l))||r){u&&(l=u);var c=0;return function(){return c>=l.length?{done:!0}:{done:!1,value:l[c++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R9(l,r){if(l){if(typeof l=="string")return Fm(l,r);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Fm(l,r):void 0}}function Fm(l,r){(r==null||r>l.length)&&(r=l.length);for(var u=0,c=Array(r);u<r;u++)c[u]=l[u];return c}function Km(l){for(var r="",u=C9(l.split("")),c;!(c=u()).done;){var s=c.value;r+=w9(s,r)||""}return r}function w9(l,r,u){return l==="+"?r?void 0:"+":O9(l)}var y3="+",A9="[\\-\\.\\(\\)]?",Zm="(["+an+"]|"+A9+")",j9="^\\"+y3+Zm+"*["+an+"]"+Zm+"*$",M9=new RegExp(j9,"g"),hd=an,z9="["+hd+"]+((\\-)*["+hd+"])*",D9="a-zA-Z",U9="["+D9+"]+((\\-)*["+hd+"])*",L9="^("+z9+"\\.)*"+U9+"\\.?$",k9=new RegExp(L9,"g"),Qm="tel:",yd=";phone-context=",H9=";isub=";function B9(l){var r=l.indexOf(yd);if(r<0)return null;var u=r+yd.length;if(u>=l.length)return"";var c=l.indexOf(";",u);return c>=0?l.substring(u,c):l.substring(u)}function G9(l){return l===null?!0:l.length===0?!1:M9.test(l)||k9.test(l)}function q9(l,r){var u=r.extractFormattedPhoneNumber,c=B9(l);if(!G9(c))throw new kn("NOT_A_NUMBER");var s;if(c===null)s=u(l)||"";else{s="",c.charAt(0)===y3&&(s+=c);var f=l.indexOf(Qm),m;f>=0?m=f+Qm.length:m=0;var v=l.indexOf(yd);s+=l.substring(m,v)}var h=s.indexOf(H9);if(h>0&&(s=s.substring(0,h)),s!=="")return s}var P9=250,Y9=new RegExp("["+Ld+an+"]"),V9=new RegExp("[^"+an+"#]+$");function X9(l,r,u){r=r||{};var c=new ht(u);if(r.defaultCountry&&!c.hasCountry(r.defaultCountry))throw r.v2?new kn("INVALID_COUNTRY"):new Error("Unknown country: ".concat(r.defaultCountry));var s=K9(l,r.v2,r.extract),f=s.number,m=s.ext,v=s.error;if(!f){if(r.v2)throw v==="TOO_SHORT"?new kn("TOO_SHORT"):new kn("NOT_A_NUMBER");return{}}var h=Q9(f,r.defaultCountry,r.defaultCallingCode,c),$=h.country,_=h.nationalNumber,p=h.countryCallingCode,x=h.countryCallingCodeSource,M=h.carrierCode;if(!c.hasSelectedNumberingPlan()){if(r.v2)throw new kn("INVALID_COUNTRY");return{}}if(!_||_.length<Ud){if(r.v2)throw new kn("TOO_SHORT");return{}}if(_.length>C8){if(r.v2)throw new kn("TOO_LONG");return{}}if(r.v2){var z=new y9(p,_,c.metadata);return $&&(z.country=$),M&&(z.carrierCode=M),m&&(z.ext=m),z.__countryCallingCodeSource=x,z}var A=(r.extended?c.hasSelectedNumberingPlan():$)?Bn(_,c.nationalNumberPattern()):!1;return r.extended?{country:$,countryCallingCode:p,carrierCode:M,valid:A,possible:A?!0:!!(r.extended===!0&&c.possibleLengths()&&s3(_,c)),phone:_,ext:m}:A?Z9($,_,m):{}}function F9(l,r,u){if(l){if(l.length>P9){if(u)throw new kn("TOO_LONG");return}if(r===!1)return l;var c=l.search(Y9);if(!(c<0))return l.slice(c).replace(V9,"")}}function K9(l,r,u){var c=q9(l,{extractFormattedPhoneNumber:function(m){return F9(m,u,r)}});if(!c)return{};if(!n9(c))return a9(c)?{error:"TOO_SHORT"}:{};var s=N9(c);return s.ext?s:{number:c}}function Z9(l,r,u){var c={country:l,phone:r};return u&&(c.ext=u),c}function Q9(l,r,u,c){var s=f3(Km(l),void 0,r,u,c.metadata),f=s.countryCallingCodeSource,m=s.countryCallingCode,v=s.number,h;if(m)c.selectNumberingPlan(m);else if(v&&(r||u))r?(h=r,c.selectNumberingPlan(r),m=c.numberingPlan.callingCode()):(c.selectNumberingPlan(u),m=u);else return{};if(!v)return{countryCallingCodeSource:f,countryCallingCode:m};var $=dd(Km(v),void 0,c),_=$.nationalNumber,p=$.carrierCode,x=d3(m,{nationalNumber:_,metadata:c});return x&&(h=x,x==="001"||c.selectNumberingPlan(h)),{country:h,countryCallingCode:m,countryCallingCodeSource:f,nationalNumber:_,carrierCode:p}}function Kr(l){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kr(l)}function Im(l,r){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);r&&(c=c.filter(function(s){return Object.getOwnPropertyDescriptor(l,s).enumerable})),u.push.apply(u,c)}return u}function Jm(l){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?Im(Object(u),!0).forEach(function(c){I9(l,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):Im(Object(u)).forEach(function(c){Object.defineProperty(l,c,Object.getOwnPropertyDescriptor(u,c))})}return l}function I9(l,r,u){return(r=J9(r))in l?Object.defineProperty(l,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[r]=u,l}function J9(l){var r=W9(l,"string");return Kr(r)=="symbol"?r:r+""}function W9(l,r){if(Kr(l)!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var c=u.call(l,r);if(Kr(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(l)}function e5(l,r,u){return X9(l,Jm(Jm({},r),{},{v2:!0}),u)}function Zr(l){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zr(l)}function Wm(l,r){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);r&&(c=c.filter(function(s){return Object.getOwnPropertyDescriptor(l,s).enumerable})),u.push.apply(u,c)}return u}function t5(l){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?Wm(Object(u),!0).forEach(function(c){n5(l,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):Wm(Object(u)).forEach(function(c){Object.defineProperty(l,c,Object.getOwnPropertyDescriptor(u,c))})}return l}function n5(l,r,u){return(r=a5(r))in l?Object.defineProperty(l,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[r]=u,l}function a5(l){var r=l5(l,"string");return Zr(r)=="symbol"?r:r+""}function l5(l,r){if(Zr(l)!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var c=u.call(l,r);if(Zr(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(l)}function r5(l,r){return c5(l)||o5(l,r)||u5(l,r)||i5()}function i5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u5(l,r){if(l){if(typeof l=="string")return eh(l,r);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?eh(l,r):void 0}}function eh(l,r){(r==null||r>l.length)&&(r=l.length);for(var u=0,c=Array(r);u<r;u++)c[u]=l[u];return c}function o5(l,r){var u=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u!=null){var c,s,f,m,v=[],h=!0,$=!1;try{if(f=(u=u.call(l)).next,r!==0)for(;!(h=(c=f.call(u)).done)&&(v.push(c.value),v.length!==r);h=!0);}catch(_){$=!0,s=_}finally{try{if(!h&&u.return!=null&&(m=u.return(),Object(m)!==m))return}finally{if($)throw s}}return v}}function c5(l){if(Array.isArray(l))return l}function s5(l){var r=Array.prototype.slice.call(l),u=r5(r,4),c=u[0],s=u[1],f=u[2],m=u[3],v,h,$;if(typeof c=="string")v=c;else throw new TypeError("A text for parsing must be a string.");if(!s||typeof s=="string")m?(h=f,$=m):(h=void 0,$=f),s&&(h=t5({defaultCountry:s},h));else if(Ll(s))f?(h=s,$=f):$=s;else throw new Error("Invalid second argument: ".concat(s));return{text:v,options:h,metadata:$}}function Qr(l){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qr(l)}function th(l,r){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);r&&(c=c.filter(function(s){return Object.getOwnPropertyDescriptor(l,s).enumerable})),u.push.apply(u,c)}return u}function nh(l){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?th(Object(u),!0).forEach(function(c){d5(l,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):th(Object(u)).forEach(function(c){Object.defineProperty(l,c,Object.getOwnPropertyDescriptor(u,c))})}return l}function d5(l,r,u){return(r=f5(r))in l?Object.defineProperty(l,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[r]=u,l}function f5(l){var r=m5(l,"string");return Qr(r)=="symbol"?r:r+""}function m5(l,r){if(Qr(l)!="object"||!l)return l;var u=l[Symbol.toPrimitive];if(u!==void 0){var c=u.call(l,r);if(Qr(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(l)}function h5(l,r,u){r&&r.defaultCountry&&!g8(r.defaultCountry,u)&&(r=nh(nh({},r),{},{defaultCountry:void 0}));try{return e5(l,r,u)}catch(c){if(!(c instanceof kn))throw c}}function y5(){var l=s5(arguments),r=l.text,u=l.options,c=l.metadata;return h5(r,u,c)}function g5(){return a8(y5,arguments)}function v5(){let l=null;return{get:async()=>l,async set(r){l=r},async remove(){l=null}}}const ah="x-seamless-auth-transport";class p5 extends Error{constructor(r){super(`authorizedFetch sends the session only to apiHost and trustedOrigins, and ${r} is neither. Pass a path starting with / to reach apiHost, use fetch for other origins, or add the origin to trustedOrigins.`),this.name="UntrustedOriginError",this.url=r}}class ju extends Error{constructor(r){super(`A bearer request was redirected to ${r}, which is not apiHost or one of trustedOrigins, so the redirect was not followed with the session.`),this.name="UntrustedRedirectError",this.url=r}}const $5=new Set([301,302,303,307,308]);function lh(l){try{const r=new URL(l).origin;return r&&r!=="null"?r:null}catch{return null}}function g3(){const l=globalThis.location?.origin;return typeof l=="string"&&l!=="null"&&l!==""?l:null}const _5=new Set(["localhost","127.0.0.1","[::1]"]);function b5(l){let r=null;try{r=new URL(l)}catch{r=null}if(!(r!==null&&(r.protocol==="https:"||r.protocol==="http:"&&_5.has(r.hostname))&&!r.username&&!r.password&&(r.pathname==="/"||r.pathname==="")&&!r.search&&!r.hash)||r===null)throw new TypeError(`trustedOrigins entry "${l}" is not an origin. Use one such as https://api.example.com.`);return r.origin}const S5=[{match:/^\/login$/,identity:"none",effect:"ephemeral"},{match:/^\/registration\/register$/,identity:"none",effect:"ephemeral"},{match:/^\/oauth\/providers$/,identity:"none"},{match:/^\/oauth\/[^/]+\/start$/,identity:"none"},{match:/^\/oauth\/[^/]+\/callback$/,identity:"none",effect:"issue"},{match:/^\/system-config\/public$/,identity:"none"},{match:/^\/magic-link\/verify\/[^/]+$/,identity:"preAuth"},{match:/^\/magic-link\/verify\/[^/]+\/confirm$/,identity:"none"},{match:/^\/magic-link$/,identity:"preAuth"},{match:/^\/magic-link\/check$/,identity:"preAuth",effect:"issue"},{match:/^\/otp\/generate-/,identity:"preAuth"},{match:/^\/otp\/verify-/,identity:"preAuth",effect:"issue"},{match:/^\/webAuthn\/login\/start$/,identity:"preAuth"},{match:/^\/webAuthn\/login\/finish$/,identity:"preAuth",effect:"issue"},{match:/^\/refresh$/,identity:"none",effect:"issue"},{match:/^\/logout(\/all)?$/,identity:"access",effect:"end"},{match:/^\/users\/delete$/,identity:"access",effect:"end"},{match:/^\/organizations\/[^/]+\/switch$/,identity:"access",effect:"issue"},{match:/^\/totp\/verify-login$/,identity:"preAuth",effect:"issue"},{match:/^\/recovery-codes$/,identity:"access"},{match:/^\/recovery-codes\/redeem$/,identity:"preAuth",effect:"issue"},{match:/^\/recovery\/(start|verify|status)$/,identity:"preAuth"},{match:/^\/recovery\/complete$/,identity:"preAuth",effect:"issue"},{match:/^\/recovery\/cancel$/,identity:"none"},{match:/^\/recovery\/requests(\/[^/]+)?$/,identity:"access"}],E5={match:/.*/,identity:"access"},x5=new Set(["totp_verification_failed","totp_disable_failed","step_up_failed","invalid_recovery_code"]);function N5(l){return S5.find(r=>r.match.test(l))??E5}function rh(l){return l.startsWith("/")?l:`/${l}`}function Gr(l,r,u){return`${l.replace(/\/+$/,"")}${r===""?"":`/${r.replace(/^\/+|\/+$/g,"")}`}${u}`}function zl(l,r){const u={...l?.body!=null?{"Content-Type":"application/json"}:{},...r};for(const[c,s]of Object.entries((function(f){if(!f)return{};if(Array.isArray(f))return Object.fromEntries(f);if(typeof f.forEach=="function"){const m={};return f.forEach((v,h)=>{m[h]=v}),m}return{...f}})(l?.headers))){for(const f of Object.keys(u))f.toLowerCase()===c.toLowerCase()&&delete u[f];u[c]=s}return{...l,headers:u}}function T5(l){const r=l.mode??"cookie",u=l.basePath??"/auth",c=l.fetch??((...U)=>fetch(...U)),s=(function(U){const H=new Set((U.trustedOrigins??[]).map(b5)),q=U.apiHost.trim()===""?g3():lh(U.apiHost);return q&&H.add(q),H})(l),f=U=>{const H=lh(U);return H!==null&&s.has(H)},m=(U,H)=>{if(H.url&&H.url!==U&&!f(H.url))throw new ju(H.url)},v=U=>{const H=(function(q){return typeof q=="string"?q:q instanceof URL?q.href:null})(U);return H===null?Promise.reject(new TypeError("authorizedFetch takes a URL string or a URL.")):(q=>f(q)?null:Promise.reject(new p5(q)))(H)??H};if(r==="cookie")return{mode:r,fetch:(U,H)=>c(Gr(l.apiHost,u,rh(U)),zl({...H,credentials:"include"},{})),authorizedFetch:(U,H)=>{const q=v(U);return typeof q!="string"?q:c(q,zl({...H,credentials:"include"},{}))},refresh:async()=>(await c(Gr(l.apiHost,u,"/refresh"),zl({method:"POST",credentials:"include"},{}))).ok,clearTokens:async()=>{}};const h=l.tokenStorage??v5();let $,_;async function p(){return _===void 0&&(_=await h.get()),_}async function x(){_=null,$=void 0,await h.remove()}async function M(U,H){if(U==="end")return void await x();const q=await(async function(Q){try{const Te=await Q.clone().json();return Te&&typeof Te=="object"?Te:null}catch{return null}})(H);if(!q||typeof q.token!="string")return;if(U==="ephemeral")return void($=q.token);const K=typeof q.refreshToken=="string"?q.refreshToken:(await p())?.refreshToken;K&&(await(async function(Q){_=Q,await h.set(Q)})({accessToken:q.token,refreshToken:K}),$=void 0)}let z=null;function A(){return z||(z=(async()=>{const U=await p();if(!U)return!1;const H=Gr(l.apiHost,u,"/refresh"),q=await c(H,zl({method:"POST",redirect:"manual"},{[ah]:"bearer",Authorization:`Bearer ${U.refreshToken}`}));try{if(m(H,q),q.type==="opaqueredirect"||q.status>=300&&q.status<400)throw new ju((function(K,Q){if(!K)return Q;try{return new URL(K,Q).href}catch{return Q}})(q.headers.get("location"),H))}catch(K){throw await x(),K}return q.ok?(await M("issue",q),!0):(await x(),!1)})().finally(()=>{z=null})),z}async function R(U,H,q,K){const Q=await(async function(at){if(at==="preAuth")return $?`Bearer ${$}`:void 0;if(at==="access"){const ke=await p();return ke?`Bearer ${ke.accessToken}`:void 0}})(q),Te={...K?{[ah]:"bearer"}:{},...Q?{Authorization:Q}:{}};if(!Q)return c(U,zl(H,Te));const de=H?.redirect!==void 0;let he=U,qe=de?H:{...H,redirect:"manual"};for(let at=0;;at++){const ke=await c(he,zl(qe,Te));if(m(he,ke),de)return ke;if(ke.type==="opaqueredirect")throw new ju(he);const Ee=$5.has(ke.status)?ke.headers.get("location"):null;if(!Ee)return ke;const F=new URL(Ee,he).href;if(!f(F)||at+1>=5)throw new ju(F);const ae=(qe?.method??"GET").toUpperCase();he=F,qe=ke.status===303||(ke.status===301||ke.status===302)&&ae==="POST"?{...qe,method:"GET",body:void 0}:qe}}async function B(U,H,q,K){let Q=await R(U,H,q,K);return Q.status===401&&q==="access"&&!await(async function(Te){try{const de=await Te.clone().json(),he=de?.error;return typeof he=="string"&&x5.has(he)}catch{return!1}})(Q)&&await p()&&await A()&&(Q=await R(U,H,q,K)),Q}const X=`${Gr(l.apiHost,u,"")}/`,Y=async(U,H)=>{const q=rh(U),K=N5(q),Q=await B(Gr(l.apiHost,u,q),H,K.identity,!0);return Q.ok&&K.effect&&await M(K.effect,Q),Q};return{mode:r,clearTokens:x,refresh:A,fetch:Y,authorizedFetch:(U,H)=>{const q=v(U);return typeof q!="string"?q:q.startsWith(X)?Y(q.slice(X.length-1),H):B(q,H,"access",!1)}}}const O5=l=>{const{authHost:r,...u}=l;return T5({...u,apiHost:r??""})};function C5(){return!!Qu()&&(typeof window>"u"||window.isSecureContext!==!1)&&globalThis.PublicKeyCredential!==void 0&&typeof navigator<"u"&&typeof navigator.credentials?.get=="function"}async function R5(){if(typeof window>"u")return!1;if(window.PublicKeyCredential&&typeof window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function")try{return await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}catch{return console.error("Error checking passkey support."),!1}return!1}function v3(){return{isSupported:()=>C5(),isPlatformAuthenticatorAvailable:R5,create:l=>Jp({optionsJSON:l}),get:l=>t8({optionsJSON:l})}}function w5(l){return l instanceof Error&&typeof l.code=="string"&&l.name!=="Error"}let Kt=class extends Error{constructor(r,u,c,s){super(r),this.name="SeamlessAuthError",this.status=u,this.body=c,this.cause=s}};const A5={oauth_missing_email:!0,oauth_email_not_verified:!0,oauth_missing_subject:!0,oauth_invalid_id_token:!0,oauth_provider_retired:!0};function ih(l){if(typeof l=="object"&&l!==null)return l.code}function j5(l){if(!(l instanceof Kt)||typeof l.body!="object"||l.body===null)return;const r=ih(l.body)??ih(l.body.details);return typeof r=="string"&&Object.prototype.hasOwnProperty.call(A5,r)?r:void 0}const M5={attachment_not_allowed:!0,synced_passkey_not_allowed:!0,authenticator_not_allowed:!0,prf_required:!0};function uh(l){if(typeof l!="object"||l===null)return;const r=l.error;return typeof r=="string"&&Object.prototype.hasOwnProperty.call(M5,r)?r:void 0}function z5(l){if(l instanceof Kt&&typeof l.body=="object"&&l.body!==null)return uh(l.body)??uh(l.body.details)}function p3(l){return l instanceof Kt&&l.status===401}function oh(l){if(typeof l!="object"||l===null)return;const r=l.error;return typeof r=="string"?r:void 0}function $3(l){const r=typeof l=="object"&&l!==null?oh(l.details):void 0;return[oh(l),r].filter(u=>u!==void 0)}function D5(l,r,u){return l instanceof Kt&&l.status===r&&$3(l.body).includes(u)}function U5(l){return D5(l,403,"step_up_required")}const L5={invalid_recovery_code:!0,recovery_codes_disabled:!0,account_recovery_disabled:!0,recovery_notice_failed:!0,recovery_not_found:!0,recovery_not_ready:!0,cancel_token_required:!0,enrollment_required:!0};function _3(l){if(l instanceof Kt)return $3(l.body).find(r=>Object.prototype.hasOwnProperty.call(L5,r))}function k5(l){if(!(l instanceof Kt)||typeof(r=l.cause)!="object"||r===null||typeof r.name!="string")return;var r;const{name:u,code:c,message:s}=l.cause;return{name:u,code:typeof c=="string"?c:void 0,message:typeof s=="string"?s:""}}async function H5(l,r){let u;try{u=await l.json()}catch{u=void 0}return new Kt((function(c){if(typeof c!="object"||c===null)return;const{error:s,message:f}=c;return typeof s=="string"&&s?s:typeof f=="string"&&f?f:void 0})(u)??r,l.status,u)}async function B5(l){try{return await l.json()}catch{return}}async function ee(l,r){let u;try{u=await l}catch(c){return{data:null,error:new Kt(r,0,void 0,c)}}return u.ok?{data:await B5(u),error:null}:{data:null,error:await H5(u,r)}}function Pr(l){return{data:l,error:null}}function Yr(l,r=0,u,c){return{data:null,error:new Kt(l,r,u,c)}}function b3(l){const r=new Uint8Array(l);let u="";for(const c of r)u+=String.fromCharCode(c);return btoa(u).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function S3(l){if(l instanceof ArrayBuffer)return l;const r=new Uint8Array(l.buffer,l.byteOffset,l.byteLength),u=new Uint8Array(r.byteLength);return u.set(r),u.buffer}function ch(l){return typeof l=="string"?l:b3(S3(l))}function sh(l){return typeof l=="string"?(function(r){const u=r.replace(/-/g,"+").replace(/_/g,"/"),c=u.padEnd(u.length+(4-u.length%4)%4,"="),s=atob(c),f=new Uint8Array(s.length);for(let m=0;m<s.length;m+=1)f[m]=s.charCodeAt(m);return f.buffer})(l):l}function G5(l){return{...l.credentialId?{credentialId:l.credentialId}:{},prf:{salt:ch(l.salt),...l.secondSalt?{secondSalt:ch(l.secondSalt)}:{}}}}function Is(l){const r=l,u=r.extensions?.prf?.eval;return u?{...r,extensions:{...r.extensions,prf:{...r.extensions?.prf,eval:{...u,...u.first?{first:sh(u.first)}:{},...u.second?{second:sh(u.second)}:{}}}}}:l}function dh(l){const r=l.clientExtensionResults,u=r?.prf?.results?.first;if(!u)return null;const c=(s=u)instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength);var s;return{credentialId:l.id,output:c,outputBase64url:b3(S3(c))}}function Js(l){const r=l.clientExtensionResults;return r?.prf?.results?{...l,clientExtensionResults:{...l.clientExtensionResults,prf:{...r.prf,results:void 0}}}:l}function q5(l){return l.clientExtensionResults?.prf?.enabled===!0}function Ws(l,r){const u=l.method===r?l.method:null;return l.message==="Success"&&l.fresh===!0&&u!==null?Pr({fresh:!0,method:u,verifiedAt:l.verifiedAt??null,expiresAt:l.expiresAt??null,maxAgeSeconds:l.maxAgeSeconds??0}):Yr(l.message??"Step-up authentication failed.")}function fh(l){return l?{method:"POST",body:JSON.stringify(G5(l))}:{method:"POST"}}function Mu(l,r,u){const c=Yr(r,0,void 0,u),s=k5(c.error);return console.error(l,s?.name??"Unknown error."),c}const P5=l=>{const r=O5({...l.transport,authHost:l.apiHost}),u=r.fetch,c=l.passkeys??v3();let s=!1;async function f(){if(s)try{await r.refresh()&&(s=!1)}catch{}}async function m(h,$){const _=await ee(h,$);if(_.error)return _;const p={..._.data};return delete p.token,delete p.refreshToken,delete p.sub,s=_.data.recovery===!0,Pr(p)}const v=l.apiHost.replace(/\/+$/,"")||(g3()??"");return{authorizedFetch:(h,$)=>r.authorizedFetch(typeof h=="string"&&h.startsWith("/")?`${v}${h}`:h,$),getCurrentUser:async()=>{const h=await ee(u("users/me",{method:"GET"}),"Failed to load the current user.");return h.error||typeof h.data.recovery!="boolean"||(s=h.data.recovery),h},login:h=>ee(u("/login",{method:"POST",body:JSON.stringify(h)}),"Failed to start sign-in."),loginWithPasskey:async h=>{const $=await ee(u("/webAuthn/login/start",{...fh(h?.prf)}),"Failed to start passkey login.");if($.error)return $;let _,p;try{const M=await c.get(Is($.data));_=dh(M),p=Js(M)}catch(M){return Mu("Passkey login error.","Passkey login failed.",M)}const x=await ee(u("/webAuthn/login/finish",{method:"POST",body:JSON.stringify({assertionResponse:p})}),"Failed to verify passkey.");return x.error?x:x.data?.message!=="Success"?Yr(x.data?.message??"Passkey login failed."):Pr(_?{prf:_}:{})},logout:(h={})=>(s=!1,ee(u(h.scope==="all_sessions"?"/logout/all":"/logout",{method:"DELETE"}),"Failed to sign out.")),logoutAllSessions:()=>(s=!1,ee(u("/logout/all",{method:"DELETE"}),"Failed to sign out of all sessions.")),deleteUser:()=>ee(u("/users/delete",{method:"DELETE"}),"Failed to delete the account."),register:h=>ee(u("/registration/register",{method:"POST",body:JSON.stringify({email:h.email,...h.phone?{phone:h.phone}:{}})}),"Failed to register."),requestPhoneOtp:()=>ee(u("/otp/generate-phone-otp",{method:"POST",body:JSON.stringify({})}),"Failed to send the SMS code."),verifyPhoneOtp:h=>ee(u("/otp/verify-phone-otp",{method:"POST",body:JSON.stringify({verificationToken:h})}),"Failed to verify the SMS code."),requestLoginPhoneOtp:()=>ee(u("/otp/generate-login-phone-otp",{method:"POST",body:JSON.stringify({})}),"Failed to send the SMS code."),verifyLoginPhoneOtp:h=>ee(u("/otp/verify-login-phone-otp",{method:"POST",body:JSON.stringify({verificationToken:h})}),"Failed to verify the SMS code."),requestEmailOtp:()=>ee(u("/otp/generate-email-otp",{method:"POST",body:JSON.stringify({})}),"Failed to send the email code."),verifyEmailOtp:h=>ee(u("/otp/verify-email-otp",{method:"POST",body:JSON.stringify({verificationToken:h})}),"Failed to verify the email code."),requestLoginEmailOtp:()=>ee(u("/otp/generate-login-email-otp",{method:"POST",body:JSON.stringify({})}),"Failed to send the email code."),verifyLoginEmailOtp:h=>ee(u("/otp/verify-login-email-otp",{method:"POST",body:JSON.stringify({verificationToken:h})}),"Failed to verify the email code."),requestMagicLink:h=>{const $=h??l.magicLinkRedirectUri;return ee(u("/magic-link",{method:"POST",body:JSON.stringify($?{redirectUri:$}:{})}),"Failed to send the magic link.")},checkMagicLink:()=>ee(u("/magic-link/check",{method:"GET"}),"Failed to check the magic link."),verifyMagicLink:h=>ee(u(`/magic-link/verify/${encodeURIComponent(h)}`,{method:"GET"}),"Failed to verify the magic link."),confirmMagicLink:h=>ee(u(`/magic-link/verify/${encodeURIComponent(h)}/confirm`,{method:"POST",body:JSON.stringify({})}),"Failed to confirm the magic link."),listOAuthProviders:()=>ee(u("/oauth/providers",{method:"GET"}),"Failed to list OAuth providers."),getPublicSystemConfig:()=>ee(u("/system-config/public",{method:"GET"}),"Failed to read the public system configuration."),startOAuthLogin:h=>ee(u(`/oauth/${encodeURIComponent(h.providerId)}/start`,{method:"POST",body:JSON.stringify({...h.redirectUri?{redirectUri:h.redirectUri}:{},...h.returnTo?{returnTo:h.returnTo}:{}})}),"Failed to start OAuth login."),finishOAuthLogin:h=>ee(u(`/oauth/${encodeURIComponent(h.providerId)}/callback`,{method:"POST",body:JSON.stringify({code:h.code,state:h.state,...h.binding?{binding:h.binding}:{}})}),"Failed to finish OAuth login."),registerPasskey:async h=>{const $=(function(z){return"metadata"in z?z:{metadata:z}})(h),_=await ee(u((function(z){const A=new URLSearchParams;z.requirePrf?A.set("requirePrf","true"):z.requestPrf&&A.set("requestPrf","true"),z.attachment&&A.set("attachment",z.attachment);const R=A.toString();return"/webAuthn/register/start"+(R?`?${R}`:"")})($),{method:"GET"}),"Failed to fetch passkey registration challenge.");if(_.error)return _;let p;try{p=await c.create(_.data)}catch(z){return w5(z)?Yr(z.name,0,void 0,z):Mu("Passkey registration error.","Passkey registration failed.",z)}const x=q5(p),M=await ee(u("/webAuthn/register/finish",{method:"POST",body:JSON.stringify({attestationResponse:p,metadata:{...$.metadata,prfCapable:x}})}),"Verification failed.");return M.error?M:(await f(),Pr({credentialId:p.id,prfCapable:x}))},isPasskeyPrfSupported:async()=>c.isSupported(),getStepUpStatus:()=>ee(u("/step-up/status",{method:"GET"}),"Failed to load step-up status."),verifyStepUpWithPasskey:async()=>{const h=await ee(u("/step-up/webauthn/start",{method:"POST"}),"Failed to start step-up authentication.");if(h.error)return h;let $;try{$=Js(await c.get(Is(h.data)))}catch(p){return Mu("Step-up authentication error.","Step-up authentication failed.",p)}const _=await ee(u("/step-up/webauthn/finish",{method:"POST",body:JSON.stringify({assertionResponse:$})}),"Failed to verify step-up authentication.");return _.error?_:Ws(_.data??{},"webauthn")},verifyStepUpWithPasskeyPrf:async h=>{const $=await ee(u("/step-up/webauthn/start",{...fh(h)}),"Failed to start step-up authentication.");if($.error)return $;let _,p;try{const z=await c.get(Is($.data));_=dh(z),p=Js(z)}catch(z){return Mu("Step-up authentication error.","Step-up authentication failed.",z)}if(!_)return Yr("Passkey did not return PRF output.");const x=await ee(u("/step-up/webauthn/finish",{method:"POST",body:JSON.stringify({assertionResponse:p})}),"Failed to verify step-up authentication.");if(x.error)return x;const M=Ws(x.data??{},"webauthn");return M.error?M:Pr({...M.data,credentialId:_.credentialId,prf:_})},getTotpStatus:()=>ee(u("/totp/status",{method:"GET"}),"Failed to load authenticator status."),startTotpEnrollment:()=>ee(u("/totp/enroll/start",{method:"POST"}),"Failed to start authenticator enrollment."),verifyTotpEnrollment:async h=>{const $=await ee(u("/totp/enroll/verify",{method:"POST",body:JSON.stringify({code:h})}),"Failed to verify the authenticator code.");return $.error||await f(),$},disableTotp:h=>ee(u("/totp/disable",{method:"POST",body:JSON.stringify({code:h})}),"Failed to disable the authenticator."),verifyTotpLogin:h=>ee(u("/totp/verify-login",{method:"POST",body:JSON.stringify({code:h})}),"Failed to verify the authenticator code."),verifyStepUpWithTotp:async h=>{const $=await ee(u("/totp/verify-mfa",{method:"POST",body:JSON.stringify({code:h})}),"Failed to verify step-up authentication.");return $.error?$:Ws($.data??{},"totp")},isRecoverySession:()=>s,getRecoveryCodeStatus:()=>ee(u("/recovery-codes",{method:"GET"}),"Failed to load recovery code status."),generateRecoveryCodes:()=>ee(u("/recovery-codes",{method:"POST",body:JSON.stringify({})}),"Failed to generate recovery codes."),redeemRecoveryCode:h=>m(u("/recovery-codes/redeem",{method:"POST",body:JSON.stringify({code:h})}),"Failed to sign in with the recovery code."),startAccountRecovery:h=>ee(u("/recovery/start",{method:"POST",body:JSON.stringify({channel:h})}),"Failed to start account recovery."),verifyAccountRecovery:h=>ee(u("/recovery/verify",{method:"POST",body:JSON.stringify({code:h})}),"Failed to verify the recovery code."),getAccountRecoveryStatus:()=>ee(u("/recovery/status",{method:"GET"}),"Failed to load the account recovery status."),completeAccountRecovery:()=>m(u("/recovery/complete",{method:"POST",body:JSON.stringify({})}),"Failed to complete account recovery."),cancelAccountRecovery:h=>ee(u("/recovery/cancel",{method:"POST",body:JSON.stringify({cancelToken:h})}),"Failed to cancel account recovery."),listAccountRecoveryRequests:()=>ee(u("/recovery/requests",{method:"GET"}),"Failed to load account recovery requests."),cancelAccountRecoveryRequest:h=>ee(u(`/recovery/requests/${encodeURIComponent(h)}`,{method:"DELETE"}),"Failed to cancel the account recovery request."),updateCredential:h=>ee(u("users/credentials",{method:"POST",body:JSON.stringify(h)}),"Failed to update credential."),deleteCredential:h=>ee(u("users/credentials",{method:"DELETE",body:JSON.stringify({id:h})}),"Failed to delete credential."),listOrganizations:()=>ee(u("/organizations",{method:"GET"}),"Failed to list organizations."),createOrganization:h=>ee(u("/organizations",{method:"POST",body:JSON.stringify(h)}),"Failed to create organization."),getOrganization:h=>ee(u(`/organizations/${encodeURIComponent(h)}`,{method:"GET"}),"Failed to load organization."),updateOrganization:(h,$)=>ee(u(`/organizations/${encodeURIComponent(h)}`,{method:"PATCH",body:JSON.stringify($)}),"Failed to update organization."),switchOrganization:h=>ee(u(`/organizations/${encodeURIComponent(h)}/switch`,{method:"POST"}),"Failed to switch organization."),listOrganizationMembers:h=>ee(u(`/organizations/${encodeURIComponent(h)}/members`,{method:"GET"}),"Failed to list organization members."),addOrganizationMember:(h,$)=>ee(u(`/organizations/${encodeURIComponent(h)}/members`,{method:"POST",body:JSON.stringify($)}),"Failed to add organization member."),updateOrganizationMember:(h,$,_)=>ee(u(`/organizations/${encodeURIComponent(h)}/members/${encodeURIComponent($)}`,{method:"PATCH",body:JSON.stringify(_)}),"Failed to update organization member."),removeOrganizationMember:(h,$)=>ee(u(`/organizations/${encodeURIComponent(h)}/members/${encodeURIComponent($)}`,{method:"DELETE"}),"Failed to remove organization member.")}};function Y5(){const l=typeof navigator>"u"?void 0:navigator,r=(l?.userAgent??"").toLowerCase();let u="unknown",c="unknown";return/iphone|ipad|ipod/.test(r)?u="ios":/android/.test(r)?u="android":/mac os/.test(r)?u="mac":/windows/.test(r)?u="windows":/linux/.test(r)&&(u="linux"),l?.brave?c="brave":/edg\/|edgios/.test(r)?c="edge":/opr\/|opt\/|opera/.test(r)?c="opera":/vivaldi/.test(r)?c="vivaldi":/samsungbrowser/.test(r)?c="samsung":/firefox|fxios/.test(r)?c="firefox":/chrome|crios/.test(r)?c="chrome":/safari/.test(r)&&(c="safari"),{platform:u,browser:c,deviceInfo:`${u} • ${c}`}}function V5(){const{platform:l,browser:r,deviceInfo:u}=Y5();return{friendlyName:u,platform:l,browser:r,deviceInfo:u}}const Ul=l=>{if(typeof l!="string")return!1;const r=l.trim();if(r.length<3||r.length>320)return!1;const u=r.split("@");if(u.length!==2)return!1;const[c,s]=u;return!(!/^[A-Za-z0-9._%+-]+$/.test(c)||c.startsWith(".")||c.endsWith(".")||c.includes(".."))&&!(!/^[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(s)||s.startsWith("-")||s.endsWith("-")||s.startsWith(".")||s.endsWith(".")||s.includes(".."))},gd=l=>g5(l)?.isValid()||!1,X5=["passkey","magic_link"];async function F5(l){try{const{data:r,error:u}=await l.getPublicSystemConfig();return!u&&r?.loginMethods?.length?r.loginMethods:null}catch{return null}}const K5=l=>!!l?.some(r=>r!=="passkey");function Z5(l,r,u){const c=new Set(r??["passkey","magic_link","phone_otp"]);return{magicLink:c.has("magic_link")&&Ul(l),emailOtp:c.has("email_otp")&&u.emailOtp&&Ul(l),phoneOtp:c.has("phone_otp")&&gd(l),passkeyRetry:c.has("passkey")&&u.passkeyRetry}}const Q5=l=>l.magicLink||l.emailOtp||l.phoneOtp||l.passkeyRetry,Hd="seamless-auth",Bd="MAGIC_LINK_AUTH_SUCCESS",mh=30;async function I5(l){const{data:r,error:u}=await l.checkMagicLink();return!u&&r?.message==="Success"}function J5(l){let r=!1;const u=async()=>{r||!await I5(l.client)||r||(r=!0,await l.refreshSession(),l.onSignedIn())},c=typeof BroadcastChannel>"u"?null:new BroadcastChannel(Hd);c&&(c.onmessage=f=>{f.data?.type===Bd&&u().catch(()=>{})});const s=setInterval(()=>{u().catch(()=>{})},l.pollIntervalMs??5e3);return()=>{r=!0,clearInterval(s),c?.close()}}const vd={ios:"an iPhone or iPad",android:"an Android device",macos:"a Mac",windows:"a Windows PC",linux:"a Linux computer",chromeos:"a Chromebook",bot:"an automated client",unknown:"an unknown device"};function hh(l){if(typeof l!="object"||l===null)return;const{error:r,requestedFrom:u}=l;if(r!=="confirmation_required")return;const c=typeof u=="object"&&u!==null?u:{};return{deviceClass:typeof c.deviceClass=="string"&&Object.prototype.hasOwnProperty.call(vd,c.deviceClass)?c.deviceClass:"unknown",requestedAt:typeof c.requestedAt=="string"?c.requestedAt:""}}function W5(l){if(l instanceof Kt&&l.status===409)return hh(l.body)??hh(l.body?.details)}function e$(l){return vd[l]??vd.unknown}function t$(l,r){const u=e$(l.deviceClass),c=new Date(l.requestedAt);return!l.requestedAt||Number.isNaN(c.getTime())?`A sign-in was requested from ${u}.`:`A sign-in was requested from ${u} on ${c.toLocaleString(r,{dateStyle:"medium",timeStyle:"short"})}.`}async function n$(l){const r=await l.client.confirmMagicLink(l.token);if(!r.error&&typeof BroadcastChannel<"u"){const u=new BroadcastChannel(Hd);u.postMessage({type:Bd}),u.close()}return r}async function a$(l){if(typeof BroadcastChannel<"u"){const u=new BroadcastChannel(Hd);u.postMessage({type:Bd}),u.close()}let r=await l.refreshSession({background:!0});return r.error&&(await l.client.checkMagicLink(),r=await l.refreshSession({background:!0})),r.error?"elsewhere":"signed-in"}const l$={oauth_missing_email:"Your provider account did not share an email address. Add an email to that account and make it visible, then try again.",oauth_email_not_verified:"The email address on your provider account is not verified. Verify it with your provider, then try again.",oauth_missing_subject:"Your provider did not return a usable account identifier. Try again, or sign in with a different method.",oauth_invalid_id_token:"Your provider sent a sign-in response that could not be verified. Try again, or sign in with a different method.",oauth_provider_retired:"Your organization no longer signs in with this provider. Sign in with your passkey or another method instead."},r$="We could not complete sign-in. Please try again.";function i$(l){const r=j5(l);return r?l$[r]:r$}const u$={attachment_not_allowed:"This application does not accept that kind of authenticator. Try the other option.",synced_passkey_not_allowed:"This passkey syncs to a password manager, and this application requires one that stays on a single device, such as a security key.",authenticator_not_allowed:"This application does not accept this authenticator.",prf_required:"This authenticator does not support a feature this application requires."};function o$(l){const r=z5(l);return r?u$[r]:p3(l)?"Your session expired before the passkey was saved. Sign in again to add one.":"Error registering passkey."}let pd=class extends Error{constructor(r){super(r?`Refused to open an OAuth authorization URL with the ${r} scheme. It must use https, or http on localhost.`:"Refused to open an OAuth authorization URL that is not an absolute URL. It must use https, or http on localhost."),this.name="UnsafeAuthorizationUrlError"}};const c$=new Set(["localhost","127.0.0.1","[::1]"]);function s$(l){const r=(function(u){const c=u.replace(/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,"").replace(/[\t\n\r]/g,""),s=/^([a-zA-Z][a-zA-Z0-9+.-]*):([\s\S]*)$/.exec(c);if(!s)return null;const f=`${s[1].toLowerCase()}:`;if(f!=="http:"&&f!=="https:")return{scheme:f,host:""};const m=s[2].replace(/^[/\\]+/,"").split(/[/\\?#]/)[0],v=m.slice(m.lastIndexOf("@")+1);return{scheme:f,host:(v.startsWith("[")?v.slice(0,v.indexOf("]")+1):v.split(":")[0]).toLowerCase()}})(l);if(!r)throw new pd(null);if(!(r.scheme==="https:"&&r.host!==""||r.scheme==="http:"&&c$.has(r.host)))throw new pd(r.scheme)}function d$(l=r=>window.location.assign(r)){return{open:async r=>(s$(r),l(r),{type:"navigated"})}}const f$=/[\u0000-\u001f\u007f]/;function E3(l){return l.startsWith("/")&&!l.startsWith("//")&&!l.startsWith("/\\")&&!f$.test(l)}function Gd(l){return typeof l=="string"&&E3(l)?l:"/"}function m$(l,r){if(!l)return null;try{const u=new URL(l,r);if(u.origin!==r)return null;const c=`${u.pathname}${u.search}${u.hash}`;return E3(c)?c:null}catch{return null}}const ed="seamless:oauth:binding";function td(){try{return typeof sessionStorage>"u"?null:sessionStorage}catch{return null}}function h$(){let l=null;const r=()=>{try{return(function(u){if(!u)return null;try{const c=JSON.parse(u);if(typeof c=="object"&&c!==null&&typeof c.state=="string"&&typeof c.binding=="string")return c}catch{}return null})(td()?.getItem(ed)??null)}catch{return null}};return{save:u=>{l=u;try{td()?.setItem(ed,JSON.stringify(u))}catch{}},read:u=>{for(const c of[r(),l])if(c?.state===u)return c.binding;return null},clear:()=>{l=null;try{td()?.removeItem(ed)}catch{}}}}const $d="seamless:oauth:provider",y$="/oauth/callback";function x3(){try{return typeof sessionStorage>"u"?null:sessionStorage}catch{return null}}function g$(){try{return x3()?.getItem($d)??null}catch{return null}}function N3(l){try{const r=x3();l===null?r?.removeItem($d):r?.setItem($d,l)}catch{}}async function v$(l,r){const{providerId:u,redirectUri:c}=r;N3(u);const{data:s,error:f}=await l.actions.startOAuthLogin({providerId:u,redirectUri:c});if(f)return{error:"Could not start sign-in with this provider."};let m;try{m=await l.oauthRedirect.open(s.authorizationUrl,c)}catch(v){if(v instanceof pd)return{error:"Could not start sign-in with this provider."};throw v}if(m.type==="callback"){if(m.state!==s.state)return{error:"Could not finish sign-in with this provider."};if((await l.actions.finishOAuthLogin({providerId:u,code:m.code,state:m.state,...s.binding?{binding:s.binding}:{}})).error)return{error:"Could not finish sign-in with this provider."}}return{error:null}}async function p$(l,r,u){const c=r.get("code"),s=r.get("state"),f=g$();if(!c||!s||!f)return{kind:"error",message:"This sign-in link is missing required information."};const{data:m,error:v}=await l.finishOAuthLogin({providerId:f,code:c,state:s});if(v)return{kind:"error",message:i$(v)};N3(null);const h=m$(m?.returnTo,u)??"/";return m?.nextStep==="enroll_passkey"?{kind:"enroll_passkey",returnTo:h}:{kind:"done",destination:h}}const T3=6,O3=300;function C3(l,r,u){return r==="email"?u==="login"?l.requestLoginEmailOtp():l.requestEmailOtp():u==="login"?l.requestLoginPhoneOtp():l.requestPhoneOtp()}function R3(l){return l==="email"?"Failed to send Email code. If this persists, refresh the page and try again.":"Failed to send SMS code. If this persists, refresh the page and try again."}async function w3(l,r){const{client:u,refreshSession:c}=l,{channel:s,flow:f,code:m}=r;if(m.length!==6)return{next:null,error:"Please enter a valid code."};const v=s==="email"?f==="login"?u.verifyLoginEmailOtp:u.verifyEmailOtp:f==="login"?u.verifyLoginPhoneOtp:u.verifyPhoneOtp,{error:h}=await v(m);if(h)return{next:null,error:"Verification failed."};if(f==="login")return await c(),{next:"home",error:null};if(s==="phone"){const{error:$}=await u.requestEmailOtp();return $?{next:null,error:"Failed to send Email code. If this persists, refresh the page and try registering again."}:{next:"verify_email",error:null}}return r.passkeySupported?{next:"register_passkey",error:null}:(await c(),{next:"home",error:null})}function A3(l){const r=Math.max(0,Math.floor(l));return`${Math.floor(r/60).toString().padStart(2,"0")}:${(r%60).toString().padStart(2,"0")}`}function $$(l,r){return r==="numeric"?/^\d$/.test(l):/^[a-zA-Z]$/.test(l)}function _$(l,r){return(r==="numeric"?l.replace(/\D/g,""):l.replace(/[^a-zA-Z]/g,"")).split("")}async function b$(l){try{return l.isSupported()&&await l.isPlatformAuthenticatorAvailable()}catch{return!1}}const j3=[0,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],M3=[0,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49];function z3(l){let r=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;r-=(25*u-10)*u-55,l>=7&&(r-=36)}return r}function D3(l){return Math.floor(z3(l)/8)-j3[l]*M3[l]}function _d(l,r){let u=0;for(let c=7;c>=0;c--)u=u<<1^285*(u>>>7),u^=(r>>>c&1)*l;return u}function S$(l,r){const u=r.map(()=>0);for(const c of l){const s=c^u.shift();u.push(0),r.forEach((f,m)=>u[m]^=_d(f,s))}return u}function E$(l,r){const u=[],c=(A,R)=>{for(let B=R-1;B>=0;B--)u.push(A>>>B&1)};c(4,4),c(l.length,r<10?8:16),l.forEach(A=>c(A,8));const s=8*D3(r);c(0,Math.min(4,s-u.length)),c(0,(8-u.length%8)%8);for(let A=236;u.length<s;A^=253)c(A,8);const f=[];for(let A=0;A<u.length;A+=8)f.push(u.slice(A,A+8).reduce((R,B)=>R<<1|B,0));const m=M3[r],v=j3[r],h=Math.floor(z3(r)/8),$=m-h%m,_=Math.floor(h/m)-v,p=(function(A){const R=new Array(A).fill(0);R[A-1]=1;let B=1;for(let X=0;X<A;X++){for(let Y=0;Y<A;Y++)R[Y]=_d(R[Y],B),Y+1<A&&(R[Y]^=R[Y+1]);B=_d(B,2)}return R})(v),x=[],M=[];for(let A=0,R=0;A<m;A++){const B=f.slice(R,R+_+(A<$?0:1));R+=B.length,x.push(B),M.push(S$(B,p))}const z=[];for(let A=0;A<=_;A++)x.forEach(R=>{A<R.length&&z.push(R[A])});for(let A=0;A<v;A++)M.forEach(R=>z.push(R[A]));return z}const U3=[(l,r)=>(l+r)%2==0,(l,r)=>r%2==0,l=>l%3==0,(l,r)=>(l+r)%3==0,(l,r)=>(Math.floor(l/3)+Math.floor(r/2))%2==0,(l,r)=>l*r%2+l*r%3==0,(l,r)=>(l*r%2+l*r%3)%2==0,(l,r)=>((l+r)%2+l*r%3)%2==0];class qd{constructor(r){this.version=r,this.size=4*r+17,this.dark=Array.from({length:this.size},()=>new Array(this.size).fill(!1)),this.reserved=this.dark.map(u=>u.slice())}clone(){const r=new qd(this.version);return this.dark.forEach((u,c)=>r.dark[c]=u.slice()),this.reserved.forEach((u,c)=>r.reserved[c]=u.slice()),r}set(r,u,c){this.dark[u][r]=c,this.reserved[u][r]=!0}drawFunctionPatterns(){const{size:r,version:u}=this;for(let f=0;f<r;f++)this.set(6,f,f%2==0),this.set(f,6,f%2==0);for(const[f,m]of[[3,3],[r-4,3],[3,r-4]])for(let v=-4;v<=4;v++)for(let h=-4;h<=4;h++){const $=f+h,_=m+v,p=Math.max(Math.abs(h),Math.abs(v));$>=0&&$<r&&_>=0&&_<r&&this.set($,_,p!==2&&p!==4)}const c=(function(f){if(f===1)return[];const m=Math.floor(f/7)+2,v=f===32?26:2*Math.ceil((4*f+4)/(2*m-2)),h=[6];for(let $=4*f+10;h.length<m;$-=v)h.splice(1,0,$);return h})(u),s=c.length-1;if(c.forEach((f,m)=>c.forEach((v,h)=>{if(!(m===0&&h===0||m===0&&h===s||m===s&&h===0))for(let $=-2;$<=2;$++)for(let _=-2;_<=2;_++)this.set(v+_,f+$,Math.max(Math.abs(_),Math.abs($))!==1)})),this.drawFormat(0),u>=7){let f=u;for(let v=0;v<12;v++)f=f<<1^7973*(f>>>11);const m=u<<12|f;for(let v=0;v<18;v++){const h=(m>>>v&1)==1,$=r-11+v%3,_=Math.floor(v/3);this.set($,_,h),this.set(_,$,h)}}}drawFormat(r){let u=r;for(let m=0;m<10;m++)u=u<<1^1335*(u>>>9);const c=21522^(r<<10|u),s=m=>(c>>>m&1)==1,{size:f}=this;for(let m=0;m<=5;m++)this.set(8,m,s(m));this.set(8,7,s(6)),this.set(8,8,s(7)),this.set(7,8,s(8));for(let m=9;m<15;m++)this.set(14-m,8,s(m));for(let m=0;m<8;m++)this.set(f-1-m,8,s(m));for(let m=8;m<15;m++)this.set(8,f-15+m,s(m));this.set(8,f-8,!0)}drawCodewords(r){const{size:u}=this;let c=0;for(let s=u-1;s>=1;s-=2){s===6&&(s=5);const f=!(s+1&2);for(let m=0;m<u;m++){const v=f?u-1-m:m;for(let h=0;h<2;h++){const $=s-h;!this.reserved[v][$]&&c<8*r.length&&(this.dark[v][$]=(r[c>>>3]>>>7-(7&c)&1)==1,c++)}}}}applyMask(r){const u=U3[r];for(let c=0;c<this.size;c++)for(let s=0;s<this.size;s++)!this.reserved[c][s]&&u(s,c)&&(this.dark[c][s]=!this.dark[c][s])}}const x$=[[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0]];function yh(l){let r=0,u=1;for(let c=1;c<=l.length;c++)c<l.length&&l[c]===l[c-1]?u++:(u>=5&&(r+=u-2),u=1);for(let c=0;c+11<=l.length;c++)x$.some(s=>s.every((f,m)=>l[c+m]===f))&&(r+=40);return r}function N$(l){const r=l.length;let u=0,c=0;for(let s=0;s<r;s++){u+=yh(l[s]),u+=yh(l.map(f=>f[s]));for(let f=0;f<r;f++)l[s][f]&&c++,f+1<r&&s+1<r&&l[s][f]===l[s][f+1]&&l[s][f]===l[s+1][f]&&l[s][f]===l[s+1][f+1]&&(u+=3)}return u+10*Math.floor(Math.abs(100*c/(r*r)-50)/5)}function T$(l){const r=(function(m){const v=[];for(let h=0;h<m.length;h++){let $=m.charCodeAt(h);if($>=55296&&$<=56319&&h+1<m.length){const _=m.charCodeAt(h+1);_>=56320&&_<=57343&&($=65536+($-55296<<10)+(_-56320),h++)}$>=55296&&$<=57343&&($=65533),$<128?v.push($):$<2048?v.push(192|$>>6,128|63&$):$<65536?v.push(224|$>>12,128|$>>6&63,128|63&$):v.push(240|$>>18,128|$>>12&63,128|$>>6&63,128|63&$)}return v})(l);let u=1;for(;4+(u<10?8:16)+8*r.length>8*D3(u);)if(++u>40)throw new RangeError(`Text of ${r.length} bytes does not fit in a QR code`);const c=new qd(u);c.drawFunctionPatterns(),c.drawCodewords(E$(r,u));let s=[],f=1/0;for(let m=0;m<U3.length;m++){const v=c.clone();v.applyMask(m),v.drawFormat(m);const h=N$(v.dark);h<f&&(s=v.dark,f=h)}return s}function O$(l){const r=T$(l);let u="";return r.forEach((c,s)=>{for(let f=0;f<c.length;f++){if(!c[f])continue;const m=f;for(;f+1<c.length&&c[f+1];)f++;const v=f-m+1;u+=`M${m+4} ${s+4}h${v}v1h-${v}z`}}),{size:r.length+8,path:u}}async function C$(l){try{const{data:r,error:u}=await l.getPublicSystemConfig();return{recoveryCodes:!u&&r?.recoveryCodes===!0,accountRecovery:!u&&r?.accountRecovery===!0}}catch{return{recoveryCodes:!1,accountRecovery:!1}}}const L3={invalid_recovery_code:"That code is not valid. Check it and try again. Each recovery code works once.",recovery_codes_disabled:"Recovery codes are turned off for this application.",account_recovery_disabled:"Account recovery is turned off for this application.",recovery_notice_failed:"Recovery was not started because we could not notify you at the addresses on your account. Try again later.",recovery_not_found:"There is no open recovery request for this sign-in. Start recovery again.",recovery_not_ready:"This recovery request is still waiting. Come back once the waiting period ends.",cancel_token_required:"This cancel link is incomplete. Open the link from the notice again.",enrollment_required:"Add a new passkey to finish recovering your account."},R$="Something went wrong. Please try again.";function Ir(l,r=R$){const u=_3(l);return u?L3[u]:r}function w$(l){const r=l.startsWith("#")?l.slice(1):l;let u;try{u=decodeURIComponent(r).trim()}catch{return null}return u===""?null:u}async function A$(l,r){if(!r)return{kind:"error",message:L3.cancel_token_required};const{error:u}=await l.cancelAccountRecovery(r);return u?{kind:"error",message:Ir(u,"We could not cancel the recovery request. Try the link again.")}:{kind:"cancelled"}}async function j$(l){const r=await l.client.generateRecoveryCodes();if(!r.error)return{kind:"generated",codes:r.data};if(!U5(r.error))return{kind:"error",message:Ir(r.error,"Failed to generate recovery codes.")};if((await l.verifyStepUp()).error)return{kind:"error",message:"Confirm it is you to replace your recovery codes."};const u=await l.client.generateRecoveryCodes();return u.error?{kind:"error",message:Ir(u.error,"Failed to generate recovery codes.")}:{kind:"generated",codes:u.data}}function M$(l,r="your account"){return[`Recovery codes for ${r}. Each code works once.`,"",...l,""].join(`
|
|
17
|
-
`)}const z$="Passkey sign-in could not be completed. Choose another sign-in method.";async function D$(l,r){const{data:u,error:c}=await l.login(r.identifier,r.passkeySupported);if(c)return{kind:"error",message:"Failed to start sign-in. Please try again."};const s=u?.loginMethods?.length?u.loginMethods:r.configuredMethods??X5;if(r.passkeySupported&&s.includes("passkey")){const{error:f}=await l.handlePasskeyLogin();return f?{kind:"choose_method",loginMethods:s,passkeyFailed:!0}:{kind:"signed_in"}}return{kind:"choose_method",loginMethods:s,passkeyFailed:!1}}async function U$(l,r){const{data:u,error:c}=await l.register({email:r});return c?{error:"Failed to register. Please try again."}:u.message!=="Success"?{error:"An unexpected error occurred. Try again. If the problem persists, contact support."}:{error:null}}async function L$(l,r){try{const{error:u}=await l.client.registerPasskey({metadata:V5(),attachment:r});if(u)throw u;return await l.refreshSession(),{error:null}}catch(u){return console.error("Passkey registration failed."),{error:o$(u)}}}const gh=6,k$="Something went wrong. Please try again.";function Yu(l,r=k$){if(!(l instanceof Kt))return r;const u=(function(c){const s=c.body?.error;return typeof s=="string"?s:void 0})(l);if(u==="totp_verification_failed"||u==="totp_disable_failed")return"That code did not work. Enter the current code from your authenticator app. Each code works once.";if(l.status===423||u==="account_locked"){const c=(function(f){const m=f.body?.retryAfterSeconds;return typeof m=="number"&&m>0?m:void 0})(l);if(!c)return"Too many failed attempts. Try again later.";const s=Math.ceil(c/60);return`Too many failed attempts. Try again in ${s} ${s===1?"minute":"minutes"}.`}return l.status===429?"Too many attempts. Wait a moment, then try again.":u==="login_method_disabled"?"This account signs in with a passkey. Use your passkey instead.":u==="secret_required"?"Authenticator apps are not available for this application yet.":r}function H$(l){return l.replace(/\s+/g,"").match(/.{1,4}/g)?.join(" ")??""}async function B$(l,r){const u=r.replace(/\s+/g,"");if(!new RegExp("^\\d{6}$").test(u))return{error:"Enter the 6-digit code from your authenticator app."};const{error:c}=await l.client.verifyTotpLogin(u);return c?{error:Yu(c,"We could not sign you in with that code.")}:(await l.refreshSession(),{error:null})}function G$(l,r){const u=l.trim(),c=r.trim();if(!u||!c)return!1;if(u===c)return!0;if(u.endsWith(":*")){const _=u.slice(0,-2);return c===_||c.startsWith(`${_}:`)}if(!c.includes(":"))return!1;if(!u.includes(":"))return c.startsWith(`${u}:`);const s=u.split(":"),f=c.split(":"),m=s[s.length-1],v=f[f.length-1],h=s.slice(0,-1),$=f.slice(0,-1);return m==="write"&&v==="read"&&h.length===$.length&&h.every((_,p)=>_===$[p])}function q$(l,r){if(!Array.isArray(l))return!1;const u=l.filter(c=>typeof c=="string");return(Array.isArray(r)?r:[r]).some(c=>u.some(s=>G$(s,c)))}function P$(){const l=new Map;return{get:r=>l.get(r)??null,set:(r,u)=>{l.set(r,u)}}}function Y$(){return{get:l=>{try{return localStorage.getItem(l)}catch{return null}},set:(l,r)=>{try{localStorage.setItem(l,r)}catch{}}}}function V$(){return typeof localStorage>"u"?P$():Y$()}const vh="seamlessauth_seen",ph={user:null,credentials:[],organizations:[],activeOrganization:null,stepUpStatus:null,isAuthenticated:!1,recoverySession:!1};function $h(l){return{user:l.user,credentials:l.credentials??[],organizations:l.organizations??[],activeOrganization:l.activeOrganization??null,isAuthenticated:!0,recoverySession:l.recovery===!0}}function X$(l){const{apiHost:r,detectPreviousSignIn:u=!0,client:c,storage:s,initialSession:f,...m}=l,v=c??P5({...m,apiHost:r}),h=s??V$(),$=new Set,_=h$();let p=!1,x=0;const M={...ph,...f?$h(f):{},loading:f===void 0,hasSignedInBefore:!1};let z={...M,hasSignedInBefore:u&&h.get(vh)==="true"};function A(U){const H={...z,...U};Object.keys(U).some(q=>z[q]!==H[q])&&(z=H,$.forEach(q=>q()))}function R(){h.set(vh,"true"),u&&A({hasSignedInBefore:!0})}function B(){A(ph)}async function X({background:U=!1}={}){const H=++x;U||A({loading:!0});const q=await v.getCurrentUser();return p||H!==x?q:q.error?(B(),A({loading:!1}),q):(A({...$h(q.data),recoverySession:v.isRecoverySession(),loading:!1}),z.hasSignedInBefore||R(),q)}async function Y(U){const H=await U();return H.error||await X(),H}return{getState:()=>z,getServerState:()=>M,subscribe:U=>($.add(U),()=>{$.delete(U)}),actions:{login:(U,H)=>v.login({identifier:U,passkeyAvailable:H}),handlePasskeyLogin:()=>Y(()=>v.loginWithPasskey()),redeemRecoveryCode:U=>Y(()=>v.redeemRecoveryCode(U)),completeAccountRecovery:()=>Y(()=>v.completeAccountRecovery()),registerPasskey:U=>Y(()=>v.registerPasskey(U)),refreshSession:X,logout:async function(){try{return await v.logout()}finally{B()}},logoutAllSessions:async function(){try{return await v.logoutAllSessions()}finally{B()}},deleteUser:async()=>{const U=await v.deleteUser();return U.error||B(),U},updateCredential:async U=>{const{data:H,error:q}=await v.updateCredential({friendlyName:U.friendlyName??null,id:U.id});if(q)return{data:null,error:q};const K=H.credential;return A({credentials:z.credentials.map(Q=>Q.id===K.id?{...Q,...K}:Q)}),{data:K,error:null}},deleteCredential:async U=>{const H=await v.deleteCredential(U);return H.error||A({credentials:z.credentials.filter(q=>q.id!==U)}),H},switchOrganization:U=>Y(()=>v.switchOrganization(U)),listOAuthProviders:()=>v.listOAuthProviders(),startOAuthLogin:async U=>{const H=await v.startOAuthLogin(U);return H.error||(H.data.binding?_.save({state:H.data.state,binding:H.data.binding}):_.clear()),H},finishOAuthLogin:async U=>{const H=U.binding??_.read(U.state);try{return await Y(()=>v.finishOAuthLogin(H?{...U,binding:H}:U))}finally{_.clear()}},refreshStepUpStatus:async()=>{const U=await v.getStepUpStatus();return A({stepUpStatus:U.error?null:U.data}),U},verifyStepUpWithPasskey:async()=>{const U=await v.verifyStepUpWithPasskey();return U.error||A({stepUpStatus:U.data}),U},verifyStepUpWithPasskeyPrf:async U=>{const H=await v.verifyStepUpWithPasskeyPrf(U);return H.error||A({stepUpStatus:{fresh:H.data.fresh,method:H.data.method,verifiedAt:H.data.verifiedAt,expiresAt:H.data.expiresAt,maxAgeSeconds:H.data.maxAgeSeconds}}),H},verifyStepUpWithTotp:async U=>{const H=await v.verifyStepUpWithTotp(U);return H.error||A({stepUpStatus:H.data}),H},hasRole:U=>z.user?.roles?.includes(U),hasScopedRole:U=>z.user?q$(z.user.roles,U):void 0,markSignedIn:R},client:v,destroy:()=>{p=!0,$.clear()}}}const k3=b.createContext(void 0),Ie=()=>{const l=b.useContext(k3);if(!l)throw new Error("useAuth must be used within an AuthProvider");return l},F$=({children:l,apiHost:r,autoDetectPreviousSignin:u=!0,magicLinkRedirectUri:c,transport:s,ports:f,initialSession:m})=>{const v=b.useMemo(()=>({passkeys:f?.passkeys??v3(),oauthRedirect:f?.oauthRedirect??d$()}),[f?.passkeys,f?.oauthRedirect]);if(s?.mode==="bearer")throw new TypeError("@seamless-auth/react is cookie transport only, so the browser never holds the tokens. Use @seamless-auth/react-native for bearer transport in a native app.");const{basePath:h,fetch:$,trustedOrigins:_}=s??{},p=_?JSON.stringify(_):void 0,x=b.useMemo(()=>s?{mode:"cookie",basePath:h,fetch:$,trustedOrigins:p?JSON.parse(p):void 0}:void 0,[h,$,p]),M=b.useRef(m),z=b.useMemo(()=>X$({apiHost:r,magicLinkRedirectUri:c,transport:x,passkeys:v.passkeys,detectPreviousSignIn:u,initialSession:M.current}),[r,c,x,v.passkeys,u]),A=b.useSyncExternalStore(z.subscribe,z.getState,z.getServerState);b.useEffect(()=>{z.actions.refreshSession({background:M.current!==void 0})},[z]);const R=b.useMemo(()=>({...A,...z.actions,apiHost:r,magicLinkRedirectUri:c,client:z.client,ports:v}),[A,z,r,c,v]);return y.jsx(k3.Provider,{value:R,children:l})};function _n(l,r){r===void 0&&(r={});var u=r.insertAt;if(l&&typeof document<"u"){var c=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",u==="top"&&c.firstChild?c.insertBefore(s,c.firstChild):c.appendChild(s),s.styleSheet?s.styleSheet.cssText=l:s.appendChild(document.createTextNode(l))}}var K$="otpInput-module__otpContainer___MUjby",Z$="otpInput-module__otpInput___3YMVm";_n(".otpInput-module__otpContainer___MUjby{display:flex;gap:8px;justify-content:center;margin-top:8px}.otpInput-module__otpInput___3YMVm{background:var(--seamless-surface-raised,#374151);border:1px solid var(--seamless-border,#4b5563);border-radius:8px;color:var(--seamless-text,#fff);font-size:1.2rem;height:48px;text-align:center;transition:border-color .15s ease,box-shadow .15s ease;width:42px}.otpInput-module__otpInput___3YMVm:focus{border-color:var(--seamless-accent,#60a5fa);box-shadow:0 0 0 2px var(--seamless-accent,rgba(96,165,250,.25));outline:none}");const Wu=({length:l=6,value:r,inputMode:u="numeric",onChange:c,name:s="otp"})=>{const f=b.useRef([]),m=r.split("").concat(Array(l).fill("")).slice(0,l),v=(h,$)=>{const _=_$($,u).slice(0,l),p=[...m];_.forEach((x,M)=>{h+M<l&&(p[h+M]=x)}),c(p.join("")),f.current[Math.min(h+_.length,l-1)]?.focus()};return y.jsx("div",{className:K$,role:"group","aria-label":"One-time password input",onPaste:h=>{h.preventDefault(),v(0,h.clipboardData.getData("text"))},children:m.map((h,$)=>y.jsx("input",{ref:_=>f.current[$]=_,type:"text",inputMode:u==="numeric"?"numeric":"text",autoComplete:"one-time-code",name:`${s}-${$}`,maxLength:1,value:h,className:Z$,onChange:_=>((p,x)=>{if(x.length>1)v(p,x);else if(!x||$$(x,u)){const M=[...m];M[p]=x;const z=M.join("");c(z),x&&f.current[p+1]&&f.current[p+1]?.focus()}})($,_.target.value),onKeyDown:_=>((p,x)=>{if(x.key==="Backspace"){x.preventDefault();const M=[...m];m[p]?(M[p]="",c(M.join(""))):p>0&&(M[p-1]="",c(M.join("")),f.current[p-1]?.focus())}x.key==="ArrowLeft"&&p>0&&f.current[p-1]?.focus(),x.key==="ArrowRight"&&p<l-1&&f.current[p+1]?.focus()})($,_),"aria-label":`Digit ${$+1}`},$))})};var P={container:"recovery-module__container___QvUlz",card:"recovery-module__card___DENVH",title:"recovery-module__title___YldoC",description:"recovery-module__description___V6XuC",form:"recovery-module__form___E5BG6",label:"recovery-module__label___94Ob1",input:"recovery-module__input___aZC2k",button:"recovery-module__button___H8Tvz",secondary:"recovery-module__secondary___Uk6xk",link:"recovery-module__link___QwMHd",choices:"recovery-module__choices___yVsxl",error:"recovery-module__error___aknVn",success:"recovery-module__success___AjjM2",codes:"recovery-module__codes___p6dPw",actions:"recovery-module__actions___JaBq6",confirm:"recovery-module__confirm___JO6f6",loading:"recovery-module__loading___fJV2j"};_n(".recovery-module__container___QvUlz{align-items:center;color:var(--seamless-text,#fff);display:flex;justify-content:center;padding:1rem}.recovery-module__card___DENVH{background-color:var(--seamless-surface,#1f2937);border-radius:.5rem;box-shadow:0 4px 6px var(--seamless-shadow,rgba(0,0,0,.1));max-width:28rem;padding:2rem;width:100%}.recovery-module__title___YldoC{font-size:1.5rem;font-weight:700;margin-bottom:1rem;text-align:center}.recovery-module__description___V6XuC{color:var(--seamless-text-muted,#d1d5db);margin-bottom:1rem}.recovery-module__form___E5BG6{display:flex;flex-direction:column;gap:1rem}.recovery-module__label___94Ob1{color:var(--seamless-text-muted,#d1d5db);display:block}.recovery-module__input___aZC2k{background-color:var(--seamless-surface-raised,#4b5563);border:1px solid var(--seamless-border,#d1d5db);border-radius:.375rem;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em;margin-top:.25rem;padding:.5rem;width:100%}.recovery-module__input___aZC2k:focus{box-shadow:0 0 0 2px var(--seamless-accent,#3b82f6);outline:none}.recovery-module__button___H8Tvz{background-color:var(--seamless-accent,#3b82f6);border:none;border-radius:.5rem;color:var(--seamless-accent-contrast,#fff);cursor:pointer;font-weight:500;padding:.75rem 1rem;width:100%}.recovery-module__button___H8Tvz:hover:not(:disabled){background-color:var(--seamless-accent-hover,#2563eb)}.recovery-module__button___H8Tvz:disabled{cursor:default;opacity:.6}.recovery-module__secondary___Uk6xk{background:none;border:1px solid var(--seamless-accent,#3b82f6);border-radius:.5rem;color:var(--seamless-accent,#3b82f6);cursor:pointer;font-weight:500;padding:.75rem 1rem;width:100%}.recovery-module__secondary___Uk6xk:disabled{cursor:default;opacity:.6}.recovery-module__link___QwMHd{background:none;border:none;color:var(--seamless-accent-soft,#60a5fa);cursor:pointer;font-size:.875rem;text-align:center;width:100%}.recovery-module__choices___yVsxl{display:flex;flex-direction:column;gap:.75rem}.recovery-module__error___aknVn{color:var(--seamless-danger,#f87171);font-size:.875rem}.recovery-module__success___AjjM2{color:var(--seamless-success,#6ee7b7);font-size:.875rem}.recovery-module__codes___p6dPw{background-color:var(--seamless-surface-raised,#374151);border-radius:.5rem;display:grid;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1rem;gap:.5rem;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:0 0 1rem;padding:1rem;text-align:center}.recovery-module__actions___JaBq6{display:flex;gap:.5rem;margin-bottom:1rem}.recovery-module__actions___JaBq6>button{flex:1}.recovery-module__confirm___JO6f6{align-items:flex-start;display:flex;font-size:.875rem;gap:.5rem;margin-bottom:1rem}.recovery-module__loading___fJV2j{color:var(--seamless-text-muted,#d1d5db);text-align:center}");var Q$="totp-module__qr___PgNS3",I$="totp-module__setupKey___tdGsC",J$="totp-module__appLink___W3GEb",H3="totp-module__form___t4zpM",W$="totp-module__prompt___Kq-iK";_n(".totp-module__qr___PgNS3{border-radius:.25rem;display:block;height:12rem;margin:0 auto 1rem;width:12rem}.totp-module__setupKey___tdGsC{background-color:var(--seamless-surface-raised,#374151);border-radius:.5rem;display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1rem;letter-spacing:.05em;margin:.25rem 0 .5rem;padding:.75rem;text-align:center;word-break:break-all}.totp-module__appLink___W3GEb{color:var(--seamless-accent-soft,#60a5fa);display:block;font-size:.875rem;margin-bottom:1rem;text-align:center}.totp-module__form___t4zpM{display:flex;flex-direction:column;gap:1rem}.totp-module__prompt___Kq-iK{border:1px solid var(--seamless-border,#4b5563);border-radius:.5rem;display:flex;flex-direction:column;gap:.75rem;margin-top:1rem;padding:1rem}");const Pd=({submitLabel:l,busyLabel:r="Checking...",onSubmit:u,buttonClassName:c=P.button,children:s})=>{const[f,m]=b.useState(""),[v,h]=b.useState(""),[$,_]=b.useState(!1);return y.jsxs("form",{onSubmit:async p=>{p.preventDefault(),h(""),_(!0);const x=await u(f);_(!1),x&&(h(x),m(""))},className:H3,children:[y.jsx(Wu,{length:gh,value:f,onChange:m,name:"totp",inputMode:"numeric"}),v&&y.jsx("p",{role:"alert",className:P.error,children:v}),y.jsx("button",{type:"submit",className:c,disabled:$||f.length!==gh,children:$?r:l}),s]})},e6=({value:l})=>{const r=b.useMemo(()=>{try{return O$(l)}catch{return null}},[l]);return r?y.jsxs("svg",{role:"img","aria-label":"QR code for your authenticator app",className:Q$,viewBox:`0 0 ${r.size} ${r.size}`,shapeRendering:"crispEdges",children:[y.jsx("rect",{width:r.size,height:r.size,fill:"#ffffff"}),y.jsx("path",{d:r.path,fill:"#000000"})]}):null},Nt=()=>Ie().client,t6=({onEnrolled:l,buttonClassName:r,children:u})=>{const c=Nt(),{refreshSession:s}=Ie(),[f,m]=b.useState(null),[v,h]=b.useState(""),[$,_]=b.useState(""),p=b.useRef(!1),x=b.useCallback(async()=>{h("");const{data:z,error:A}=await c.startTotpEnrollment();A?h(Yu(A,"We could not start setting up your authenticator app.")):m(z)},[c]);if(b.useEffect(()=>{p.current||(p.current=!0,x())},[x]),!f)return y.jsxs("div",{className:H3,children:[v?y.jsxs(y.Fragment,{children:[y.jsx("p",{role:"alert",className:P.error,children:v}),y.jsx("button",{type:"button",className:r??P.button,onClick:()=>{x()},children:"Try again"})]}):y.jsx("p",{role:"status",className:P.loading,children:"Preparing your setup key..."}),u]});const M=f.otpauthUrl.startsWith("otpauth://")?f.otpauthUrl:null;return y.jsxs("div",{children:[y.jsx("p",{className:P.description,children:"Scan this QR code with your authenticator app, or enter the setup key by hand."}),M&&y.jsx(e6,{value:M}),M&&y.jsx("a",{href:M,className:J$,children:"Open in an authenticator app on this device"}),y.jsx("p",{className:P.label,children:"Setup key"}),y.jsx("code",{className:I$,children:H$(f.secret)}),y.jsx("div",{className:P.actions,children:y.jsx("button",{type:"button",className:P.secondary,onClick:async()=>{if(f)try{await navigator.clipboard.writeText(f.secret),_("Copied to the clipboard.")}catch{_("Copying is not available here. Type the key in instead.")}},children:"Copy key"})}),$&&y.jsx("p",{role:"status",className:P.success,children:$}),y.jsx("p",{className:P.description,children:"Then enter the 6-digit code the app shows."}),y.jsx(Pd,{submitLabel:"Verify code",busyLabel:"Verifying...",onSubmit:async z=>{const{error:A}=await c.verifyTotpEnrollment(z);return A?Yu(A,"We could not verify that code."):(await s(),l(),null)},buttonClassName:r,children:u})]})},eo=()=>{const{ports:l}=Ie(),[r,u]=b.useState(!1),[c,s]=b.useState(!0);return b.useEffect(()=>{let f=!0;return b$(l.passkeys).then(m=>{f&&(u(m),s(!1))}),()=>{f=!1}},[l.passkeys]),{passkeySupported:r,loading:c}},n6=({codes:l,onDone:r,doneLabel:u="Continue"})=>{const[c,s]=b.useState(!1),[f,m]=b.useState("");return y.jsxs("div",{children:[y.jsx("p",{className:P.description,children:"Save these codes somewhere safe, such as a password manager. Each one signs you in once if you lose your passkeys. You will not see them again."}),y.jsx("ul",{className:P.codes,"aria-label":"Recovery codes",children:l.map(v=>y.jsx("li",{children:v},v))}),y.jsxs("div",{className:P.actions,children:[y.jsx("button",{type:"button",className:P.secondary,onClick:async()=>{try{await navigator.clipboard.writeText(l.join(`
|
|
18
|
-
`)),m("Copied to the clipboard.")}catch{m("Copying is not available here. Write the codes down instead.")}},children:"Copy"}),y.jsx("button",{type:"button",className:P.secondary,onClick:()=>{const v=URL.createObjectURL(new Blob([M$(l)],{type:"text/plain"})),h=document.createElement("a");h.href=v,h.download="recovery-codes.txt",h.click(),URL.revokeObjectURL(v)},children:"Download"})]}),f&&y.jsx("p",{role:"status",className:P.success,children:f}),y.jsxs("label",{className:P.confirm,children:[y.jsx("input",{type:"checkbox",checked:c,onChange:v=>s(v.target.checked)}),"I have saved these recovery codes"]}),y.jsx("button",{type:"button",className:P.button,disabled:!c,onClick:r,children:u})]})};function a6(){const l=Nt(),{credentials:r,verifyStepUpWithPasskey:u,verifyStepUpWithTotp:c}=Ie(),[s,f]=b.useState(!1),m=b.useRef(null),v=b.useRef(!1),h=b.useCallback(async()=>{v.current=!1;const{data:_}=await l.getTotpStatus();return _?.enabled?(f(!0),new Promise(p=>{m.current=p})):u()},[l,u]),$=_=>{f(!1),m.current?.(_),m.current=null};return{verifyStepUp:h,prompt:s?y.jsxs("div",{className:W$,role:"group","aria-label":"Confirm it is you",children:[y.jsx("p",{className:P.description,children:"Confirm it is you. Enter the current code from your authenticator app."}),y.jsxs(Pd,{submitLabel:"Confirm",onSubmit:async _=>{const p=await c(_);return p.error?Yu(p.error,"We could not verify that code."):($(p),null)},children:[(r?.length??0)>0&&y.jsx("button",{type:"button",className:P.secondary,onClick:()=>{(async()=>$(await u()))()},children:"Use your passkey instead"}),y.jsx("button",{type:"button",className:P.link,onClick:()=>{v.current=!0,$({data:null,error:new Kt("Step-up cancelled.",0)})},children:"Cancel"})]})]}):null,cancelled:()=>v.current}}const B3=()=>{const l=Nt(),[r,u]=b.useState(null),[c,s]=b.useState(!0);return b.useEffect(()=>{let f=!0;return F5(l).then(m=>{f&&(m&&u(m),s(!1))}),()=>{f=!1}},[l]),{loginMethods:r,loading:c}},l6=()=>{const l=Nt(),[r,u]=b.useState({recoveryCodes:!1,accountRecovery:!1}),[c,s]=b.useState(!0);return b.useEffect(()=>{let f=!0;return C$(l).then(m=>{f&&(u(m),s(!1))}),()=>{f=!1}},[l]),{...r,loading:c}};_n(".accountSecurity-module__section___WD7WD{background-color:var(--seamless-surface,#1f2937);border-radius:.5rem;color:var(--seamless-text,#fff);margin-bottom:1rem;padding:1.5rem}.accountSecurity-module__heading___GikWB{font-size:1.125rem;font-weight:600;margin:0 0 .5rem}.accountSecurity-module__description___aUHsR{color:var(--seamless-text-muted,#d1d5db);font-size:.875rem;margin:0 0 1rem}.accountSecurity-module__notice___XKlo2{border-left:3px solid var(--seamless-accent,#3b82f6);font-size:.875rem;margin:0 0 1rem;padding:.5rem .75rem}.accountSecurity-module__warning___6-0vc{border-left:3px solid var(--seamless-danger,#f87171);font-size:.875rem;margin:0 0 1rem;padding:.5rem .75rem}.accountSecurity-module__list___A5K5L{display:flex;flex-direction:column;gap:.75rem;list-style:none;margin:0 0 1rem;padding:0}.accountSecurity-module__item___6j-XO{border:1px solid var(--seamless-border,#4b5563);border-radius:.5rem;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;padding:.75rem}.accountSecurity-module__itemName___eqMtZ{font-weight:600}.accountSecurity-module__meta___J3mVP{color:var(--seamless-text-muted,#9ca3af);font-size:.8125rem;margin:.25rem 0 0}.accountSecurity-module__itemActions___MQY-g{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem}.accountSecurity-module__input___sZcEB{background-color:var(--seamless-surface-raised,#4b5563);border:1px solid var(--seamless-border,#d1d5db);border-radius:.375rem;color:inherit;padding:.375rem .5rem}.accountSecurity-module__button___ea-6Z{background-color:var(--seamless-accent,#3b82f6);border:none;border-radius:.375rem;color:var(--seamless-accent-contrast,#fff);cursor:pointer;font-weight:500;padding:.5rem .875rem}.accountSecurity-module__button___ea-6Z:disabled,.accountSecurity-module__danger___-i8vC:disabled,.accountSecurity-module__secondary___cAXbn:disabled{cursor:default;opacity:.6}.accountSecurity-module__secondary___cAXbn{background:none;border:1px solid var(--seamless-accent,#3b82f6);border-radius:.375rem;color:var(--seamless-accent,#3b82f6);cursor:pointer;padding:.5rem .875rem}.accountSecurity-module__danger___-i8vC{background:none;border:1px solid var(--seamless-danger,#f87171);border-radius:.375rem;color:var(--seamless-danger,#f87171);cursor:pointer;padding:.5rem .875rem}.accountSecurity-module__error___AsI2f{color:var(--seamless-danger,#f87171);font-size:.875rem}.accountSecurity-module__success___WPyJs{color:var(--seamless-success,#6ee7b7);font-size:.875rem}");const Bl="/login",r6="/passkey-login",G3="/verify-phone-otp",Vu="/verify-email-otp",i6="/verify-magiclink",u6="/oauth/callback",Ga="/register-passkey",q3="/register-authenticator",P3="/magic-link-sent",Y3="/recovery-code",V3="/authenticator-code",Yd="/recovery-codes",X3="/account-recovery",o6="/recovery/cancel";var c6="login-module__container___YggDx",s6="login-module__card___Ub-Py",d6="login-module__heading___neEqb",_h="login-module__inputGroup___P6qgS",bh="login-module__label___mx5vu",Sh="login-module__input___U07lW",f6="login-module__helperText___kDQ4-",Uu="login-module__error___40zxh",m6="login-module__button___0kFBs",h6="login-module__submitHint___qOS5Z",y6="login-module__toggle___1JiG1",g6="login-module__fallbackCard___HdIk-",v6="login-module__fallbackHeader___-il2v",p6="login-module__fallbackDescription___ea5EB",F3="login-module__fallbackActions___AD3ni",Lu="login-module__fallbackActionButton___lFgWf",ku="login-module__actionTitle___ycrMp",nd="login-module__actionSubtext___opaIV",Hu="login-module__linkButton___5lsoe",$6="login-module__recoveryOptions___iP2ZA";_n(".login-module__container___YggDx{align-items:center;color:var(--seamless-text,#fff);display:flex;justify-content:center}.login-module__card___Ub-Py{background-color:var(--seamless-surface,#1f2937);border-radius:.5rem;box-shadow:0 4px 6px var(--seamless-shadow,rgba(0,0,0,.1));max-width:28rem;padding:2rem;width:100%}.login-module__heading___neEqb{color:var(--seamless-text,#fff);font-size:1.5rem;font-weight:700;margin-bottom:1.5rem;text-align:center}.login-module__message___qSejT{color:var(--seamless-success,#68d391);text-align:center}.login-module__inputGroup___P6qgS{margin-bottom:1rem}.login-module__label___mx5vu{color:var(--seamless-text-muted,#d1d5db);display:block}.login-module__input___U07lW{background-color:var(--seamless-surface-raised,#4b5563);border:1px solid var(--seamless-border,#d1d5db);border-radius:.375rem;margin-top:.25rem;padding:.5rem;width:100%}.login-module__input___U07lW:focus{box-shadow:0 0 0 2px var(--seamless-accent,#3b82f6);outline:none}.login-module__helperText___kDQ4-{color:var(--seamless-text-muted,#9ca3af);font-size:.75rem;margin-top:.5rem}.login-module__error___40zxh{color:var(--seamless-danger,#f87171);font-size:.875rem}.login-module__button___0kFBs{background-color:var(--seamless-accent,#2563eb);border-radius:.375rem;color:var(--seamless-accent-contrast,#fff);cursor:pointer;margin-top:1rem;padding:.5rem;transition:background-color .3s,opacity .3s;width:100%}.login-module__button___0kFBs:hover:not(:disabled){background-color:var(--seamless-accent-hover,#1d4ed8)}.login-module__button___0kFBs:disabled{cursor:not-allowed;opacity:.6}.login-module__submitHint___qOS5Z{color:var(--seamless-text-muted,#9ca3af);font-size:.75rem;margin-top:.5rem;text-align:center}.login-module__toggle___1JiG1{background:none;border:none;color:var(--seamless-accent-soft,#60a5fa);cursor:pointer;font-size:.875rem;margin-top:1.5rem;text-align:center;width:100%}.login-module__underline___gs-RS{text-decoration:underline}.login-module__phoneRow___oeNtq{display:grid;gap:.5rem;grid-template-columns:1fr 3fr;margin-top:.25rem}.login-module__phoneInput___2MPQC,.login-module__select___rRV1O{background-color:var(--seamless-surface-raised,#4b5563);border:1px solid var(--seamless-border,#d1d5db);border-radius:.375rem;padding:.5rem;width:100%}@media (max-width:500px){.login-module__phoneRow___oeNtq{grid-template-columns:1fr}}.login-module__fallbackCard___HdIk-{background:var(--seamless-surface-raised,hsla(0,0%,100%,.04));border:1px solid var(--seamless-border,hsla(0,0%,100%,.08));border-radius:12px;display:flex;flex-direction:column;gap:14px;margin-top:18px;padding:18px}.login-module__fallbackHeader___-il2v{color:var(--seamless-text,#f3f4f6);font-size:.95rem;font-weight:600}.login-module__fallbackDescription___ea5EB{color:var(--seamless-text-muted,#9ca3af);font-size:.85rem;line-height:1.4}.login-module__fallbackActions___AD3ni{display:flex;flex-direction:column;gap:10px}.login-module__fallbackActionButton___lFgWf{background:var(--seamless-surface,rgba(0,0,0,.25));border:1px solid var(--seamless-border,hsla(0,0%,100%,.08));border-radius:8px;cursor:pointer;display:flex;flex-direction:column;padding:12px 14px;text-align:left;transition:all .15s ease}.login-module__fallbackActionButton___lFgWf:hover{background:var(--seamless-surface-hover,hsla(0,0%,100%,.06));border-color:var(--seamless-border,hsla(0,0%,100%,.15))}.login-module__actionTitle___ycrMp{color:var(--seamless-text,#f9fafb);font-size:.9rem;font-weight:500}.login-module__actionSubtext___opaIV{color:var(--seamless-text-muted,#9ca3af);font-size:.75rem;margin-top:2px}.login-module__linkButton___5lsoe{background:none;border:none;color:var(--seamless-accent-soft,#60a5fa);cursor:pointer;font-size:.8rem;margin-top:6px}.login-module__linkButton___5lsoe:hover{text-decoration:underline}.login-module__recoveryOptions___iP2ZA{align-items:flex-start;display:flex;flex-direction:column;margin-top:.75rem}");const _6=({identifier:l,onMagicLink:r,onEmailOtp:u,onPhoneOtp:c,onPasskeyRetry:s,loginMethods:f})=>{const m=Z5(l,f,{emailOtp:!!u,passkeyRetry:!!s});return Q5(m)?y.jsxs("div",{className:g6,children:[y.jsx("div",{className:v6,children:"Choose a sign-in method"}),y.jsx("p",{className:p6,children:"Choose another secure sign-in method."}),y.jsxs("div",{className:F3,children:[m.magicLink&&y.jsxs("button",{type:"button",className:Lu,onClick:r,children:[y.jsx("span",{className:ku,children:"Email Magic Link"}),y.jsx("span",{className:nd,children:"Send a secure sign-in link to your email"})]}),m.emailOtp&&y.jsxs("button",{type:"button",className:Lu,onClick:u,children:[y.jsx("span",{className:ku,children:"Email Code"}),y.jsx("span",{className:nd,children:"Receive a one-time code by email"})]}),m.phoneOtp&&y.jsxs("button",{type:"button",className:Lu,onClick:c,children:[y.jsx("span",{className:ku,children:"Text Message Code"}),y.jsx("span",{className:nd,children:"Receive a one-time code via SMS"})]})]}),m.passkeyRetry&&y.jsx("button",{type:"button",className:Hu,onClick:s,children:"Try passkey anyway"})]}):null},b6=()=>{const{listOAuthProviders:l,startOAuthLogin:r,finishOAuthLogin:u,ports:c}=Ie(),s=Xh(y$),[f,m]=b.useState([]),[v,h]=b.useState("");return b.useEffect(()=>{let $=!0;return l().then(({data:_})=>{$&&m(_?.providers??[])}),()=>{$=!1}},[l]),f.length===0?null:y.jsxs("div",{className:F3,children:[f.map($=>y.jsx("button",{type:"button",className:Lu,onClick:()=>(async _=>{h("");const p=new URL(s,window.location.origin).toString(),{error:x}=await v$({actions:{startOAuthLogin:r,finishOAuthLogin:u},oauthRedirect:c.oauthRedirect},{providerId:_,redirectUri:p});x&&h(x)})($.id),children:y.jsxs("span",{className:ku,children:["Continue with ",$.name]})},$.id)),v&&y.jsx("p",{className:Uu,children:v})]})},S6=()=>{const l=Qe(),{hasSignedInBefore:r,login:u,handlePasskeyLogin:c,recoverySession:s}=Ie(),f=Nt(),{passkeySupported:m}=eo(),{loginMethods:v}=B3(),h=l6(),[$,_]=b.useState(""),[p,x]=b.useState(""),[M,z]=b.useState("register"),[A,R]=b.useState(""),[B,X]=b.useState(""),[Y,U]=b.useState(""),[H,q]=b.useState(!1),[K,Q]=b.useState(null);b.useEffect(()=>{r&&z("login")},[r]),b.useEffect(()=>{s&&l(Ga,{replace:!0})},[s,l]);const Te=()=>M==="login"?Ul($)||gd($):Ul(p);return y.jsx("div",{className:c6,children:y.jsxs("div",{className:s6,children:[y.jsx("h2",{className:d6,children:M==="login"?"Sign In":"Create Account"}),y.jsxs(y.Fragment,{children:[y.jsxs("form",{onSubmit:async de=>{de.preventDefault(),R(""),q(!1);try{if(M==="login"){const he=await D$({login:u,handlePasskeyLogin:c},{identifier:$,passkeySupported:m,configuredMethods:v});return he.kind==="error"?void R(he.message):he.kind==="signed_in"?void l("/"):(Q(he.loginMethods),q(!0),void(he.passkeyFailed&&R(z$)))}M==="register"&&await(async()=>{R("");const{error:he}=await U$(f,p);he?R(he):l(Vu)})()}catch{console.error("Failed to continue sign-in."),R("Failed to continue sign-in. Please try again.")}},children:[M==="login"&&y.jsxs("div",{className:_h,children:[y.jsx("label",{htmlFor:"identifier",className:bh,children:"Email Address / Phone Number"}),y.jsx("input",{id:"identifier",type:"text",value:$,onChange:de=>{const he=de.target.value;_(he)},autoComplete:"off",placeholder:"Email or Phone Number",className:Sh,onBlur:()=>{if($){const de=Ul($)||gd($);U(de?"":"Please enter a valid email or phone number")}},required:!0}),y.jsx("p",{className:f6,children:"Phone numbers must include a country code e.g. +1"}),H&&y.jsx(_6,{identifier:$,onMagicLink:async()=>{const{error:de}=await f.requestMagicLink();de?R("Failed to send magic link."):l(P3,{state:{identifier:$}})},onEmailOtp:async()=>{const{error:de}=await f.requestLoginEmailOtp();de?R("Failed to send email code."):l(Vu,{state:{flow:"login"}})},onPhoneOtp:async()=>{const{error:de}=await f.requestLoginPhoneOtp();de?R("Failed to send OTP."):l(G3,{state:{flow:"login"}})},onPasskeyRetry:m?c:void 0,loginMethods:K}),H&&y.jsxs("div",{className:$6,children:[y.jsx("button",{type:"button",className:Hu,onClick:()=>l(V3),children:"Use an authenticator app"}),h.recoveryCodes&&y.jsx("button",{type:"button",className:Hu,onClick:()=>l(Y3),children:"Use a recovery code"}),h.accountRecovery&&y.jsx("button",{type:"button",className:Hu,onClick:()=>l(X3),children:"Can't sign in? Recover your account"})]}),Y&&y.jsx("p",{className:Uu,children:Y})]}),M==="register"&&y.jsxs("div",{className:_h,children:[y.jsx("label",{htmlFor:"email",className:bh,children:"Email Address"}),y.jsx("input",{id:"email",type:"email",value:p,onChange:de=>{const he=de.target.value;x(he)},autoComplete:"off",className:Sh,onBlur:()=>{if(p){const de=Ul(p);X(de?"":"Please enter a valid email")}},required:!0}),B&&y.jsx("p",{className:Uu,children:B})]}),y.jsx("button",{type:"submit",className:m6,disabled:!Te(),"aria-describedby":"seamless-submit-hint",children:M==="login"?"Login":"Register"}),y.jsx("p",{id:"seamless-submit-hint",role:"status",className:h6,children:M==="login"?$?Te()?"Ready to continue.":"This does not look like a complete email or phone number yet.":"Enter your email or phone number to continue.":p?Te()?"Ready to continue.":"This does not look like a complete email address yet.":"Enter your email address to continue."}),A&&y.jsx("p",{className:Uu,children:A}),y.jsx("button",{type:"button",onClick:()=>z(M==="login"?"register":"login"),className:y6,children:M==="login"?"Don't have an account? Create one":"Already have an account? Sign in"})]}),y.jsx(b6,{})]})]})})};var qr={container:"passKeyLogin-module__container___IUKxF",card:"passKeyLogin-module__card___2sKM1",title:"passKeyLogin-module__title___HZxvc",button:"passKeyLogin-module__button___FvR4I"};_n(".passKeyLogin-module__container___IUKxF{align-items:center;color:var(--seamless-text,#fff);display:flex;justify-content:center;padding:1rem}.passKeyLogin-module__card___2sKM1{background-color:var(--seamless-surface,#1f2937);border-radius:1rem;box-shadow:0 4px 20px var(--seamless-shadow,rgba(0,0,0,.4));display:flex;flex-direction:column;gap:1.5rem;max-width:400px;padding:2rem;width:100%}.passKeyLogin-module__title___HZxvc{color:var(--seamless-text,#fff);font-size:1.5rem;font-weight:600;text-align:center}.passKeyLogin-module__button___FvR4I{background-color:var(--seamless-accent,#2563eb);border:1px solid var(--seamless-accent,#3b82f6);border-radius:.5rem;color:var(--seamless-accent-contrast,#fff);cursor:pointer;font-weight:500;padding:.75rem 1rem;text-align:center;transition:background-color .2s ease;width:100%}.passKeyLogin-module__button___FvR4I:hover{background-color:var(--seamless-accent-hover,#1d4ed8)}@media (max-width:480px){.passKeyLogin-module__card___2sKM1{padding:1.25rem}.passKeyLogin-module__button___FvR4I{font-size:1rem}}");const E6=()=>{const l=Qe(),{handlePasskeyLogin:r}=Ie(),[u,c]=b.useState("");return y.jsx("div",{className:qr.container,children:y.jsxs("div",{className:qr.card,children:[y.jsx("h2",{className:qr.title,children:"Login with Passkey"}),y.jsx("button",{onClick:async()=>{c("");const{error:s}=await r();s?c("Passkey sign-in could not be completed. Try another sign-in method."):l("/")},className:qr.button,children:"Use Passkey"}),u&&y.jsx("p",{className:qr.error,children:u})]})})};var x6="registerPasskey-module__container___jqEh8",N6="registerPasskey-module__card___MJAyC",T6="registerPasskey-module__loading___Q4i1x",O6="registerPasskey-module__spinner___V1nhd",Eh="registerPasskey-module__supported___ihTih",xh="registerPasskey-module__title___vn2Qu",Nh="registerPasskey-module__description___AWmO-",ad="registerPasskey-module__button___D3b4B",C6="registerPasskey-module__message___RiOw-",R6="registerPasskey-module__success___HP5aX",w6="registerPasskey-module__error___hGiqE",A6="registerPasskey-module__skip___1hDyU",ld="registerPasskey-module__secondary___bnOB4";_n(".registerPasskey-module__container___jqEh8{align-items:center;color:var(--seamless-text,#fff);display:flex;justify-content:center;padding:1rem}.registerPasskey-module__card___MJAyC{background-color:var(--seamless-surface,#1f2937);border-radius:1rem;box-shadow:0 4px 20px var(--seamless-shadow,rgba(0,0,0,.4));max-width:400px;padding:1.5rem;width:100%}.registerPasskey-module__loading___Q4i1x{align-items:center;background-color:var(--seamless-surface,#f9fafb);border-radius:.75rem;box-shadow:0 2px 8px var(--seamless-shadow,rgba(0,0,0,.1));color:var(--seamless-text,#374151);display:flex;font-weight:500;gap:.75rem;justify-content:center;padding:1.5rem}.registerPasskey-module__spinner___V1nhd{animation:registerPasskey-module__spin___oYcsC 1s linear infinite;border-bottom:2px solid var(--seamless-accent,#3b82f6);border-left:2px solid transparent;border-radius:9999px;border-right:2px solid transparent;border-top:2px solid var(--seamless-accent,#3b82f6);height:1.5rem;width:1.5rem}@keyframes registerPasskey-module__spin___oYcsC{to{transform:rotate(1turn)}}.registerPasskey-module__supported___ihTih{background-color:var(--seamless-surface,#ecfdf5);border-radius:.75rem;box-shadow:0 2px 12px var(--seamless-shadow,rgba(0,0,0,.1));color:var(--seamless-text,#065f46);padding:1.25rem}.registerPasskey-module__title___vn2Qu{font-size:1.125rem;font-weight:600;margin-bottom:.5rem}.registerPasskey-module__description___AWmO-{margin-bottom:1rem}.registerPasskey-module__button___D3b4B{background-color:var(--seamless-accent,#059669);border:none;border-radius:.5rem;color:var(--seamless-accent-contrast,#fff);cursor:pointer;font-weight:500;padding:.75rem 1rem;transition:background-color .2s ease;width:100%}.registerPasskey-module__button___D3b4B:hover{background-color:var(--seamless-accent-hover,#047857)}.registerPasskey-module__message___RiOw-{font-size:.875rem;margin-top:1rem}.registerPasskey-module__success___HP5aX{color:var(--seamless-success,#6ee7b7)}.registerPasskey-module__error___hGiqE{color:var(--seamless-danger,#f87171)}.registerPasskey-module__skip___1hDyU{background:none;border:none;color:var(--seamless-accent-soft,#60a5fa);cursor:pointer;font-size:.875rem;margin-top:1.5rem;text-align:center;width:100%}.registerPasskey-module__skip___1hDyU:disabled{cursor:default;opacity:.6}.registerPasskey-module__secondary___bnOB4{background:none;border:1px solid var(--seamless-accent,#059669);border-radius:.5rem;color:var(--seamless-accent,#059669);cursor:pointer;font-weight:500;margin-top:.75rem;padding:.75rem 1rem;transition:background-color .2s ease;width:100%}.registerPasskey-module__secondary___bnOB4:hover:not(:disabled){background-color:var(--seamless-accent-muted,rgba(5,150,105,.1))}.registerPasskey-module__secondary___bnOB4:disabled{cursor:default;opacity:.6}");const j6=()=>{const{refreshSession:l,recoverySession:r}=Ie(),u=Nt(),{passkeySupported:c,loading:s}=eo(),{loginMethods:f,loading:m}=B3(),v=Qe(),h=Gd(nt().state?.returnTo),[$,_]=b.useState("idle"),[p,x]=b.useState(""),M=!r&&K5(f),z=()=>v(q3,{state:{returnTo:h}}),A=async()=>{await l(),v(h)},R=async B=>{_("loading");const{error:X}=await L$({client:u,refreshSession:l},B);if(X)return _("error"),void x(X);_("success"),x("Passkey registered successfully."),v(Yd,{state:{returnTo:h}})};return y.jsx("div",{className:x6,children:y.jsx("div",{className:N6,children:y.jsxs("div",s||m?{className:T6,children:[y.jsx("div",{className:O6}),y.jsx("span",{children:"Checking for Passkey Support..."})]}:c?{className:Eh,children:[y.jsx("h2",{className:xh,children:r?"Add a New Passkey":"Secure Your Account with a Passkey"}),y.jsx("p",{className:Nh,children:r?"You are signed in to recover your account. Add a new passkey to finish, and you will be able to use it to sign in from now on.":"Your device supports passkeys! Register one to skip passwords forever."}),y.jsx("button",{onClick:()=>R(),disabled:$==="loading",className:ad,children:$==="loading"?"Registering...":"Register Passkey"}),y.jsx("button",{type:"button",onClick:()=>R("cross-platform"),disabled:$==="loading",className:ld,children:"Use a security key instead"}),r&&y.jsx("button",{type:"button",onClick:z,disabled:$==="loading",className:ld,children:"Use an authenticator app"}),p&&y.jsx("p",{className:`${C6} ${$==="success"?R6:w6}`,children:p}),M&&y.jsx("button",{type:"button",onClick:A,disabled:$==="loading",className:A6,children:"Skip for now"})]}:{className:Eh,children:[y.jsx("h2",{className:xh,children:"Passkeys are not available here"}),y.jsx("p",{className:Nh,children:r?"This device does not support passkeys. Set up an authenticator app to finish recovering your account, or try again from a device that supports passkeys.":M?"This device does not support passkeys. You can continue without one and add a passkey later from a device that does.":"This device does not support passkeys, and this application requires one to sign in. Try again from a device or browser that supports them."}),M&&y.jsx("button",{type:"button",onClick:A,className:ad,children:"Continue"}),(r||M)&&y.jsx("button",{type:"button",onClick:z,className:M?ld:ad,children:"Use an authenticator app"})]})})})};var K3="verifyOTP-module__container___wgoDE",Z3="verifyOTP-module__card___3cs2p",Q3="verifyOTP-module__title___fZ-1d",I3="verifyOTP-module__subtitle___dGSu3",J3="verifyOTP-module__error___GEtlG",W3="verifyOTP-module__success___46TjG",ey="verifyOTP-module__form___jiGG-",ty="verifyOTP-module__label___Zq5Mi",ny="verifyOTP-module__timer___smq-a",ay="verifyOTP-module__resend___PlmkG",ly="verifyOTP-module__button___8pIuO",ry="verifyOTP-module__toggle___wbzVa";_n(".verifyOTP-module__container___wgoDE{align-items:center;color:var(--seamless-text,#fff);display:flex;justify-content:center;padding:1rem}.verifyOTP-module__card___3cs2p{background-color:var(--seamless-surface,#1f2937);border-radius:.5rem;box-shadow:0 0 10px var(--seamless-shadow,rgba(0,0,0,.3));max-width:28rem;padding:1.5rem;width:100%}.verifyOTP-module__title___fZ-1d{color:var(--seamless-text,#fff);font-size:1.5rem;font-weight:700;margin-bottom:1rem;text-align:center}.verifyOTP-module__subtitle___dGSu3{color:var(--seamless-text-muted,#9ca3af);font-size:.875rem;margin-bottom:1.5rem;text-align:center}.verifyOTP-module__error___GEtlG{color:var(--seamless-danger,#f87171);margin-bottom:1rem;text-align:center}.verifyOTP-module__success___46TjG{color:var(--seamless-success,#34d399);margin-bottom:.75rem;text-align:center}.verifyOTP-module__form___jiGG-{display:flex;flex-direction:column;gap:1rem}.verifyOTP-module__label___Zq5Mi{color:var(--seamless-text-muted,#d1d5db);display:block;font-size:.875rem;margin-bottom:.25rem}.verifyOTP-module__timer___smq-a{color:var(--seamless-warning,#facc15);font-size:.875rem}.verifyOTP-module__input___yqIXM{background-color:var(--seamless-surface-raised,#374151);border:1px solid var(--seamless-border,#4b5563);border-radius:.375rem;color:var(--seamless-text,#fff);outline:none;padding:.5rem;width:100%}.verifyOTP-module__input___yqIXM:focus{box-shadow:0 0 0 2px var(--seamless-accent,#3b82f6)}.verifyOTP-module__resend___PlmkG{background:none;border:none;color:var(--seamless-accent-soft,#60a5fa);cursor:pointer;font-size:.75rem;margin-top:.25rem;text-decoration:underline}.verifyOTP-module__resend___PlmkG:hover{color:var(--seamless-accent,#3b82f6)}.verifyOTP-module__button___8pIuO{background-color:var(--seamless-accent,#2563eb);border:none;border-radius:.375rem;color:var(--seamless-accent-contrast,#fff);cursor:pointer;padding:.5rem;transition:background-color .2s;width:100%}.verifyOTP-module__button___8pIuO:hover{background-color:var(--seamless-accent-hover,#1d4ed8)}.verifyOTP-module__toggle___wbzVa{background:none;border:none;color:var(--seamless-accent-soft,#60a5fa);cursor:pointer;font-size:.875rem;margin-top:1.5rem;text-align:center;width:100%}");const M6=()=>{const l=Qe(),r=nt(),{refreshSession:u}=Ie(),c=r.state?.flow==="login",[s,f]=b.useState(""),[m,v]=b.useState(null),[h,$]=b.useState(""),[_,p]=b.useState(!1),[x,M]=b.useState(""),[z,A]=b.useState(O3),R=Nt(),B=async()=>{if(m)return;const{next:U,error:H}=await w3({client:R,refreshSession:u},{channel:"phone",flow:c?"login":"register",code:s});if(H===null)return U==="verify_email"?(v(!0),void l(Vu)):void l("/");$(H)},X=async()=>{M(""),await(async()=>{$("");const{error:U}=await C3(R,"phone",c?"login":"register");U?$(R3("phone")):M("Verification SMS has been resent.")})(),M("Verification SMS has been resent.")};return b.useEffect(()=>{const U=setInterval(()=>{A(H=>H>0?H-1:0)},1e3);return()=>clearInterval(U)},[]),y.jsx("div",{className:K3,children:y.jsxs("div",{className:Z3,children:[y.jsx("h2",{className:Q3,children:"Verify Your Phone Number"}),y.jsx("p",{className:I3,children:"Enter the code sent to your phone number."}),h&&y.jsx("p",{className:J3,children:h}),x&&y.jsx("p",{className:W3,children:x}),y.jsxs("form",{onSubmit:async U=>{if(U.preventDefault(),$(""),s.length===T3){p(!0);try{await B()}catch{$("Unexpected error occurred.")}finally{p(!1)}}else $("Please enter a valid code.")},className:ey,children:[y.jsxs("div",{children:[y.jsxs("label",{htmlFor:"phoneCode",className:ty,children:["Phone Verification Code ",(Y=m,Y===!0?y.jsx("span",{className:"text-green-400 ml-2",children:"✅"}):Y===!1?y.jsx("span",{className:"text-red-400 ml-2",children:"❌"}):null)," -"," ",y.jsxs("span",{className:ny,children:["Code expires in: ",A3(z)]})]}),y.jsx(Wu,{length:6,value:s,onChange:f}),y.jsx("button",{type:"button",onClick:()=>X(),className:ay,children:"Resend code to phone"})]}),y.jsx("button",{type:"submit",className:ly,children:_?"Verifying...":"Verify & Continue"}),y.jsx("button",{type:"button",onClick:()=>l("/login"),className:ry,children:"Back to login"})]})]})});var Y},z6=()=>{const l=Qe(),r=nt(),{refreshSession:u}=Ie(),c=Nt(),{passkeySupported:s}=eo(),f=r.state?.flow==="login",[m,v]=b.useState(!1),[h,$]=b.useState(""),[_,p]=b.useState(O3),[x,M]=b.useState(""),[z,A]=b.useState("");return b.useEffect(()=>{const R=setInterval(()=>{p(B=>B>0?B-1:0)},1e3);return()=>clearInterval(R)},[]),y.jsx("div",{className:K3,children:y.jsxs("div",{className:Z3,children:[y.jsx("h2",{className:Q3,children:"Verify Your Email"}),y.jsx("p",{className:I3,children:"We sent you a verification email. Enter the code below."}),x&&y.jsx("p",{className:J3,children:x}),z&&y.jsx("p",{className:W3,children:z}),y.jsxs("form",{onSubmit:async R=>{if(R.preventDefault(),M(""),h.length===T3){v(!0);try{const{next:B,error:X}=await w3({client:c,refreshSession:u},{channel:"email",flow:f?"login":"register",code:h,passkeySupported:s});if(X!==null)return void M(X);l(B==="register_passkey"?Ga:"/")}catch{console.error("Email OTP verification failed."),M("Verification failed.")}finally{v(!1)}}else M("Please enter a valid code.")},className:ey,children:[y.jsxs("div",{children:[y.jsxs("label",{htmlFor:"emailCode",className:ty,children:["Email Verification Code",y.jsxs("span",{className:ny,children:[" ","— Code expires in ",A3(_)]})]}),y.jsx(Wu,{length:6,value:h,onChange:$,inputMode:"text"}),y.jsx("button",{type:"button",onClick:async()=>{M(""),A("");const{error:R}=await C3(c,"email",f?"login":"register");R?M(R3("email")):A("Verification email has been resent.")},className:ay,children:"Resend code to email"})]}),y.jsx("button",{type:"submit",className:ly,disabled:m,children:m?"Verifying...":"Verify & Continue"}),y.jsx("button",{type:"button",onClick:()=>l("/login"),className:ry,children:"Back to login"})]})]})})};var bd="verifyMagiclink-module__container___qrSXf",Th="verifyMagiclink-module__card___niKgr",Sd="verifyMagiclink-module__title___SumxD",Oh="verifyMagiclink-module__verificationContent___NdsS0",D6="verifyMagiclink-module__spinner___lnW1k",U6="verifyMagiclink-module__successIcon___XjFEM",L6="verifyMagiclink-module__checkIcon___I0JOP",k6="verifyMagiclink-module__prompt___tvPn4",rd="verifyMagiclink-module__helperText___ggTZw",H6="verifyMagiclink-module__actions___6Jf29",B6="verifyMagiclink-module__primaryButton___8DcTo",G6="verifyMagiclink-module__secondaryButton___8n-GU",Ch="verifyMagiclink-module__error___tfBn0",id="verifyMagiclink-module__successText___lO5Qq";_n(".verifyMagiclink-module__container___qrSXf{align-items:center;color:var(--seamless-text,#fff);display:flex;justify-content:center;padding:1rem}.verifyMagiclink-module__card___niKgr{background-color:var(--seamless-surface,#1f2937);border-radius:.5rem;box-shadow:0 0 10px var(--seamless-shadow,rgba(0,0,0,.3));max-width:28rem;padding:1.5rem;width:100%}.verifyMagiclink-module__title___SumxD{color:var(--seamless-text,#fff);font-size:1.5rem;font-weight:700;margin-bottom:1rem;text-align:center}.verifyMagiclink-module__verificationContent___NdsS0{align-items:center;display:flex;flex-direction:column;gap:14px;margin:20px 0}.verifyMagiclink-module__spinner___lnW1k{animation:verifyMagiclink-module__spin___2lGzj .9s linear infinite;border:3px solid var(--seamless-border,hsla(0,0%,100%,.15));border-radius:50%;border-top-color:var(--seamless-accent,#60a5fa);height:28px;width:28px}.verifyMagiclink-module__successIcon___XjFEM{align-items:center;background:rgba(16,185,129,.15);border-radius:50%;display:flex;height:36px;justify-content:center;width:36px}.verifyMagiclink-module__checkIcon___I0JOP{animation:verifyMagiclink-module__checkPop___-3qJu .25s ease-out;color:var(--seamless-success,#34d399);height:22px;width:22px}.verifyMagiclink-module__prompt___tvPn4{font-weight:600;line-height:1.4;text-align:center}.verifyMagiclink-module__helperText___ggTZw{color:var(--seamless-text-muted,#9ca3af);font-size:.875rem;line-height:1.4;text-align:center}.verifyMagiclink-module__actions___6Jf29{display:flex;flex-direction:column;gap:.6rem;width:100%}.verifyMagiclink-module__primaryButton___8DcTo{background-color:var(--seamless-accent,#2563eb);border:none;border-radius:.375rem;color:var(--seamless-accent-contrast,#fff);cursor:pointer;font:inherit;font-weight:500;padding:.65rem;width:100%}.verifyMagiclink-module__primaryButton___8DcTo:hover:not(:disabled){background-color:var(--seamless-accent-hover,#1d4ed8)}.verifyMagiclink-module__secondaryButton___8n-GU{background:transparent;border:1px solid var(--seamless-border,#374151);border-radius:.375rem;color:var(--seamless-text,#fff);cursor:pointer;font:inherit;padding:.65rem;width:100%}.verifyMagiclink-module__secondaryButton___8n-GU:hover:not(:disabled){background:var(--seamless-surface-hover,#1f2937)}.verifyMagiclink-module__primaryButton___8DcTo:disabled,.verifyMagiclink-module__secondaryButton___8n-GU:disabled{cursor:not-allowed;opacity:.6}.verifyMagiclink-module__error___tfBn0{color:var(--seamless-danger,#f87171);text-align:center}.verifyMagiclink-module__successText___lO5Qq{color:var(--seamless-success,#34d399);font-size:.9rem}@keyframes verifyMagiclink-module__checkPop___-3qJu{0%{opacity:0;transform:scale(.6)}80%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@keyframes verifyMagiclink-module__spin___2lGzj{to{transform:rotate(1turn)}}");const q6=()=>{const[l,r]=n3(),u=Qe(),[c]=b.useState(()=>l.get("token")),[s,f]=b.useState(""),[m,v]=b.useState(null),[h,$]=b.useState(null),[_,p]=b.useState("pending"),[x,M]=b.useState(""),z=Nt(),{refreshSession:A}=Ie(),R=b.useRef(null);return b.useEffect(()=>{l.has("token")&&r(new URLSearchParams,{replace:!0})},[l,r]),b.useEffect(()=>{let B=!0,X=null;return(async()=>{if(!c)return B&&f("Missing token for verification."),void console.error("No magic-link token found.");R.current?.token!==c&&(R.current={token:c,result:z.verifyMagicLink(c)});const{error:Y}=await R.current.result;if(!B)return;if(Y){const H=W5(Y);return H?void $(H):(console.error("Failed to verify token"),void f("Failed to verify token"))}const U=await a$({client:z,refreshSession:A});B&&(v(U),U!=="elsewhere"&&(X=setTimeout(()=>{B&&u("/")},900)))})(),()=>{B=!1,X&&clearTimeout(X)}},[c,z,u,A]),y.jsx("div",h?{className:bd,children:y.jsxs("div",{className:Th,children:[y.jsx("h1",{className:Sd,children:"Confirm this sign-in"}),y.jsxs("div",{className:Oh,children:[(_==="pending"||_==="confirming")&&y.jsxs(y.Fragment,{children:[y.jsx("p",{className:k6,children:t$(h)}),y.jsx("p",{className:rd,children:"This link was opened on a different device from the one that asked for it. Only continue if you made that request."}),y.jsxs("div",{className:H6,children:[y.jsx("button",{type:"button",className:B6,disabled:_==="confirming",onClick:()=>{(async()=>{if(!c||_==="confirming")return;p("confirming"),M("");const{error:B}=await n$({client:z,token:c});if(B)return p("pending"),void M("We could not confirm this sign-in. The link may have expired or already been used.");p("confirmed")})()},children:"Yes, sign in that device"}),y.jsx("button",{type:"button",className:G6,disabled:_==="confirming",onClick:()=>p("declined"),children:"No, this wasn't me"})]}),x&&y.jsx("p",{className:Ch,role:"alert",children:x})]}),_==="confirmed"&&y.jsx("p",{className:id,role:"status",children:"Sign-in approved. You can return to your other device to continue."}),_==="declined"&&y.jsx("p",{className:rd,role:"status",children:"No one has been signed in. You can ignore the email and close this page."})]})]})}:{className:bd,children:y.jsxs("div",{className:Th,children:[y.jsx("h1",{className:Sd,children:"Verifying your login"}),y.jsxs("div",{className:Oh,children:[!m&&!s&&y.jsx("div",{className:D6}),m&&y.jsx("div",{className:U6,children:y.jsx("svg",{viewBox:"0 0 24 24",className:L6,fill:"none",stroke:"currentColor",strokeWidth:"2",children:y.jsx("path",{d:"M5 13l4 4L19 7"})})}),!m&&!s&&y.jsx("p",{className:rd,children:"Please wait while we securely verify your sign-in link."}),m==="signed-in"&&y.jsx("p",{className:id,children:"Login verified. Redirecting…"}),m==="elsewhere"&&y.jsx("p",{className:id,children:"Login verified. Return to the device where you requested this link to continue."}),s&&y.jsx("p",{className:Ch,children:s})]})]})})},P6=()=>{const{finishOAuthLogin:l}=Ie(),r=Qe(),[u,c]=n3(),[s,f]=b.useState(""),m=b.useRef(!1);return b.useEffect(()=>{if(m.current)return;m.current=!0;const v=new URLSearchParams(u);v.toString()!==""&&c(new URLSearchParams,{replace:!0}),p$({finishOAuthLogin:l},v,window.location.origin).then(h=>{h.kind!=="error"?h.kind!=="enroll_passkey"?r(h.destination):r(Ga,{state:{returnTo:h.returnTo}}):f(h.message)})},[l,r,u,c]),y.jsxs("div",{className:bd,children:[y.jsx("h2",{className:Sd,children:s?"Sign-in failed":"Completing sign-in..."}),s&&y.jsxs(y.Fragment,{children:[y.jsx("p",{children:s}),y.jsx("button",{type:"button",onClick:()=>r("/login"),children:"Back to login"})]})]})},Y6=()=>{const l=Qe(),{redeemRecoveryCode:r}=Ie(),[u,c]=b.useState(""),[s,f]=b.useState(""),[m,v]=b.useState(!1);return y.jsx("div",{className:P.container,children:y.jsxs("div",{className:P.card,children:[y.jsx("h2",{className:P.title,children:"Use a recovery code"}),y.jsx("p",{className:P.description,children:"Enter one of the recovery codes you saved. Once you are in, you will add a new passkey."}),y.jsxs("form",{onSubmit:async h=>{h.preventDefault(),f(""),v(!0);const{error:$}=await r(u.trim());v(!1),$?f(Ir($,"We could not sign you in with that code. Go back and sign in again, then try the code once more.")):l(Ga,{replace:!0})},className:P.form,children:[y.jsxs("label",{htmlFor:"recoveryCode",className:P.label,children:["Recovery code",y.jsx("input",{id:"recoveryCode",className:P.input,value:u,onChange:h=>c(h.target.value),autoComplete:"one-time-code",autoCapitalize:"characters",spellCheck:!1,placeholder:"XXXXX-XXXXX",required:!0})]}),s&&y.jsx("p",{role:"alert",className:P.error,children:s}),y.jsx("button",{type:"submit",className:P.button,disabled:m||u.trim()==="",children:m?"Checking...":"Sign in"}),y.jsx("button",{type:"button",className:P.link,onClick:()=>l(Bl),children:"Back to sign in"})]})]})})},V6=()=>{const l=Qe(),r=Nt(),u=a6(),c=Gd(nt().state?.returnTo),[s,f]=b.useState("loading"),[m,v]=b.useState([]),[h,$]=b.useState(""),[_,p]=b.useState(!1),[x,M]=b.useState(!1),z=b.useRef(!1),A=()=>l(c,{replace:!0}),R=async()=>{p(!0),$("");const B=await j$({client:r,verifyStepUp:u.verifyStepUp});return p(!1),B.kind==="error"?(u.cancelled()||$(B.message),!1):(v(B.codes.codes),f("show"),!0)};return b.useEffect(()=>{z.current||(z.current=!0,(async()=>{const{data:B,error:X}=await r.getRecoveryCodeStatus();if(!(X||!B.enabled||B.remaining>0))return B.total>0?(M(!0),void f("offer")):void(await R()||f("offer"));A()})())},[]),y.jsx("div",{className:P.container,children:y.jsxs("div",{className:P.card,children:[y.jsx("h2",{className:P.title,children:"Save your recovery codes"}),s==="loading"&&y.jsx("p",{role:"status",className:P.loading,children:"Preparing your recovery codes..."}),s==="show"&&y.jsx(n6,{codes:m,onDone:A}),u.prompt,s==="offer"&&y.jsxs("div",{className:P.form,children:[y.jsx("p",{className:P.description,children:x?"You have used all of your recovery codes. Generate a new set so you can still get in if you lose your passkeys.":"Recovery codes let you sign in if you lose your passkeys."}),y.jsx("button",{type:"button",className:P.button,onClick:()=>{R()},disabled:_,children:_?"Generating...":"Generate recovery codes"}),y.jsx("button",{type:"button",className:P.link,onClick:A,children:"Skip for now"})]}),h&&y.jsx("p",{role:"alert",className:P.error,children:h})]})})},X6={email:"email",phone:"text message"},F6=()=>{const l=Qe(),r=Nt(),{completeAccountRecovery:u}=Ie(),[c,s]=b.useState("channel"),[f,m]=b.useState("email"),[v,h]=b.useState(""),[$,_]=b.useState(null),[p,x]=b.useState(""),[M,z]=b.useState(!1),A=(Y,U)=>{x(!_3(Y)&&p3(Y)?"Your sign-in timed out. Sign in again and choose the same recovery method to continue.":Ir(Y,U))},R=async Y=>{x(""),z(!0);try{await Y()}finally{z(!1)}},B=Y=>R(async()=>{m(Y);const{error:U}=await r.startAccountRecovery(Y);U?A(U,"We could not send a recovery code. Please try again."):(h(""),s("code"))});return y.jsx("div",{className:P.container,children:y.jsxs("div",{className:P.card,children:[y.jsx("h2",{className:P.title,children:"Recover your account"}),c==="channel"&&y.jsxs("div",{className:P.form,children:[y.jsx("p",{className:P.description,children:"We will send a code to the email address or phone number on your account. For your security, recovery finishes only after a waiting period, and everyone on the account is told so they can stop it. If you started recovery before, choose the same method to pick it back up."}),y.jsxs("div",{className:P.choices,children:[y.jsx("button",{type:"button",className:P.secondary,onClick:()=>{B("email")},disabled:M,children:"Send a code by email"}),y.jsx("button",{type:"button",className:P.secondary,onClick:()=>{B("phone")},disabled:M,children:"Send a code by text message"})]})]}),c==="code"&&y.jsxs("form",{onSubmit:Y=>(Y.preventDefault(),R(async()=>{const{data:U,error:H}=await r.verifyAccountRecovery(v);H?A(H,"That code did not work. Check it and try again."):(_(U),s("status"))})),className:P.form,children:[y.jsxs("p",{className:P.description,children:["If your account has a verified ",X6[f]," on file, we sent it a six-digit code. It expires in ten minutes."]}),y.jsx("label",{htmlFor:"recoveryOtp",className:P.label,children:"Recovery code"}),y.jsx(Wu,{length:6,value:v,onChange:h,name:"recoveryOtp"}),y.jsx("button",{type:"submit",className:P.button,disabled:M||v.length!==6,children:M?"Verifying...":"Verify"}),y.jsx("button",{type:"button",className:P.link,onClick:()=>s("channel"),children:"Use a different method"})]}),c==="status"&&$&&y.jsxs("div",{className:P.form,children:[$.state==="pending"&&y.jsxs(y.Fragment,{children:[y.jsxs("p",{className:P.description,children:["Your recovery request is open. You can finish it after"," ",y.jsx("strong",{children:(X=$.completesAt,new Date(X).toLocaleString())}),". We told every address on your account, and anyone with access to them can cancel it."]}),y.jsx("p",{className:P.description,children:"Come back then, sign in again, and choose the same method to finish."}),y.jsx("button",{type:"button",className:P.secondary,onClick:()=>{R(async()=>{const{data:Y,error:U}=await r.getAccountRecoveryStatus();U?A(U,"We could not check your recovery request."):_(Y)})},disabled:M,children:"Check again"})]}),$.state==="ready"&&y.jsxs(y.Fragment,{children:[y.jsx("p",{className:P.description,children:"The waiting period is over. Finishing signs out every session on your account, then you will add a new passkey."}),y.jsx("button",{type:"button",className:P.button,onClick:()=>{R(async()=>{const{error:Y}=await u();Y?A(Y,"We could not finish recovering your account."):l(Ga,{replace:!0})})},disabled:M,children:M?"Finishing...":"Finish recovery"})]}),$.state==="cancelled"&&y.jsx("p",{className:P.description,children:"This recovery request was cancelled. If that was not you, start again."}),$.state==="completed"&&y.jsx("p",{className:P.description,children:"This recovery request has already been completed."})]}),p&&y.jsx("p",{role:"alert",className:P.error,children:p}),y.jsx("button",{type:"button",className:P.link,onClick:()=>l(Bl),children:"Back to sign in"})]})});var X},K6=()=>{const l=Qe(),r=Nt(),{refreshSession:u}=Ie();return y.jsx("div",{className:P.container,children:y.jsxs("div",{className:P.card,children:[y.jsx("h2",{className:P.title,children:"Use an authenticator app"}),y.jsx("p",{className:P.description,children:"Enter the 6-digit code your authenticator app shows for this account."}),y.jsx(Pd,{submitLabel:"Sign in",onSubmit:async c=>{const{error:s}=await B$({client:r,refreshSession:u},c);return s||(l("/"),null)},children:y.jsx("button",{type:"button",className:P.link,onClick:()=>l(Bl),children:"Back to sign in"})})]})})},Z6=()=>{const l=Qe(),{recoverySession:r}=Ie(),{passkeySupported:u}=eo(),c=Gd(nt().state?.returnTo),[s,f]=b.useState(!1);return y.jsx("div",{className:P.container,children:y.jsx("div",{className:P.card,children:s?y.jsxs("div",{className:P.form,children:[y.jsx("h2",{className:P.title,children:"Authenticator app added"}),y.jsx("p",{role:"status",className:P.success,children:"Your authenticator app is set up. Use a code from it to sign in or to confirm it is you."}),y.jsx("button",{type:"button",className:P.button,onClick:()=>l(Yd,{replace:!0,state:{returnTo:c}}),children:"Continue"})]}):y.jsxs(y.Fragment,{children:[y.jsx("h2",{className:P.title,children:"Set up an authenticator app"}),r&&y.jsx("p",{className:P.description,children:"You are signed in to recover your account. Add an authenticator app to finish."}),y.jsx(t6,{onEnrolled:()=>f(!0),children:u&&y.jsx("button",{type:"button",className:P.link,onClick:()=>l(Ga,{state:{returnTo:c}}),children:"Use a passkey instead"})})]})})})},Q6=()=>{const l=Qe(),r=nt(),u=Nt(),[c,s]=b.useState(null),f=b.useRef(!1);return b.useEffect(()=>{if(f.current)return;f.current=!0;const m=w$(r.hash);r.hash&&l({pathname:r.pathname,search:r.search},{replace:!0,state:r.state}),A$(u,m).then(s)},[]),y.jsx("div",{className:P.container,children:y.jsxs("div",{className:P.card,children:[y.jsx("h2",{className:P.title,children:"Cancel account recovery"}),!c&&y.jsx("p",{role:"status",className:P.loading,children:"Cancelling the recovery request..."}),c?.kind==="cancelled"&&y.jsx("div",{role:"status",children:y.jsx("p",{className:P.description,children:"The recovery request this link was sent for is cancelled, if it was still open, and no one can finish recovering your account with it. If you did not ask to recover your account, someone may know your email address or phone number. Sign in and add a second passkey to keep your account safe."})}),c?.kind==="error"&&y.jsx("p",{role:"alert",className:P.error,children:c.message}),y.jsx("button",{type:"button",className:P.link,onClick:()=>l(Bl),children:"Go to sign in"})]})})};var I6="magiclink-module__container___45zcA",J6="magiclink-module__card___Au9oN",W6="magiclink-module__iconWrapper___k5ndr",e_="magiclink-module__mailIcon___Pwb7q",t_="magiclink-module__iconRing___bdLvf",n_="magiclink-module__heading___b9cre",a_="magiclink-module__message___kiVFj",l_="magiclink-module__identifier___JtcFM",Rh="magiclink-module__helperText___7Mlfh",r_="magiclink-module__actions___64I-3",i_="magiclink-module__secondaryButton___BntAI",u_="magiclink-module__cooldown___Ib4rm",o_="magiclink-module__linkButton___maJiv";_n(".magiclink-module__container___45zcA{align-items:center;color:var(--seamless-text,#fff);display:flex;justify-content:center}.magiclink-module__card___Au9oN{background-color:var(--seamless-surface,#1f2937);border-radius:.75rem;box-shadow:0 10px 25px var(--seamless-shadow,rgba(0,0,0,.25));max-width:420px;padding:2.5rem 2rem;text-align:center;width:100%}.magiclink-module__iconWrapper___k5ndr{display:flex;justify-content:center;margin-bottom:1.25rem;position:relative}.magiclink-module__mailIcon___Pwb7q{color:var(--seamless-accent-soft,#a5b4fc);height:38px;width:38px;z-index:2}.magiclink-module__iconRing___bdLvf{animation:magiclink-module__pulse___YGm-I 2s infinite;background:rgba(99,102,241,.15);border-radius:50%;height:72px;position:absolute;width:72px}@keyframes magiclink-module__pulse___YGm-I{0%{opacity:.8;transform:scale(.6)}70%{opacity:0;transform:scale(1.4)}to{opacity:0}}.magiclink-module__heading___b9cre{font-size:1.55rem;font-weight:600;margin-bottom:.75rem}.magiclink-module__message___kiVFj{color:var(--seamless-text-muted,#d1d5db);font-size:.95rem;line-height:1.4;margin-bottom:1rem}.magiclink-module__identifier___JtcFM{background:var(--seamless-surface-raised,hsla(0,0%,100%,.05));border-radius:6px;display:inline-block;font-size:1rem;font-weight:600;margin-bottom:1rem;padding:.45rem .6rem}.magiclink-module__helperText___7Mlfh{color:var(--seamless-text-muted,#9ca3af);font-size:.85rem;line-height:1.4;margin-bottom:.6rem}.magiclink-module__actions___64I-3{display:flex;flex-direction:column;gap:.6rem;margin-top:1.6rem}.magiclink-module__secondaryButton___BntAI{background:var(--seamless-surface,#111827);border:1px solid var(--seamless-border,#374151);border-radius:8px;color:var(--seamless-text,#fff);cursor:pointer;font-weight:500;padding:.65rem}.magiclink-module__secondaryButton___BntAI:hover:not(:disabled){background:var(--seamless-surface-hover,#1f2937)}.magiclink-module__secondaryButton___BntAI:disabled{cursor:not-allowed;opacity:.5}.magiclink-module__cooldown___Ib4rm{color:var(--seamless-text-muted,#9ca3af);font-size:.8rem}.magiclink-module__linkButton___maJiv{background:none;border:none;color:var(--seamless-accent-soft,#a5b4fc);cursor:pointer;font-size:.85rem;margin-top:.4rem}.magiclink-module__linkButton___maJiv:hover{text-decoration:underline}");const c_=()=>{const{refreshSession:l}=Ie(),r=Qe(),u=nt(),c=Nt(),s=u.state?.identifier,[f,m]=b.useState(mh);return b.useEffect(()=>{const v=setInterval(()=>{m(h=>h>0?h-1:0)},1e3);return()=>clearInterval(v)},[]),b.useEffect(()=>J5({client:c,refreshSession:l,onSignedIn:()=>r("/")}),[c,r,l]),y.jsx("div",{className:I6,children:y.jsxs("div",{className:J6,children:[y.jsxs("div",{className:W6,children:[y.jsx("div",{className:t_}),y.jsxs("svg",{className:e_,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:[y.jsx("path",{d:"M4 6h16v12H4z"}),y.jsx("path",{d:"m4 6 8 6 8-6"})]})]}),y.jsx("h2",{className:n_,children:"Check your email"}),y.jsx("p",{className:a_,children:"If an account exists for this address, we sent a secure sign-in link."}),s&&y.jsx("div",{className:l_,children:s}),y.jsx("p",{className:Rh,children:"Open the email and click the link to finish signing in."}),y.jsx("p",{className:Rh,children:"Didn’t receive anything? Check your spam folder or try creating a new account."}),y.jsxs("div",{className:r_,children:[y.jsx("button",{className:i_,disabled:f>0,onClick:async()=>{f>0||(await c.requestMagicLink(),m(mh))},children:"Resend link"}),f>0&&y.jsxs("div",{className:u_,children:["Available in ",f,"s"]}),y.jsx("button",{className:o_,onClick:()=>r("/login"),children:"Change email or phone"})]})]})})},s_=()=>y.jsxs(Jh,{children:[y.jsx(Ze,{path:Bl,element:y.jsx(S6,{})}),y.jsx(Ze,{path:r6,element:y.jsx(E6,{})}),y.jsx(Ze,{path:G3,element:y.jsx(M6,{})}),y.jsx(Ze,{path:Vu,element:y.jsx(z6,{})}),y.jsx(Ze,{path:i6,element:y.jsx(q6,{})}),y.jsx(Ze,{path:u6,element:y.jsx(P6,{})}),y.jsx(Ze,{path:Ga,element:y.jsx(j6,{})}),y.jsx(Ze,{path:q3,element:y.jsx(Z6,{})}),y.jsx(Ze,{path:P3,element:y.jsx(c_,{})}),y.jsx(Ze,{path:Y3,element:y.jsx(Y6,{})}),y.jsx(Ze,{path:V3,element:y.jsx(K6,{})}),y.jsx(Ze,{path:Yd,element:y.jsx(V6,{})}),y.jsx(Ze,{path:X3,element:y.jsx(F6,{})}),y.jsx(Ze,{path:o6,element:y.jsx(Q6,{})}),y.jsx(Ze,{path:"*",element:y.jsx(fp,{to:Bl,replace:!0})})]});function d_(){try{const l=JSON.parse(document.getElementById("seamless-hosted")?.textContent??"{}");if(typeof l=="object"&&l!==null&&"appName"in l&&typeof l.appName=="string"){const r="logoUrl"in l&&typeof l.logoUrl=="string"?l.logoUrl:void 0;return{appName:l.appName,...r?{logoUrl:r}:{}}}}catch{}return{appName:"Seamless Auth"}}const f_={openid:"Confirm who you are",email:"See your email address",phone:"See your phone number",seamless:"See your roles and organization",offline_access:"Stay signed in when you are not using it"};function m_(l){return f_[l]??l}function h_({details:l,appName:r,busy:u,onAllow:c,onDeny:s}){const f=b.useRef(null);b.useEffect(()=>f.current?.focus(),[]);const m=l.prompt.missingScopes.length?l.prompt.missingScopes:l.scopes,v=new Set(l.prompt.missingResourceScopes.flatMap(h=>h.scopes));return y.jsxs("section",{"aria-labelledby":"consent-title",className:"card consent",children:[y.jsxs("h2",{id:"consent-title",ref:f,tabIndex:-1,children:[l.client.name," wants to use your ",r," account"]}),l.client.redirectHost?y.jsxs("p",{children:["After this you will be sent to ",y.jsx("strong",{children:l.client.redirectHost}),"."]}):null,y.jsx("h3",{className:"consent-subtitle",children:"It is asking to"}),y.jsxs("ul",{className:"consent-scopes",children:[m.filter(h=>!v.has(h)).map(h=>y.jsx("li",{children:m_(h)},h)),l.prompt.missingResourceScopes.map(({resource:h,scopes:$})=>y.jsxs("li",{children:["Use ",y.jsx("strong",{children:new URL(h).host})," for you",$.length>0?`: ${$.join(", ")}`:""]},h))]}),y.jsxs("p",{className:"consent-warning",children:[l.client.name," is not run by ",r,". Only allow this if you trust it and you started this sign-in yourself."]}),y.jsxs("div",{className:"actions",children:[y.jsx("button",{type:"button",className:"primary",onClick:c,disabled:u,children:"Allow"}),y.jsx("button",{type:"button",className:"secondary",onClick:s,disabled:u,children:"Cancel"})]})]})}function y_(l){if(!(!("methods"in l)||!Array.isArray(l.methods)))return l.methods.filter(r=>r==="passkey"||r==="totp")}async function iy(l,r,u){try{const c=await fetch(l,{method:r,credentials:"same-origin",headers:{accept:"application/json",...u===void 0?{}:{"content-type":"application/json"}},...u===void 0?{}:{body:JSON.stringify(u)}}),s=await c.json().catch(()=>{});if(c.ok)return{ok:!0,data:s};if(typeof s=="object"&&s!==null&&"error"in s){const f=typeof s.error=="string"?s.error:"server_error",m=y_(s);return{ok:!1,status:c.status,error:f,...m?{methods:m}:{}}}return{ok:!1,status:c.status,error:"server_error"}}catch{return{ok:!1,status:0,error:"network_error"}}}const uy=l=>`/interaction/${encodeURIComponent(l)}`;function g_(l){return iy(`${uy(l)}/details`,"GET")}function v_(l,r,u=!1){return iy(`${uy(l)}/${r}`,"POST",u?{afterStepUp:!0}:void 0)}function p_(l){try{const r=new URL(l,window.location.origin);return r.origin===window.location.origin?r.href:null}catch{return null}}const Vd="seamless.interaction";function $_(l){try{sessionStorage.setItem(Vd,JSON.stringify(l))}catch{}}function Xd(){try{const l=JSON.parse(sessionStorage.getItem(Vd)??"null");if(typeof l=="object"&&l!==null&&"uid"in l&&typeof l.uid=="string"&&"clientName"in l&&typeof l.clientName=="string")return{uid:l.uid,clientName:l.clientName}}catch{}return null}function ud(){try{sessionStorage.removeItem(Vd)}catch{}}function __({title:l,children:r}){const u=b.useRef(null);return b.useEffect(()=>u.current?.focus(),[]),y.jsxs("section",{role:"alert","aria-labelledby":"notice-title",className:"card notice",children:[y.jsx("h2",{id:"notice-title",ref:u,tabIndex:-1,children:l}),y.jsx("p",{children:r})]})}function b_({clientName:l,methods:r,onVerified:u,onCancel:c}){const{verifyStepUpWithPasskey:s,verifyStepUpWithTotp:f}=Ie(),m=b.useRef(null),[v,h]=b.useState(!1),[$,_]=b.useState(null),[p,x]=b.useState("");b.useEffect(()=>m.current?.focus(),[]);async function M(){h(!0),_(null);const A=await s();if(h(!1),!A.error){u();return}_("We could not confirm it was you. Try again with your passkey.")}async function z(A){A.preventDefault(),h(!0),_(null);const R=await f(p.trim());if(h(!1),x(""),!R.error){u();return}_("That code did not work. Enter the code your authenticator app shows now.")}return y.jsxs("section",{"aria-labelledby":"step-up-title",className:"card",children:[y.jsx("h2",{id:"step-up-title",ref:m,tabIndex:-1,children:"Confirm it is you"}),y.jsxs("p",{children:[l," needs you to confirm your sign-in before it continues."]}),$?y.jsx("p",{role:"alert",className:"error",children:$}):null,y.jsx("div",{className:"actions",children:y.jsx("button",{type:"button",className:"primary",onClick:()=>{M()},disabled:v,children:"Use your passkey"})}),r.includes("totp")?y.jsxs("form",{className:"step-up-totp",onSubmit:A=>{z(A)},children:[y.jsx("label",{htmlFor:"step-up-code",children:"Or enter a code from your authenticator app"}),y.jsx("input",{id:"step-up-code",name:"code",inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9]{6}",maxLength:6,value:p,onChange:A=>x(A.target.value),disabled:v}),y.jsx("button",{type:"submit",className:"secondary",disabled:v||p.trim().length!==6,children:"Confirm with code"})]}):null,y.jsx("div",{className:"actions",children:y.jsx("button",{type:"button",className:"secondary",onClick:c,disabled:v,children:"Cancel"})})]})}const wh="This sign-in request has expired. Go back to the app and start again.";function S_({appName:l}){const{uid:r=""}=Jv(),u=Qe(),{isAuthenticated:c,loading:s}=Ie(),[f,m]=b.useState(null),[v,h]=b.useState(null),[$,_]=b.useState(!1),[p,x]=b.useState(null),M=b.useRef(!1);b.useEffect(()=>{let A=!1;return g_(r).then(R=>{if(!A){if(!R.ok){ud(),h(wh);return}$_({...Xd(),uid:r,clientName:R.data.client.name}),m(R.data)}}),()=>{A=!0}},[r]);const z=b.useCallback(async(A,R=!1)=>{_(!0),x(null);const B=await v_(r,A,R);if(B.ok){const X=p_(B.data.redirectTo);if(X){ud(),window.location.assign(X);return}_(!1),h("Something went wrong. Go back to the app and try again.");return}switch(_(!1),M.current=!1,B.error){case"login_required":u("/login",{replace:!0});return;case"step_up_required":x(B.methods?.length?B.methods:["passkey"]);return;case"enrollment_required":u("/register-passkey",{replace:!0});return;case"account_mismatch":h("You are signed in here with a different account from the one this app knows. Sign out of the app, then try again.");return;case"interaction_expired":case"interaction_mismatch":ud(),h(wh);return;default:h("Something went wrong. Go back to the app and try again.")}},[r,u]);return b.useEffect(()=>{if(!(!f||s||M.current))if(f.prompt.name==="login"){if(!c){u("/login",{replace:!0});return}M.current=!0,z("login")}else f.prompt.name==="consent"&&f.client.firstParty&&(M.current=!0,z("consent"))},[f,s,c,u,z]),v?y.jsx(__,{title:"We could not finish signing you in",children:v}):p&&f?y.jsx(b_,{clientName:f.client.name,methods:p,onVerified:()=>{z("login",!0)},onCancel:()=>{z("abort")}}):f?.prompt.name==="consent"&&!f.client.firstParty?y.jsx(h_,{details:f,appName:l,busy:$,onAllow:()=>{z("consent")},onDeny:()=>{z("abort")}}):y.jsx("p",{role:"status",className:"card status",children:f?`Signing you in to ${f.client.name}…`:"Loading…"})}function Ah({appName:l,logoUrl:r,children:u}){const c=Xd();return y.jsxs("div",{className:"page",children:[y.jsxs("header",{className:"brand",children:[r?y.jsx("img",{className:"brand-logo",src:r,alt:""}):null,y.jsx("h1",{className:"brand-name",children:l}),c?y.jsxs("p",{className:"brand-context",children:["Signing in to continue to ",y.jsx("strong",{children:c.clientName})]}):null]}),y.jsx("main",{className:"content",id:"main",children:u})]})}function Dl(l){return typeof l=="string"&&l?l:null}function E_(){let l;try{l=JSON.parse(document.getElementById("seamless-page")?.textContent??"null")}catch{return null}if(typeof l!="object"||l===null||!("view"in l))return null;const r=l,u=Dl(r.clientName),c=Dl(r.action),s=Dl(r.xsrf);if(r.view==="logout"&&c&&s)return{view:"logout",action:c,xsrf:s,clientName:u};if(r.view==="signed_out")return{view:"signed_out",clientName:u};if(r.view==="device_input"&&c&&s)return{view:"device_input",action:c,xsrf:s,userCode:Dl(r.userCode),error:Dl(r.error)};const f=Dl(r.userCode);if(r.view==="device_confirm"&&c&&s&&f){const m=Array.isArray(r.scopes)?r.scopes.filter(v=>typeof v=="string"):[];return{view:"device_confirm",action:c,xsrf:s,userCode:f,clientName:u,scopes:m}}return r.view==="device_done"?{view:"device_done",clientName:u}:null}function ei(){const l=b.useRef(null);return b.useEffect(()=>l.current?.focus(),[]),l}function x_({appName:l,page:r}){const u=ei();return y.jsxs("section",{"aria-labelledby":"logout-title",className:"card",children:[y.jsx("h2",{id:"logout-title",ref:u,tabIndex:-1,children:"Sign out?"}),y.jsxs("p",{children:["This signs you out of ",l," and of every app you signed in to with it",r.clientName?`, including ${r.clientName}`:"","."]}),y.jsxs("form",{method:"post",action:r.action,children:[y.jsx("input",{type:"hidden",name:"xsrf",value:r.xsrf}),y.jsxs("div",{className:"actions",children:[y.jsx("button",{type:"submit",className:"primary",name:"logout",value:"yes",children:"Sign out"}),y.jsx("button",{type:"submit",className:"secondary",children:r.clientName?`Only sign out of ${r.clientName}`:"Stay signed in"})]})]})]})}function N_({appName:l}){const r=ei();return y.jsxs("section",{"aria-labelledby":"signed-out-title",className:"card",children:[y.jsx("h2",{id:"signed-out-title",ref:r,tabIndex:-1,children:"You are signed out"}),y.jsxs("p",{children:["You can close this page. Sign in again from any app that uses ",l,"."]})]})}const T_={not_found:"That code was not found. Check it and try again.",expired:"That code has expired. Start again on your device.",already_used:"That code was already used. Start again on your device.",aborted:"You cancelled. Nothing was signed in.",no_code:"Enter the code your device shows."};function O_({page:l}){const r=ei(),u=l.error?T_[l.error]??"Something went wrong. Try again.":null;return y.jsxs("section",{"aria-labelledby":"device-title",className:"card",children:[y.jsx("h2",{id:"device-title",ref:r,tabIndex:-1,children:"Sign in on a device"}),y.jsx("p",{children:"Enter the code shown on your TV, console or terminal."}),u?y.jsx("p",{role:"alert",className:"error",children:u}):null,y.jsxs("form",{method:"post",action:l.action,children:[y.jsx("input",{type:"hidden",name:"xsrf",value:l.xsrf}),y.jsxs("div",{className:"device-code-field",children:[y.jsx("label",{htmlFor:"user-code",children:"Code"}),y.jsx("input",{id:"user-code",name:"user_code",type:"text",defaultValue:l.userCode??"",autoComplete:"off",autoCapitalize:"characters",spellCheck:!1,required:!0,"aria-invalid":u?!0:void 0})]}),y.jsx("div",{className:"actions",children:y.jsx("button",{type:"submit",className:"primary",children:"Continue"})})]})]})}function C_({page:l}){const r=ei(),u=l.clientName??"An app";return y.jsxs("section",{"aria-labelledby":"device-confirm-title",className:"card consent",children:[y.jsxs("h2",{id:"device-confirm-title",ref:r,tabIndex:-1,children:[u," wants to sign in on a device"]}),y.jsxs("p",{className:"consent-warning",children:[y.jsx("strong",{children:"Only continue if you started this on your own device"})," and it shows the code"," ",y.jsx("strong",{className:"user-code",children:l.userCode}),". If someone sent you this code or link, cancel: continuing would sign them in as you."]}),l.scopes.length>0?y.jsxs("p",{children:["It asks for: ",y.jsx("span",{children:l.scopes.join(", ")})]}):null,y.jsxs("form",{method:"post",action:l.action,children:[y.jsx("input",{type:"hidden",name:"xsrf",value:l.xsrf}),y.jsx("input",{type:"hidden",name:"user_code",value:l.userCode}),y.jsxs("div",{className:"actions",children:[y.jsx("button",{type:"submit",className:"primary",name:"confirm",value:"yes",children:"Continue"}),y.jsx("button",{type:"submit",className:"secondary",name:"abort",value:"yes",children:"Cancel"})]})]})]})}function R_({page:l}){const r=ei();return y.jsxs("section",{"aria-labelledby":"device-done-title",className:"card",children:[y.jsx("h2",{id:"device-done-title",ref:r,tabIndex:-1,children:"Your device is signed in"}),y.jsxs("p",{children:[l.clientName??"The app"," on your device can continue now. You can close this page."]})]})}function w_({appName:l,page:r}){switch(r.view){case"logout":return y.jsx(x_,{appName:l,page:r});case"signed_out":return y.jsx(N_,{appName:l});case"device_input":return y.jsx(O_,{page:r});case"device_confirm":return y.jsx(C_,{page:r});case"device_done":return y.jsx(R_,{page:r})}}function A_(){const l=Qe(),r=Xd();return b.useEffect(()=>{r&&l(`/interaction/${encodeURIComponent(r.uid)}`,{replace:!0})},[r,l]),r?y.jsx("p",{role:"status",className:"card status",children:"Continuing…"}):y.jsxs("section",{"aria-labelledby":"done-title",className:"card",children:[y.jsx("h2",{id:"done-title",children:"You are signed in"}),y.jsx("p",{children:"You can close this tab and go back to the app."})]})}function j_(){const{appName:l,logoUrl:r}=d_(),u=window.location.origin,c=E_();return c?y.jsx(Ah,{appName:l,logoUrl:r,children:y.jsx(w_,{appName:l,page:c})}):y.jsx(F$,{apiHost:u,magicLinkRedirectUri:`${u}/verify-magiclink`,children:y.jsx(Ah,{appName:l,logoUrl:r,children:y.jsxs(Jh,{children:[y.jsx(Ze,{path:"/",element:y.jsx(A_,{})}),y.jsx(Ze,{path:"/interaction/:uid",element:y.jsx(S_,{appName:l})}),y.jsx(Ze,{path:"/*",element:y.jsx(s_,{})})]})})})}const jh=document.getElementById("root");jh&&mv.createRoot(jh).render(y.jsx(b.StrictMode,{children:y.jsx(kp,{children:y.jsx(j_,{})})}));
|