@arthapay/widget 1.0.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.
@@ -0,0 +1,47 @@
1
+ var ArthaPay=(function(){"use strict";function Ff(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var cu={exports:{}},G={};/**
2
+ * @license React
3
+ * react.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Wf;function Cd(){if(Wf)return G;Wf=1;var o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),K=Symbol.iterator;function jt(p){return p===null||typeof p!="object"?null:(p=K&&p[K]||p["@@iterator"],typeof p=="function"?p:null)}var Nt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bt=Object.assign,de={};function Zt(p,C,U){this.props=p,this.context=C,this.refs=de,this.updater=U||Nt}Zt.prototype.isReactComponent={},Zt.prototype.setState=function(p,C){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,C,"setState")},Zt.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function et(){}et.prototype=Zt.prototype;function nt(p,C,U){this.props=p,this.context=C,this.refs=de,this.updater=U||Nt}var _t=nt.prototype=new et;_t.constructor=nt,Bt(_t,Zt.prototype),_t.isPureReactComponent=!0;var Dt=Array.isArray;function Ht(){}var P={H:null,A:null,T:null,S:null},kt=Object.prototype.hasOwnProperty;function De(p,C,U){var H=U.ref;return{$$typeof:o,type:p,key:C,ref:H!==void 0?H:null,props:U}}function $l(p,C){return De(p.type,C,p.props)}function Ue(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Jt(p){var C={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(U){return C[U]})}var Nl=/\/+/g;function Ye(p,C){return typeof p=="object"&&p!==null&&p.key!=null?Jt(""+p.key):C.toString(36)}function xe(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Ht,Ht):(p.status="pending",p.then(function(C){p.status==="pending"&&(p.status="fulfilled",p.value=C)},function(C){p.status==="pending"&&(p.status="rejected",p.reason=C)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function T(p,C,U,H,j){var k=typeof p;(k==="undefined"||k==="boolean")&&(p=null);var ut=!1;if(p===null)ut=!0;else switch(k){case"bigint":case"string":case"number":ut=!0;break;case"object":switch(p.$$typeof){case o:case u:ut=!0;break;case L:return ut=p._init,T(ut(p._payload),C,U,H,j)}}if(ut)return j=j(p),ut=H===""?"."+Ye(p,0):H,Dt(j)?(U="",ut!=null&&(U=ut.replace(Nl,"$&/")+"/"),T(j,C,U,"",function(Xa){return Xa})):j!=null&&(Ue(j)&&(j=$l(j,U+(j.key==null||p&&p.key===j.key?"":(""+j.key).replace(Nl,"$&/")+"/")+ut)),C.push(j)),1;ut=0;var Vt=H===""?".":H+":";if(Dt(p))for(var St=0;St<p.length;St++)H=p[St],k=Vt+Ye(H,St),ut+=T(H,C,U,k,j);else if(St=jt(p),typeof St=="function")for(p=St.call(p),St=0;!(H=p.next()).done;)H=H.value,k=Vt+Ye(H,St++),ut+=T(H,C,U,k,j);else if(k==="object"){if(typeof p.then=="function")return T(xe(p),C,U,H,j);throw C=String(p),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return ut}function D(p,C,U){if(p==null)return p;var H=[],j=0;return T(p,H,"","",function(k){return C.call(U,k,j++)}),H}function Q(p){if(p._status===-1){var C=p._result;C=C(),C.then(function(U){(p._status===0||p._status===-1)&&(p._status=1,p._result=U)},function(U){(p._status===0||p._status===-1)&&(p._status=2,p._result=U)}),p._status===-1&&(p._status=0,p._result=C)}if(p._status===1)return p._result.default;throw p._result}var st=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},dt={map:D,forEach:function(p,C,U){D(p,function(){C.apply(this,arguments)},U)},count:function(p){var C=0;return D(p,function(){C++}),C},toArray:function(p){return D(p,function(C){return C})||[]},only:function(p){if(!Ue(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return G.Activity=B,G.Children=dt,G.Component=Zt,G.Fragment=c,G.Profiler=d,G.PureComponent=nt,G.StrictMode=f,G.Suspense=N,G.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,G.__COMPILER_RUNTIME={__proto__:null,c:function(p){return P.H.useMemoCache(p)}},G.cache=function(p){return function(){return p.apply(null,arguments)}},G.cacheSignal=function(){return null},G.cloneElement=function(p,C,U){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var H=Bt({},p.props),j=p.key;if(C!=null)for(k in C.key!==void 0&&(j=""+C.key),C)!kt.call(C,k)||k==="key"||k==="__self"||k==="__source"||k==="ref"&&C.ref===void 0||(H[k]=C[k]);var k=arguments.length-2;if(k===1)H.children=U;else if(1<k){for(var ut=Array(k),Vt=0;Vt<k;Vt++)ut[Vt]=arguments[Vt+2];H.children=ut}return De(p.type,j,H)},G.createContext=function(p){return p={$$typeof:M,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:z,_context:p},p},G.createElement=function(p,C,U){var H,j={},k=null;if(C!=null)for(H in C.key!==void 0&&(k=""+C.key),C)kt.call(C,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(j[H]=C[H]);var ut=arguments.length-2;if(ut===1)j.children=U;else if(1<ut){for(var Vt=Array(ut),St=0;St<ut;St++)Vt[St]=arguments[St+2];j.children=Vt}if(p&&p.defaultProps)for(H in ut=p.defaultProps,ut)j[H]===void 0&&(j[H]=ut[H]);return De(p,k,j)},G.createRef=function(){return{current:null}},G.forwardRef=function(p){return{$$typeof:w,render:p}},G.isValidElement=Ue,G.lazy=function(p){return{$$typeof:L,_payload:{_status:-1,_result:p},_init:Q}},G.memo=function(p,C){return{$$typeof:A,type:p,compare:C===void 0?null:C}},G.startTransition=function(p){var C=P.T,U={};P.T=U;try{var H=p(),j=P.S;j!==null&&j(U,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(Ht,st)}catch(k){st(k)}finally{C!==null&&U.types!==null&&(C.types=U.types),P.T=C}},G.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},G.use=function(p){return P.H.use(p)},G.useActionState=function(p,C,U){return P.H.useActionState(p,C,U)},G.useCallback=function(p,C){return P.H.useCallback(p,C)},G.useContext=function(p){return P.H.useContext(p)},G.useDebugValue=function(){},G.useDeferredValue=function(p,C){return P.H.useDeferredValue(p,C)},G.useEffect=function(p,C){return P.H.useEffect(p,C)},G.useEffectEvent=function(p){return P.H.useEffectEvent(p)},G.useId=function(){return P.H.useId()},G.useImperativeHandle=function(p,C,U){return P.H.useImperativeHandle(p,C,U)},G.useInsertionEffect=function(p,C){return P.H.useInsertionEffect(p,C)},G.useLayoutEffect=function(p,C){return P.H.useLayoutEffect(p,C)},G.useMemo=function(p,C){return P.H.useMemo(p,C)},G.useOptimistic=function(p,C){return P.H.useOptimistic(p,C)},G.useReducer=function(p,C,U){return P.H.useReducer(p,C,U)},G.useRef=function(p){return P.H.useRef(p)},G.useState=function(p){return P.H.useState(p)},G.useSyncExternalStore=function(p,C,U){return P.H.useSyncExternalStore(p,C,U)},G.useTransition=function(){return P.H.useTransition()},G.version="19.2.4",G}var $f;function fu(){return $f||($f=1,cu.exports=Cd()),cu.exports}var Gt=fu();const S=Ff(Gt);var su={exports:{}},qa={},ou={exports:{}},ru={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var If;function Nd(){return If||(If=1,(function(o){function u(T,D){var Q=T.length;T.push(D);t:for(;0<Q;){var st=Q-1>>>1,dt=T[st];if(0<d(dt,D))T[st]=D,T[Q]=dt,Q=st;else break t}}function c(T){return T.length===0?null:T[0]}function f(T){if(T.length===0)return null;var D=T[0],Q=T.pop();if(Q!==D){T[0]=Q;t:for(var st=0,dt=T.length,p=dt>>>1;st<p;){var C=2*(st+1)-1,U=T[C],H=C+1,j=T[H];if(0>d(U,Q))H<dt&&0>d(j,U)?(T[st]=j,T[H]=Q,st=H):(T[st]=U,T[C]=Q,st=C);else if(H<dt&&0>d(j,Q))T[st]=j,T[H]=Q,st=H;else break t}}return D}function d(T,D){var Q=T.sortIndex-D.sortIndex;return Q!==0?Q:T.id-D.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var z=performance;o.unstable_now=function(){return z.now()}}else{var M=Date,w=M.now();o.unstable_now=function(){return M.now()-w}}var N=[],A=[],L=1,B=null,K=3,jt=!1,Nt=!1,Bt=!1,de=!1,Zt=typeof setTimeout=="function"?setTimeout:null,et=typeof clearTimeout=="function"?clearTimeout:null,nt=typeof setImmediate<"u"?setImmediate:null;function _t(T){for(var D=c(A);D!==null;){if(D.callback===null)f(A);else if(D.startTime<=T)f(A),D.sortIndex=D.expirationTime,u(N,D);else break;D=c(A)}}function Dt(T){if(Bt=!1,_t(T),!Nt)if(c(N)!==null)Nt=!0,Ht||(Ht=!0,Jt());else{var D=c(A);D!==null&&xe(Dt,D.startTime-T)}}var Ht=!1,P=-1,kt=5,De=-1;function $l(){return de?!0:!(o.unstable_now()-De<kt)}function Ue(){if(de=!1,Ht){var T=o.unstable_now();De=T;var D=!0;try{t:{Nt=!1,Bt&&(Bt=!1,et(P),P=-1),jt=!0;var Q=K;try{e:{for(_t(T),B=c(N);B!==null&&!(B.expirationTime>T&&$l());){var st=B.callback;if(typeof st=="function"){B.callback=null,K=B.priorityLevel;var dt=st(B.expirationTime<=T);if(T=o.unstable_now(),typeof dt=="function"){B.callback=dt,_t(T),D=!0;break e}B===c(N)&&f(N),_t(T)}else f(N);B=c(N)}if(B!==null)D=!0;else{var p=c(A);p!==null&&xe(Dt,p.startTime-T),D=!1}}break t}finally{B=null,K=Q,jt=!1}D=void 0}}finally{D?Jt():Ht=!1}}}var Jt;if(typeof nt=="function")Jt=function(){nt(Ue)};else if(typeof MessageChannel<"u"){var Nl=new MessageChannel,Ye=Nl.port2;Nl.port1.onmessage=Ue,Jt=function(){Ye.postMessage(null)}}else Jt=function(){Zt(Ue,0)};function xe(T,D){P=Zt(function(){T(o.unstable_now())},D)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(T){T.callback=null},o.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):kt=0<T?Math.floor(1e3/T):5},o.unstable_getCurrentPriorityLevel=function(){return K},o.unstable_next=function(T){switch(K){case 1:case 2:case 3:var D=3;break;default:D=K}var Q=K;K=D;try{return T()}finally{K=Q}},o.unstable_requestPaint=function(){de=!0},o.unstable_runWithPriority=function(T,D){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Q=K;K=T;try{return D()}finally{K=Q}},o.unstable_scheduleCallback=function(T,D,Q){var st=o.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?st+Q:st):Q=st,T){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=Q+dt,T={id:L++,callback:D,priorityLevel:T,startTime:Q,expirationTime:dt,sortIndex:-1},Q>st?(T.sortIndex=Q,u(A,T),c(N)===null&&T===c(A)&&(Bt?(et(P),P=-1):Bt=!0,xe(Dt,Q-st))):(T.sortIndex=dt,u(N,T),Nt||jt||(Nt=!0,Ht||(Ht=!0,Jt()))),T},o.unstable_shouldYield=$l,o.unstable_wrapCallback=function(T){var D=K;return function(){var Q=K;K=D;try{return T.apply(this,arguments)}finally{K=Q}}}})(ru)),ru}var Pf;function Md(){return Pf||(Pf=1,ou.exports=Nd()),ou.exports}var hu={exports:{}},Qt={};/**
18
+ * @license React
19
+ * react-dom.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var ts;function Dd(){if(ts)return Qt;ts=1;var o=fu();function u(N){var A="https://react.dev/errors/"+N;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var L=2;L<arguments.length;L++)A+="&args[]="+encodeURIComponent(arguments[L])}return"Minified React error #"+N+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var f={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function z(N,A,L){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:B==null?null:""+B,children:N,containerInfo:A,implementation:L}}var M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(N,A){if(N==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Qt.createPortal=function(N,A){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(u(299));return z(N,A,null,L)},Qt.flushSync=function(N){var A=M.T,L=f.p;try{if(M.T=null,f.p=2,N)return N()}finally{M.T=A,f.p=L,f.d.f()}},Qt.preconnect=function(N,A){typeof N=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,f.d.C(N,A))},Qt.prefetchDNS=function(N){typeof N=="string"&&f.d.D(N)},Qt.preinit=function(N,A){if(typeof N=="string"&&A&&typeof A.as=="string"){var L=A.as,B=w(L,A.crossOrigin),K=typeof A.integrity=="string"?A.integrity:void 0,jt=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;L==="style"?f.d.S(N,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:B,integrity:K,fetchPriority:jt}):L==="script"&&f.d.X(N,{crossOrigin:B,integrity:K,fetchPriority:jt,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},Qt.preinitModule=function(N,A){if(typeof N=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var L=w(A.as,A.crossOrigin);f.d.M(N,{crossOrigin:L,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&f.d.M(N)},Qt.preload=function(N,A){if(typeof N=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var L=A.as,B=w(L,A.crossOrigin);f.d.L(N,L,{crossOrigin:B,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},Qt.preloadModule=function(N,A){if(typeof N=="string")if(A){var L=w(A.as,A.crossOrigin);f.d.m(N,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:L,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else f.d.m(N)},Qt.requestFormReset=function(N){f.d.r(N)},Qt.unstable_batchedUpdates=function(N,A){return N(A)},Qt.useFormState=function(N,A,L){return M.H.useFormState(N,A,L)},Qt.useFormStatus=function(){return M.H.useHostTransitionStatus()},Qt.version="19.2.4",Qt}var es;function Ud(){if(es)return hu.exports;es=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(u){console.error(u)}}return o(),hu.exports=Dd(),hu.exports}/**
26
+ * @license React
27
+ * react-dom-client.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var ls;function Rd(){if(ls)return qa;ls=1;var o=Md(),u=fu(),c=Ud();function f(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function z(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function M(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function w(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function N(t){if(z(t)!==t)throw Error(f(188))}function A(t){var e=t.alternate;if(!e){if(e=z(t),e===null)throw Error(f(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return N(n),t;if(i===a)return N(n),e;i=i.sibling}throw Error(f(188))}if(l.return!==a.return)l=n,a=i;else{for(var s=!1,r=n.child;r;){if(r===l){s=!0,l=n,a=i;break}if(r===a){s=!0,a=n,l=i;break}r=r.sibling}if(!s){for(r=i.child;r;){if(r===l){s=!0,l=i,a=n;break}if(r===a){s=!0,a=i,l=n;break}r=r.sibling}if(!s)throw Error(f(189))}}if(l.alternate!==a)throw Error(f(190))}if(l.tag!==3)throw Error(f(188));return l.stateNode.current===l?t:e}function L(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=L(t),e!==null)return e;t=t.sibling}return null}var B=Object.assign,K=Symbol.for("react.element"),jt=Symbol.for("react.transitional.element"),Nt=Symbol.for("react.portal"),Bt=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),Zt=Symbol.for("react.profiler"),et=Symbol.for("react.consumer"),nt=Symbol.for("react.context"),_t=Symbol.for("react.forward_ref"),Dt=Symbol.for("react.suspense"),Ht=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),kt=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),$l=Symbol.for("react.memo_cache_sentinel"),Ue=Symbol.iterator;function Jt(t){return t===null||typeof t!="object"?null:(t=Ue&&t[Ue]||t["@@iterator"],typeof t=="function"?t:null)}var Nl=Symbol.for("react.client.reference");function Ye(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Nl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Bt:return"Fragment";case Zt:return"Profiler";case de:return"StrictMode";case Dt:return"Suspense";case Ht:return"SuspenseList";case De:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Nt:return"Portal";case nt:return t.displayName||"Context";case et:return(t._context.displayName||"Context")+".Consumer";case _t:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:Ye(t.type)||"Memo";case kt:e=t._payload,t=t._init;try{return Ye(t(e))}catch{}}return null}var xe=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},st=[],dt=-1;function p(t){return{current:t}}function C(t){0>dt||(t.current=st[dt],st[dt]=null,dt--)}function U(t,e){dt++,st[dt]=t.current,t.current=e}var H=p(null),j=p(null),k=p(null),ut=p(null);function Vt(t,e){switch(U(k,e),U(j,t),U(H,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?$h(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=$h(e),t=Ih(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}C(H),U(H,t)}function St(){C(H),C(j),C(k)}function Xa(t){t.memoizedState!==null&&U(ut,t);var e=H.current,l=Ih(e,t.type);e!==l&&(U(j,t),U(H,l))}function jn(t){j.current===t&&(C(H),C(j)),ut.current===t&&(C(ut),Mn._currentValue=Q)}var Mu,zs;function Ml(t){if(Mu===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Mu=e&&e[1]||"",zs=-1<l.stack.indexOf(`
34
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
35
+ `+Mu+t+zs}var Du=!1;function Uu(t,e){if(!t||Du)return"";Du=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(_){var b=_}Reflect.construct(t,[],O)}else{try{O.call()}catch(_){b=_}t.call(O.prototype)}}else{try{throw Error()}catch(_){b=_}(O=t())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(_){if(_&&b&&typeof _.stack=="string")return[_.stack,b.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),s=i[0],r=i[1];if(s&&r){var h=s.split(`
36
+ `),v=r.split(`
37
+ `);for(n=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;if(a===h.length||n===v.length)for(a=h.length-1,n=v.length-1;1<=a&&0<=n&&h[a]!==v[n];)n--;for(;1<=a&&0<=n;a--,n--)if(h[a]!==v[n]){if(a!==1||n!==1)do if(a--,n--,0>n||h[a]!==v[n]){var E=`
38
+ `+h[a].replace(" at new "," at ");return t.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",t.displayName)),E}while(1<=a&&0<=n);break}}}finally{Du=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ml(l):""}function Km(t,e){switch(t.tag){case 26:case 27:case 5:return Ml(t.type);case 16:return Ml("Lazy");case 13:return t.child!==e&&e!==null?Ml("Suspense Fallback"):Ml("Suspense");case 19:return Ml("SuspenseList");case 0:case 15:return Uu(t.type,!1);case 11:return Uu(t.type.render,!1);case 1:return Uu(t.type,!0);case 31:return Ml("Activity");default:return""}}function Os(t){try{var e="",l=null;do e+=Km(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
39
+ Error generating stack: `+a.message+`
40
+ `+a.stack}}var Ru=Object.prototype.hasOwnProperty,Bu=o.unstable_scheduleCallback,Hu=o.unstable_cancelCallback,km=o.unstable_shouldYield,Jm=o.unstable_requestPaint,le=o.unstable_now,Fm=o.unstable_getCurrentPriorityLevel,Cs=o.unstable_ImmediatePriority,Ns=o.unstable_UserBlockingPriority,Zn=o.unstable_NormalPriority,Wm=o.unstable_LowPriority,Ms=o.unstable_IdlePriority,$m=o.log,Im=o.unstable_setDisableYieldValue,Qa=null,ae=null;function nl(t){if(typeof $m=="function"&&Im(t),ae&&typeof ae.setStrictMode=="function")try{ae.setStrictMode(Qa,t)}catch{}}var ne=Math.clz32?Math.clz32:ep,Pm=Math.log,tp=Math.LN2;function ep(t){return t>>>=0,t===0?32:31-(Pm(t)/tp|0)|0}var Vn=256,Kn=262144,kn=4194304;function Dl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Jn(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var r=a&134217727;return r!==0?(a=r&~i,a!==0?n=Dl(a):(s&=r,s!==0?n=Dl(s):l||(l=r&~t,l!==0&&(n=Dl(l))))):(r=a&~i,r!==0?n=Dl(r):s!==0?n=Dl(s):l||(l=a&~t,l!==0&&(n=Dl(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function Ga(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function lp(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Ds(){var t=kn;return kn<<=1,(kn&62914560)===0&&(kn=4194304),t}function qu(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function ja(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ap(t,e,l,a,n,i){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var r=t.entanglements,h=t.expirationTimes,v=t.hiddenUpdates;for(l=s&~l;0<l;){var E=31-ne(l),O=1<<E;r[E]=0,h[E]=-1;var b=v[E];if(b!==null)for(v[E]=null,E=0;E<b.length;E++){var _=b[E];_!==null&&(_.lane&=-536870913)}l&=~O}a!==0&&Us(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(s&~e))}function Us(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ne(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Rs(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-ne(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function Bs(t,e){var l=e&-e;return l=(l&42)!==0?1:wu(l),(l&(t.suspendedLanes|e))!==0?0:l}function wu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Yu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Hs(){var t=D.p;return t!==0?t:(t=window.event,t===void 0?32:Sd(t.type))}function qs(t,e){var l=D.p;try{return D.p=t,e()}finally{D.p=l}}var il=Math.random().toString(36).slice(2),qt="__reactFiber$"+il,Ft="__reactProps$"+il,Il="__reactContainer$"+il,Lu="__reactEvents$"+il,np="__reactListeners$"+il,ip="__reactHandles$"+il,ws="__reactResources$"+il,Za="__reactMarker$"+il;function Xu(t){delete t[qt],delete t[Ft],delete t[Lu],delete t[np],delete t[ip]}function Pl(t){var e=t[qt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Il]||l[qt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=id(t);t!==null;){if(l=t[qt])return l;t=id(t)}return e}t=l,l=t.parentNode}return null}function ta(t){if(t=t[qt]||t[Il]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Va(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(f(33))}function ea(t){var e=t[ws];return e||(e=t[ws]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ut(t){t[Za]=!0}var Ys=new Set,Ls={};function Ul(t,e){la(t,e),la(t+"Capture",e)}function la(t,e){for(Ls[t]=e,t=0;t<e.length;t++)Ys.add(e[t])}var up=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]*$"),Xs={},Qs={};function cp(t){return Ru.call(Qs,t)?!0:Ru.call(Xs,t)?!1:up.test(t)?Qs[t]=!0:(Xs[t]=!0,!1)}function Fn(t,e,l){if(cp(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Wn(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Le(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Gs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function fp(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Qu(t){if(!t._valueTracker){var e=Gs(t)?"checked":"value";t._valueTracker=fp(t,e,""+t[e])}}function js(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Gs(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function $n(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var sp=/[\n"\\]/g;function pe(t){return t.replace(sp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Gu(t,e,l,a,n,i,s,r){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+me(e)):t.value!==""+me(e)&&(t.value=""+me(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?ju(t,s,me(e)):l!=null?ju(t,s,me(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+me(r):t.removeAttribute("name")}function Zs(t,e,l,a,n,i,s,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Qu(t);return}l=l!=null?""+me(l):"",e=e!=null?""+me(e):l,r||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=r?t.checked:!!a,t.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),Qu(t)}function ju(t,e,l){e==="number"&&$n(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function aa(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+me(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Vs(t,e,l){if(e!=null&&(e=""+me(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+me(l):""}function Ks(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(f(92));if(xe(a)){if(1<a.length)throw Error(f(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=me(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Qu(t)}function na(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var op=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 ks(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||op.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Js(t,e,l){if(e!=null&&typeof e!="object")throw Error(f(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&ks(t,n,a)}else for(var i in e)e.hasOwnProperty(i)&&ks(t,i,e[i])}function Zu(t){if(t.indexOf("-")===-1)return!1;switch(t){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 rp=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"],["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"]]),hp=/^[\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 In(t){return hp.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Xe(){}var Vu=null;function Ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ia=null,ua=null;function Fs(t){var e=ta(t);if(e&&(t=e.stateNode)){var l=t[Ft]||null;t:switch(t=e.stateNode,e.type){case"input":if(Gu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+pe(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[Ft]||null;if(!n)throw Error(f(90));Gu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&js(a)}break t;case"textarea":Vs(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&aa(t,!!l.multiple,e,!1)}}}var ku=!1;function Ws(t,e,l){if(ku)return t(e,l);ku=!0;try{var a=t(e);return a}finally{if(ku=!1,(ia!==null||ua!==null)&&(Li(),ia&&(e=ia,t=ua,ua=ia=null,Fs(e),t)))for(e=0;e<t.length;e++)Fs(t[e])}}function Ka(t,e){var l=t.stateNode;if(l===null)return null;var a=l[Ft]||null;if(a===null)return null;l=a[e];t:switch(e){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(f(231,e,typeof l));return l}var Qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ju=!1;if(Qe)try{var ka={};Object.defineProperty(ka,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",ka,ka),window.removeEventListener("test",ka,ka)}catch{Ju=!1}var ul=null,Fu=null,Pn=null;function $s(){if(Pn)return Pn;var t,e=Fu,l=e.length,a,n="value"in ul?ul.value:ul.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var s=l-t;for(a=1;a<=s&&e[l-a]===n[i-a];a++);return Pn=n.slice(t,1<a?1-a:void 0)}function ti(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ei(){return!0}function Is(){return!1}function Wt(t){function e(l,a,n,i,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(l=t[r],this[r]=l?l(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ei:Is,this.isPropagationStopped=Is,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ei)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ei)},persist:function(){},isPersistent:ei}),e}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=Wt(Rl),Ja=B({},Rl,{view:0,detail:0}),dp=Wt(Ja),Wu,$u,Fa,ai=B({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fa&&(Fa&&t.type==="mousemove"?(Wu=t.screenX-Fa.screenX,$u=t.screenY-Fa.screenY):$u=Wu=0,Fa=t),Wu)},movementY:function(t){return"movementY"in t?t.movementY:$u}}),Ps=Wt(ai),mp=B({},ai,{dataTransfer:0}),pp=Wt(mp),yp=B({},Ja,{relatedTarget:0}),Iu=Wt(yp),gp=B({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),vp=Wt(gp),bp=B({},Rl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),_p=Wt(bp),Sp=B({},Rl,{data:0}),to=Wt(Sp),Ep={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tp={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"},Ap={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xp(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Ap[t])?!!e[t]:!1}function Pu(){return xp}var zp=B({},Ja,{key:function(t){if(t.key){var e=Ep[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ti(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Tp[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pu,charCode:function(t){return t.type==="keypress"?ti(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ti(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Op=Wt(zp),Cp=B({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eo=Wt(Cp),Np=B({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pu}),Mp=Wt(Np),Dp=B({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Up=Wt(Dp),Rp=B({},ai,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Bp=Wt(Rp),Hp=B({},Rl,{newState:0,oldState:0}),qp=Wt(Hp),wp=[9,13,27,32],tc=Qe&&"CompositionEvent"in window,Wa=null;Qe&&"documentMode"in document&&(Wa=document.documentMode);var Yp=Qe&&"TextEvent"in window&&!Wa,lo=Qe&&(!tc||Wa&&8<Wa&&11>=Wa),ao=" ",no=!1;function io(t,e){switch(t){case"keyup":return wp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ca=!1;function Lp(t,e){switch(t){case"compositionend":return uo(e);case"keypress":return e.which!==32?null:(no=!0,ao);case"textInput":return t=e.data,t===ao&&no?null:t;default:return null}}function Xp(t,e){if(ca)return t==="compositionend"||!tc&&io(t,e)?(t=$s(),Pn=Fu=ul=null,ca=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return lo&&e.locale!=="ko"?null:e.data;default:return null}}var Qp={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 co(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Qp[t.type]:e==="textarea"}function fo(t,e,l,a){ia?ua?ua.push(a):ua=[a]:ia=a,e=Ki(e,"onChange"),0<e.length&&(l=new li("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var $a=null,Ia=null;function Gp(t){Vh(t,0)}function ni(t){var e=Va(t);if(js(e))return t}function so(t,e){if(t==="change")return e}var oo=!1;if(Qe){var ec;if(Qe){var lc="oninput"in document;if(!lc){var ro=document.createElement("div");ro.setAttribute("oninput","return;"),lc=typeof ro.oninput=="function"}ec=lc}else ec=!1;oo=ec&&(!document.documentMode||9<document.documentMode)}function ho(){$a&&($a.detachEvent("onpropertychange",mo),Ia=$a=null)}function mo(t){if(t.propertyName==="value"&&ni(Ia)){var e=[];fo(e,Ia,t,Ku(t)),Ws(Gp,e)}}function jp(t,e,l){t==="focusin"?(ho(),$a=e,Ia=l,$a.attachEvent("onpropertychange",mo)):t==="focusout"&&ho()}function Zp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ni(Ia)}function Vp(t,e){if(t==="click")return ni(e)}function Kp(t,e){if(t==="input"||t==="change")return ni(e)}function kp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ie=typeof Object.is=="function"?Object.is:kp;function Pa(t,e){if(ie(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ru.call(e,n)||!ie(t[n],e[n]))return!1}return!0}function po(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yo(t,e){var l=po(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=po(l)}}function go(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?go(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function vo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=$n(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=$n(t.document)}return e}function ac(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Jp=Qe&&"documentMode"in document&&11>=document.documentMode,fa=null,nc=null,tn=null,ic=!1;function bo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ic||fa==null||fa!==$n(a)||(a=fa,"selectionStart"in a&&ac(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}),tn&&Pa(tn,a)||(tn=a,a=Ki(nc,"onSelect"),0<a.length&&(e=new li("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=fa)))}function Bl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var sa={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},uc={},_o={};Qe&&(_o=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);function Hl(t){if(uc[t])return uc[t];if(!sa[t])return t;var e=sa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in _o)return uc[t]=e[l];return t}var So=Hl("animationend"),Eo=Hl("animationiteration"),To=Hl("animationstart"),Fp=Hl("transitionrun"),Wp=Hl("transitionstart"),$p=Hl("transitioncancel"),Ao=Hl("transitionend"),xo=new Map,cc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(" ");cc.push("scrollEnd");function ze(t,e){xo.set(t,e),Ul(e,[t])}var ii=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},ye=[],oa=0,fc=0;function ui(){for(var t=oa,e=fc=oa=0;e<t;){var l=ye[e];ye[e++]=null;var a=ye[e];ye[e++]=null;var n=ye[e];ye[e++]=null;var i=ye[e];if(ye[e++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}i!==0&&zo(l,n,i)}}function ci(t,e,l,a){ye[oa++]=t,ye[oa++]=e,ye[oa++]=l,ye[oa++]=a,fc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function sc(t,e,l,a){return ci(t,e,l,a),fi(t)}function ql(t,e){return ci(t,null,null,e),fi(t)}function zo(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-ne(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function fi(t){if(50<Tn)throw Tn=0,bf=null,Error(f(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ra={};function Ip(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 ue(t,e,l,a){return new Ip(t,e,l,a)}function oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ge(t,e){var l=t.alternate;return l===null?(l=ue(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Oo(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function si(t,e,l,a,n,i){var s=0;if(a=t,typeof t=="function")oc(t)&&(s=1);else if(typeof t=="string")s=ay(t,l,H.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case De:return t=ue(31,l,e,n),t.elementType=De,t.lanes=i,t;case Bt:return wl(l.children,n,i,e);case de:s=8,n|=24;break;case Zt:return t=ue(12,l,e,n|2),t.elementType=Zt,t.lanes=i,t;case Dt:return t=ue(13,l,e,n),t.elementType=Dt,t.lanes=i,t;case Ht:return t=ue(19,l,e,n),t.elementType=Ht,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case nt:s=10;break t;case et:s=9;break t;case _t:s=11;break t;case P:s=14;break t;case kt:s=16,a=null;break t}s=29,l=Error(f(130,t===null?"null":typeof t,"")),a=null}return e=ue(s,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function wl(t,e,l,a){return t=ue(7,t,a,e),t.lanes=l,t}function rc(t,e,l){return t=ue(6,t,null,e),t.lanes=l,t}function Co(t){var e=ue(18,null,null,0);return e.stateNode=t,e}function hc(t,e,l){return e=ue(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var No=new WeakMap;function ge(t,e){if(typeof t=="object"&&t!==null){var l=No.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Os(e)},No.set(t,e),e)}return{value:t,source:e,stack:Os(e)}}var ha=[],da=0,oi=null,en=0,ve=[],be=0,cl=null,Re=1,Be="";function je(t,e){ha[da++]=en,ha[da++]=oi,oi=t,en=e}function Mo(t,e,l){ve[be++]=Re,ve[be++]=Be,ve[be++]=cl,cl=t;var a=Re;t=Be;var n=32-ne(a)-1;a&=~(1<<n),l+=1;var i=32-ne(e)+n;if(30<i){var s=n-n%5;i=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Re=1<<32-ne(e)+n|l<<n|a,Be=i+t}else Re=1<<i|l<<n|a,Be=t}function dc(t){t.return!==null&&(je(t,1),Mo(t,1,0))}function mc(t){for(;t===oi;)oi=ha[--da],ha[da]=null,en=ha[--da],ha[da]=null;for(;t===cl;)cl=ve[--be],ve[be]=null,Be=ve[--be],ve[be]=null,Re=ve[--be],ve[be]=null}function Do(t,e){ve[be++]=Re,ve[be++]=Be,ve[be++]=cl,Re=e.id,Be=e.overflow,cl=t}var wt=null,pt=null,tt=!1,fl=null,_e=!1,pc=Error(f(519));function sl(t){var e=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ln(ge(e,t)),pc}function Uo(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[qt]=t,e[Ft]=a,l){case"dialog":F("cancel",e),F("close",e);break;case"iframe":case"object":case"embed":F("load",e);break;case"video":case"audio":for(l=0;l<xn.length;l++)F(xn[l],e);break;case"source":F("error",e);break;case"img":case"image":case"link":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"input":F("invalid",e),Zs(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":F("invalid",e);break;case"textarea":F("invalid",e),Ks(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Fh(e.textContent,l)?(a.popover!=null&&(F("beforetoggle",e),F("toggle",e)),a.onScroll!=null&&F("scroll",e),a.onScrollEnd!=null&&F("scrollend",e),a.onClick!=null&&(e.onclick=Xe),e=!0):e=!1,e||sl(t,!0)}function Ro(t){for(wt=t.return;wt;)switch(wt.tag){case 5:case 31:case 13:_e=!1;return;case 27:case 3:_e=!0;return;default:wt=wt.return}}function ma(t){if(t!==wt)return!1;if(!tt)return Ro(t),tt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Bf(t.type,t.memoizedProps)),l=!l),l&&pt&&sl(t),Ro(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));pt=nd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));pt=nd(t)}else e===27?(e=pt,Tl(t.type)?(t=Lf,Lf=null,pt=t):pt=e):pt=wt?Ee(t.stateNode.nextSibling):null;return!0}function Yl(){pt=wt=null,tt=!1}function yc(){var t=fl;return t!==null&&(te===null?te=t:te.push.apply(te,t),fl=null),t}function ln(t){fl===null?fl=[t]:fl.push(t)}var gc=p(null),Ll=null,Ze=null;function ol(t,e,l){U(gc,e._currentValue),e._currentValue=l}function Ve(t){t._currentValue=gc.current,C(gc)}function vc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function bc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var s=n.child;i=i.firstContext;t:for(;i!==null;){var r=i;i=n;for(var h=0;h<e.length;h++)if(r.context===e[h]){i.lanes|=l,r=i.alternate,r!==null&&(r.lanes|=l),vc(i.return,l,t),a||(s=null);break t}i=r.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(f(341));s.lanes|=l,i=s.alternate,i!==null&&(i.lanes|=l),vc(s,l,t),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function pa(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(f(387));if(s=s.memoizedProps,s!==null){var r=n.type;ie(n.pendingProps.value,s.value)||(t!==null?t.push(r):t=[r])}}else if(n===ut.current){if(s=n.alternate,s===null)throw Error(f(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Mn):t=[Mn])}n=n.return}t!==null&&bc(e,t,l,a),e.flags|=262144}function ri(t){for(t=t.firstContext;t!==null;){if(!ie(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Xl(t){Ll=t,Ze=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Yt(t){return Bo(Ll,t)}function hi(t,e){return Ll===null&&Xl(t),Bo(t,e)}function Bo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ze===null){if(t===null)throw Error(f(308));Ze=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ze=Ze.next=e;return l}var Pp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},t0=o.unstable_scheduleCallback,e0=o.unstable_NormalPriority,xt={$$typeof:nt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _c(){return{controller:new Pp,data:new Map,refCount:0}}function an(t){t.refCount--,t.refCount===0&&t0(e0,function(){t.controller.abort()})}var nn=null,Sc=0,ya=0,ga=null;function l0(t,e){if(nn===null){var l=nn=[];Sc=0,ya=xf(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Sc++,e.then(Ho,Ho),e}function Ho(){if(--Sc===0&&nn!==null){ga!==null&&(ga.status="fulfilled");var t=nn;nn=null,ya=0,ga=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function a0(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var qo=T.S;T.S=function(t,e){bh=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&l0(t,e),qo!==null&&qo(t,e)};var Ql=p(null);function Ec(){var t=Ql.current;return t!==null?t:mt.pooledCache}function di(t,e){e===null?U(Ql,Ql.current):U(Ql,e.pool)}function wo(){var t=Ec();return t===null?null:{parent:xt._currentValue,pool:t}}var va=Error(f(460)),Tc=Error(f(474)),mi=Error(f(542)),pi={then:function(){}};function Yo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Lo(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Xe,Xe),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qo(t),t;default:if(typeof e.status=="string")e.then(Xe,Xe);else{if(t=mt,t!==null&&100<t.shellSuspendCounter)throw Error(f(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qo(t),t}throw jl=e,va}}function Gl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(jl=l,va):l}}var jl=null;function Xo(){if(jl===null)throw Error(f(459));var t=jl;return jl=null,t}function Qo(t){if(t===va||t===mi)throw Error(f(483))}var ba=null,un=0;function yi(t){var e=un;return un+=1,ba===null&&(ba=[]),Lo(ba,t,e)}function cn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function gi(t,e){throw e.$$typeof===K?Error(f(525)):(t=Object.prototype.toString.call(e),Error(f(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Go(t){function e(y,m){if(t){var g=y.deletions;g===null?(y.deletions=[m],y.flags|=16):g.push(m)}}function l(y,m){if(!t)return null;for(;m!==null;)e(y,m),m=m.sibling;return null}function a(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function n(y,m){return y=Ge(y,m),y.index=0,y.sibling=null,y}function i(y,m,g){return y.index=g,t?(g=y.alternate,g!==null?(g=g.index,g<m?(y.flags|=67108866,m):g):(y.flags|=67108866,m)):(y.flags|=1048576,m)}function s(y){return t&&y.alternate===null&&(y.flags|=67108866),y}function r(y,m,g,x){return m===null||m.tag!==6?(m=rc(g,y.mode,x),m.return=y,m):(m=n(m,g),m.return=y,m)}function h(y,m,g,x){var Y=g.type;return Y===Bt?E(y,m,g.props.children,x,g.key):m!==null&&(m.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===kt&&Gl(Y)===m.type)?(m=n(m,g.props),cn(m,g),m.return=y,m):(m=si(g.type,g.key,g.props,null,y.mode,x),cn(m,g),m.return=y,m)}function v(y,m,g,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=hc(g,y.mode,x),m.return=y,m):(m=n(m,g.children||[]),m.return=y,m)}function E(y,m,g,x,Y){return m===null||m.tag!==7?(m=wl(g,y.mode,x,Y),m.return=y,m):(m=n(m,g),m.return=y,m)}function O(y,m,g){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=rc(""+m,y.mode,g),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case jt:return g=si(m.type,m.key,m.props,null,y.mode,g),cn(g,m),g.return=y,g;case Nt:return m=hc(m,y.mode,g),m.return=y,m;case kt:return m=Gl(m),O(y,m,g)}if(xe(m)||Jt(m))return m=wl(m,y.mode,g,null),m.return=y,m;if(typeof m.then=="function")return O(y,yi(m),g);if(m.$$typeof===nt)return O(y,hi(y,m),g);gi(y,m)}return null}function b(y,m,g,x){var Y=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return Y!==null?null:r(y,m,""+g,x);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case jt:return g.key===Y?h(y,m,g,x):null;case Nt:return g.key===Y?v(y,m,g,x):null;case kt:return g=Gl(g),b(y,m,g,x)}if(xe(g)||Jt(g))return Y!==null?null:E(y,m,g,x,null);if(typeof g.then=="function")return b(y,m,yi(g),x);if(g.$$typeof===nt)return b(y,m,hi(y,g),x);gi(y,g)}return null}function _(y,m,g,x,Y){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return y=y.get(g)||null,r(m,y,""+x,Y);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case jt:return y=y.get(x.key===null?g:x.key)||null,h(m,y,x,Y);case Nt:return y=y.get(x.key===null?g:x.key)||null,v(m,y,x,Y);case kt:return x=Gl(x),_(y,m,g,x,Y)}if(xe(x)||Jt(x))return y=y.get(g)||null,E(m,y,x,Y,null);if(typeof x.then=="function")return _(y,m,g,yi(x),Y);if(x.$$typeof===nt)return _(y,m,g,hi(m,x),Y);gi(m,x)}return null}function R(y,m,g,x){for(var Y=null,lt=null,q=m,V=m=0,$=null;q!==null&&V<g.length;V++){q.index>V?($=q,q=null):$=q.sibling;var at=b(y,q,g[V],x);if(at===null){q===null&&(q=$);break}t&&q&&at.alternate===null&&e(y,q),m=i(at,m,V),lt===null?Y=at:lt.sibling=at,lt=at,q=$}if(V===g.length)return l(y,q),tt&&je(y,V),Y;if(q===null){for(;V<g.length;V++)q=O(y,g[V],x),q!==null&&(m=i(q,m,V),lt===null?Y=q:lt.sibling=q,lt=q);return tt&&je(y,V),Y}for(q=a(q);V<g.length;V++)$=_(q,y,V,g[V],x),$!==null&&(t&&$.alternate!==null&&q.delete($.key===null?V:$.key),m=i($,m,V),lt===null?Y=$:lt.sibling=$,lt=$);return t&&q.forEach(function(Cl){return e(y,Cl)}),tt&&je(y,V),Y}function X(y,m,g,x){if(g==null)throw Error(f(151));for(var Y=null,lt=null,q=m,V=m=0,$=null,at=g.next();q!==null&&!at.done;V++,at=g.next()){q.index>V?($=q,q=null):$=q.sibling;var Cl=b(y,q,at.value,x);if(Cl===null){q===null&&(q=$);break}t&&q&&Cl.alternate===null&&e(y,q),m=i(Cl,m,V),lt===null?Y=Cl:lt.sibling=Cl,lt=Cl,q=$}if(at.done)return l(y,q),tt&&je(y,V),Y;if(q===null){for(;!at.done;V++,at=g.next())at=O(y,at.value,x),at!==null&&(m=i(at,m,V),lt===null?Y=at:lt.sibling=at,lt=at);return tt&&je(y,V),Y}for(q=a(q);!at.done;V++,at=g.next())at=_(q,y,V,at.value,x),at!==null&&(t&&at.alternate!==null&&q.delete(at.key===null?V:at.key),m=i(at,m,V),lt===null?Y=at:lt.sibling=at,lt=at);return t&&q.forEach(function(my){return e(y,my)}),tt&&je(y,V),Y}function ht(y,m,g,x){if(typeof g=="object"&&g!==null&&g.type===Bt&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case jt:t:{for(var Y=g.key;m!==null;){if(m.key===Y){if(Y=g.type,Y===Bt){if(m.tag===7){l(y,m.sibling),x=n(m,g.props.children),x.return=y,y=x;break t}}else if(m.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===kt&&Gl(Y)===m.type){l(y,m.sibling),x=n(m,g.props),cn(x,g),x.return=y,y=x;break t}l(y,m);break}else e(y,m);m=m.sibling}g.type===Bt?(x=wl(g.props.children,y.mode,x,g.key),x.return=y,y=x):(x=si(g.type,g.key,g.props,null,y.mode,x),cn(x,g),x.return=y,y=x)}return s(y);case Nt:t:{for(Y=g.key;m!==null;){if(m.key===Y)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){l(y,m.sibling),x=n(m,g.children||[]),x.return=y,y=x;break t}else{l(y,m);break}else e(y,m);m=m.sibling}x=hc(g,y.mode,x),x.return=y,y=x}return s(y);case kt:return g=Gl(g),ht(y,m,g,x)}if(xe(g))return R(y,m,g,x);if(Jt(g)){if(Y=Jt(g),typeof Y!="function")throw Error(f(150));return g=Y.call(g),X(y,m,g,x)}if(typeof g.then=="function")return ht(y,m,yi(g),x);if(g.$$typeof===nt)return ht(y,m,hi(y,g),x);gi(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,m!==null&&m.tag===6?(l(y,m.sibling),x=n(m,g),x.return=y,y=x):(l(y,m),x=rc(g,y.mode,x),x.return=y,y=x),s(y)):l(y,m)}return function(y,m,g,x){try{un=0;var Y=ht(y,m,g,x);return ba=null,Y}catch(q){if(q===va||q===mi)throw q;var lt=ue(29,q,null,y.mode);return lt.lanes=x,lt.return=y,lt}finally{}}}var Zl=Go(!0),jo=Go(!1),rl=!1;function Ac(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function hl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function dl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(it&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=fi(t),zo(t,null,l),e}return ci(t,a,e,l),fi(t)}function fn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Rs(t,l)}}function zc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=s:i=i.next=s,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Oc=!1;function sn(){if(Oc){var t=ga;if(t!==null)throw t}}function on(t,e,l,a){Oc=!1;var n=t.updateQueue;rl=!1;var i=n.firstBaseUpdate,s=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var h=r,v=h.next;h.next=null,s===null?i=v:s.next=v,s=h;var E=t.alternate;E!==null&&(E=E.updateQueue,r=E.lastBaseUpdate,r!==s&&(r===null?E.firstBaseUpdate=v:r.next=v,E.lastBaseUpdate=h))}if(i!==null){var O=n.baseState;s=0,E=v=h=null,r=i;do{var b=r.lane&-536870913,_=b!==r.lane;if(_?(W&b)===b:(a&b)===b){b!==0&&b===ya&&(Oc=!0),E!==null&&(E=E.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var R=t,X=r;b=e;var ht=l;switch(X.tag){case 1:if(R=X.payload,typeof R=="function"){O=R.call(ht,O,b);break t}O=R;break t;case 3:R.flags=R.flags&-65537|128;case 0:if(R=X.payload,b=typeof R=="function"?R.call(ht,O,b):R,b==null)break t;O=B({},O,b);break t;case 2:rl=!0}}b=r.callback,b!==null&&(t.flags|=64,_&&(t.flags|=8192),_=n.callbacks,_===null?n.callbacks=[b]:_.push(b))}else _={lane:b,tag:r.tag,payload:r.payload,callback:r.callback,next:null},E===null?(v=E=_,h=O):E=E.next=_,s|=b;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;_=r,r=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);E===null&&(h=O),n.baseState=h,n.firstBaseUpdate=v,n.lastBaseUpdate=E,i===null&&(n.shared.lanes=0),vl|=s,t.lanes=s,t.memoizedState=O}}function Zo(t,e){if(typeof t!="function")throw Error(f(191,t));t.call(e)}function Vo(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Zo(l[t],e)}var _a=p(null),vi=p(0);function Ko(t,e){t=tl,U(vi,t),U(_a,e),tl=t|e.baseLanes}function Cc(){U(vi,tl),U(_a,_a.current)}function Nc(){tl=vi.current,C(_a),C(vi)}var ce=p(null),Se=null;function ml(t){var e=t.alternate;U(Et,Et.current&1),U(ce,t),Se===null&&(e===null||_a.current!==null||e.memoizedState!==null)&&(Se=t)}function Mc(t){U(Et,Et.current),U(ce,t),Se===null&&(Se=t)}function ko(t){t.tag===22?(U(Et,Et.current),U(ce,t),Se===null&&(Se=t)):pl()}function pl(){U(Et,Et.current),U(ce,ce.current)}function fe(t){C(ce),Se===t&&(Se=null),C(Et)}var Et=p(0);function bi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||wf(l)||Yf(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ke=0,Z=null,ot=null,zt=null,_i=!1,Sa=!1,Vl=!1,Si=0,rn=0,Ea=null,n0=0;function vt(){throw Error(f(321))}function Dc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ie(t[l],e[l]))return!1;return!0}function Uc(t,e,l,a,n,i){return Ke=i,Z=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Mr:kc,Vl=!1,i=l(a,n),Vl=!1,Sa&&(i=Fo(e,l,a,n)),Jo(t),i}function Jo(t){T.H=mn;var e=ot!==null&&ot.next!==null;if(Ke=0,zt=ot=Z=null,_i=!1,rn=0,Ea=null,e)throw Error(f(300));t===null||Ot||(t=t.dependencies,t!==null&&ri(t)&&(Ot=!0))}function Fo(t,e,l,a){Z=t;var n=0;do{if(Sa&&(Ea=null),rn=0,Sa=!1,25<=n)throw Error(f(301));if(n+=1,zt=ot=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}T.H=Dr,i=e(l,a)}while(Sa);return i}function i0(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?hn(e):e,t=t.useState()[0],(ot!==null?ot.memoizedState:null)!==t&&(Z.flags|=1024),e}function Rc(){var t=Si!==0;return Si=0,t}function Bc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Hc(t){if(_i){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}_i=!1}Ke=0,zt=ot=Z=null,Sa=!1,rn=Si=0,Ea=null}function Kt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?Z.memoizedState=zt=t:zt=zt.next=t,zt}function Tt(){if(ot===null){var t=Z.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var e=zt===null?Z.memoizedState:zt.next;if(e!==null)zt=e,ot=t;else{if(t===null)throw Z.alternate===null?Error(f(467)):Error(f(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},zt===null?Z.memoizedState=zt=t:zt=zt.next=t}return zt}function Ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hn(t){var e=rn;return rn+=1,Ea===null&&(Ea=[]),t=Lo(Ea,t,e),e=Z,(zt===null?e.memoizedState:zt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Mr:kc),t}function Ti(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return hn(t);if(t.$$typeof===nt)return Yt(t)}throw Error(f(438,String(t)))}function qc(t){var e=null,l=Z.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=Z.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Ei(),Z.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=$l;return e.index++,l}function ke(t,e){return typeof e=="function"?e(t):e}function Ai(t){var e=Tt();return wc(e,ot,t)}function wc(t,e,l){var a=t.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var s=n.next;n.next=i.next,i.next=s}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var r=s=null,h=null,v=e,E=!1;do{var O=v.lane&-536870913;if(O!==v.lane?(W&O)===O:(Ke&O)===O){var b=v.revertLane;if(b===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),O===ya&&(E=!0);else if((Ke&b)===b){v=v.next,b===ya&&(E=!0);continue}else O={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},h===null?(r=h=O,s=i):h=h.next=O,Z.lanes|=b,vl|=b;O=v.action,Vl&&l(i,O),i=v.hasEagerState?v.eagerState:l(i,O)}else b={lane:O,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},h===null?(r=h=b,s=i):h=h.next=b,Z.lanes|=O,vl|=O;v=v.next}while(v!==null&&v!==e);if(h===null?s=i:h.next=r,!ie(i,t.memoizedState)&&(Ot=!0,E&&(l=ga,l!==null)))throw l;t.memoizedState=i,t.baseState=s,t.baseQueue=h,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Yc(t){var e=Tt(),l=e.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do i=t(i,s.action),s=s.next;while(s!==n);ie(i,e.memoizedState)||(Ot=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function Wo(t,e,l){var a=Z,n=Tt(),i=tt;if(i){if(l===void 0)throw Error(f(407));l=l()}else l=e();var s=!ie((ot||n).memoizedState,l);if(s&&(n.memoizedState=l,Ot=!0),n=n.queue,Qc(Po.bind(null,a,n,t),[t]),n.getSnapshot!==e||s||zt!==null&&zt.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},Io.bind(null,a,n,l,e),null),mt===null)throw Error(f(349));i||(Ke&127)!==0||$o(a,e,l)}return l}function $o(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=Z.updateQueue,e===null?(e=Ei(),Z.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Io(t,e,l,a){e.value=l,e.getSnapshot=a,tr(e)&&er(t)}function Po(t,e,l){return l(function(){tr(e)&&er(t)})}function tr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ie(t,l)}catch{return!0}}function er(t){var e=ql(t,2);e!==null&&ee(e,t,2)}function Lc(t){var e=Kt();if(typeof t=="function"){var l=t;if(t=l(),Vl){nl(!0);try{l()}finally{nl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:t},e}function lr(t,e,l,a){return t.baseState=l,wc(t,ot,typeof a=="function"?a:ke)}function u0(t,e,l,a,n){if(Oi(t))throw Error(f(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};T.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,ar(e,i)):(i.next=l.next,e.pending=l.next=i)}}function ar(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=T.T,s={};T.T=s;try{var r=l(n,a),h=T.S;h!==null&&h(s,r),nr(t,e,r)}catch(v){Xc(t,e,v)}finally{i!==null&&s.types!==null&&(i.types=s.types),T.T=i}}else try{i=l(n,a),nr(t,e,i)}catch(v){Xc(t,e,v)}}function nr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ir(t,e,a)},function(a){return Xc(t,e,a)}):ir(t,e,l)}function ir(t,e,l){e.status="fulfilled",e.value=l,ur(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,ar(t,l)))}function Xc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,ur(e),e=e.next;while(e!==a)}t.action=null}function ur(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function cr(t,e){return e}function fr(t,e){if(tt){var l=mt.formState;if(l!==null){t:{var a=Z;if(tt){if(pt){e:{for(var n=pt,i=_e;n.nodeType!==8;){if(!i){n=null;break e}if(n=Ee(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){pt=Ee(n.nextSibling),a=n.data==="F!";break t}}sl(a)}a=!1}a&&(e=l[0])}}return l=Kt(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:e},l.queue=a,l=Or.bind(null,Z,a),a.dispatch=l,a=Lc(!1),i=Kc.bind(null,Z,!1,a.queue),a=Kt(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=u0.bind(null,Z,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function sr(t){var e=Tt();return or(e,ot,t)}function or(t,e,l){if(e=wc(t,e,cr)[0],t=Ai(ke)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=hn(e)}catch(s){throw s===va?mi:s}else a=e;e=Tt();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(Z.flags|=2048,Ta(9,{destroy:void 0},c0.bind(null,n,l),null)),[a,i,t]}function c0(t,e){t.action=e}function rr(t){var e=Tt(),l=ot;if(l!==null)return or(e,l,t);Tt(),e=e.memoizedState,l=Tt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Ta(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=Z.updateQueue,e===null&&(e=Ei(),Z.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function hr(){return Tt().memoizedState}function xi(t,e,l,a){var n=Kt();Z.flags|=t,n.memoizedState=Ta(1|e,{destroy:void 0},l,a===void 0?null:a)}function zi(t,e,l,a){var n=Tt();a=a===void 0?null:a;var i=n.memoizedState.inst;ot!==null&&a!==null&&Dc(a,ot.memoizedState.deps)?n.memoizedState=Ta(e,i,l,a):(Z.flags|=t,n.memoizedState=Ta(1|e,i,l,a))}function dr(t,e){xi(8390656,8,t,e)}function Qc(t,e){zi(2048,8,t,e)}function f0(t){Z.flags|=4;var e=Z.updateQueue;if(e===null)e=Ei(),Z.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function mr(t){var e=Tt().memoizedState;return f0({ref:e,nextImpl:t}),function(){if((it&2)!==0)throw Error(f(440));return e.impl.apply(void 0,arguments)}}function pr(t,e){return zi(4,2,t,e)}function yr(t,e){return zi(4,4,t,e)}function gr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function vr(t,e,l){l=l!=null?l.concat([t]):null,zi(4,4,gr.bind(null,e,t),l)}function Gc(){}function br(t,e){var l=Tt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Dc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function _r(t,e){var l=Tt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Dc(e,a[1]))return a[0];if(a=t(),Vl){nl(!0);try{t()}finally{nl(!1)}}return l.memoizedState=[a,e],a}function jc(t,e,l){return l===void 0||(Ke&1073741824)!==0&&(W&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Sh(),Z.lanes|=t,vl|=t,l)}function Sr(t,e,l,a){return ie(l,e)?l:_a.current!==null?(t=jc(t,l,a),ie(t,e)||(Ot=!0),t):(Ke&42)===0||(Ke&1073741824)!==0&&(W&261930)===0?(Ot=!0,t.memoizedState=l):(t=Sh(),Z.lanes|=t,vl|=t,e)}function Er(t,e,l,a,n){var i=D.p;D.p=i!==0&&8>i?i:8;var s=T.T,r={};T.T=r,Kc(t,!1,e,l);try{var h=n(),v=T.S;if(v!==null&&v(r,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var E=a0(h,a);dn(t,e,E,re(t))}else dn(t,e,a,re(t))}catch(O){dn(t,e,{then:function(){},status:"rejected",reason:O},re())}finally{D.p=i,s!==null&&r.types!==null&&(s.types=r.types),T.T=s}}function s0(){}function Zc(t,e,l,a){if(t.tag!==5)throw Error(f(476));var n=Tr(t).queue;Er(t,n,e,Q,l===null?s0:function(){return Ar(t),l(a)})}function Tr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:Q},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ar(t){var e=Tr(t);e.next===null&&(e=t.alternate.memoizedState),dn(t,e.next.queue,{},re())}function Vc(){return Yt(Mn)}function xr(){return Tt().memoizedState}function zr(){return Tt().memoizedState}function o0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=re();t=hl(l);var a=dl(e,t,l);a!==null&&(ee(a,e,l),fn(a,e,l)),e={cache:_c()},t.payload=e;return}e=e.return}}function r0(t,e,l){var a=re();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Oi(t)?Cr(e,l):(l=sc(t,e,l,a),l!==null&&(ee(l,t,a),Nr(l,e,a)))}function Or(t,e,l){var a=re();dn(t,e,l,a)}function dn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Oi(t))Cr(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,r=i(s,l);if(n.hasEagerState=!0,n.eagerState=r,ie(r,s))return ci(t,e,n,0),mt===null&&ui(),!1}catch{}finally{}if(l=sc(t,e,n,a),l!==null)return ee(l,t,a),Nr(l,e,a),!0}return!1}function Kc(t,e,l,a){if(a={lane:2,revertLane:xf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Oi(t)){if(e)throw Error(f(479))}else e=sc(t,l,a,2),e!==null&&ee(e,t,2)}function Oi(t){var e=t.alternate;return t===Z||e!==null&&e===Z}function Cr(t,e){Sa=_i=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Nr(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Rs(t,l)}}var mn={readContext:Yt,use:Ti,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};mn.useEffectEvent=vt;var Mr={readContext:Yt,use:Ti,useCallback:function(t,e){return Kt().memoizedState=[t,e===void 0?null:e],t},useContext:Yt,useEffect:dr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,xi(4194308,4,gr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return xi(4194308,4,t,e)},useInsertionEffect:function(t,e){xi(4,2,t,e)},useMemo:function(t,e){var l=Kt();e=e===void 0?null:e;var a=t();if(Vl){nl(!0);try{t()}finally{nl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=Kt();if(l!==void 0){var n=l(e);if(Vl){nl(!0);try{l(e)}finally{nl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=r0.bind(null,Z,t),[a.memoizedState,t]},useRef:function(t){var e=Kt();return t={current:t},e.memoizedState=t},useState:function(t){t=Lc(t);var e=t.queue,l=Or.bind(null,Z,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Gc,useDeferredValue:function(t,e){var l=Kt();return jc(l,t,e)},useTransition:function(){var t=Lc(!1);return t=Er.bind(null,Z,t.queue,!0,!1),Kt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=Z,n=Kt();if(tt){if(l===void 0)throw Error(f(407));l=l()}else{if(l=e(),mt===null)throw Error(f(349));(W&127)!==0||$o(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,dr(Po.bind(null,a,i,t),[t]),a.flags|=2048,Ta(9,{destroy:void 0},Io.bind(null,a,i,l,e),null),l},useId:function(){var t=Kt(),e=mt.identifierPrefix;if(tt){var l=Be,a=Re;l=(a&~(1<<32-ne(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Si++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=n0++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Vc,useFormState:fr,useActionState:fr,useOptimistic:function(t){var e=Kt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Kc.bind(null,Z,!0,l),l.dispatch=e,[t,e]},useMemoCache:qc,useCacheRefresh:function(){return Kt().memoizedState=o0.bind(null,Z)},useEffectEvent:function(t){var e=Kt(),l={impl:t};return e.memoizedState=l,function(){if((it&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}},kc={readContext:Yt,use:Ti,useCallback:br,useContext:Yt,useEffect:Qc,useImperativeHandle:vr,useInsertionEffect:pr,useLayoutEffect:yr,useMemo:_r,useReducer:Ai,useRef:hr,useState:function(){return Ai(ke)},useDebugValue:Gc,useDeferredValue:function(t,e){var l=Tt();return Sr(l,ot.memoizedState,t,e)},useTransition:function(){var t=Ai(ke)[0],e=Tt().memoizedState;return[typeof t=="boolean"?t:hn(t),e]},useSyncExternalStore:Wo,useId:xr,useHostTransitionStatus:Vc,useFormState:sr,useActionState:sr,useOptimistic:function(t,e){var l=Tt();return lr(l,ot,t,e)},useMemoCache:qc,useCacheRefresh:zr};kc.useEffectEvent=mr;var Dr={readContext:Yt,use:Ti,useCallback:br,useContext:Yt,useEffect:Qc,useImperativeHandle:vr,useInsertionEffect:pr,useLayoutEffect:yr,useMemo:_r,useReducer:Yc,useRef:hr,useState:function(){return Yc(ke)},useDebugValue:Gc,useDeferredValue:function(t,e){var l=Tt();return ot===null?jc(l,t,e):Sr(l,ot.memoizedState,t,e)},useTransition:function(){var t=Yc(ke)[0],e=Tt().memoizedState;return[typeof t=="boolean"?t:hn(t),e]},useSyncExternalStore:Wo,useId:xr,useHostTransitionStatus:Vc,useFormState:rr,useActionState:rr,useOptimistic:function(t,e){var l=Tt();return ot!==null?lr(l,ot,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:qc,useCacheRefresh:zr};Dr.useEffectEvent=mr;function Jc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Fc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=re(),n=hl(a);n.payload=e,l!=null&&(n.callback=l),e=dl(t,n,a),e!==null&&(ee(e,t,a),fn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=re(),n=hl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=dl(t,n,a),e!==null&&(ee(e,t,a),fn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=re(),a=hl(l);a.tag=2,e!=null&&(a.callback=e),e=dl(t,a,l),e!==null&&(ee(e,t,l),fn(e,t,l))}};function Ur(t,e,l,a,n,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,s):e.prototype&&e.prototype.isPureReactComponent?!Pa(l,a)||!Pa(n,i):!0}function Rr(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Fc.enqueueReplaceState(e,e.state,null)}function Kl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Br(t){ii(t)}function Hr(t){console.error(t)}function qr(t){ii(t)}function Ci(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function wr(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Wc(t,e,l){return l=hl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ci(t,e)},l}function Yr(t){return t=hl(t),t.tag=3,t}function Lr(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){wr(e,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){wr(e,l,a),typeof n!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function h0(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&pa(e,l,n,!0),l=ce.current,l!==null){switch(l.tag){case 31:case 13:return Se===null?Xi():l.alternate===null&&bt===0&&(bt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===pi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Ef(t,a,n)),!1;case 22:return l.flags|=65536,a===pi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Ef(t,a,n)),!1}throw Error(f(435,l.tag))}return Ef(t,a,n),Xi(),!1}if(tt)return e=ce.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==pc&&(t=Error(f(422),{cause:a}),ln(ge(t,l)))):(a!==pc&&(e=Error(f(423),{cause:a}),ln(ge(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=ge(a,l),n=Wc(t.stateNode,a,n),zc(t,n),bt!==4&&(bt=2)),!1;var i=Error(f(520),{cause:a});if(i=ge(i,l),En===null?En=[i]:En.push(i),bt!==4&&(bt=2),e===null)return!0;a=ge(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Wc(l.stateNode,a,t),zc(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(bl===null||!bl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Yr(n),Lr(n,t,l,a),zc(l,n),!1}l=l.return}while(l!==null);return!1}var $c=Error(f(461)),Ot=!1;function Lt(t,e,l,a){e.child=t===null?jo(e,null,l,a):Zl(e,t.child,l,a)}function Xr(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var s={};for(var r in a)r!=="ref"&&(s[r]=a[r])}else s=a;return Xl(e),a=Uc(t,e,l,s,i,n),r=Rc(),t!==null&&!Ot?(Bc(t,e,n),Je(t,e,n)):(tt&&r&&dc(e),e.flags|=1,Lt(t,e,a,n),e.child)}function Qr(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!oc(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,Gr(t,e,i,a,n)):(t=si(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!uf(t,n)){var s=i.memoizedProps;if(l=l.compare,l=l!==null?l:Pa,l(s,a)&&t.ref===e.ref)return Je(t,e,n)}return e.flags|=1,t=Ge(i,a),t.ref=e.ref,t.return=e,e.child=t}function Gr(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(Pa(i,a)&&t.ref===e.ref)if(Ot=!1,e.pendingProps=a=i,uf(t,n))(t.flags&131072)!==0&&(Ot=!0);else return e.lanes=t.lanes,Je(t,e,n)}return Ic(t,e,l,a,n)}function jr(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return Zr(t,e,i,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&di(e,i!==null?i.cachePool:null),i!==null?Ko(e,i):Cc(),ko(e);else return a=e.lanes=536870912,Zr(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(di(e,i.cachePool),Ko(e,i),pl(),e.memoizedState=null):(t!==null&&di(e,null),Cc(),pl());return Lt(t,e,n,l),e.child}function pn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Zr(t,e,l,a,n){var i=Ec();return i=i===null?null:{parent:xt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&di(e,null),Cc(),ko(e),t!==null&&pa(t,e,a,!0),e.childLanes=n,null}function Ni(t,e){return e=Di({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Vr(t,e,l){return Zl(e,t.child,null,l),t=Ni(e,e.pendingProps),t.flags|=2,fe(e),e.memoizedState=null,t}function d0(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(tt){if(a.mode==="hidden")return t=Ni(e,a),e.lanes=536870912,pn(null,t);if(Mc(e),(t=pt)?(t=ad(t,_e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:cl!==null?{id:Re,overflow:Be}:null,retryLane:536870912,hydrationErrors:null},l=Co(t),l.return=e,e.child=l,wt=e,pt=null)):t=null,t===null)throw sl(e);return e.lanes=536870912,null}return Ni(e,a)}var i=t.memoizedState;if(i!==null){var s=i.dehydrated;if(Mc(e),n)if(e.flags&256)e.flags&=-257,e=Vr(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(f(558));else if(Ot||pa(t,e,l,!1),n=(l&t.childLanes)!==0,Ot||n){if(a=mt,a!==null&&(s=Bs(a,l),s!==0&&s!==i.retryLane))throw i.retryLane=s,ql(t,s),ee(a,t,s),$c;Xi(),e=Vr(t,e,l)}else t=i.treeContext,pt=Ee(s.nextSibling),wt=e,tt=!0,fl=null,_e=!1,t!==null&&Do(e,t),e=Ni(e,a),e.flags|=4096;return e}return t=Ge(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Mi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(f(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Ic(t,e,l,a,n){return Xl(e),l=Uc(t,e,l,a,void 0,n),a=Rc(),t!==null&&!Ot?(Bc(t,e,n),Je(t,e,n)):(tt&&a&&dc(e),e.flags|=1,Lt(t,e,l,n),e.child)}function Kr(t,e,l,a,n,i){return Xl(e),e.updateQueue=null,l=Fo(e,a,l,n),Jo(t),a=Rc(),t!==null&&!Ot?(Bc(t,e,i),Je(t,e,i)):(tt&&a&&dc(e),e.flags|=1,Lt(t,e,l,i),e.child)}function kr(t,e,l,a,n){if(Xl(e),e.stateNode===null){var i=ra,s=l.contextType;typeof s=="object"&&s!==null&&(i=Yt(s)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Fc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},Ac(e),s=l.contextType,i.context=typeof s=="object"&&s!==null?Yt(s):ra,i.state=e.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Jc(e,l,s,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&Fc.enqueueReplaceState(i,i.state,null),on(e,a,i,n),sn(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var r=e.memoizedProps,h=Kl(l,r);i.props=h;var v=i.context,E=l.contextType;s=ra,typeof E=="object"&&E!==null&&(s=Yt(E));var O=l.getDerivedStateFromProps;E=typeof O=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,E||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||v!==s)&&Rr(e,i,a,s),rl=!1;var b=e.memoizedState;i.state=b,on(e,a,i,n),sn(),v=e.memoizedState,r||b!==v||rl?(typeof O=="function"&&(Jc(e,l,O,a),v=e.memoizedState),(h=rl||Ur(e,l,h,a,b,v,s))?(E||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=v),i.props=a,i.state=v,i.context=s,a=h):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,xc(t,e),s=e.memoizedProps,E=Kl(l,s),i.props=E,O=e.pendingProps,b=i.context,v=l.contextType,h=ra,typeof v=="object"&&v!==null&&(h=Yt(v)),r=l.getDerivedStateFromProps,(v=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==O||b!==h)&&Rr(e,i,a,h),rl=!1,b=e.memoizedState,i.state=b,on(e,a,i,n),sn();var _=e.memoizedState;s!==O||b!==_||rl||t!==null&&t.dependencies!==null&&ri(t.dependencies)?(typeof r=="function"&&(Jc(e,l,r,a),_=e.memoizedState),(E=rl||Ur(e,l,E,a,b,_,h)||t!==null&&t.dependencies!==null&&ri(t.dependencies))?(v||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,_,h),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,_,h)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=_),i.props=a,i.state=_,i.context=h,a=E):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,Mi(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=Zl(e,t.child,null,n),e.child=Zl(e,null,l,n)):Lt(t,e,l,n),e.memoizedState=i.state,t=e.child):t=Je(t,e,n),t}function Jr(t,e,l,a){return Yl(),e.flags|=256,Lt(t,e,l,a),e.child}var Pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tf(t){return{baseLanes:t,cachePool:wo()}}function ef(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=oe),t}function Fr(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,s;if((s=i)||(s=t!==null&&t.memoizedState===null?!1:(Et.current&2)!==0),s&&(n=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(tt){if(n?ml(e):pl(),(t=pt)?(t=ad(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:cl!==null?{id:Re,overflow:Be}:null,retryLane:536870912,hydrationErrors:null},l=Co(t),l.return=e,e.child=l,wt=e,pt=null)):t=null,t===null)throw sl(e);return Yf(t)?e.lanes=32:e.lanes=536870912,null}var r=a.children;return a=a.fallback,n?(pl(),n=e.mode,r=Di({mode:"hidden",children:r},n),a=wl(a,n,l,null),r.return=e,a.return=e,r.sibling=a,e.child=r,a=e.child,a.memoizedState=tf(l),a.childLanes=ef(t,s,l),e.memoizedState=Pc,pn(null,a)):(ml(e),lf(e,r))}var h=t.memoizedState;if(h!==null&&(r=h.dehydrated,r!==null)){if(i)e.flags&256?(ml(e),e.flags&=-257,e=af(t,e,l)):e.memoizedState!==null?(pl(),e.child=t.child,e.flags|=128,e=null):(pl(),r=a.fallback,n=e.mode,a=Di({mode:"visible",children:a.children},n),r=wl(r,n,l,null),r.flags|=2,a.return=e,r.return=e,a.sibling=r,e.child=a,Zl(e,t.child,null,l),a=e.child,a.memoizedState=tf(l),a.childLanes=ef(t,s,l),e.memoizedState=Pc,e=pn(null,a));else if(ml(e),Yf(r)){if(s=r.nextSibling&&r.nextSibling.dataset,s)var v=s.dgst;s=v,a=Error(f(419)),a.stack="",a.digest=s,ln({value:a,source:null,stack:null}),e=af(t,e,l)}else if(Ot||pa(t,e,l,!1),s=(l&t.childLanes)!==0,Ot||s){if(s=mt,s!==null&&(a=Bs(s,l),a!==0&&a!==h.retryLane))throw h.retryLane=a,ql(t,a),ee(s,t,a),$c;wf(r)||Xi(),e=af(t,e,l)}else wf(r)?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,pt=Ee(r.nextSibling),wt=e,tt=!0,fl=null,_e=!1,t!==null&&Do(e,t),e=lf(e,a.children),e.flags|=4096);return e}return n?(pl(),r=a.fallback,n=e.mode,h=t.child,v=h.sibling,a=Ge(h,{mode:"hidden",children:a.children}),a.subtreeFlags=h.subtreeFlags&65011712,v!==null?r=Ge(v,r):(r=wl(r,n,l,null),r.flags|=2),r.return=e,a.return=e,a.sibling=r,e.child=a,pn(null,a),a=e.child,r=t.child.memoizedState,r===null?r=tf(l):(n=r.cachePool,n!==null?(h=xt._currentValue,n=n.parent!==h?{parent:h,pool:h}:n):n=wo(),r={baseLanes:r.baseLanes|l,cachePool:n}),a.memoizedState=r,a.childLanes=ef(t,s,l),e.memoizedState=Pc,pn(t.child,a)):(ml(e),l=t.child,t=l.sibling,l=Ge(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=l,e.memoizedState=null,l)}function lf(t,e){return e=Di({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Di(t,e){return t=ue(22,t,null,e),t.lanes=0,t}function af(t,e,l){return Zl(e,t.child,null,l),t=lf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Wr(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),vc(t.return,e,l)}function nf(t,e,l,a,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=i)}function $r(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var s=Et.current,r=(s&2)!==0;if(r?(s=s&1|2,e.flags|=128):s&=1,U(Et,s),Lt(t,e,a,l),a=tt?en:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wr(t,l,e);else if(t.tag===19)Wr(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&bi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),nf(e,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&bi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}nf(e,!0,l,null,i,a);break;case"together":nf(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Je(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),vl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(pa(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(f(153));if(e.child!==null){for(t=e.child,l=Ge(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ge(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function uf(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ri(t)))}function m0(t,e,l){switch(e.tag){case 3:Vt(e,e.stateNode.containerInfo),ol(e,xt,t.memoizedState.cache),Yl();break;case 27:case 5:Xa(e);break;case 4:Vt(e,e.stateNode.containerInfo);break;case 10:ol(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Mc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ml(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Fr(t,e,l):(ml(e),t=Je(t,e,l),t!==null?t.sibling:null);ml(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(pa(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return $r(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(Et,Et.current),a)break;return null;case 22:return e.lanes=0,jr(t,e,l,e.pendingProps);case 24:ol(e,xt,t.memoizedState.cache)}return Je(t,e,l)}function Ir(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ot=!0;else{if(!uf(t,l)&&(e.flags&128)===0)return Ot=!1,m0(t,e,l);Ot=(t.flags&131072)!==0}else Ot=!1,tt&&(e.flags&1048576)!==0&&Mo(e,en,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Gl(e.elementType),e.type=t,typeof t=="function")oc(t)?(a=Kl(t,a),e.tag=1,e=kr(null,e,t,a,l)):(e.tag=0,e=Ic(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===_t){e.tag=11,e=Xr(null,e,t,a,l);break t}else if(n===P){e.tag=14,e=Qr(null,e,t,a,l);break t}}throw e=Ye(t)||t,Error(f(306,e,""))}}return e;case 0:return Ic(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Kl(a,e.pendingProps),kr(t,e,a,n,l);case 3:t:{if(Vt(e,e.stateNode.containerInfo),t===null)throw Error(f(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,xc(t,e),on(e,a,null,l);var s=e.memoizedState;if(a=s.cache,ol(e,xt,a),a!==i.cache&&bc(e,[xt],l,!0),sn(),a=s.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=Jr(t,e,a,l);break t}else if(a!==n){n=ge(Error(f(424)),e),ln(n),e=Jr(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(pt=Ee(t.firstChild),wt=e,tt=!0,fl=null,_e=!0,l=jo(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yl(),a===n){e=Je(t,e,l);break t}Lt(t,e,a,l)}e=e.child}return e;case 26:return Mi(t,e),t===null?(l=sd(e.type,null,e.pendingProps,null))?e.memoizedState=l:tt||(l=e.type,t=e.pendingProps,a=ki(k.current).createElement(l),a[qt]=e,a[Ft]=t,Xt(a,l,t),Ut(a),e.stateNode=a):e.memoizedState=sd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Xa(e),t===null&&tt&&(a=e.stateNode=ud(e.type,e.pendingProps,k.current),wt=e,_e=!0,n=pt,Tl(e.type)?(Lf=n,pt=Ee(a.firstChild)):pt=n),Lt(t,e,e.pendingProps.children,l),Mi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&tt&&((n=a=pt)&&(a=Z0(a,e.type,e.pendingProps,_e),a!==null?(e.stateNode=a,wt=e,pt=Ee(a.firstChild),_e=!1,n=!0):n=!1),n||sl(e)),Xa(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,a=i.children,Bf(n,i)?a=null:s!==null&&Bf(n,s)&&(e.flags|=32),e.memoizedState!==null&&(n=Uc(t,e,i0,null,null,l),Mn._currentValue=n),Mi(t,e),Lt(t,e,a,l),e.child;case 6:return t===null&&tt&&((t=l=pt)&&(l=V0(l,e.pendingProps,_e),l!==null?(e.stateNode=l,wt=e,pt=null,t=!0):t=!1),t||sl(e)),null;case 13:return Fr(t,e,l);case 4:return Vt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Zl(e,null,a,l):Lt(t,e,a,l),e.child;case 11:return Xr(t,e,e.type,e.pendingProps,l);case 7:return Lt(t,e,e.pendingProps,l),e.child;case 8:return Lt(t,e,e.pendingProps.children,l),e.child;case 12:return Lt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,ol(e,e.type,a.value),Lt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Xl(e),n=Yt(n),a=a(n),e.flags|=1,Lt(t,e,a,l),e.child;case 14:return Qr(t,e,e.type,e.pendingProps,l);case 15:return Gr(t,e,e.type,e.pendingProps,l);case 19:return $r(t,e,l);case 31:return d0(t,e,l);case 22:return jr(t,e,l,e.pendingProps);case 24:return Xl(e),a=Yt(xt),t===null?(n=Ec(),n===null&&(n=mt,i=_c(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},Ac(e),ol(e,xt,n)):((t.lanes&l)!==0&&(xc(t,e),on(e,null,null,l),sn()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),ol(e,xt,a)):(a=i.cache,ol(e,xt,a),a!==n.cache&&bc(e,[xt],l,!0))),Lt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(f(156,e.tag))}function Fe(t){t.flags|=4}function cf(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(xh())t.flags|=8192;else throw jl=pi,Tc}else t.flags&=-16777217}function Pr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!md(e))if(xh())t.flags|=8192;else throw jl=pi,Tc}function Ui(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ds():536870912,t.lanes|=e,Oa|=e)}function yn(t,e){if(!tt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function yt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function p0(t,e,l){var a=e.pendingProps;switch(mc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(e),null;case 1:return yt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ve(xt),St(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ma(e)?Fe(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,yc())),yt(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(Fe(e),i!==null?(yt(e),Pr(e,i)):(yt(e),cf(e,n,null,a,l))):i?i!==t.memoizedState?(Fe(e),yt(e),Pr(e,i)):(yt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Fe(e),yt(e),cf(e,n,t,a,l)),null;case 27:if(jn(e),l=k.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Fe(e);else{if(!a){if(e.stateNode===null)throw Error(f(166));return yt(e),null}t=H.current,ma(e)?Uo(e):(t=ud(n,a,l),e.stateNode=t,Fe(e))}return yt(e),null;case 5:if(jn(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Fe(e);else{if(!a){if(e.stateNode===null)throw Error(f(166));return yt(e),null}if(i=H.current,ma(e))Uo(e);else{var s=ki(k.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=s.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}i[qt]=e,i[Ft]=a;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=i;t:switch(Xt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Fe(e)}}return yt(e),cf(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Fe(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(f(166));if(t=k.current,ma(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=wt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[qt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Fh(t.nodeValue,l)),t||sl(e,!0)}else t=ki(t).createTextNode(a),t[qt]=e,e.stateNode=t}return yt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=ma(e),l!==null){if(t===null){if(!a)throw Error(f(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(557));t[qt]=e}else Yl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;yt(e),t=!1}else l=yc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(fe(e),e):(fe(e),null);if((e.flags&128)!==0)throw Error(f(558))}return yt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ma(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(f(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[qt]=e}else Yl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;yt(e),n=!1}else n=yc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(fe(e),e):(fe(e),null)}return fe(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ui(e,e.updateQueue),yt(e),null);case 4:return St(),t===null&&Nf(e.stateNode.containerInfo),yt(e),null;case 10:return Ve(e.type),yt(e),null;case 19:if(C(Et),a=e.memoizedState,a===null)return yt(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)yn(a,!1);else{if(bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=bi(t),i!==null){for(e.flags|=128,yn(a,!1),t=i.updateQueue,e.updateQueue=t,Ui(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Oo(l,t),l=l.sibling;return U(Et,Et.current&1|2),tt&&je(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&le()>wi&&(e.flags|=128,n=!0,yn(a,!1),e.lanes=4194304)}else{if(!n)if(t=bi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Ui(e,t),yn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!tt)return yt(e),null}else 2*le()-a.renderingStartTime>wi&&l!==536870912&&(e.flags|=128,n=!0,yn(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=le(),t.sibling=null,l=Et.current,U(Et,n?l&1|2:l&1),tt&&je(e,a.treeForkCount),t):(yt(e),null);case 22:case 23:return fe(e),Nc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(yt(e),e.subtreeFlags&6&&(e.flags|=8192)):yt(e),l=e.updateQueue,l!==null&&Ui(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&C(Ql),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ve(xt),yt(e),null;case 25:return null;case 30:return null}throw Error(f(156,e.tag))}function y0(t,e){switch(mc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ve(xt),St(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return jn(e),null;case 31:if(e.memoizedState!==null){if(fe(e),e.alternate===null)throw Error(f(340));Yl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(fe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(f(340));Yl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return C(Et),null;case 4:return St(),null;case 10:return Ve(e.type),null;case 22:case 23:return fe(e),Nc(),t!==null&&C(Ql),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ve(xt),null;case 25:return null;default:return null}}function th(t,e){switch(mc(e),e.tag){case 3:Ve(xt),St();break;case 26:case 27:case 5:jn(e);break;case 4:St();break;case 31:e.memoizedState!==null&&fe(e);break;case 13:fe(e);break;case 19:C(Et);break;case 10:Ve(e.type);break;case 22:case 23:fe(e),Nc(),t!==null&&C(Ql);break;case 24:Ve(xt)}}function gn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,s=l.inst;a=i(),s.destroy=a}l=l.next}while(l!==n)}}catch(r){ft(e,e.return,r)}}function yl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var s=a.inst,r=s.destroy;if(r!==void 0){s.destroy=void 0,n=e;var h=l,v=r;try{v()}catch(E){ft(n,h,E)}}}a=a.next}while(a!==i)}}catch(E){ft(e,e.return,E)}}function eh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Vo(e,l)}catch(a){ft(t,t.return,a)}}}function lh(t,e,l){l.props=Kl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){ft(t,e,a)}}function vn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){ft(t,e,n)}}function He(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ft(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ft(t,e,n)}else l.current=null}function ah(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ft(t,t.return,n)}}function ff(t,e,l){try{var a=t.stateNode;Y0(a,t.type,l,e),a[Ft]=e}catch(n){ft(t,t.return,n)}}function nh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Tl(t.type)||t.tag===4}function sf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||nh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Tl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function of(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Xe));else if(a!==4&&(a===27&&Tl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(of(t,e,l),t=t.sibling;t!==null;)of(t,e,l),t=t.sibling}function Ri(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Tl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ri(t,e,l),t=t.sibling;t!==null;)Ri(t,e,l),t=t.sibling}function ih(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Xt(e,a,l),e[qt]=t,e[Ft]=l}catch(i){ft(t,t.return,i)}}var We=!1,Ct=!1,rf=!1,uh=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function g0(t,e){if(t=t.containerInfo,Uf=tu,t=vo(t),ac(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var s=0,r=-1,h=-1,v=0,E=0,O=t,b=null;e:for(;;){for(var _;O!==l||n!==0&&O.nodeType!==3||(r=s+n),O!==i||a!==0&&O.nodeType!==3||(h=s+a),O.nodeType===3&&(s+=O.nodeValue.length),(_=O.firstChild)!==null;)b=O,O=_;for(;;){if(O===t)break e;if(b===l&&++v===n&&(r=s),b===i&&++E===a&&(h=s),(_=O.nextSibling)!==null)break;O=b,b=O.parentNode}O=_}l=r===-1||h===-1?null:{start:r,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rf={focusedElem:t,selectionRange:l},tu=!1,Rt=e;Rt!==null;)if(e=Rt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Rt=t;else for(;Rt!==null;){switch(e=Rt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var R=Kl(l.type,n);t=a.getSnapshotBeforeUpdate(R,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(X){ft(l,l.return,X)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)qf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":qf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(f(163))}if(t=e.sibling,t!==null){t.return=e.return,Rt=t;break}Rt=e.return}}function ch(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Ie(t,l),a&4&&gn(5,l);break;case 1:if(Ie(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(s){ft(l,l.return,s)}else{var n=Kl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){ft(l,l.return,s)}}a&64&&eh(l),a&512&&vn(l,l.return);break;case 3:if(Ie(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Vo(t,e)}catch(s){ft(l,l.return,s)}}break;case 27:e===null&&a&4&&ih(l);case 26:case 5:Ie(t,l),e===null&&a&4&&ah(l),a&512&&vn(l,l.return);break;case 12:Ie(t,l);break;case 31:Ie(t,l),a&4&&oh(t,l);break;case 13:Ie(t,l),a&4&&rh(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=z0.bind(null,l),K0(t,l))));break;case 22:if(a=l.memoizedState!==null||We,!a){e=e!==null&&e.memoizedState!==null||Ct,n=We;var i=Ct;We=a,(Ct=e)&&!i?Pe(t,l,(l.subtreeFlags&8772)!==0):Ie(t,l),We=n,Ct=i}break;case 30:break;default:Ie(t,l)}}function fh(t){var e=t.alternate;e!==null&&(t.alternate=null,fh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Xu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var gt=null,$t=!1;function $e(t,e,l){for(l=l.child;l!==null;)sh(t,e,l),l=l.sibling}function sh(t,e,l){if(ae&&typeof ae.onCommitFiberUnmount=="function")try{ae.onCommitFiberUnmount(Qa,l)}catch{}switch(l.tag){case 26:Ct||He(l,e),$e(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ct||He(l,e);var a=gt,n=$t;Tl(l.type)&&(gt=l.stateNode,$t=!1),$e(t,e,l),On(l.stateNode),gt=a,$t=n;break;case 5:Ct||He(l,e);case 6:if(a=gt,n=$t,gt=null,$e(t,e,l),gt=a,$t=n,gt!==null)if($t)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(l.stateNode)}catch(i){ft(l,e,i)}else try{gt.removeChild(l.stateNode)}catch(i){ft(l,e,i)}break;case 18:gt!==null&&($t?(t=gt,ed(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ha(t)):ed(gt,l.stateNode));break;case 4:a=gt,n=$t,gt=l.stateNode.containerInfo,$t=!0,$e(t,e,l),gt=a,$t=n;break;case 0:case 11:case 14:case 15:yl(2,l,e),Ct||yl(4,l,e),$e(t,e,l);break;case 1:Ct||(He(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&lh(l,e,a)),$e(t,e,l);break;case 21:$e(t,e,l);break;case 22:Ct=(a=Ct)||l.memoizedState!==null,$e(t,e,l),Ct=a;break;default:$e(t,e,l)}}function oh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ha(t)}catch(l){ft(e,e.return,l)}}}function rh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ha(t)}catch(l){ft(e,e.return,l)}}function v0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new uh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new uh),e;default:throw Error(f(435,t.tag))}}function Bi(t,e){var l=v0(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=O0.bind(null,t,a);a.then(n,n)}})}function It(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=t,s=e,r=s;t:for(;r!==null;){switch(r.tag){case 27:if(Tl(r.type)){gt=r.stateNode,$t=!1;break t}break;case 5:gt=r.stateNode,$t=!1;break t;case 3:case 4:gt=r.stateNode.containerInfo,$t=!0;break t}r=r.return}if(gt===null)throw Error(f(160));sh(i,s,n),gt=null,$t=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)hh(e,t),e=e.sibling}var Oe=null;function hh(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:It(e,t),Pt(t),a&4&&(yl(3,t,t.return),gn(3,t),yl(5,t,t.return));break;case 1:It(e,t),Pt(t),a&512&&(Ct||l===null||He(l,l.return)),a&64&&We&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Oe;if(It(e,t),Pt(t),a&512&&(Ct||l===null||He(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Za]||i[qt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Xt(i,a,l),i[qt]=t,Ut(i),a=i;break t;case"link":var s=hd("link","href",n).get(a+(l.href||""));if(s){for(var r=0;r<s.length;r++)if(i=s[r],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(r,1);break e}}i=n.createElement(a),Xt(i,a,l),n.head.appendChild(i);break;case"meta":if(s=hd("meta","content",n).get(a+(l.content||""))){for(r=0;r<s.length;r++)if(i=s[r],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(r,1);break e}}i=n.createElement(a),Xt(i,a,l),n.head.appendChild(i);break;default:throw Error(f(468,a))}i[qt]=t,Ut(i),a=i}t.stateNode=a}else dd(n,t.type,t.stateNode);else t.stateNode=rd(n,a,t.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?dd(n,t.type,t.stateNode):rd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&ff(t,t.memoizedProps,l.memoizedProps)}break;case 27:It(e,t),Pt(t),a&512&&(Ct||l===null||He(l,l.return)),l!==null&&a&4&&ff(t,t.memoizedProps,l.memoizedProps);break;case 5:if(It(e,t),Pt(t),a&512&&(Ct||l===null||He(l,l.return)),t.flags&32){n=t.stateNode;try{na(n,"")}catch(R){ft(t,t.return,R)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,ff(t,n,l!==null?l.memoizedProps:n)),a&1024&&(rf=!0);break;case 6:if(It(e,t),Pt(t),a&4){if(t.stateNode===null)throw Error(f(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(R){ft(t,t.return,R)}}break;case 3:if(Wi=null,n=Oe,Oe=Ji(e.containerInfo),It(e,t),Oe=n,Pt(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ha(e.containerInfo)}catch(R){ft(t,t.return,R)}rf&&(rf=!1,dh(t));break;case 4:a=Oe,Oe=Ji(t.stateNode.containerInfo),It(e,t),Pt(t),Oe=a;break;case 12:It(e,t),Pt(t);break;case 31:It(e,t),Pt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Bi(t,a)));break;case 13:It(e,t),Pt(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qi=le()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Bi(t,a)));break;case 22:n=t.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,v=We,E=Ct;if(We=v||n,Ct=E||h,It(e,t),Ct=E,We=v,Pt(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||h||We||Ct||kl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){h=l=e;try{if(i=h.stateNode,n)s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{r=h.stateNode;var O=h.memoizedProps.style,b=O!=null&&O.hasOwnProperty("display")?O.display:null;r.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch(R){ft(h,h.return,R)}}}else if(e.tag===6){if(l===null){h=e;try{h.stateNode.nodeValue=n?"":h.memoizedProps}catch(R){ft(h,h.return,R)}}}else if(e.tag===18){if(l===null){h=e;try{var _=h.stateNode;n?ld(_,!0):ld(h.stateNode,!1)}catch(R){ft(h,h.return,R)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Bi(t,l))));break;case 19:It(e,t),Pt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Bi(t,a)));break;case 30:break;case 21:break;default:It(e,t),Pt(t)}}function Pt(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(nh(a)){l=a;break}a=a.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var n=l.stateNode,i=sf(t);Ri(t,i,n);break;case 5:var s=l.stateNode;l.flags&32&&(na(s,""),l.flags&=-33);var r=sf(t);Ri(t,r,s);break;case 3:case 4:var h=l.stateNode.containerInfo,v=sf(t);of(t,v,h);break;default:throw Error(f(161))}}catch(E){ft(t,t.return,E)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function dh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;dh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ie(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ch(t,e.alternate,e),e=e.sibling}function kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:yl(4,e,e.return),kl(e);break;case 1:He(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&lh(e,e.return,l),kl(e);break;case 27:On(e.stateNode);case 26:case 5:He(e,e.return),kl(e);break;case 22:e.memoizedState===null&&kl(e);break;case 30:kl(e);break;default:kl(e)}t=t.sibling}}function Pe(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,s=i.flags;switch(i.tag){case 0:case 11:case 15:Pe(n,i,l),gn(4,i);break;case 1:if(Pe(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(v){ft(a,a.return,v)}if(a=i,n=a.updateQueue,n!==null){var r=a.stateNode;try{var h=n.shared.hiddenCallbacks;if(h!==null)for(n.shared.hiddenCallbacks=null,n=0;n<h.length;n++)Zo(h[n],r)}catch(v){ft(a,a.return,v)}}l&&s&64&&eh(i),vn(i,i.return);break;case 27:ih(i);case 26:case 5:Pe(n,i,l),l&&a===null&&s&4&&ah(i),vn(i,i.return);break;case 12:Pe(n,i,l);break;case 31:Pe(n,i,l),l&&s&4&&oh(n,i);break;case 13:Pe(n,i,l),l&&s&4&&rh(n,i);break;case 22:i.memoizedState===null&&Pe(n,i,l),vn(i,i.return);break;case 30:break;default:Pe(n,i,l)}e=e.sibling}}function hf(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&an(l))}function df(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&an(t))}function Ce(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mh(t,e,l,a),e=e.sibling}function mh(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ce(t,e,l,a),n&2048&&gn(9,e);break;case 1:Ce(t,e,l,a);break;case 3:Ce(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&an(t)));break;case 12:if(n&2048){Ce(t,e,l,a),t=e.stateNode;try{var i=e.memoizedProps,s=i.id,r=i.onPostCommit;typeof r=="function"&&r(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){ft(e,e.return,h)}}else Ce(t,e,l,a);break;case 31:Ce(t,e,l,a);break;case 13:Ce(t,e,l,a);break;case 23:break;case 22:i=e.stateNode,s=e.alternate,e.memoizedState!==null?i._visibility&2?Ce(t,e,l,a):bn(t,e):i._visibility&2?Ce(t,e,l,a):(i._visibility|=2,Aa(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&hf(s,e);break;case 24:Ce(t,e,l,a),n&2048&&df(e.alternate,e);break;default:Ce(t,e,l,a)}}function Aa(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,s=e,r=l,h=a,v=s.flags;switch(s.tag){case 0:case 11:case 15:Aa(i,s,r,h,n),gn(8,s);break;case 23:break;case 22:var E=s.stateNode;s.memoizedState!==null?E._visibility&2?Aa(i,s,r,h,n):bn(i,s):(E._visibility|=2,Aa(i,s,r,h,n)),n&&v&2048&&hf(s.alternate,s);break;case 24:Aa(i,s,r,h,n),n&&v&2048&&df(s.alternate,s);break;default:Aa(i,s,r,h,n)}e=e.sibling}}function bn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:bn(l,a),n&2048&&hf(a.alternate,a);break;case 24:bn(l,a),n&2048&&df(a.alternate,a);break;default:bn(l,a)}e=e.sibling}}var _n=8192;function xa(t,e,l){if(t.subtreeFlags&_n)for(t=t.child;t!==null;)ph(t,e,l),t=t.sibling}function ph(t,e,l){switch(t.tag){case 26:xa(t,e,l),t.flags&_n&&t.memoizedState!==null&&ny(l,Oe,t.memoizedState,t.memoizedProps);break;case 5:xa(t,e,l);break;case 3:case 4:var a=Oe;Oe=Ji(t.stateNode.containerInfo),xa(t,e,l),Oe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,xa(t,e,l),_n=a):xa(t,e,l));break;default:xa(t,e,l)}}function yh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Sn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Rt=a,vh(a,t)}yh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gh(t),t=t.sibling}function gh(t){switch(t.tag){case 0:case 11:case 15:Sn(t),t.flags&2048&&yl(9,t,t.return);break;case 3:Sn(t);break;case 12:Sn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Hi(t)):Sn(t);break;default:Sn(t)}}function Hi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Rt=a,vh(a,t)}yh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:yl(8,e,e.return),Hi(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Hi(e));break;default:Hi(e)}t=t.sibling}}function vh(t,e){for(;Rt!==null;){var l=Rt;switch(l.tag){case 0:case 11:case 15:yl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:an(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Rt=a;else t:for(l=t;Rt!==null;){a=Rt;var n=a.sibling,i=a.return;if(fh(a),a===l){Rt=null;break t}if(n!==null){n.return=i,Rt=n;break t}Rt=i}}}var b0={getCacheForType:function(t){var e=Yt(xt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Yt(xt).controller.signal}},_0=typeof WeakMap=="function"?WeakMap:Map,it=0,mt=null,J=null,W=0,ct=0,se=null,gl=!1,za=!1,mf=!1,tl=0,bt=0,vl=0,Jl=0,pf=0,oe=0,Oa=0,En=null,te=null,yf=!1,qi=0,bh=0,wi=1/0,Yi=null,bl=null,Mt=0,_l=null,Ca=null,el=0,gf=0,vf=null,_h=null,Tn=0,bf=null;function re(){return(it&2)!==0&&W!==0?W&-W:T.T!==null?xf():Hs()}function Sh(){if(oe===0)if((W&536870912)===0||tt){var t=Kn;Kn<<=1,(Kn&3932160)===0&&(Kn=262144),oe=t}else oe=536870912;return t=ce.current,t!==null&&(t.flags|=32),oe}function ee(t,e,l){(t===mt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)&&(Na(t,0),Sl(t,W,oe,!1)),ja(t,l),((it&2)===0||t!==mt)&&(t===mt&&((it&2)===0&&(Jl|=l),bt===4&&Sl(t,W,oe,!1)),qe(t))}function Eh(t,e,l){if((it&6)!==0)throw Error(f(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Ga(t,e),n=a?T0(t,e):Sf(t,e,!0),i=a;do{if(n===0){za&&!a&&Sl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!S0(l)){n=Sf(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var r=t;n=En;var h=r.current.memoizedState.isDehydrated;if(h&&(Na(r,s).flags|=256),s=Sf(r,s,!1),s!==2){if(mf&&!h){r.errorRecoveryDisabledLanes|=i,Jl|=i,n=4;break t}i=te,te=n,i!==null&&(te===null?te=i:te.push.apply(te,i))}n=s}if(i=!1,n!==2)continue}}if(n===1){Na(t,0),Sl(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(f(345));case 4:if((e&4194048)!==e)break;case 6:Sl(a,e,oe,!gl);break t;case 2:te=null;break;case 3:case 5:break;default:throw Error(f(329))}if((e&62914560)===e&&(n=qi+300-le(),10<n)){if(Sl(a,e,oe,!gl),Jn(a,0,!0)!==0)break t;el=e,a.timeoutHandle=Ph(Th.bind(null,a,l,te,Yi,yf,e,oe,Jl,Oa,gl,i,"Throttled",-0,0),n);break t}Th(a,l,te,Yi,yf,e,oe,Jl,Oa,gl,i,null,-0,0)}}break}while(!0);qe(t)}function Th(t,e,l,a,n,i,s,r,h,v,E,O,b,_){if(t.timeoutHandle=-1,O=e.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xe},ph(e,i,O);var R=(i&62914560)===i?qi-le():(i&4194048)===i?bh-le():0;if(R=iy(O,R),R!==null){el=i,t.cancelPendingCommit=R(Dh.bind(null,t,e,i,l,a,n,s,r,h,E,O,null,b,_)),Sl(t,i,s,!v);return}}Dh(t,e,i,l,a,n,s,r,h)}function S0(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!ie(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Sl(t,e,l,a){e&=~pf,e&=~Jl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-ne(n),s=1<<i;a[i]=-1,n&=~s}l!==0&&Us(t,l,e)}function Li(){return(it&6)===0?(An(0),!1):!0}function _f(){if(J!==null){if(ct===0)var t=J.return;else t=J,Ze=Ll=null,Hc(t),ba=null,un=0,t=J;for(;t!==null;)th(t.alternate,t),t=t.return;J=null}}function Na(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Q0(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),el=0,_f(),mt=t,J=l=Ge(t.current,null),W=e,ct=0,se=null,gl=!1,za=Ga(t,e),mf=!1,Oa=oe=pf=Jl=vl=bt=0,te=En=null,yf=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-ne(a),i=1<<n;e|=t[n],a&=~i}return tl=e,ui(),l}function Ah(t,e){Z=null,T.H=mn,e===va||e===mi?(e=Xo(),ct=3):e===Tc?(e=Xo(),ct=4):ct=e===$c?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,se=e,J===null&&(bt=1,Ci(t,ge(e,t.current)))}function xh(){var t=ce.current;return t===null?!0:(W&4194048)===W?Se===null:(W&62914560)===W||(W&536870912)!==0?t===Se:!1}function zh(){var t=T.H;return T.H=mn,t===null?mn:t}function Oh(){var t=T.A;return T.A=b0,t}function Xi(){bt=4,gl||(W&4194048)!==W&&ce.current!==null||(za=!0),(vl&134217727)===0&&(Jl&134217727)===0||mt===null||Sl(mt,W,oe,!1)}function Sf(t,e,l){var a=it;it|=2;var n=zh(),i=Oh();(mt!==t||W!==e)&&(Yi=null,Na(t,e)),e=!1;var s=bt;t:do try{if(ct!==0&&J!==null){var r=J,h=se;switch(ct){case 8:_f(),s=6;break t;case 3:case 2:case 9:case 6:ce.current===null&&(e=!0);var v=ct;if(ct=0,se=null,Ma(t,r,h,v),l&&za){s=0;break t}break;default:v=ct,ct=0,se=null,Ma(t,r,h,v)}}E0(),s=bt;break}catch(E){Ah(t,E)}while(!0);return e&&t.shellSuspendCounter++,Ze=Ll=null,it=a,T.H=n,T.A=i,J===null&&(mt=null,W=0,ui()),s}function E0(){for(;J!==null;)Ch(J)}function T0(t,e){var l=it;it|=2;var a=zh(),n=Oh();mt!==t||W!==e?(Yi=null,wi=le()+500,Na(t,e)):za=Ga(t,e);t:do try{if(ct!==0&&J!==null){e=J;var i=se;e:switch(ct){case 1:ct=0,se=null,Ma(t,e,i,1);break;case 2:case 9:if(Yo(i)){ct=0,se=null,Nh(e);break}e=function(){ct!==2&&ct!==9||mt!==t||(ct=7),qe(t)},i.then(e,e);break t;case 3:ct=7;break t;case 4:ct=5;break t;case 7:Yo(i)?(ct=0,se=null,Nh(e)):(ct=0,se=null,Ma(t,e,i,7));break;case 5:var s=null;switch(J.tag){case 26:s=J.memoizedState;case 5:case 27:var r=J;if(s?md(s):r.stateNode.complete){ct=0,se=null;var h=r.sibling;if(h!==null)J=h;else{var v=r.return;v!==null?(J=v,Qi(v)):J=null}break e}}ct=0,se=null,Ma(t,e,i,5);break;case 6:ct=0,se=null,Ma(t,e,i,6);break;case 8:_f(),bt=6;break t;default:throw Error(f(462))}}A0();break}catch(E){Ah(t,E)}while(!0);return Ze=Ll=null,T.H=a,T.A=n,it=l,J!==null?0:(mt=null,W=0,ui(),bt)}function A0(){for(;J!==null&&!km();)Ch(J)}function Ch(t){var e=Ir(t.alternate,t,tl);t.memoizedProps=t.pendingProps,e===null?Qi(t):J=e}function Nh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Kr(l,e,e.pendingProps,e.type,void 0,W);break;case 11:e=Kr(l,e,e.pendingProps,e.type.render,e.ref,W);break;case 5:Hc(e);default:th(l,e),e=J=Oo(e,tl),e=Ir(l,e,tl)}t.memoizedProps=t.pendingProps,e===null?Qi(t):J=e}function Ma(t,e,l,a){Ze=Ll=null,Hc(e),ba=null,un=0;var n=e.return;try{if(h0(t,n,e,l,W)){bt=1,Ci(t,ge(l,t.current)),J=null;return}}catch(i){if(n!==null)throw J=n,i;bt=1,Ci(t,ge(l,t.current)),J=null;return}e.flags&32768?(tt||a===1?t=!0:za||(W&536870912)!==0?t=!1:(gl=t=!0,(a===2||a===9||a===3||a===6)&&(a=ce.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mh(e,t)):Qi(e)}function Qi(t){var e=t;do{if((e.flags&32768)!==0){Mh(e,gl);return}t=e.return;var l=p0(e.alternate,e,tl);if(l!==null){J=l;return}if(e=e.sibling,e!==null){J=e;return}J=e=t}while(e!==null);bt===0&&(bt=5)}function Mh(t,e){do{var l=y0(t.alternate,t);if(l!==null){l.flags&=32767,J=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){J=t;return}J=t=l}while(t!==null);bt=6,J=null}function Dh(t,e,l,a,n,i,s,r,h){t.cancelPendingCommit=null;do Gi();while(Mt!==0);if((it&6)!==0)throw Error(f(327));if(e!==null){if(e===t.current)throw Error(f(177));if(i=e.lanes|e.childLanes,i|=fc,ap(t,l,i,s,r,h),t===mt&&(J=mt=null,W=0),Ca=e,_l=t,el=l,gf=i,vf=n,_h=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,C0(Zn,function(){return qh(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,n=D.p,D.p=2,s=it,it|=4;try{g0(t,e,l)}finally{it=s,D.p=n,T.T=a}}Mt=1,Uh(),Rh(),Bh()}}function Uh(){if(Mt===1){Mt=0;var t=_l,e=Ca,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=D.p;D.p=2;var n=it;it|=4;try{hh(e,t);var i=Rf,s=vo(t.containerInfo),r=i.focusedElem,h=i.selectionRange;if(s!==r&&r&&r.ownerDocument&&go(r.ownerDocument.documentElement,r)){if(h!==null&&ac(r)){var v=h.start,E=h.end;if(E===void 0&&(E=v),"selectionStart"in r)r.selectionStart=v,r.selectionEnd=Math.min(E,r.value.length);else{var O=r.ownerDocument||document,b=O&&O.defaultView||window;if(b.getSelection){var _=b.getSelection(),R=r.textContent.length,X=Math.min(h.start,R),ht=h.end===void 0?X:Math.min(h.end,R);!_.extend&&X>ht&&(s=ht,ht=X,X=s);var y=yo(r,X),m=yo(r,ht);if(y&&m&&(_.rangeCount!==1||_.anchorNode!==y.node||_.anchorOffset!==y.offset||_.focusNode!==m.node||_.focusOffset!==m.offset)){var g=O.createRange();g.setStart(y.node,y.offset),_.removeAllRanges(),X>ht?(_.addRange(g),_.extend(m.node,m.offset)):(g.setEnd(m.node,m.offset),_.addRange(g))}}}}for(O=[],_=r;_=_.parentNode;)_.nodeType===1&&O.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<O.length;r++){var x=O[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}tu=!!Uf,Rf=Uf=null}finally{it=n,D.p=a,T.T=l}}t.current=e,Mt=2}}function Rh(){if(Mt===2){Mt=0;var t=_l,e=Ca,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=D.p;D.p=2;var n=it;it|=4;try{ch(t,e.alternate,e)}finally{it=n,D.p=a,T.T=l}}Mt=3}}function Bh(){if(Mt===4||Mt===3){Mt=0,Jm();var t=_l,e=Ca,l=el,a=_h;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Mt=5:(Mt=0,Ca=_l=null,Hh(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(bl=null),Yu(l),e=e.stateNode,ae&&typeof ae.onCommitFiberRoot=="function")try{ae.onCommitFiberRoot(Qa,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=T.T,n=D.p,D.p=2,T.T=null;try{for(var i=t.onRecoverableError,s=0;s<a.length;s++){var r=a[s];i(r.value,{componentStack:r.stack})}}finally{T.T=e,D.p=n}}(el&3)!==0&&Gi(),qe(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===bf?Tn++:(Tn=0,bf=t):Tn=0,An(0)}}function Hh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,an(e)))}function Gi(){return Uh(),Rh(),Bh(),qh()}function qh(){if(Mt!==5)return!1;var t=_l,e=gf;gf=0;var l=Yu(el),a=T.T,n=D.p;try{D.p=32>l?32:l,T.T=null,l=vf,vf=null;var i=_l,s=el;if(Mt=0,Ca=_l=null,el=0,(it&6)!==0)throw Error(f(331));var r=it;if(it|=4,gh(i.current),mh(i,i.current,s,l),it=r,An(0,!1),ae&&typeof ae.onPostCommitFiberRoot=="function")try{ae.onPostCommitFiberRoot(Qa,i)}catch{}return!0}finally{D.p=n,T.T=a,Hh(t,e)}}function wh(t,e,l){e=ge(l,e),e=Wc(t.stateNode,e,2),t=dl(t,e,2),t!==null&&(ja(t,2),qe(t))}function ft(t,e,l){if(t.tag===3)wh(t,t,l);else for(;e!==null;){if(e.tag===3){wh(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(bl===null||!bl.has(a))){t=ge(l,t),l=Yr(2),a=dl(e,l,2),a!==null&&(Lr(l,a,e,t),ja(a,2),qe(a));break}}e=e.return}}function Ef(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new _0;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(mf=!0,n.add(l),t=x0.bind(null,t,e,l),e.then(t,t))}function x0(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,mt===t&&(W&l)===l&&(bt===4||bt===3&&(W&62914560)===W&&300>le()-qi?(it&2)===0&&Na(t,0):pf|=l,Oa===W&&(Oa=0)),qe(t)}function Yh(t,e){e===0&&(e=Ds()),t=ql(t,e),t!==null&&(ja(t,e),qe(t))}function z0(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Yh(t,l)}function O0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(e),Yh(t,l)}function C0(t,e){return Bu(t,e)}var ji=null,Da=null,Tf=!1,Zi=!1,Af=!1,El=0;function qe(t){t!==Da&&t.next===null&&(Da===null?ji=Da=t:Da=Da.next=t),Zi=!0,Tf||(Tf=!0,M0())}function An(t,e){if(!Af&&Zi){Af=!0;do for(var l=!1,a=ji;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var s=a.suspendedLanes,r=a.pingedLanes;i=(1<<31-ne(42|t)+1)-1,i&=n&~(s&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Gh(a,i))}else i=W,i=Jn(a,a===mt?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Ga(a,i)||(l=!0,Gh(a,i));a=a.next}while(l);Af=!1}}function N0(){Lh()}function Lh(){Zi=Tf=!1;var t=0;El!==0&&X0()&&(t=El);for(var e=le(),l=null,a=ji;a!==null;){var n=a.next,i=Xh(a,e);i===0?(a.next=null,l===null?ji=n:l.next=n,n===null&&(Da=l)):(l=a,(t!==0||(i&3)!==0)&&(Zi=!0)),a=n}Mt!==0&&Mt!==5||An(t),El!==0&&(El=0)}function Xh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var s=31-ne(i),r=1<<s,h=n[s];h===-1?((r&l)===0||(r&a)!==0)&&(n[s]=lp(r,e)):h<=e&&(t.expiredLanes|=r),i&=~r}if(e=mt,l=W,l=Jn(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(ct===2||ct===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Hu(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Ga(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Hu(a),Yu(l)){case 2:case 8:l=Ns;break;case 32:l=Zn;break;case 268435456:l=Ms;break;default:l=Zn}return a=Qh.bind(null,t),l=Bu(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Hu(a),t.callbackPriority=2,t.callbackNode=null,2}function Qh(t,e){if(Mt!==0&&Mt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Gi()&&t.callbackNode!==l)return null;var a=W;return a=Jn(t,t===mt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Eh(t,a,e),Xh(t,le()),t.callbackNode!=null&&t.callbackNode===l?Qh.bind(null,t):null)}function Gh(t,e){if(Gi())return null;Eh(t,e,!0)}function M0(){G0(function(){(it&6)!==0?Bu(Cs,N0):Lh()})}function xf(){if(El===0){var t=ya;t===0&&(t=Vn,Vn<<=1,(Vn&261888)===0&&(Vn=256)),El=t}return El}function jh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:In(""+t)}function Zh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function D0(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=jh((n[Ft]||null).action),s=a.submitter;s&&(e=(e=s[Ft]||null)?jh(e.formAction):s.getAttribute("formAction"),e!==null&&(i=e,s=null));var r=new li("action","action",null,a,n);t.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(El!==0){var h=s?Zh(n,s):new FormData(n);Zc(l,{pending:!0,data:h,method:n.method,action:i},null,h)}}else typeof i=="function"&&(r.preventDefault(),h=s?Zh(n,s):new FormData(n),Zc(l,{pending:!0,data:h,method:n.method,action:i},i,h))},currentTarget:n}]})}}for(var zf=0;zf<cc.length;zf++){var Of=cc[zf],U0=Of.toLowerCase(),R0=Of[0].toUpperCase()+Of.slice(1);ze(U0,"on"+R0)}ze(So,"onAnimationEnd"),ze(Eo,"onAnimationIteration"),ze(To,"onAnimationStart"),ze("dblclick","onDoubleClick"),ze("focusin","onFocus"),ze("focusout","onBlur"),ze(Fp,"onTransitionRun"),ze(Wp,"onTransitionStart"),ze($p,"onTransitionCancel"),ze(Ao,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xn="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(" "),B0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xn));function Vh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var s=a.length-1;0<=s;s--){var r=a[s],h=r.instance,v=r.currentTarget;if(r=r.listener,h!==i&&n.isPropagationStopped())break t;i=r,n.currentTarget=v;try{i(n)}catch(E){ii(E)}n.currentTarget=null,i=h}else for(s=0;s<a.length;s++){if(r=a[s],h=r.instance,v=r.currentTarget,r=r.listener,h!==i&&n.isPropagationStopped())break t;i=r,n.currentTarget=v;try{i(n)}catch(E){ii(E)}n.currentTarget=null,i=h}}}}function F(t,e){var l=e[Lu];l===void 0&&(l=e[Lu]=new Set);var a=t+"__bubble";l.has(a)||(Kh(e,t,2,!1),l.add(a))}function Cf(t,e,l){var a=0;e&&(a|=4),Kh(l,t,a,e)}var Vi="_reactListening"+Math.random().toString(36).slice(2);function Nf(t){if(!t[Vi]){t[Vi]=!0,Ys.forEach(function(l){l!=="selectionchange"&&(B0.has(l)||Cf(l,!1,t),Cf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Vi]||(e[Vi]=!0,Cf("selectionchange",!1,e))}}function Kh(t,e,l,a){switch(Sd(e)){case 2:var n=fy;break;case 8:n=sy;break;default:n=Zf}l=n.bind(null,e,l,t),n=void 0,!Ju||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function Mf(t,e,l,a,n){var i=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var r=a.stateNode.containerInfo;if(r===n)break;if(s===4)for(s=a.return;s!==null;){var h=s.tag;if((h===3||h===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;r!==null;){if(s=Pl(r),s===null)return;if(h=s.tag,h===5||h===6||h===26||h===27){a=i=s;continue t}r=r.parentNode}}a=a.return}Ws(function(){var v=i,E=Ku(l),O=[];t:{var b=xo.get(t);if(b!==void 0){var _=li,R=t;switch(t){case"keypress":if(ti(l)===0)break t;case"keydown":case"keyup":_=Op;break;case"focusin":R="focus",_=Iu;break;case"focusout":R="blur",_=Iu;break;case"beforeblur":case"afterblur":_=Iu;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Ps;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=pp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Mp;break;case So:case Eo:case To:_=vp;break;case Ao:_=Up;break;case"scroll":case"scrollend":_=dp;break;case"wheel":_=Bp;break;case"copy":case"cut":case"paste":_=_p;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=eo;break;case"toggle":case"beforetoggle":_=qp}var X=(e&4)!==0,ht=!X&&(t==="scroll"||t==="scrollend"),y=X?b!==null?b+"Capture":null:b;X=[];for(var m=v,g;m!==null;){var x=m;if(g=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||g===null||y===null||(x=Ka(m,y),x!=null&&X.push(zn(m,x,g))),ht)break;m=m.return}0<X.length&&(b=new _(b,R,null,l,E),O.push({event:b,listeners:X}))}}if((e&7)===0){t:{if(b=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",b&&l!==Vu&&(R=l.relatedTarget||l.fromElement)&&(Pl(R)||R[Il]))break t;if((_||b)&&(b=E.window===E?E:(b=E.ownerDocument)?b.defaultView||b.parentWindow:window,_?(R=l.relatedTarget||l.toElement,_=v,R=R?Pl(R):null,R!==null&&(ht=z(R),X=R.tag,R!==ht||X!==5&&X!==27&&X!==6)&&(R=null)):(_=null,R=v),_!==R)){if(X=Ps,x="onMouseLeave",y="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(X=eo,x="onPointerLeave",y="onPointerEnter",m="pointer"),ht=_==null?b:Va(_),g=R==null?b:Va(R),b=new X(x,m+"leave",_,l,E),b.target=ht,b.relatedTarget=g,x=null,Pl(E)===v&&(X=new X(y,m+"enter",R,l,E),X.target=g,X.relatedTarget=ht,x=X),ht=x,_&&R)e:{for(X=H0,y=_,m=R,g=0,x=y;x;x=X(x))g++;x=0;for(var Y=m;Y;Y=X(Y))x++;for(;0<g-x;)y=X(y),g--;for(;0<x-g;)m=X(m),x--;for(;g--;){if(y===m||m!==null&&y===m.alternate){X=y;break e}y=X(y),m=X(m)}X=null}else X=null;_!==null&&kh(O,b,_,X,!1),R!==null&&ht!==null&&kh(O,ht,R,X,!0)}}t:{if(b=v?Va(v):window,_=b.nodeName&&b.nodeName.toLowerCase(),_==="select"||_==="input"&&b.type==="file")var lt=so;else if(co(b))if(oo)lt=Kp;else{lt=Zp;var q=jp}else _=b.nodeName,!_||_.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?v&&Zu(v.elementType)&&(lt=so):lt=Vp;if(lt&&(lt=lt(t,v))){fo(O,lt,l,E);break t}q&&q(t,b,v),t==="focusout"&&v&&b.type==="number"&&v.memoizedProps.value!=null&&ju(b,"number",b.value)}switch(q=v?Va(v):window,t){case"focusin":(co(q)||q.contentEditable==="true")&&(fa=q,nc=v,tn=null);break;case"focusout":tn=nc=fa=null;break;case"mousedown":ic=!0;break;case"contextmenu":case"mouseup":case"dragend":ic=!1,bo(O,l,E);break;case"selectionchange":if(Jp)break;case"keydown":case"keyup":bo(O,l,E)}var V;if(tc)t:{switch(t){case"compositionstart":var $="onCompositionStart";break t;case"compositionend":$="onCompositionEnd";break t;case"compositionupdate":$="onCompositionUpdate";break t}$=void 0}else ca?io(t,l)&&($="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&($="onCompositionStart");$&&(lo&&l.locale!=="ko"&&(ca||$!=="onCompositionStart"?$==="onCompositionEnd"&&ca&&(V=$s()):(ul=E,Fu="value"in ul?ul.value:ul.textContent,ca=!0)),q=Ki(v,$),0<q.length&&($=new to($,t,null,l,E),O.push({event:$,listeners:q}),V?$.data=V:(V=uo(l),V!==null&&($.data=V)))),(V=Yp?Lp(t,l):Xp(t,l))&&($=Ki(v,"onBeforeInput"),0<$.length&&(q=new to("onBeforeInput","beforeinput",null,l,E),O.push({event:q,listeners:$}),q.data=V)),D0(O,t,v,l,E)}Vh(O,e)})}function zn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Ki(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ka(t,l),n!=null&&a.unshift(zn(t,n,i)),n=Ka(t,e),n!=null&&a.push(zn(t,n,i))),t.tag===3)return a;t=t.return}return[]}function H0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function kh(t,e,l,a,n){for(var i=e._reactName,s=[];l!==null&&l!==a;){var r=l,h=r.alternate,v=r.stateNode;if(r=r.tag,h!==null&&h===a)break;r!==5&&r!==26&&r!==27||v===null||(h=v,n?(v=Ka(l,i),v!=null&&s.unshift(zn(l,v,h))):n||(v=Ka(l,i),v!=null&&s.push(zn(l,v,h)))),l=l.return}s.length!==0&&t.push({event:e,listeners:s})}var q0=/\r\n?/g,w0=/\u0000|\uFFFD/g;function Jh(t){return(typeof t=="string"?t:""+t).replace(q0,`
41
+ `).replace(w0,"")}function Fh(t,e){return e=Jh(e),Jh(t)===e}function rt(t,e,l,a,n,i){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||na(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&na(t,""+a);break;case"className":Wn(t,"class",a);break;case"tabIndex":Wn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Wn(t,l,a);break;case"style":Js(t,a,i);break;case"data":if(e!=="object"){Wn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=In(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"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 i=="function"&&(l==="formAction"?(e!=="input"&&rt(t,e,"name",n.name,n,null),rt(t,e,"formEncType",n.formEncType,n,null),rt(t,e,"formMethod",n.formMethod,n,null),rt(t,e,"formTarget",n.formTarget,n,null)):(rt(t,e,"encType",n.encType,n,null),rt(t,e,"method",n.method,n,null),rt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=In(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Xe);break;case"onScroll":a!=null&&F("scroll",t);break;case"onScrollEnd":a!=null&&F("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}l=In(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);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"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":F("beforetoggle",t),F("toggle",t),Fn(t,"popover",a);break;case"xlinkActuate":Le(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Le(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Le(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Le(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Le(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Le(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Le(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Le(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Le(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Fn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=rp.get(l)||l,Fn(t,l,a))}}function Df(t,e,l,a,n,i){switch(l){case"style":Js(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));t.innerHTML=l}}break;case"children":typeof a=="string"?na(t,a):(typeof a=="number"||typeof a=="bigint")&&na(t,""+a);break;case"onScroll":a!=null&&F("scroll",t);break;case"onScrollEnd":a!=null&&F("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Xe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ls.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),i=t[Ft]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Fn(t,l,a)}}}function Xt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",t),F("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];if(s!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:rt(t,e,i,s,l,null)}}n&&rt(t,e,"srcSet",l.srcSet,l,null),a&&rt(t,e,"src",l.src,l,null);return;case"input":F("invalid",t);var r=i=s=n=null,h=null,v=null;for(a in l)if(l.hasOwnProperty(a)){var E=l[a];if(E!=null)switch(a){case"name":n=E;break;case"type":s=E;break;case"checked":h=E;break;case"defaultChecked":v=E;break;case"value":i=E;break;case"defaultValue":r=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(f(137,e));break;default:rt(t,e,a,E,l,null)}}Zs(t,i,r,h,v,s,n,!1);return;case"select":F("invalid",t),a=s=i=null;for(n in l)if(l.hasOwnProperty(n)&&(r=l[n],r!=null))switch(n){case"value":i=r;break;case"defaultValue":s=r;break;case"multiple":a=r;default:rt(t,e,n,r,l,null)}e=i,l=s,t.multiple=!!a,e!=null?aa(t,!!a,e,!1):l!=null&&aa(t,!!a,l,!0);return;case"textarea":F("invalid",t),i=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(r=l[s],r!=null))switch(s){case"value":a=r;break;case"defaultValue":n=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:rt(t,e,s,r,l,null)}Ks(t,a,n,i);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(a=l[h],a!=null))switch(h){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:rt(t,e,h,a,l,null)}return;case"dialog":F("beforetoggle",t),F("toggle",t),F("cancel",t),F("close",t);break;case"iframe":case"object":F("load",t);break;case"video":case"audio":for(a=0;a<xn.length;a++)F(xn[a],t);break;case"image":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"embed":case"source":case"link":F("error",t),F("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(v in l)if(l.hasOwnProperty(v)&&(a=l[v],a!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:rt(t,e,v,a,l,null)}return;default:if(Zu(e)){for(E in l)l.hasOwnProperty(E)&&(a=l[E],a!==void 0&&Df(t,e,E,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&rt(t,e,r,a,l,null))}function Y0(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,s=null,r=null,h=null,v=null,E=null;for(_ in l){var O=l[_];if(l.hasOwnProperty(_)&&O!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":h=O;default:a.hasOwnProperty(_)||rt(t,e,_,null,a,O)}}for(var b in a){var _=a[b];if(O=l[b],a.hasOwnProperty(b)&&(_!=null||O!=null))switch(b){case"type":i=_;break;case"name":n=_;break;case"checked":v=_;break;case"defaultChecked":E=_;break;case"value":s=_;break;case"defaultValue":r=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(f(137,e));break;default:_!==O&&rt(t,e,b,_,a,O)}}Gu(t,s,r,h,v,E,i,n);return;case"select":_=s=r=b=null;for(i in l)if(h=l[i],l.hasOwnProperty(i)&&h!=null)switch(i){case"value":break;case"multiple":_=h;default:a.hasOwnProperty(i)||rt(t,e,i,null,a,h)}for(n in a)if(i=a[n],h=l[n],a.hasOwnProperty(n)&&(i!=null||h!=null))switch(n){case"value":b=i;break;case"defaultValue":r=i;break;case"multiple":s=i;default:i!==h&&rt(t,e,n,i,a,h)}e=r,l=s,a=_,b!=null?aa(t,!!l,b,!1):!!a!=!!l&&(e!=null?aa(t,!!l,e,!0):aa(t,!!l,l?[]:"",!1));return;case"textarea":_=b=null;for(r in l)if(n=l[r],l.hasOwnProperty(r)&&n!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:rt(t,e,r,null,a,n)}for(s in a)if(n=a[s],i=l[s],a.hasOwnProperty(s)&&(n!=null||i!=null))switch(s){case"value":b=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==i&&rt(t,e,s,n,a,i)}Vs(t,b,_);return;case"option":for(var R in l)if(b=l[R],l.hasOwnProperty(R)&&b!=null&&!a.hasOwnProperty(R))switch(R){case"selected":t.selected=!1;break;default:rt(t,e,R,null,a,b)}for(h in a)if(b=a[h],_=l[h],a.hasOwnProperty(h)&&b!==_&&(b!=null||_!=null))switch(h){case"selected":t.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:rt(t,e,h,b,a,_)}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 X in l)b=l[X],l.hasOwnProperty(X)&&b!=null&&!a.hasOwnProperty(X)&&rt(t,e,X,null,a,b);for(v in a)if(b=a[v],_=l[v],a.hasOwnProperty(v)&&b!==_&&(b!=null||_!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(f(137,e));break;default:rt(t,e,v,b,a,_)}return;default:if(Zu(e)){for(var ht in l)b=l[ht],l.hasOwnProperty(ht)&&b!==void 0&&!a.hasOwnProperty(ht)&&Df(t,e,ht,void 0,a,b);for(E in a)b=a[E],_=l[E],!a.hasOwnProperty(E)||b===_||b===void 0&&_===void 0||Df(t,e,E,b,a,_);return}}for(var y in l)b=l[y],l.hasOwnProperty(y)&&b!=null&&!a.hasOwnProperty(y)&&rt(t,e,y,null,a,b);for(O in a)b=a[O],_=l[O],!a.hasOwnProperty(O)||b===_||b==null&&_==null||rt(t,e,O,b,a,_)}function Wh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function L0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,s=n.initiatorType,r=n.duration;if(i&&r&&Wh(s)){for(s=0,r=n.responseEnd,a+=1;a<l.length;a++){var h=l[a],v=h.startTime;if(v>r)break;var E=h.transferSize,O=h.initiatorType;E&&Wh(O)&&(h=h.responseEnd,s+=E*(h<r?1:(r-v)/(h-v)))}if(--a,e+=8*(i+s)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Uf=null,Rf=null;function ki(t){return t.nodeType===9?t:t.ownerDocument}function $h(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ih(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Bf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hf=null;function X0(){var t=window.event;return t&&t.type==="popstate"?t===Hf?!1:(Hf=t,!0):(Hf=null,!1)}var Ph=typeof setTimeout=="function"?setTimeout:void 0,Q0=typeof clearTimeout=="function"?clearTimeout:void 0,td=typeof Promise=="function"?Promise:void 0,G0=typeof queueMicrotask=="function"?queueMicrotask:typeof td<"u"?function(t){return td.resolve(null).then(t).catch(j0)}:Ph;function j0(t){setTimeout(function(){throw t})}function Tl(t){return t==="head"}function ed(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Ha(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")On(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,On(l);for(var i=l.firstChild;i;){var s=i.nextSibling,r=i.nodeName;i[Za]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=s}}else l==="body"&&On(t.ownerDocument.body);l=n}while(l);Ha(e)}function ld(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function qf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":qf(l),Xu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Z0(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Za])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ee(t.nextSibling),t===null)break}return null}function V0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ee(t.nextSibling),t===null))return null;return t}function ad(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ee(t.nextSibling),t===null))return null;return t}function wf(t){return t.data==="$?"||t.data==="$~"}function Yf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function K0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ee(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Lf=null;function nd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ee(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function id(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function ud(t,e,l){switch(e=ki(l),t){case"html":if(t=e.documentElement,!t)throw Error(f(452));return t;case"head":if(t=e.head,!t)throw Error(f(453));return t;case"body":if(t=e.body,!t)throw Error(f(454));return t;default:throw Error(f(451))}}function On(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Xu(t)}var Te=new Map,cd=new Set;function Ji(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ll=D.d;D.d={f:k0,r:J0,D:F0,C:W0,L:$0,m:I0,X:ty,S:P0,M:ey};function k0(){var t=ll.f(),e=Li();return t||e}function J0(t){var e=ta(t);e!==null&&e.tag===5&&e.type==="form"?Ar(e):ll.r(t)}var Ua=typeof document>"u"?null:document;function fd(t,e,l){var a=Ua;if(a&&typeof e=="string"&&e){var n=pe(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),cd.has(n)||(cd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Xt(e,"link",t),Ut(e),a.head.appendChild(e)))}}function F0(t){ll.D(t),fd("dns-prefetch",t,null)}function W0(t,e){ll.C(t,e),fd("preconnect",t,e)}function $0(t,e,l){ll.L(t,e,l);var a=Ua;if(a&&t&&e){var n='link[rel="preload"][as="'+pe(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+pe(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+pe(l.imageSizes)+'"]')):n+='[href="'+pe(t)+'"]';var i=n;switch(e){case"style":i=Ra(t);break;case"script":i=Ba(t)}Te.has(i)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Te.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Cn(i))||e==="script"&&a.querySelector(Nn(i))||(e=a.createElement("link"),Xt(e,"link",t),Ut(e),a.head.appendChild(e)))}}function I0(t,e){ll.m(t,e);var l=Ua;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+pe(a)+'"][href="'+pe(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ba(t)}if(!Te.has(i)&&(t=B({rel:"modulepreload",href:t},e),Te.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Nn(i)))return}a=l.createElement("link"),Xt(a,"link",t),Ut(a),l.head.appendChild(a)}}}function P0(t,e,l){ll.S(t,e,l);var a=Ua;if(a&&t){var n=ea(a).hoistableStyles,i=Ra(t);e=e||"default";var s=n.get(i);if(!s){var r={loading:0,preload:null};if(s=a.querySelector(Cn(i)))r.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Te.get(i))&&Xf(t,l);var h=s=a.createElement("link");Ut(h),Xt(h,"link",t),h._p=new Promise(function(v,E){h.onload=v,h.onerror=E}),h.addEventListener("load",function(){r.loading|=1}),h.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Fi(s,e,a)}s={type:"stylesheet",instance:s,count:1,state:r},n.set(i,s)}}}function ty(t,e){ll.X(t,e);var l=Ua;if(l&&t){var a=ea(l).hoistableScripts,n=Ba(t),i=a.get(n);i||(i=l.querySelector(Nn(n)),i||(t=B({src:t,async:!0},e),(e=Te.get(n))&&Qf(t,e),i=l.createElement("script"),Ut(i),Xt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function ey(t,e){ll.M(t,e);var l=Ua;if(l&&t){var a=ea(l).hoistableScripts,n=Ba(t),i=a.get(n);i||(i=l.querySelector(Nn(n)),i||(t=B({src:t,async:!0,type:"module"},e),(e=Te.get(n))&&Qf(t,e),i=l.createElement("script"),Ut(i),Xt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function sd(t,e,l,a){var n=(n=k.current)?Ji(n):null;if(!n)throw Error(f(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ra(l.href),l=ea(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ra(l.href);var i=ea(n).hoistableStyles,s=i.get(t);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,s),(i=n.querySelector(Cn(t)))&&!i._p&&(s.instance=i,s.state.loading=5),Te.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Te.set(t,l),i||ly(n,t,l,s.state))),e&&a===null)throw Error(f(528,""));return s}if(e&&a!==null)throw Error(f(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ba(l),l=ea(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,t))}}function Ra(t){return'href="'+pe(t)+'"'}function Cn(t){return'link[rel="stylesheet"]['+t+"]"}function od(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function ly(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Xt(e,"link",l),Ut(e),t.head.appendChild(e))}function Ba(t){return'[src="'+pe(t)+'"]'}function Nn(t){return"script[async]"+t}function rd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+pe(l.href)+'"]');if(a)return e.instance=a,Ut(a),a;var n=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ut(a),Xt(a,"style",n),Fi(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ra(l.href);var i=t.querySelector(Cn(n));if(i)return e.state.loading|=4,e.instance=i,Ut(i),i;a=od(l),(n=Te.get(n))&&Xf(a,n),i=(t.ownerDocument||t).createElement("link"),Ut(i);var s=i;return s._p=new Promise(function(r,h){s.onload=r,s.onerror=h}),Xt(i,"link",a),e.state.loading|=4,Fi(i,l.precedence,t),e.instance=i;case"script":return i=Ba(l.src),(n=t.querySelector(Nn(i)))?(e.instance=n,Ut(n),n):(a=l,(n=Te.get(i))&&(a=B({},l),Qf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ut(n),Xt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(f(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Fi(a,l.precedence,t));return e.instance}function Fi(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,s=0;s<a.length;s++){var r=a[s];if(r.dataset.precedence===e)i=r;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Qf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Wi=null;function hd(t,e,l){if(Wi===null){var a=new Map,n=Wi=new Map;n.set(l,a)}else n=Wi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[Za]||i[qt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(e)||"";s=t+s;var r=a.get(s);r?r.push(i):a.set(s,[i])}}return a}function dd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function ay(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function md(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ny(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ra(a.href),i=e.querySelector(Cn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=$i.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Ut(i);return}i=e.ownerDocument||e,a=od(a),(n=Te.get(n))&&Xf(a,n),i=i.createElement("link"),Ut(i);var s=i;s._p=new Promise(function(r,h){s.onload=r,s.onerror=h}),Xt(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=$i.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Gf=0;function iy(t,e){return t.stylesheets&&t.count===0&&Pi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Pi(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&Gf===0&&(Gf=62500*L0());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Pi(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>Gf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function $i(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ii=null;function Pi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ii=new Map,e.forEach(uy,t),Ii=null,$i.call(t))}function uy(t,e){if(!(e.state.loading&4)){var l=Ii.get(t);if(l)var a=l.get(null);else{l=new Map,Ii.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var s=n[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=e.instance,s=n.getAttribute("data-precedence"),i=l.get(s)||a,i===a&&l.set(null,n),l.set(s,n),this.count++,a=$i.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Mn={$$typeof:nt,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function cy(t,e,l,a,n,i,s,r,h){this.tag=1,this.containerInfo=t,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=qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qu(0),this.hiddenUpdates=qu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function pd(t,e,l,a,n,i,s,r,h,v,E,O){return t=new cy(t,e,l,s,h,v,E,O,r),e=1,i===!0&&(e|=24),i=ue(3,null,null,e),t.current=i,i.stateNode=t,e=_c(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},Ac(i),t}function yd(t){return t?(t=ra,t):ra}function gd(t,e,l,a,n,i){n=yd(n),a.context===null?a.context=n:a.pendingContext=n,a=hl(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=dl(t,a,e),l!==null&&(ee(l,t,e),fn(l,t,e))}function vd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function jf(t,e){vd(t,e),(t=t.alternate)&&vd(t,e)}function bd(t){if(t.tag===13||t.tag===31){var e=ql(t,67108864);e!==null&&ee(e,t,67108864),jf(t,67108864)}}function _d(t){if(t.tag===13||t.tag===31){var e=re();e=wu(e);var l=ql(t,e);l!==null&&ee(l,t,e),jf(t,e)}}var tu=!0;function fy(t,e,l,a){var n=T.T;T.T=null;var i=D.p;try{D.p=2,Zf(t,e,l,a)}finally{D.p=i,T.T=n}}function sy(t,e,l,a){var n=T.T;T.T=null;var i=D.p;try{D.p=8,Zf(t,e,l,a)}finally{D.p=i,T.T=n}}function Zf(t,e,l,a){if(tu){var n=Vf(a);if(n===null)Mf(t,e,a,eu,l),Ed(t,a);else if(ry(n,t,e,l,a))a.stopPropagation();else if(Ed(t,a),e&4&&-1<oy.indexOf(t)){for(;n!==null;){var i=ta(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=Dl(i.pendingLanes);if(s!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;s;){var h=1<<31-ne(s);r.entanglements[1]|=h,s&=~h}qe(i),(it&6)===0&&(wi=le()+500,An(0))}}break;case 31:case 13:r=ql(i,2),r!==null&&ee(r,i,2),Li(),jf(i,2)}if(i=Vf(a),i===null&&Mf(t,e,a,eu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Mf(t,e,a,null,l)}}function Vf(t){return t=Ku(t),Kf(t)}var eu=null;function Kf(t){if(eu=null,t=Pl(t),t!==null){var e=z(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=M(e),t!==null)return t;t=null}else if(l===31){if(t=w(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return eu=t,null}function Sd(t){switch(t){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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fm()){case Cs:return 2;case Ns:return 8;case Zn:case Wm:return 32;case Ms:return 268435456;default:return 32}default:return 32}}var kf=!1,Al=null,xl=null,zl=null,Dn=new Map,Un=new Map,Ol=[],oy="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 Ed(t,e){switch(t){case"focusin":case"focusout":Al=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":zl=null;break;case"pointerover":case"pointerout":Dn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(e.pointerId)}}function Rn(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=ta(e),e!==null&&bd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function ry(t,e,l,a,n){switch(e){case"focusin":return Al=Rn(Al,t,e,l,a,n),!0;case"dragenter":return xl=Rn(xl,t,e,l,a,n),!0;case"mouseover":return zl=Rn(zl,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return Dn.set(i,Rn(Dn.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Un.set(i,Rn(Un.get(i)||null,t,e,l,a,n)),!0}return!1}function Td(t){var e=Pl(t.target);if(e!==null){var l=z(e);if(l!==null){if(e=l.tag,e===13){if(e=M(l),e!==null){t.blockedOn=e,qs(t.priority,function(){_d(l)});return}}else if(e===31){if(e=w(l),e!==null){t.blockedOn=e,qs(t.priority,function(){_d(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function lu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Vf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Vu=a,l.target.dispatchEvent(a),Vu=null}else return e=ta(l),e!==null&&bd(e),t.blockedOn=l,!1;e.shift()}return!0}function Ad(t,e,l){lu(t)&&l.delete(e)}function hy(){kf=!1,Al!==null&&lu(Al)&&(Al=null),xl!==null&&lu(xl)&&(xl=null),zl!==null&&lu(zl)&&(zl=null),Dn.forEach(Ad),Un.forEach(Ad)}function au(t,e){t.blockedOn===e&&(t.blockedOn=null,kf||(kf=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,hy)))}var nu=null;function xd(t){nu!==t&&(nu=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){nu===t&&(nu=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Kf(a||l)===null)continue;break}var i=ta(l);i!==null&&(t.splice(e,3),e-=3,Zc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ha(t){function e(h){return au(h,t)}Al!==null&&au(Al,t),xl!==null&&au(xl,t),zl!==null&&au(zl,t),Dn.forEach(e),Un.forEach(e);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)Td(l),l.blockedOn===null&&Ol.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],s=n[Ft]||null;if(typeof i=="function")s||xd(l);else if(s){var r=null;if(i&&i.hasAttribute("formAction")){if(n=i,s=i[Ft]||null)r=s.formAction;else if(Kf(n)!==null)continue}else r=s.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),xd(l)}}}function zd(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Jf(t){this._internalRoot=t}iu.prototype.render=Jf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(f(409));var l=e.current,a=re();gd(l,a,t,e,null,null)},iu.prototype.unmount=Jf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;gd(t.current,2,null,t,null,null),Li(),e[Il]=null}};function iu(t){this._internalRoot=t}iu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Hs();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ol.length&&e!==0&&e<Ol[l].priority;l++);Ol.splice(l,0,t),l===0&&Td(t)}};var Od=u.version;if(Od!=="19.2.4")throw Error(f(527,Od,"19.2.4"));D.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(f(188)):(t=Object.keys(t).join(","),Error(f(268,t)));return t=A(e),t=t!==null?L(t):null,t=t===null?null:t.stateNode,t};var dy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uu.isDisabled&&uu.supportsFiber)try{Qa=uu.inject(dy),ae=uu}catch{}}return qa.createRoot=function(t,e){if(!d(t))throw Error(f(299));var l=!1,a="",n=Br,i=Hr,s=qr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=pd(t,1,!1,null,null,l,a,null,n,i,s,zd),t[Il]=e.current,Nf(t),new Jf(e)},qa.hydrateRoot=function(t,e,l){if(!d(t))throw Error(f(299));var a=!1,n="",i=Br,s=Hr,r=qr,h=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),e=pd(t,1,!0,e,l??null,a,n,h,i,s,r,zd),e.context=yd(null),l=e.current,a=re(),a=wu(a),n=hl(a),n.callback=null,dl(l,n,a),l=a,e.current.lanes=l,ja(e,l),qe(e),t[Il]=e.current,Nf(t),new iu(e)},qa.version="19.2.4",qa}var as;function Bd(){if(as)return su.exports;as=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(u){console.error(u)}}return o(),su.exports=Rd(),su.exports}var Hd=Bd();const qd=Ff(Hd);let wa="http://localhost:3000",du="";function wd(o,u){wa=o.replace(/\/$/,""),du=u}async function ns(o){var f;const u=await fetch(`${wa}/v1/invoices`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${du}`},body:JSON.stringify({price:o.amount,currency:o.currency||"USD",orderId:o.orderId,redirectUrl:o.redirectUrl,metadata:o.metadata})});if(!u.ok){const d=await u.json();throw new Error(((f=d.error)==null?void 0:f.message)||"Failed to create invoice")}return(await u.json()).data}async function Yd(o){var f;const u=await fetch(`${wa}/v1/invoices/${o}`,{headers:{Authorization:`Bearer ${du}`}});if(!u.ok){const d=await u.json();throw new Error(((f=d.error)==null?void 0:f.message)||"Failed to fetch invoice")}return(await u.json()).data}async function Ld(o,u,c){var z;const f=await fetch(`${wa}/v1/invoices/${o}/select-method`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({currency:u,network:c})});if(!f.ok){const M=await f.json();throw new Error(((z=M.error)==null?void 0:z.message)||"Failed to select payment method")}return(await f.json()).data}function Bn(){return wa}const Ne=Object.create(null);Ne.open="0",Ne.close="1",Ne.ping="2",Ne.pong="3",Ne.message="4",Ne.upgrade="5",Ne.noop="6";const Hn=Object.create(null);Object.keys(Ne).forEach(o=>{Hn[Ne[o]]=o});const mu={type:"error",data:"parser error"},is=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",us=typeof ArrayBuffer=="function",cs=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o&&o.buffer instanceof ArrayBuffer,pu=({type:o,data:u},c,f)=>is&&u instanceof Blob?c?f(u):fs(u,f):us&&(u instanceof ArrayBuffer||cs(u))?c?f(u):fs(new Blob([u]),f):f(Ne[o]+(u||"")),fs=(o,u)=>{const c=new FileReader;return c.onload=function(){const f=c.result.split(",")[1];u("b"+(f||""))},c.readAsDataURL(o)};function ss(o){return o instanceof Uint8Array?o:o instanceof ArrayBuffer?new Uint8Array(o):new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}let yu;function Xd(o,u){if(is&&o.data instanceof Blob)return o.data.arrayBuffer().then(ss).then(u);if(us&&(o.data instanceof ArrayBuffer||cs(o.data)))return u(ss(o.data));pu(o,!1,c=>{yu||(yu=new TextEncoder),u(yu.encode(c))})}const os="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ya=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<os.length;o++)Ya[os.charCodeAt(o)]=o;const Qd=o=>{let u=o.length*.75,c=o.length,f,d=0,z,M,w,N;o[o.length-1]==="="&&(u--,o[o.length-2]==="="&&u--);const A=new ArrayBuffer(u),L=new Uint8Array(A);for(f=0;f<c;f+=4)z=Ya[o.charCodeAt(f)],M=Ya[o.charCodeAt(f+1)],w=Ya[o.charCodeAt(f+2)],N=Ya[o.charCodeAt(f+3)],L[d++]=z<<2|M>>4,L[d++]=(M&15)<<4|w>>2,L[d++]=(w&3)<<6|N&63;return A},Gd=typeof ArrayBuffer=="function",gu=(o,u)=>{if(typeof o!="string")return{type:"message",data:rs(o,u)};const c=o.charAt(0);return c==="b"?{type:"message",data:jd(o.substring(1),u)}:Hn[c]?o.length>1?{type:Hn[c],data:o.substring(1)}:{type:Hn[c]}:mu},jd=(o,u)=>{if(Gd){const c=Qd(o);return rs(c,u)}else return{base64:!0,data:o}},rs=(o,u)=>{switch(u){case"blob":return o instanceof Blob?o:new Blob([o]);case"arraybuffer":default:return o instanceof ArrayBuffer?o:o.buffer}},hs="",Zd=(o,u)=>{const c=o.length,f=new Array(c);let d=0;o.forEach((z,M)=>{pu(z,!1,w=>{f[M]=w,++d===c&&u(f.join(hs))})})},Vd=(o,u)=>{const c=o.split(hs),f=[];for(let d=0;d<c.length;d++){const z=gu(c[d],u);if(f.push(z),z.type==="error")break}return f};function Kd(){return new TransformStream({transform(o,u){Xd(o,c=>{const f=c.length;let d;if(f<126)d=new Uint8Array(1),new DataView(d.buffer).setUint8(0,f);else if(f<65536){d=new Uint8Array(3);const z=new DataView(d.buffer);z.setUint8(0,126),z.setUint16(1,f)}else{d=new Uint8Array(9);const z=new DataView(d.buffer);z.setUint8(0,127),z.setBigUint64(1,BigInt(f))}o.data&&typeof o.data!="string"&&(d[0]|=128),u.enqueue(d),u.enqueue(c)})}})}let vu;function qn(o){return o.reduce((u,c)=>u+c.length,0)}function wn(o,u){if(o[0].length===u)return o.shift();const c=new Uint8Array(u);let f=0;for(let d=0;d<u;d++)c[d]=o[0][f++],f===o[0].length&&(o.shift(),f=0);return o.length&&f<o[0].length&&(o[0]=o[0].slice(f)),c}function kd(o,u){vu||(vu=new TextDecoder);const c=[];let f=0,d=-1,z=!1;return new TransformStream({transform(M,w){for(c.push(M);;){if(f===0){if(qn(c)<1)break;const N=wn(c,1);z=(N[0]&128)===128,d=N[0]&127,d<126?f=3:d===126?f=1:f=2}else if(f===1){if(qn(c)<2)break;const N=wn(c,2);d=new DataView(N.buffer,N.byteOffset,N.length).getUint16(0),f=3}else if(f===2){if(qn(c)<8)break;const N=wn(c,8),A=new DataView(N.buffer,N.byteOffset,N.length),L=A.getUint32(0);if(L>Math.pow(2,21)-1){w.enqueue(mu);break}d=L*Math.pow(2,32)+A.getUint32(4),f=3}else{if(qn(c)<d)break;const N=wn(c,d);w.enqueue(gu(z?N:vu.decode(N),u)),f=0}if(d===0||d>o){w.enqueue(mu);break}}}})}const ds=4;function At(o){if(o)return Jd(o)}function Jd(o){for(var u in At.prototype)o[u]=At.prototype[u];return o}At.prototype.on=At.prototype.addEventListener=function(o,u){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(u),this},At.prototype.once=function(o,u){function c(){this.off(o,c),u.apply(this,arguments)}return c.fn=u,this.on(o,c),this},At.prototype.off=At.prototype.removeListener=At.prototype.removeAllListeners=At.prototype.removeEventListener=function(o,u){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+o];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var f,d=0;d<c.length;d++)if(f=c[d],f===u||f.fn===u){c.splice(d,1);break}return c.length===0&&delete this._callbacks["$"+o],this},At.prototype.emit=function(o){this._callbacks=this._callbacks||{};for(var u=new Array(arguments.length-1),c=this._callbacks["$"+o],f=1;f<arguments.length;f++)u[f-1]=arguments[f];if(c){c=c.slice(0);for(var f=0,d=c.length;f<d;++f)c[f].apply(this,u)}return this},At.prototype.emitReserved=At.prototype.emit,At.prototype.listeners=function(o){return this._callbacks=this._callbacks||{},this._callbacks["$"+o]||[]},At.prototype.hasListeners=function(o){return!!this.listeners(o).length};const Yn=typeof Promise=="function"&&typeof Promise.resolve=="function"?u=>Promise.resolve().then(u):(u,c)=>c(u,0),he=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Fd="arraybuffer";function py(){}function ms(o,...u){return u.reduce((c,f)=>(o.hasOwnProperty(f)&&(c[f]=o[f]),c),{})}const Wd=he.setTimeout,$d=he.clearTimeout;function Ln(o,u){u.useNativeTimers?(o.setTimeoutFn=Wd.bind(he),o.clearTimeoutFn=$d.bind(he)):(o.setTimeoutFn=he.setTimeout.bind(he),o.clearTimeoutFn=he.clearTimeout.bind(he))}const Id=1.33;function Pd(o){return typeof o=="string"?tm(o):Math.ceil((o.byteLength||o.size)*Id)}function tm(o){let u=0,c=0;for(let f=0,d=o.length;f<d;f++)u=o.charCodeAt(f),u<128?c+=1:u<2048?c+=2:u<55296||u>=57344?c+=3:(f++,c+=4);return c}function ps(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function em(o){let u="";for(let c in o)o.hasOwnProperty(c)&&(u.length&&(u+="&"),u+=encodeURIComponent(c)+"="+encodeURIComponent(o[c]));return u}function lm(o){let u={},c=o.split("&");for(let f=0,d=c.length;f<d;f++){let z=c[f].split("=");u[decodeURIComponent(z[0])]=decodeURIComponent(z[1])}return u}class am extends Error{constructor(u,c,f){super(u),this.description=c,this.context=f,this.type="TransportError"}}class bu extends At{constructor(u){super(),this.writable=!1,Ln(this,u),this.opts=u,this.query=u.query,this.socket=u.socket,this.supportsBinary=!u.forceBase64}onError(u,c,f){return super.emitReserved("error",new am(u,c,f)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(u){this.readyState==="open"&&this.write(u)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(u){const c=gu(u,this.socket.binaryType);this.onPacket(c)}onPacket(u){super.emitReserved("packet",u)}onClose(u){this.readyState="closed",super.emitReserved("close",u)}pause(u){}createUri(u,c={}){return u+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const u=this.opts.hostname;return u.indexOf(":")===-1?u:"["+u+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(u){const c=em(u);return c.length?"?"+c:""}}class nm extends bu{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(u){this.readyState="pausing";const c=()=>{this.readyState="paused",u()};if(this._polling||!this.writable){let f=0;this._polling&&(f++,this.once("pollComplete",function(){--f||c()})),this.writable||(f++,this.once("drain",function(){--f||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(u){const c=f=>{if(this.readyState==="opening"&&f.type==="open"&&this.onOpen(),f.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(f)};Vd(u,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const u=()=>{this.write([{type:"close"}])};this.readyState==="open"?u():this.once("open",u)}write(u){this.writable=!1,Zd(u,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const u=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=ps()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(u,c)}}let ys=!1;try{ys=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const im=ys;function um(){}class cm extends nm{constructor(u){if(super(u),typeof location<"u"){const c=location.protocol==="https:";let f=location.port;f||(f=c?"443":"80"),this.xd=typeof location<"u"&&u.hostname!==location.hostname||f!==u.port}}doWrite(u,c){const f=this.request({method:"POST",data:u});f.on("success",c),f.on("error",(d,z)=>{this.onError("xhr post error",d,z)})}doPoll(){const u=this.request();u.on("data",this.onData.bind(this)),u.on("error",(c,f)=>{this.onError("xhr poll error",c,f)}),this.pollXhr=u}}class Me extends At{constructor(u,c,f){super(),this.createRequest=u,Ln(this,f),this._opts=f,this._method=f.method||"GET",this._uri=c,this._data=f.data!==void 0?f.data:null,this._create()}_create(){var u;const c=ms(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const f=this._xhr=this.createRequest(c);try{f.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){f.setDisableHeaderCheck&&f.setDisableHeaderCheck(!0);for(let d in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(d)&&f.setRequestHeader(d,this._opts.extraHeaders[d])}}catch{}if(this._method==="POST")try{f.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{f.setRequestHeader("Accept","*/*")}catch{}(u=this._opts.cookieJar)===null||u===void 0||u.addCookies(f),"withCredentials"in f&&(f.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(f.timeout=this._opts.requestTimeout),f.onreadystatechange=()=>{var d;f.readyState===3&&((d=this._opts.cookieJar)===null||d===void 0||d.parseCookies(f.getResponseHeader("set-cookie"))),f.readyState===4&&(f.status===200||f.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof f.status=="number"?f.status:0)},0))},f.send(this._data)}catch(d){this.setTimeoutFn(()=>{this._onError(d)},0);return}typeof document<"u"&&(this._index=Me.requestsCount++,Me.requests[this._index]=this)}_onError(u){this.emitReserved("error",u,this._xhr),this._cleanup(!0)}_cleanup(u){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=um,u)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Me.requests[this._index],this._xhr=null}}_onLoad(){const u=this._xhr.responseText;u!==null&&(this.emitReserved("data",u),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Me.requestsCount=0,Me.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gs);else if(typeof addEventListener=="function"){const o="onpagehide"in he?"pagehide":"unload";addEventListener(o,gs,!1)}}function gs(){for(let o in Me.requests)Me.requests.hasOwnProperty(o)&&Me.requests[o].abort()}const fm=(function(){const o=vs({xdomain:!1});return o&&o.responseType!==null})();class sm extends cm{constructor(u){super(u);const c=u&&u.forceBase64;this.supportsBinary=fm&&!c}request(u={}){return Object.assign(u,{xd:this.xd},this.opts),new Me(vs,this.uri(),u)}}function vs(o){const u=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!u||im))return new XMLHttpRequest}catch{}if(!u)try{return new he[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const bs=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class om extends bu{get name(){return"websocket"}doOpen(){const u=this.uri(),c=this.opts.protocols,f=bs?{}:ms(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(f.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(u,c,f)}catch(d){return this.emitReserved("error",d)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=u=>this.onClose({description:"websocket connection closed",context:u}),this.ws.onmessage=u=>this.onData(u.data),this.ws.onerror=u=>this.onError("websocket error",u)}write(u){this.writable=!1;for(let c=0;c<u.length;c++){const f=u[c],d=c===u.length-1;pu(f,this.supportsBinary,z=>{try{this.doWrite(f,z)}catch{}d&&Yn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const u=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=ps()),this.supportsBinary||(c.b64=1),this.createUri(u,c)}}const _u=he.WebSocket||he.MozWebSocket;class rm extends om{createSocket(u,c,f){return bs?new _u(u,c,f):c?new _u(u,c):new _u(u)}doWrite(u,c){this.ws.send(c)}}class hm extends bu{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(u){return this.emitReserved("error",u)}this._transport.closed.then(()=>{this.onClose()}).catch(u=>{this.onError("webtransport error",u)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(u=>{const c=kd(Number.MAX_SAFE_INTEGER,this.socket.binaryType),f=u.readable.pipeThrough(c).getReader(),d=Kd();d.readable.pipeTo(u.writable),this._writer=d.writable.getWriter();const z=()=>{f.read().then(({done:w,value:N})=>{w||(this.onPacket(N),z())}).catch(w=>{})};z();const M={type:"open"};this.query.sid&&(M.data=`{"sid":"${this.query.sid}"}`),this._writer.write(M).then(()=>this.onOpen())})})}write(u){this.writable=!1;for(let c=0;c<u.length;c++){const f=u[c],d=c===u.length-1;this._writer.write(f).then(()=>{d&&Yn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var u;(u=this._transport)===null||u===void 0||u.close()}}const dm={websocket:rm,webtransport:hm,polling:sm},mm=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,pm=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Su(o){if(o.length>8e3)throw"URI too long";const u=o,c=o.indexOf("["),f=o.indexOf("]");c!=-1&&f!=-1&&(o=o.substring(0,c)+o.substring(c,f).replace(/:/g,";")+o.substring(f,o.length));let d=mm.exec(o||""),z={},M=14;for(;M--;)z[pm[M]]=d[M]||"";return c!=-1&&f!=-1&&(z.source=u,z.host=z.host.substring(1,z.host.length-1).replace(/;/g,":"),z.authority=z.authority.replace("[","").replace("]","").replace(/;/g,":"),z.ipv6uri=!0),z.pathNames=ym(z,z.path),z.queryKey=gm(z,z.query),z}function ym(o,u){const c=/\/{2,9}/g,f=u.replace(c,"/").split("/");return(u.slice(0,1)=="/"||u.length===0)&&f.splice(0,1),u.slice(-1)=="/"&&f.splice(f.length-1,1),f}function gm(o,u){const c={};return u.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(f,d,z){d&&(c[d]=z)}),c}const Eu=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xn=[];Eu&&addEventListener("offline",()=>{Xn.forEach(o=>o())},!1);class al extends At{constructor(u,c){if(super(),this.binaryType=Fd,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,u&&typeof u=="object"&&(c=u,u=null),u){const f=Su(u);c.hostname=f.host,c.secure=f.protocol==="https"||f.protocol==="wss",c.port=f.port,f.query&&(c.query=f.query)}else c.host&&(c.hostname=Su(c.host).host);Ln(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},c.transports.forEach(f=>{const d=f.prototype.name;this.transports.push(d),this._transportsByName[d]=f}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=lm(this.opts.query)),Eu&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Xn.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(u){const c=Object.assign({},this.opts.query);c.EIO=ds,c.transport=u,this.id&&(c.sid=this.id);const f=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[u]);return new this._transportsByName[u](f)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const u=this.opts.rememberUpgrade&&al.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const c=this.createTransport(u);c.open(),this.setTransport(c)}setTransport(u){this.transport&&this.transport.removeAllListeners(),this.transport=u,u.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",c=>this._onClose("transport close",c))}onOpen(){this.readyState="open",al.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(u){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",u),this.emitReserved("heartbeat"),u.type){case"open":this.onHandshake(JSON.parse(u.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const c=new Error("server error");c.code=u.data,this._onError(c);break;case"message":this.emitReserved("data",u.data),this.emitReserved("message",u.data);break}}onHandshake(u){this.emitReserved("handshake",u),this.id=u.sid,this.transport.query.sid=u.sid,this._pingInterval=u.pingInterval,this._pingTimeout=u.pingTimeout,this._maxPayload=u.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const u=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+u,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},u),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const u=this._getWritablePackets();this.transport.send(u),this._prevBufferLen=u.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let f=0;f<this.writeBuffer.length;f++){const d=this.writeBuffer[f].data;if(d&&(c+=Pd(d)),f>0&&c>this._maxPayload)return this.writeBuffer.slice(0,f);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const u=Date.now()>this._pingTimeoutTime;return u&&(this._pingTimeoutTime=0,Yn(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),u}write(u,c,f){return this._sendPacket("message",u,c,f),this}send(u,c,f){return this._sendPacket("message",u,c,f),this}_sendPacket(u,c,f,d){if(typeof c=="function"&&(d=c,c=void 0),typeof f=="function"&&(d=f,f=null),this.readyState==="closing"||this.readyState==="closed")return;f=f||{},f.compress=f.compress!==!1;const z={type:u,data:c,options:f};this.emitReserved("packetCreate",z),this.writeBuffer.push(z),d&&this.once("flush",d),this.flush()}close(){const u=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),u()},f=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?f():u()}):this.upgrading?f():u()),this}_onError(u){if(al.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",u),this._onClose("transport error",u)}_onClose(u,c){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Eu&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const f=Xn.indexOf(this._offlineEventListener);f!==-1&&Xn.splice(f,1)}this.readyState="closed",this.id=null,this.emitReserved("close",u,c),this.writeBuffer=[],this._prevBufferLen=0}}}al.protocol=ds;class vm extends al{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let u=0;u<this._upgrades.length;u++)this._probe(this._upgrades[u])}_probe(u){let c=this.createTransport(u),f=!1;al.priorWebsocketSuccess=!1;const d=()=>{f||(c.send([{type:"ping",data:"probe"}]),c.once("packet",B=>{if(!f)if(B.type==="pong"&&B.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;al.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{f||this.readyState!=="closed"&&(L(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const K=new Error("probe error");K.transport=c.name,this.emitReserved("upgradeError",K)}}))};function z(){f||(f=!0,L(),c.close(),c=null)}const M=B=>{const K=new Error("probe error: "+B);K.transport=c.name,z(),this.emitReserved("upgradeError",K)};function w(){M("transport closed")}function N(){M("socket closed")}function A(B){c&&B.name!==c.name&&z()}const L=()=>{c.removeListener("open",d),c.removeListener("error",M),c.removeListener("close",w),this.off("close",N),this.off("upgrading",A)};c.once("open",d),c.once("error",M),c.once("close",w),this.once("close",N),this.once("upgrading",A),this._upgrades.indexOf("webtransport")!==-1&&u!=="webtransport"?this.setTimeoutFn(()=>{f||c.open()},200):c.open()}onHandshake(u){this._upgrades=this._filterUpgrades(u.upgrades),super.onHandshake(u)}_filterUpgrades(u){const c=[];for(let f=0;f<u.length;f++)~this.transports.indexOf(u[f])&&c.push(u[f]);return c}}let bm=class extends vm{constructor(u,c={}){const f=typeof u=="object"?u:c;(!f.transports||f.transports&&typeof f.transports[0]=="string")&&(f.transports=(f.transports||["polling","websocket","webtransport"]).map(d=>dm[d]).filter(d=>!!d)),super(u,f)}};function _m(o,u="",c){let f=o;c=c||typeof location<"u"&&location,o==null&&(o=c.protocol+"//"+c.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=c.protocol+o:o=c.host+o),/^(https?|wss?):\/\//.test(o)||(typeof c<"u"?o=c.protocol+"//"+o:o="https://"+o),f=Su(o)),f.port||(/^(http|ws)$/.test(f.protocol)?f.port="80":/^(http|ws)s$/.test(f.protocol)&&(f.port="443")),f.path=f.path||"/";const z=f.host.indexOf(":")!==-1?"["+f.host+"]":f.host;return f.id=f.protocol+"://"+z+":"+f.port+u,f.href=f.protocol+"://"+z+(c&&c.port===f.port?"":":"+f.port),f}const Sm=typeof ArrayBuffer=="function",Em=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer,_s=Object.prototype.toString,Tm=typeof Blob=="function"||typeof Blob<"u"&&_s.call(Blob)==="[object BlobConstructor]",Am=typeof File=="function"||typeof File<"u"&&_s.call(File)==="[object FileConstructor]";function Tu(o){return Sm&&(o instanceof ArrayBuffer||Em(o))||Tm&&o instanceof Blob||Am&&o instanceof File}function Qn(o,u){if(!o||typeof o!="object")return!1;if(Array.isArray(o)){for(let c=0,f=o.length;c<f;c++)if(Qn(o[c]))return!0;return!1}if(Tu(o))return!0;if(o.toJSON&&typeof o.toJSON=="function"&&arguments.length===1)return Qn(o.toJSON(),!0);for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)&&Qn(o[c]))return!0;return!1}function xm(o){const u=[],c=o.data,f=o;return f.data=Au(c,u),f.attachments=u.length,{packet:f,buffers:u}}function Au(o,u){if(!o)return o;if(Tu(o)){const c={_placeholder:!0,num:u.length};return u.push(o),c}else if(Array.isArray(o)){const c=new Array(o.length);for(let f=0;f<o.length;f++)c[f]=Au(o[f],u);return c}else if(typeof o=="object"&&!(o instanceof Date)){const c={};for(const f in o)Object.prototype.hasOwnProperty.call(o,f)&&(c[f]=Au(o[f],u));return c}return o}function zm(o,u){return o.data=xu(o.data,u),delete o.attachments,o}function xu(o,u){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<u.length)return u[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let c=0;c<o.length;c++)o[c]=xu(o[c],u);else if(typeof o=="object")for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&(o[c]=xu(o[c],u));return o}const Om=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var I;(function(o){o[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK"})(I||(I={}));class Cm{constructor(u){this.replacer=u}encode(u){return(u.type===I.EVENT||u.type===I.ACK)&&Qn(u)?this.encodeAsBinary({type:u.type===I.EVENT?I.BINARY_EVENT:I.BINARY_ACK,nsp:u.nsp,data:u.data,id:u.id}):[this.encodeAsString(u)]}encodeAsString(u){let c=""+u.type;return(u.type===I.BINARY_EVENT||u.type===I.BINARY_ACK)&&(c+=u.attachments+"-"),u.nsp&&u.nsp!=="/"&&(c+=u.nsp+","),u.id!=null&&(c+=u.id),u.data!=null&&(c+=JSON.stringify(u.data,this.replacer)),c}encodeAsBinary(u){const c=xm(u),f=this.encodeAsString(c.packet),d=c.buffers;return d.unshift(f),d}}class zu extends At{constructor(u){super(),this.reviver=u}add(u){let c;if(typeof u=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(u);const f=c.type===I.BINARY_EVENT;f||c.type===I.BINARY_ACK?(c.type=f?I.EVENT:I.ACK,this.reconstructor=new Nm(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Tu(u)||u.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(u),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+u)}decodeString(u){let c=0;const f={type:Number(u.charAt(0))};if(I[f.type]===void 0)throw new Error("unknown packet type "+f.type);if(f.type===I.BINARY_EVENT||f.type===I.BINARY_ACK){const z=c+1;for(;u.charAt(++c)!=="-"&&c!=u.length;);const M=u.substring(z,c);if(M!=Number(M)||u.charAt(c)!=="-")throw new Error("Illegal attachments");f.attachments=Number(M)}if(u.charAt(c+1)==="/"){const z=c+1;for(;++c&&!(u.charAt(c)===","||c===u.length););f.nsp=u.substring(z,c)}else f.nsp="/";const d=u.charAt(c+1);if(d!==""&&Number(d)==d){const z=c+1;for(;++c;){const M=u.charAt(c);if(M==null||Number(M)!=M){--c;break}if(c===u.length)break}f.id=Number(u.substring(z,c+1))}if(u.charAt(++c)){const z=this.tryParse(u.substr(c));if(zu.isPayloadValid(f.type,z))f.data=z;else throw new Error("invalid payload")}return f}tryParse(u){try{return JSON.parse(u,this.reviver)}catch{return!1}}static isPayloadValid(u,c){switch(u){case I.CONNECT:return Ss(c);case I.DISCONNECT:return c===void 0;case I.CONNECT_ERROR:return typeof c=="string"||Ss(c);case I.EVENT:case I.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&Om.indexOf(c[0])===-1);case I.ACK:case I.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Nm{constructor(u){this.packet=u,this.buffers=[],this.reconPack=u}takeBinaryData(u){if(this.buffers.push(u),this.buffers.length===this.reconPack.attachments){const c=zm(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Ss(o){return Object.prototype.toString.call(o)==="[object Object]"}const Mm=Object.freeze(Object.defineProperty({__proto__:null,Decoder:zu,Encoder:Cm,get PacketType(){return I}},Symbol.toStringTag,{value:"Module"}));function Ae(o,u,c){return o.on(u,c),function(){o.off(u,c)}}const Dm=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Es extends At{constructor(u,c,f){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=u,this.nsp=c,f&&f.auth&&(this.auth=f.auth),this._opts=Object.assign({},f),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const u=this.io;this.subs=[Ae(u,"open",this.onopen.bind(this)),Ae(u,"packet",this.onpacket.bind(this)),Ae(u,"error",this.onerror.bind(this)),Ae(u,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...u){return u.unshift("message"),this.emit.apply(this,u),this}emit(u,...c){var f,d,z;if(Dm.hasOwnProperty(u))throw new Error('"'+u.toString()+'" is a reserved event name');if(c.unshift(u),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const M={type:I.EVENT,data:c};if(M.options={},M.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const L=this.ids++,B=c.pop();this._registerAckCallback(L,B),M.id=L}const w=(d=(f=this.io.engine)===null||f===void 0?void 0:f.transport)===null||d===void 0?void 0:d.writable,N=this.connected&&!(!((z=this.io.engine)===null||z===void 0)&&z._hasPingExpired());return this.flags.volatile&&!w||(N?(this.notifyOutgoingListeners(M),this.packet(M)):this.sendBuffer.push(M)),this.flags={},this}_registerAckCallback(u,c){var f;const d=(f=this.flags.timeout)!==null&&f!==void 0?f:this._opts.ackTimeout;if(d===void 0){this.acks[u]=c;return}const z=this.io.setTimeoutFn(()=>{delete this.acks[u];for(let w=0;w<this.sendBuffer.length;w++)this.sendBuffer[w].id===u&&this.sendBuffer.splice(w,1);c.call(this,new Error("operation has timed out"))},d),M=(...w)=>{this.io.clearTimeoutFn(z),c.apply(this,w)};M.withError=!0,this.acks[u]=M}emitWithAck(u,...c){return new Promise((f,d)=>{const z=(M,w)=>M?d(M):f(w);z.withError=!0,c.push(z),this.emit(u,...c)})}_addToQueue(u){let c;typeof u[u.length-1]=="function"&&(c=u.pop());const f={id:this._queueSeq++,tryCount:0,pending:!1,args:u,flags:Object.assign({fromQueue:!0},this.flags)};u.push((d,...z)=>(this._queue[0],d!==null?f.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(d)):(this._queue.shift(),c&&c(null,...z)),f.pending=!1,this._drainQueue())),this._queue.push(f),this._drainQueue()}_drainQueue(u=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!u||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(u){u.nsp=this.nsp,this.io._packet(u)}onopen(){typeof this.auth=="function"?this.auth(u=>{this._sendConnectPacket(u)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(u){this.packet({type:I.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},u):u})}onerror(u){this.connected||this.emitReserved("connect_error",u)}onclose(u,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",u,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(u=>{if(!this.sendBuffer.some(f=>String(f.id)===u)){const f=this.acks[u];delete this.acks[u],f.withError&&f.call(this,new Error("socket has been disconnected"))}})}onpacket(u){if(u.nsp===this.nsp)switch(u.type){case I.CONNECT:u.data&&u.data.sid?this.onconnect(u.data.sid,u.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case I.EVENT:case I.BINARY_EVENT:this.onevent(u);break;case I.ACK:case I.BINARY_ACK:this.onack(u);break;case I.DISCONNECT:this.ondisconnect();break;case I.CONNECT_ERROR:this.destroy();const f=new Error(u.data.message);f.data=u.data.data,this.emitReserved("connect_error",f);break}}onevent(u){const c=u.data||[];u.id!=null&&c.push(this.ack(u.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(u){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const f of c)f.apply(this,u)}super.emit.apply(this,u),this._pid&&u.length&&typeof u[u.length-1]=="string"&&(this._lastOffset=u[u.length-1])}ack(u){const c=this;let f=!1;return function(...d){f||(f=!0,c.packet({type:I.ACK,id:u,data:d}))}}onack(u){const c=this.acks[u.id];typeof c=="function"&&(delete this.acks[u.id],c.withError&&u.data.unshift(null),c.apply(this,u.data))}onconnect(u,c){this.id=u,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(u=>this.emitEvent(u)),this.receiveBuffer=[],this.sendBuffer.forEach(u=>{this.notifyOutgoingListeners(u),this.packet(u)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(u=>u()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:I.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(u){return this.flags.compress=u,this}get volatile(){return this.flags.volatile=!0,this}timeout(u){return this.flags.timeout=u,this}onAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(u),this}prependAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(u),this}offAny(u){if(!this._anyListeners)return this;if(u){const c=this._anyListeners;for(let f=0;f<c.length;f++)if(u===c[f])return c.splice(f,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(u),this}prependAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(u),this}offAnyOutgoing(u){if(!this._anyOutgoingListeners)return this;if(u){const c=this._anyOutgoingListeners;for(let f=0;f<c.length;f++)if(u===c[f])return c.splice(f,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(u){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const f of c)f.apply(this,u.data)}}}function Fl(o){o=o||{},this.ms=o.min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}Fl.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var u=Math.random(),c=Math.floor(u*this.jitter*o);o=(Math.floor(u*10)&1)==0?o-c:o+c}return Math.min(o,this.max)|0},Fl.prototype.reset=function(){this.attempts=0},Fl.prototype.setMin=function(o){this.ms=o},Fl.prototype.setMax=function(o){this.max=o},Fl.prototype.setJitter=function(o){this.jitter=o};class Ou extends At{constructor(u,c){var f;super(),this.nsps={},this.subs=[],u&&typeof u=="object"&&(c=u,u=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,Ln(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((f=c.randomizationFactor)!==null&&f!==void 0?f:.5),this.backoff=new Fl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=u;const d=c.parser||Mm;this.encoder=new d.Encoder,this.decoder=new d.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(u){return arguments.length?(this._reconnection=!!u,u||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(u){return u===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=u,this)}reconnectionDelay(u){var c;return u===void 0?this._reconnectionDelay:(this._reconnectionDelay=u,(c=this.backoff)===null||c===void 0||c.setMin(u),this)}randomizationFactor(u){var c;return u===void 0?this._randomizationFactor:(this._randomizationFactor=u,(c=this.backoff)===null||c===void 0||c.setJitter(u),this)}reconnectionDelayMax(u){var c;return u===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=u,(c=this.backoff)===null||c===void 0||c.setMax(u),this)}timeout(u){return arguments.length?(this._timeout=u,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(u){if(~this._readyState.indexOf("open"))return this;this.engine=new bm(this.uri,this.opts);const c=this.engine,f=this;this._readyState="opening",this.skipReconnect=!1;const d=Ae(c,"open",function(){f.onopen(),u&&u()}),z=w=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",w),u?u(w):this.maybeReconnectOnOpen()},M=Ae(c,"error",z);if(this._timeout!==!1){const w=this._timeout,N=this.setTimeoutFn(()=>{d(),z(new Error("timeout")),c.close()},w);this.opts.autoUnref&&N.unref(),this.subs.push(()=>{this.clearTimeoutFn(N)})}return this.subs.push(d),this.subs.push(M),this}connect(u){return this.open(u)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const u=this.engine;this.subs.push(Ae(u,"ping",this.onping.bind(this)),Ae(u,"data",this.ondata.bind(this)),Ae(u,"error",this.onerror.bind(this)),Ae(u,"close",this.onclose.bind(this)),Ae(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(u){try{this.decoder.add(u)}catch(c){this.onclose("parse error",c)}}ondecoded(u){Yn(()=>{this.emitReserved("packet",u)},this.setTimeoutFn)}onerror(u){this.emitReserved("error",u)}socket(u,c){let f=this.nsps[u];return f?this._autoConnect&&!f.active&&f.connect():(f=new Es(this,u,c),this.nsps[u]=f),f}_destroy(u){const c=Object.keys(this.nsps);for(const f of c)if(this.nsps[f].active)return;this._close()}_packet(u){const c=this.encoder.encode(u);for(let f=0;f<c.length;f++)this.engine.write(c[f],u.options)}cleanup(){this.subs.forEach(u=>u()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(u,c){var f;this.cleanup(),(f=this.engine)===null||f===void 0||f.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",u,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const u=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const f=this.setTimeoutFn(()=>{u.skipReconnect||(this.emitReserved("reconnect_attempt",u.backoff.attempts),!u.skipReconnect&&u.open(d=>{d?(u._reconnecting=!1,u.reconnect(),this.emitReserved("reconnect_error",d)):u.onreconnect()}))},c);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}}onreconnect(){const u=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",u)}}const La={};function Gn(o,u){typeof o=="object"&&(u=o,o=void 0),u=u||{};const c=_m(o,u.path||"/socket.io"),f=c.source,d=c.id,z=c.path,M=La[d]&&z in La[d].nsps,w=u.forceNew||u["force new connection"]||u.multiplex===!1||M;let N;return w?N=new Ou(f,u):(La[d]||(La[d]=new Ou(f,u)),N=La[d]),c.query&&!u.query&&(u.query=c.queryKey),N.socket(c.path,u)}Object.assign(Gn,{Manager:Ou,Socket:Es,io:Gn,connect:Gn});let we=null;function Um(){return we!=null&&we.connected||(we=Gn(Bn(),{path:"/ws",transports:["websocket","polling"]})),we}function Rm(o,u){const c=Um();return c.emit("subscribe:invoice",o),u.onStatusUpdate&&c.on("invoice:status",u.onStatusUpdate),u.onPaymentDetected&&c.on("payment:detected",u.onPaymentDetected),u.onPaymentConfirmed&&c.on("payment:confirmed",u.onPaymentConfirmed),()=>{c.emit("unsubscribe:invoice",o),c.off("invoice:status"),c.off("payment:detected"),c.off("payment:confirmed")}}function Cu(){we&&(we.disconnect(),we=null)}const Bm={BTC:{name:"Bitcoin",color:"#F7931A",icon:"₿"},ETH:{name:"Ethereum",color:"#627EEA",icon:"Ξ"},MATIC:{name:"Polygon",color:"#8247E5",icon:"⬡"},USDC:{name:"USD Coin",color:"#2775CA",icon:"$"},USDT:{name:"Tether",color:"#26A17B",icon:"₮"},LTC:{name:"Litecoin",color:"#345D9D",icon:"Ł"},BCH:{name:"Bitcoin Cash",color:"#0AC18E",icon:"₿"},XRP:{name:"Ripple",color:"#23292F",icon:"✕"}},Hm={bitcoin:{label:"Bitcoin",color:"#F7931A"},ethereum:{label:"Ethereum",color:"#627EEA"},polygon:{label:"Polygon",color:"#8247E5"},litecoin:{label:"Litecoin",color:"#345D9D"},"bitcoin-cash":{label:"Bitcoin Cash",color:"#0AC18E"},xrp:{label:"XRP Ledger",color:"#23292F"}};function qm({methods:o,fiatAmount:u,fiatCurrency:c,onSelect:f,loading:d}){return S.createElement("div",{className:"ap-coin-selector"},S.createElement("div",{className:"ap-coin-header"},S.createElement("span",{className:"ap-coin-header__label"},"Select payment method")),d?S.createElement("div",{className:"ap-loading"},S.createElement("div",{className:"ap-spinner"}),S.createElement("p",null,"Generating payment address...")):S.createElement("div",{className:"ap-coin-list"},o.map(z=>{const M=Bm[z.currency]||{name:z.currency,color:"#666",icon:z.currency[0]},w=Hm[z.network]||{label:z.network,color:"#666"};return S.createElement("button",{key:`${z.currency}-${z.network}`,className:"ap-coin-item",onClick:()=>f(z)},S.createElement("div",{className:"ap-coin-item__icon",style:{backgroundColor:M.color}},M.icon),S.createElement("div",{className:"ap-coin-item__info"},S.createElement("span",{className:"ap-coin-item__name"},z.currency),S.createElement("span",{className:"ap-coin-item__fullname"},z.name)),S.createElement("div",{className:"ap-coin-item__network",style:{backgroundColor:w.color+"18",color:w.color,borderColor:w.color+"40"}},w.label))})))}function wm({data:o,image:u,size:c=200}){return u?S.createElement("img",{src:u,alt:"Payment QR Code",className:"ap-qr-canvas",width:c,height:c,style:{display:"block",borderRadius:8}}):S.createElement("div",{style:{width:c,height:c,background:"#F8FAFC",borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,color:"#94A3B8",textAlign:"center",padding:16,wordBreak:"break-all"}},"Scan with your wallet")}const Ym={bitcoin:{label:"Bitcoin Network",color:"#F7931A"},ethereum:{label:"Ethereum Network",color:"#627EEA"},polygon:{label:"Polygon Network",color:"#8247E5"},litecoin:{label:"Litecoin Network",color:"#345D9D"},"bitcoin-cash":{label:"Bitcoin Cash Network",color:"#0AC18E"},xrp:{label:"XRP Ledger",color:"#23292F"}};function Lm({option:o,fiatAmount:u,fiatCurrency:c,onBack:f}){const[d,z]=Gt.useState(null),M=Ym[o.network]||{label:o.network,color:"#666"},w=async(N,A)=>{try{await navigator.clipboard.writeText(N)}catch{const L=document.createElement("input");L.value=N,document.body.appendChild(L),L.select(),document.execCommand("copy"),document.body.removeChild(L)}z(A),setTimeout(()=>z(null),2e3)};return S.createElement("div",{className:"ap-payment-details"},S.createElement("button",{className:"ap-back-btn",onClick:f},S.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"},S.createElement("polyline",{points:"15 18 9 12 15 6"})),"Change payment method"),S.createElement("div",{className:"ap-payment-instruction"},S.createElement("div",{className:"ap-payment-instruction__label"},"Send exactly"),S.createElement("div",{className:"ap-payment-instruction__amount"},o.amount," ",o.currency),S.createElement("div",{className:"ap-payment-instruction__fiat"},"≈ ",c," ",u.toFixed(2))),S.createElement("div",{className:"ap-network-badge ap-network-badge--prominent",style:{borderColor:M.color+"40"}},S.createElement("span",{className:"ap-network-badge__dot",style:{backgroundColor:M.color}}),S.createElement("span",{className:"ap-network-badge__label"},"Network:"),S.createElement("strong",{style:{color:M.color}},M.label)),S.createElement("div",{className:"ap-qr-wrapper"},S.createElement(wm,{data:o.qrCodeData,image:o.qrImage,size:220})),S.createElement("div",{className:"ap-field-group"},S.createElement("label",{className:"ap-field-label"},S.createElement("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},S.createElement("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),S.createElement("circle",{cx:"12",cy:"10",r:"3"})),"Wallet Address"),S.createElement("div",{className:"ap-copyable-field",onClick:()=>w(o.address,"address")},S.createElement("span",{className:"ap-copyable-field__text"},o.address),S.createElement("span",{className:`ap-copyable-field__btn ${d==="address"?"ap-copyable-field__btn--copied":""}`},d==="address"?"Copied!":"Copy"))),S.createElement("div",{className:"ap-field-group"},S.createElement("label",{className:"ap-field-label"},S.createElement("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},S.createElement("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),S.createElement("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})),"Exact Amount"),S.createElement("div",{className:"ap-copyable-field",onClick:()=>w(o.amount,"amount")},S.createElement("span",{className:"ap-copyable-field__text"},o.amount," ",o.currency),S.createElement("span",{className:`ap-copyable-field__btn ${d==="amount"?"ap-copyable-field__btn--copied":""}`},d==="amount"?"Copied!":"Copy"))),S.createElement("div",{className:"ap-waiting-indicator"},S.createElement("span",{className:"ap-waiting-indicator__dot"}),S.createElement("span",{className:"ap-waiting-indicator__text"},"Waiting for payment...")))}function Xm({status:o,payment:u,invoiceId:c,onClose:f}){return S.createElement("div",{className:"ap-payment-status"},o==="detected"&&S.createElement(S.Fragment,null,S.createElement("div",{className:"ap-status-icon ap-status-icon--detecting"},S.createElement("div",{className:"ap-spinner ap-spinner--lg"})),S.createElement("h3",{className:"ap-status-title"},"Payment Detected"),S.createElement("p",{className:"ap-status-desc"},"Your transaction has been broadcast to the network. Waiting for blockchain confirmation..."),S.createElement("div",{className:"ap-progress-bar"},S.createElement("div",{className:"ap-progress-bar__fill",style:{width:"100%"}})),(u==null?void 0:u.txHash)&&S.createElement("div",{className:"ap-tx-hash"},S.createElement("span",{className:"ap-tx-hash__label"},"TX"),u.txHash.slice(0,12),"...",u.txHash.slice(-8))),(o==="confirmed"||o==="complete")&&S.createElement(S.Fragment,null,S.createElement("div",{className:"ap-status-icon ap-status-icon--confirmed"},S.createElement("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none"},S.createElement("circle",{cx:"28",cy:"28",r:"28",fill:"#F0FDF4"}),S.createElement("circle",{cx:"28",cy:"28",r:"22",fill:"#DCFCE7"}),S.createElement("path",{d:"M20 28l6 6 12-12",stroke:"#16A34A",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}))),S.createElement("h3",{className:"ap-status-title"},"Payment Confirmed"),S.createElement("p",{className:"ap-status-desc"},S.createElement("strong",null,u==null?void 0:u.amount," ",u==null?void 0:u.currency)," has been received and confirmed on the blockchain."),u!=null&&u.confirmations?S.createElement("div",{className:"ap-confirmations"},S.createElement("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#16A34A",strokeWidth:"2.5"},S.createElement("polyline",{points:"20 6 9 17 4 12"})),u.confirmations," block confirmation",u.confirmations!==1?"s":""):null,(u==null?void 0:u.txHash)&&S.createElement("div",{className:"ap-tx-hash"},S.createElement("span",{className:"ap-tx-hash__label"},"TX"),u.txHash.slice(0,12),"...",u.txHash.slice(-8)),c&&S.createElement("div",{className:"ap-download-btns"},S.createElement("a",{href:`${Bn()}/v1/invoices/${c}/pdf?type=invoice`,target:"_blank",rel:"noopener noreferrer",className:"ap-download-btn"},"Invoice PDF"),S.createElement("a",{href:`${Bn()}/v1/invoices/${c}/pdf?type=receipt`,target:"_blank",rel:"noopener noreferrer",className:"ap-download-btn"},"Receipt PDF")),S.createElement("button",{className:"ap-done-btn",onClick:f},"Done")))}function Qm({expiresAt:o,onExpired:u}){const[c,f]=Gt.useState(""),[d,z]=Gt.useState(!1);return Gt.useEffect(()=>{const M=setInterval(()=>{const w=Date.now(),A=new Date(o).getTime()-w;if(A<=0){f("00:00"),u(),clearInterval(M);return}const L=Math.floor(A/6e4),B=Math.floor(A%6e4/1e3);f(`${L.toString().padStart(2,"0")}:${B.toString().padStart(2,"0")}`),z(A<12e4)},1e3);return()=>clearInterval(M)},[o,u]),S.createElement("div",{className:`ap-timer ${d?"ap-timer--urgent":""}`},S.createElement("span",{className:"ap-timer__icon"},S.createElement("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"},S.createElement("circle",{cx:"12",cy:"12",r:"10"}),S.createElement("polyline",{points:"12 6 12 12 16 14"}))),S.createElement("span",null,"Rate locked for ",S.createElement("span",{className:"ap-timer__time"},c)))}function Gm({options:o,onClose:u}){const[c,f]=Gt.useState("loading"),[d,z]=Gt.useState(null),[M,w]=Gt.useState(null),[N,A]=Gt.useState(!1),[L,B]=Gt.useState(null);Gt.useEffect(()=>{let et=!1;async function nt(){var _t;try{const Dt=await ns(o);if(et)return;z(Dt),f("select-coin")}catch(Dt){if(et)return;B(Dt.message),f("error"),(_t=o.onError)==null||_t.call(o,Dt)}}return nt(),()=>{et=!0}},[]),Gt.useEffect(()=>{if(!d)return;const et=Rm(d.id,{onStatusUpdate:nt=>{nt.status==="paid"?(f("detected"),K()):nt.status==="confirmed"||nt.status==="complete"?(f("confirmed"),K()):nt.status==="expired"&&f("expired")},onPaymentDetected:()=>{f("detected"),K()},onPaymentConfirmed:()=>{f("confirmed"),K()}});return()=>{et(),Cu()}},[d==null?void 0:d.id]);const K=Gt.useCallback(async()=>{var et;if(d)try{const nt=await Yd(d.id);z(nt),(nt.status==="confirmed"||nt.status==="complete")&&((et=o.onSuccess)==null||et.call(o,nt.payment))}catch{}},[d==null?void 0:d.id,o]);Gt.useEffect(()=>{if(!d||c==="confirmed"||c==="expired"||c==="error")return;const et=setInterval(K,5e3);return()=>clearInterval(et)},[d==null?void 0:d.id,c,K]);const jt=async et=>{var nt;if(d){A(!0);try{const _t=await Ld(d.id,et.currency,et.network);z(_t);const Dt=_t.cryptoPaymentOptions.find(Ht=>Ht.currency===et.currency&&Ht.network===et.network);Dt&&(w(Dt),f("awaiting-payment"))}catch(_t){B(_t.message),f("error"),(nt=o.onError)==null||nt.call(o,_t)}finally{A(!1)}}},Nt=()=>{var et;Cu(),(et=o.onClose)==null||et.call(o),u()},Bt=()=>{var et;Cu(),d!=null&&d.payment&&((et=o.onSuccess)==null||et.call(o,d.payment)),u()},de=d==null?void 0:d.merchantName,Zt=(d==null?void 0:d.merchantBrandColor)||"#9447FF";return S.createElement("div",{className:"ap-modal-overlay",onClick:Nt},S.createElement("div",{className:"ap-modal",onClick:et=>et.stopPropagation(),style:{"--merchant-brand":Zt}},S.createElement("div",{className:"ap-modal__header"},S.createElement("div",{className:"ap-modal__logo"},S.createElement("svg",{className:"ap-logo-mark",width:"32",height:"33",viewBox:"-2 0 65 66",fill:"none"},S.createElement("path",{d:"M29.9007 0C22.8022 0 18.1978 8.2496 18.1978 16.691H23.5696C23.1858 9.78441 25.8718 4.22074 30.2843 4.22074C33.5458 4.22074 37.9584 8.05774 37.9584 18.4177C37.9584 36.6435 25.6799 46.236 21.2674 49.1138V49.3057C25.8718 46.8116 40.6443 36.8353 40.6443 15.5399C40.6443 5.37183 35.4643 0 29.9007 0Z",fill:"#1a0e33"}),S.createElement("path",{d:"M1.12344 50.4564C4.7686 56.5956 13.9774 56.4037 21.4596 52.183L18.7737 47.3868C12.8263 51.2238 6.68708 51.6074 4.57673 47.7704C3.04192 45.0845 4.00117 39.329 13.21 34.1491C28.9418 24.9402 43.5224 30.8876 48.1269 33.1898V32.998C43.7143 30.3121 27.5988 22.4462 9.18113 33.1898C0.355999 38.3698 -1.56247 45.6601 1.12344 50.4564Z",fill:"#1a0e33"}),S.createElement("path",{d:"M59.2547 50.0728C62.8998 43.9336 57.9117 35.8759 50.6214 31.6551L47.9355 36.4514C54.0747 39.7129 57.528 44.701 55.4176 48.538C53.8828 51.2239 48.3192 53.1424 39.3022 47.9624C23.5704 38.7536 21.4601 23.4056 21.0764 18.2256H20.8845C20.8845 23.4056 22.0356 41.2477 40.4533 51.9913C49.0866 56.7876 56.5687 54.8691 59.2547 50.0728Z",fill:"#1a0e33"}),S.createElement("path",{d:"M51.7718 15.5391C48.894 15.5391 46.3999 18.0331 46.3999 20.9109C46.3999 23.7886 48.894 26.2827 51.7718 26.2827C54.6495 26.2827 57.1436 23.7886 57.1436 20.9109C57.1436 18.0331 54.8414 15.5391 51.7718 15.5391ZM51.7718 23.0212C50.6207 23.0212 49.6614 22.062 49.6614 20.9109C49.6614 19.7598 50.6207 18.8005 51.7718 18.8005C52.9229 18.8005 53.8821 19.7598 53.8821 20.9109C53.8821 22.062 52.9229 23.0212 51.7718 23.0212Z",fill:"#9447FF"}),S.createElement("path",{d:"M23.5698 58.5146L30.2846 65.2294L36.9994 58.5146L30.2846 51.7998L23.5698 58.5146ZM30.0927 60.6249L28.1742 58.7064L30.0927 56.7879L32.0112 58.7064L30.0927 60.6249Z",fill:"#9447FF"}),S.createElement("path",{d:"M10.3319 15.7305L7.45416 18.6082L4.5764 15.7305L2.27417 18.0326L5.15193 20.9104L2.27417 23.7882L4.5764 26.0904L7.45416 23.2126L10.3319 26.0904L12.6342 23.7882L9.75639 20.9104L12.6342 18.0326L10.3319 15.7305Z",fill:"#9447FF"})),S.createElement("span",{className:"ap-modal__brand"},de?`Pay to ${de}`:"ArthaPay")),S.createElement("button",{className:"ap-modal__close",onClick:Nt},S.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"},S.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),S.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})))),d&&c!=="confirmed"&&c!=="error"&&S.createElement("div",{className:"ap-amount-banner"},S.createElement("div",{className:"ap-amount-banner__label"},"Amount Due"),S.createElement("div",{className:"ap-amount-banner__value"},S.createElement("span",{className:"ap-amount-banner__currency"},d.currency),d.price.toFixed(2))),d&&c!=="confirmed"&&c!=="expired"&&c!=="error"&&S.createElement(Qm,{expiresAt:d.expiresAt,onExpired:()=>f("expired")}),S.createElement("div",{className:"ap-modal__scroll"},S.createElement("div",{className:"ap-modal__body"},c==="loading"&&S.createElement("div",{className:"ap-loading"},S.createElement("div",{className:"ap-spinner"}),S.createElement("p",null,"Preparing your checkout...")),c==="error"&&S.createElement("div",{className:"ap-error"},S.createElement("div",{className:"ap-error__icon"},S.createElement("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"#EF4444",strokeWidth:"2",strokeLinecap:"round"},S.createElement("circle",{cx:"12",cy:"12",r:"10"}),S.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),S.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15"}))),S.createElement("h3",null,"Something went wrong"),S.createElement("p",null,L||"Unable to create payment. Please try again."),S.createElement("button",{className:"ap-retry-btn",onClick:Nt},"Close")),c==="expired"&&S.createElement("div",{className:"ap-expired"},S.createElement("div",{className:"ap-expired__icon"},S.createElement("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"#F97316",strokeWidth:"2",strokeLinecap:"round"},S.createElement("circle",{cx:"12",cy:"12",r:"10"}),S.createElement("polyline",{points:"12 6 12 12 16 14"}))),S.createElement("h3",null,"Invoice Expired"),S.createElement("p",null,"The payment window has closed. Please create a new payment to continue."),S.createElement("button",{className:"ap-retry-btn",onClick:Nt},"Close")),c==="select-coin"&&d&&S.createElement(qm,{methods:d.availableMethods||[],fiatAmount:d.price,fiatCurrency:d.currency,onSelect:jt,loading:N}),c==="awaiting-payment"&&d&&M&&S.createElement(Lm,{option:M,fiatAmount:d.price,fiatCurrency:d.currency,onBack:()=>f("select-coin")}),(c==="detected"||c==="confirmed")&&d&&S.createElement(Xm,{status:c,payment:d.payment,invoiceId:d.id,onClose:Bt}))),S.createElement("div",{className:"ap-modal__footer"},S.createElement("span",{className:"ap-powered-by"},"Secured by ",S.createElement("strong",null,"ArthaPay")))))}let Ts=null;function As(){return Ts}function jm({initialCheckout:o}){const[u,c]=Gt.useState(o||null);Ts=d=>{c(d)};const f=()=>{c(null)};return u?S.createElement(Gm,{options:u,onClose:f}):null}const Zm=':host,*{margin:0;padding:0;box-sizing:border-box}.ap-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0f172aa6;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:999999;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;animation:ap-fade-in .25s ease-out}@keyframes ap-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ap-slide-up{0%{transform:translateY(24px) scale(.97);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes ap-spin{to{transform:rotate(360deg)}}@keyframes ap-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes ap-circle-fill{0%{transform:scale(0);opacity:0}60%{transform:scale(1.15)}to{transform:scale(1);opacity:1}}@keyframes ap-progress-pulse{0%{background-position:200% 0}to{background-position:-200% 0}}.ap-modal{background:#fff;border-radius:20px;width:440px;max-width:94vw;max-height:92vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 0 0 1px #0000000a,0 8px 16px #00000014,0 24px 64px #00000029;animation:ap-slide-up .35s cubic-bezier(.16,1,.3,1)}.ap-modal__scroll{overflow-y:auto;flex:1}.ap-modal__header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #F1F5F9;flex-shrink:0}.ap-modal__logo{display:flex;align-items:center;gap:10px}.ap-logo-mark{width:32px;height:32px;border-radius:10px;flex-shrink:0}.ap-modal__brand{font-size:17px;font-weight:700;color:#0f172a;letter-spacing:-.3px}.ap-modal__close{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;color:#94a3b8;border-radius:10px;transition:all .2s}.ap-modal__close:hover{background:#f1f5f9;color:#475569}.ap-amount-banner{padding:24px 24px 20px;text-align:center;background:linear-gradient(180deg,#f8fafc,#fff)}.ap-amount-banner__label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:#94a3b8;margin-bottom:6px}.ap-amount-banner__value{font-size:36px;font-weight:800;color:#0f172a;letter-spacing:-1px;line-height:1.1}.ap-amount-banner__currency{font-size:20px;font-weight:600;color:#64748b;margin-right:4px}.ap-timer{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 24px;background:#f8fafc;border-bottom:1px solid #F1F5F9;font-size:13px;font-weight:500;color:#64748b}.ap-timer__icon{display:flex}.ap-timer__time{font-variant-numeric:tabular-nums;font-weight:700;color:#475569}.ap-timer--urgent{background:#fef2f2;border-bottom-color:#fecaca}.ap-timer--urgent .ap-timer__time{color:#dc2626}.ap-timer--urgent .ap-timer__icon svg{stroke:#dc2626}.ap-modal__body{padding:20px 24px;min-height:280px}.ap-modal__footer{padding:14px 24px;border-top:1px solid #F1F5F9;text-align:center;flex-shrink:0;background:#fafbfc}.ap-powered-by{font-size:11px;color:#94a3b8;letter-spacing:.2px}.ap-powered-by strong{color:#9447ff;font-weight:700}.ap-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px;color:#64748b}.ap-loading p{font-size:14px;font-weight:500;margin-top:16px}.ap-spinner{width:40px;height:40px;border:3px solid #E2E8F0;border-top-color:#9447ff;border-radius:50%;animation:ap-spin .75s linear infinite}.ap-spinner--lg{width:52px;height:52px;border-width:4px}.ap-coin-header{margin-bottom:16px}.ap-coin-header__label{display:block;font-size:14px;font-weight:600;color:#475569}.ap-coin-list{display:flex;flex-direction:column;gap:6px}.ap-coin-item{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:1.5px solid #E2E8F0;border-radius:14px;cursor:pointer;transition:all .2s cubic-bezier(.16,1,.3,1);text-align:left;width:100%;font-family:inherit;font-size:14px}.ap-coin-item:hover{border-color:#9447ff;background:#f5f0ff;transform:translateY(-1px);box-shadow:0 2px 8px #9447ff1f}.ap-coin-item:active{transform:translateY(0)}.ap-coin-item__icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;font-weight:800;font-size:18px}.ap-coin-item__info{display:flex;flex-direction:column;flex:1;min-width:0}.ap-coin-item__name{font-size:15px;font-weight:700;color:#0f172a}.ap-coin-item__fullname{font-size:12px;color:#94a3b8;font-weight:500;margin-top:1px}.ap-coin-item__amount{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}.ap-coin-item__crypto{font-size:14px;font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums}.ap-coin-item__rate{font-size:11px;color:#94a3b8;font-weight:500;margin-top:2px}.ap-coin-item__network{font-size:11px;font-weight:600;padding:2px 8px;border-radius:10px;border:1px solid;white-space:nowrap;flex-shrink:0}.ap-payment-details{display:flex;flex-direction:column;align-items:center}.ap-back-btn{display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;font-size:13px;font-weight:600;color:#9447ff;padding:4px 0;margin-bottom:20px;align-self:flex-start;font-family:inherit;transition:color .15s}.ap-back-btn:hover{color:#7a2ee6}.ap-payment-instruction{text-align:center;margin-bottom:24px}.ap-payment-instruction__label{font-size:14px;color:#64748b;margin-bottom:4px}.ap-payment-instruction__amount{font-size:24px;font-weight:800;color:#0f172a;letter-spacing:-.5px}.ap-payment-instruction__fiat{font-size:13px;color:#94a3b8;margin-top:4px}.ap-qr-wrapper{background:#fff;padding:20px;border-radius:16px;border:2px solid #F1F5F9;margin-bottom:20px;position:relative}.ap-qr-canvas{display:block;border-radius:8px}.ap-field-group{width:100%;margin-bottom:12px}.ap-field-label{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;color:#94a3b8;margin-bottom:6px}.ap-copyable-field{display:flex;align-items:center;background:#f8fafc;border:1.5px solid #E2E8F0;border-radius:12px;padding:12px 14px;cursor:pointer;transition:all .2s;width:100%;box-sizing:border-box;gap:10px}.ap-copyable-field:hover{border-color:#9447ff;background:#f5f0ff}.ap-copyable-field:active{background:#eef2ff}.ap-copyable-field__text{flex:1;font-size:13px;font-family:SF Mono,JetBrains Mono,Fira Code,Consolas,monospace;color:#1e293b;word-break:break-all;line-height:1.4;font-weight:500}.ap-copyable-field__btn{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#9447ff;font-weight:700;white-space:nowrap;padding:4px 10px;background:#fff;border-radius:6px;border:1px solid #E2E8F0;transition:all .15s}.ap-copyable-field:hover .ap-copyable-field__btn{background:#9447ff;color:#fff;border-color:#9447ff}.ap-copyable-field__btn--copied{background:#dcfce7!important;color:#16a34a!important;border-color:#bbf7d0!important}.ap-network-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#64748b;background:#f1f5f9;padding:8px 16px;border-radius:24px;margin-top:8px}.ap-network-badge__dot{width:6px;height:6px;border-radius:50%;background:#22c55e;animation:ap-pulse 2s ease-in-out infinite}.ap-network-badge--prominent{display:flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid;border-radius:10px;font-size:13px;margin-bottom:16px;background:#ffffff80}.ap-network-badge__label{color:#64748b;font-weight:500}.ap-waiting-indicator{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#fff7ed;border:1px solid #FED7AA;border-radius:10px;margin-top:16px;width:100%}.ap-waiting-indicator__dot{width:8px;height:8px;border-radius:50%;background:#f97316;animation:ap-pulse 1.5s ease-in-out infinite;flex-shrink:0}.ap-waiting-indicator__text{font-size:12px;font-weight:600;color:#9a3412}.ap-payment-status{display:flex;flex-direction:column;align-items:center;padding:24px 0;text-align:center}.ap-status-icon{margin-bottom:20px}.ap-status-icon--detecting{position:relative}.ap-status-icon--detecting:after{content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;border-radius:50%;border:2px solid #9447FF;opacity:.2;animation:ap-pulse 2s ease-in-out infinite}.ap-status-icon--confirmed{animation:ap-circle-fill .5s cubic-bezier(.16,1,.3,1)}.ap-status-icon--confirmed svg{filter:drop-shadow(0 4px 12px rgba(34,197,94,.3))}.ap-status-title{font-size:22px;font-weight:800;color:#0f172a;margin:0 0 8px;letter-spacing:-.3px}.ap-status-desc{font-size:14px;color:#64748b;margin:0 0 20px;line-height:1.6;max-width:300px}.ap-status-desc strong{color:#0f172a;font-weight:700}.ap-tx-hash{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-family:SF Mono,JetBrains Mono,monospace;color:#64748b;background:#f8fafc;padding:8px 14px;border-radius:8px;border:1px solid #E2E8F0;margin-bottom:16px}.ap-tx-hash__label{font-weight:700;color:#94a3b8}.ap-confirmations{display:flex;align-items:center;gap:6px;font-size:13px;color:#16a34a;font-weight:700;background:#f0fdf4;padding:6px 14px;border-radius:20px;margin-bottom:24px}.ap-done-btn{background:linear-gradient(135deg,#9447ff,#7c2df0);color:#fff;border:none;border-radius:12px;padding:14px 40px;font-size:15px;font-weight:700;cursor:pointer;transition:all .2s;font-family:inherit;letter-spacing:.2px;box-shadow:0 2px 8px #9447ff40}.ap-done-btn:hover{transform:translateY(-1px);box-shadow:0 4px 16px #9447ff59}.ap-done-btn:active{transform:translateY(0)}.ap-download-btns{display:flex;gap:8px;margin-top:12px}.ap-download-btn{display:inline-flex;align-items:center;gap:4px;background:#f8fafc;color:#475569;border:1px solid #E2E8F0;border-radius:8px;padding:8px 14px;font-size:12px;font-weight:500;text-decoration:none;transition:all .15s ease;cursor:pointer}.ap-download-btn:hover{background:#f1f5f9;border-color:#cbd5e1;color:#334155}.ap-progress-bar{width:200px;height:4px;background:#e2e8f0;border-radius:4px;overflow:hidden;margin-bottom:20px}.ap-progress-bar__fill{height:100%;border-radius:4px;background:linear-gradient(90deg,#9447ff,#7c2df0,#9447ff);background-size:200% 100%;animation:ap-progress-pulse 1.5s ease-in-out infinite}.ap-error,.ap-expired{display:flex;flex-direction:column;align-items:center;text-align:center;padding:36px 20px}.ap-error__icon,.ap-expired__icon{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:20px}.ap-error__icon{background:#fef2f2}.ap-expired__icon{background:#fff7ed}.ap-error h3,.ap-expired h3{font-size:20px;font-weight:800;color:#0f172a;margin:0 0 8px}.ap-error p,.ap-expired p{font-size:14px;color:#64748b;margin:0 0 24px;line-height:1.5;max-width:280px}.ap-retry-btn{background:#f1f5f9;color:#475569;border:1.5px solid #E2E8F0;border-radius:12px;padding:12px 32px;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s;font-family:inherit}.ap-retry-btn:hover{background:#e2e8f0;border-color:#cbd5e1}.ap-pay-button{display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,#9447ff,#7c2df0);color:#fff;border:none;border-radius:12px;padding:14px 28px;font-size:15px;font-weight:700;cursor:pointer;transition:all .2s;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;box-shadow:0 2px 8px #9447ff40;letter-spacing:.2px}.ap-pay-button:hover{transform:translateY(-1px);box-shadow:0 4px 16px #9447ff59}.ap-pay-button:active{transform:translateY(0)}.ap-pay-button svg{flex-shrink:0}@media(max-width:480px){.ap-modal{width:100%;max-width:100%;min-height:100vh;border-radius:0;max-height:100vh}.ap-amount-banner__value{font-size:28px}.ap-modal__body{padding:16px 20px}}';let Wl=null;class Vm{constructor(u){this.mountPoint=null,this.root=null;const c=u.baseUrl||this.detectBaseUrl();wd(c,u.apiKey),this.mount()}createCheckout(u){requestAnimationFrame(()=>{const c={...u,onClose:()=>{var d;this.hideOverlay(),(d=u.onClose)==null||d.call(u)}},f=As();f?(this.showOverlay(),f(c)):(console.error("[ArthaPay] Widget not ready. Retrying..."),setTimeout(()=>{const d=As();d&&(this.showOverlay(),d(c))},100))})}showOverlay(){this.mountPoint&&(this.mountPoint.style.zIndex="2147483647",this.mountPoint.style.pointerEvents="auto",this.mountPoint.style.width="100vw",this.mountPoint.style.height="100vh")}hideOverlay(){this.mountPoint&&(this.mountPoint.style.zIndex="0",this.mountPoint.style.pointerEvents="none",this.mountPoint.style.width="0",this.mountPoint.style.height="0")}async redirectToCheckout(u){const c=await ns({amount:u.amount,currency:u.currency,orderId:u.orderId,redirectUrl:u.redirectUrl,metadata:u.metadata});window.location.href=`${Bn()}/checkout/${c.id}`}destroy(){this.root&&(this.root.unmount(),this.root=null),this.mountPoint&&(this.mountPoint.remove(),this.mountPoint=null),Wl=null}mount(){this.mountPoint=document.createElement("div"),this.mountPoint.id="arthapay-widget-root",this.mountPoint.style.cssText="position:fixed;top:0;left:0;z-index:0;pointer-events:none;",document.body.appendChild(this.mountPoint);const u=this.mountPoint.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=Zm,u.appendChild(c);const f=document.createElement("div");u.appendChild(f),this.root=qd.createRoot(f),this.root.render(S.createElement(jm))}detectBaseUrl(){const u=document.querySelectorAll("script[src]");for(const c of u){const f=c.getAttribute("src")||"";if(f.includes("arthapay"))try{const d=new URL(f,window.location.href);return`${d.protocol}//${d.host}`}catch{continue}}return"http://localhost:3000"}}const Nu={init(o){return Wl&&Wl.destroy(),Wl=new Vm(o),Wl},getInstance(){return Wl}};function xs(){document.querySelectorAll(".arthapay-button, [data-arthapay]").forEach(u=>{const c=parseFloat(u.getAttribute("data-amount")||"0"),f=u.getAttribute("data-currency")||"USD",d=u.getAttribute("data-order-id")||void 0,z=u.getAttribute("data-merchant")||u.getAttribute("data-api-key")||"";if(!c||!z)return;const M=document.createElement("button");M.className="ap-pay-button",M.innerHTML=`
42
+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
43
+ <circle cx="12" cy="12" r="10"/>
44
+ <text x="12" y="16" text-anchor="middle" fill="currentColor" font-size="10" font-weight="bold">A</text>
45
+ </svg>
46
+ Pay ${f} ${c.toFixed(2)} with Crypto
47
+ `,M.addEventListener("click",()=>{Nu.init({apiKey:z}).createCheckout({amount:c,currency:f,orderId:d})}),u.appendChild(M)})}return document.readyState==="loading"?document.addEventListener("DOMContentLoaded",xs):xs(),window.ArthaPay=Nu,Nu})();