@tokenbuddy/tokenbuddy 1.0.15 → 1.0.17

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,206 @@
1
+ var Gg=Object.defineProperty;var xp=n=>{throw TypeError(n)};var Xg=(n,i,s)=>i in n?Gg(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s;var mo=(n,i,s)=>Xg(n,typeof i!="symbol"?i+"":i,s),po=(n,i,s)=>i.has(n)||xp("Cannot "+s);var j=(n,i,s)=>(po(n,i,"read from private field"),s?s.call(n):i.get(n)),ae=(n,i,s)=>i.has(n)?xp("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,s),$=(n,i,s,c)=>(po(n,i,"write to private field"),c?c.call(n,s):i.set(n,s),s),me=(n,i,s)=>(po(n,i,"access private method"),s);var Or=(n,i,s,c)=>({set _(f){$(n,i,f,s)},get _(){return j(n,i,c)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function s(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(f){if(f.ep)return;f.ep=!0;const m=s(f);fetch(f.href,m)}})();var vo={exports:{}},Fi={};/**
2
+ * @license React
3
+ * react-jsx-runtime.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 bp;function Kg(){if(bp)return Fi;bp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,f,m){var h=null;if(m!==void 0&&(h=""+m),f.key!==void 0&&(h=""+f.key),"key"in f){m={};for(var g in f)g!=="key"&&(m[g]=f[g])}else m=f;return f=m.ref,{$$typeof:n,type:c,key:h,ref:f!==void 0?f:null,props:m}}return Fi.Fragment=i,Fi.jsx=s,Fi.jsxs=s,Fi}var Sp;function Zg(){return Sp||(Sp=1,vo.exports=Kg()),vo.exports}var o=Zg(),yo={exports:{}},ce={};/**
10
+ * @license React
11
+ * react.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 jp;function Vg(){if(jp)return ce;jp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function L(N){return N===null||typeof N!="object"?null:(N=w&&N[w]||N["@@iterator"],typeof N=="function"?N:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,k={};function H(N,R,Z){this.props=N,this.context=R,this.refs=k,this.updater=Z||B}H.prototype.isReactComponent={},H.prototype.setState=function(N,R){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,R,"setState")},H.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function V(){}V.prototype=H.prototype;function Y(N,R,Z){this.props=N,this.context=R,this.refs=k,this.updater=Z||B}var X=Y.prototype=new V;X.constructor=Y,D(X,H.prototype),X.isPureReactComponent=!0;var ee=Array.isArray;function ie(){}var K={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function le(N,R,Z){var W=Z.ref;return{$$typeof:n,type:N,key:R,ref:W!==void 0?W:null,props:Z}}function fe(N,R){return le(N.type,R,N.props)}function Se(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function oe(N){var R={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(Z){return R[Z]})}var Be=/\/+/g;function Me(N,R){return typeof N=="object"&&N!==null&&N.key!=null?oe(""+N.key):R.toString(36)}function pe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(ie,ie):(N.status="pending",N.then(function(R){N.status==="pending"&&(N.status="fulfilled",N.value=R)},function(R){N.status==="pending"&&(N.status="rejected",N.reason=R)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function _(N,R,Z,W,G){var I=typeof N;(I==="undefined"||I==="boolean")&&(N=null);var re=!1;if(N===null)re=!0;else switch(I){case"bigint":case"string":case"number":re=!0;break;case"object":switch(N.$$typeof){case n:case i:re=!0;break;case b:return re=N._init,_(re(N._payload),R,Z,W,G)}}if(re)return G=G(N),re=W===""?"."+Me(N,0):W,ee(G)?(Z="",re!=null&&(Z=re.replace(Be,"$&/")+"/"),_(G,R,Z,"",function(Bl){return Bl})):G!=null&&(Se(G)&&(G=fe(G,Z+(G.key==null||N&&N.key===G.key?"":(""+G.key).replace(Be,"$&/")+"/")+re)),R.push(G)),1;re=0;var Oe=W===""?".":W+":";if(ee(N))for(var _e=0;_e<N.length;_e++)W=N[_e],I=Oe+Me(W,_e),re+=_(W,R,Z,I,G);else if(_e=L(N),typeof _e=="function")for(N=_e.call(N),_e=0;!(W=N.next()).done;)W=W.value,I=Oe+Me(W,_e++),re+=_(W,R,Z,I,G);else if(I==="object"){if(typeof N.then=="function")return _(pe(N),R,Z,W,G);throw R=String(N),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return re}function J(N,R,Z){if(N==null)return N;var W=[],G=0;return _(N,W,"","",function(I){return R.call(Z,I,G++)}),W}function ne(N){if(N._status===-1){var R=N._result;R=R(),R.then(function(Z){(N._status===0||N._status===-1)&&(N._status=1,N._result=Z)},function(Z){(N._status===0||N._status===-1)&&(N._status=2,N._result=Z)}),N._status===-1&&(N._status=0,N._result=R)}if(N._status===1)return N._result.default;throw N._result}var je=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ge={map:J,forEach:function(N,R,Z){J(N,function(){R.apply(this,arguments)},Z)},count:function(N){var R=0;return J(N,function(){R++}),R},toArray:function(N){return J(N,function(R){return R})||[]},only:function(N){if(!Se(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ce.Activity=x,ce.Children=ge,ce.Component=H,ce.Fragment=s,ce.Profiler=f,ce.PureComponent=Y,ce.StrictMode=c,ce.Suspense=v,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ce.__COMPILER_RUNTIME={__proto__:null,c:function(N){return K.H.useMemoCache(N)}},ce.cache=function(N){return function(){return N.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(N,R,Z){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=D({},N.props),G=N.key;if(R!=null)for(I in R.key!==void 0&&(G=""+R.key),R)!F.call(R,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&R.ref===void 0||(W[I]=R[I]);var I=arguments.length-2;if(I===1)W.children=Z;else if(1<I){for(var re=Array(I),Oe=0;Oe<I;Oe++)re[Oe]=arguments[Oe+2];W.children=re}return le(N.type,G,W)},ce.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:m,_context:N},N},ce.createElement=function(N,R,Z){var W,G={},I=null;if(R!=null)for(W in R.key!==void 0&&(I=""+R.key),R)F.call(R,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(G[W]=R[W]);var re=arguments.length-2;if(re===1)G.children=Z;else if(1<re){for(var Oe=Array(re),_e=0;_e<re;_e++)Oe[_e]=arguments[_e+2];G.children=Oe}if(N&&N.defaultProps)for(W in re=N.defaultProps,re)G[W]===void 0&&(G[W]=re[W]);return le(N,I,G)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(N){return{$$typeof:g,render:N}},ce.isValidElement=Se,ce.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:ne}},ce.memo=function(N,R){return{$$typeof:y,type:N,compare:R===void 0?null:R}},ce.startTransition=function(N){var R=K.T,Z={};K.T=Z;try{var W=N(),G=K.S;G!==null&&G(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ie,je)}catch(I){je(I)}finally{R!==null&&Z.types!==null&&(R.types=Z.types),K.T=R}},ce.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ce.use=function(N){return K.H.use(N)},ce.useActionState=function(N,R,Z){return K.H.useActionState(N,R,Z)},ce.useCallback=function(N,R){return K.H.useCallback(N,R)},ce.useContext=function(N){return K.H.useContext(N)},ce.useDebugValue=function(){},ce.useDeferredValue=function(N,R){return K.H.useDeferredValue(N,R)},ce.useEffect=function(N,R){return K.H.useEffect(N,R)},ce.useEffectEvent=function(N){return K.H.useEffectEvent(N)},ce.useId=function(){return K.H.useId()},ce.useImperativeHandle=function(N,R,Z){return K.H.useImperativeHandle(N,R,Z)},ce.useInsertionEffect=function(N,R){return K.H.useInsertionEffect(N,R)},ce.useLayoutEffect=function(N,R){return K.H.useLayoutEffect(N,R)},ce.useMemo=function(N,R){return K.H.useMemo(N,R)},ce.useOptimistic=function(N,R){return K.H.useOptimistic(N,R)},ce.useReducer=function(N,R,Z){return K.H.useReducer(N,R,Z)},ce.useRef=function(N){return K.H.useRef(N)},ce.useState=function(N){return K.H.useState(N)},ce.useSyncExternalStore=function(N,R,Z){return K.H.useSyncExternalStore(N,R,Z)},ce.useTransition=function(){return K.H.useTransition()},ce.version="19.2.7",ce}var Np;function Io(){return Np||(Np=1,yo.exports=Vg()),yo.exports}var M=Io(),go={exports:{}},Wi={},xo={exports:{}},bo={};/**
18
+ * @license React
19
+ * scheduler.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 Ep;function Jg(){return Ep||(Ep=1,(function(n){function i(_,J){var ne=_.length;_.push(J);e:for(;0<ne;){var je=ne-1>>>1,ge=_[je];if(0<f(ge,J))_[je]=J,_[ne]=ge,ne=je;else break e}}function s(_){return _.length===0?null:_[0]}function c(_){if(_.length===0)return null;var J=_[0],ne=_.pop();if(ne!==J){_[0]=ne;e:for(var je=0,ge=_.length,N=ge>>>1;je<N;){var R=2*(je+1)-1,Z=_[R],W=R+1,G=_[W];if(0>f(Z,ne))W<ge&&0>f(G,Z)?(_[je]=G,_[W]=ne,je=W):(_[je]=Z,_[R]=ne,je=R);else if(W<ge&&0>f(G,ne))_[je]=G,_[W]=ne,je=W;else break e}}return J}function f(_,J){var ne=_.sortIndex-J.sortIndex;return ne!==0?ne:_.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var h=Date,g=h.now();n.unstable_now=function(){return h.now()-g}}var v=[],y=[],b=1,x=null,w=3,L=!1,B=!1,D=!1,k=!1,H=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(_){for(var J=s(y);J!==null;){if(J.callback===null)c(y);else if(J.startTime<=_)c(y),J.sortIndex=J.expirationTime,i(v,J);else break;J=s(y)}}function ee(_){if(D=!1,X(_),!B)if(s(v)!==null)B=!0,ie||(ie=!0,oe());else{var J=s(y);J!==null&&pe(ee,J.startTime-_)}}var ie=!1,K=-1,F=5,le=-1;function fe(){return k?!0:!(n.unstable_now()-le<F)}function Se(){if(k=!1,ie){var _=n.unstable_now();le=_;var J=!0;try{e:{B=!1,D&&(D=!1,V(K),K=-1),L=!0;var ne=w;try{t:{for(X(_),x=s(v);x!==null&&!(x.expirationTime>_&&fe());){var je=x.callback;if(typeof je=="function"){x.callback=null,w=x.priorityLevel;var ge=je(x.expirationTime<=_);if(_=n.unstable_now(),typeof ge=="function"){x.callback=ge,X(_),J=!0;break t}x===s(v)&&c(v),X(_)}else c(v);x=s(v)}if(x!==null)J=!0;else{var N=s(y);N!==null&&pe(ee,N.startTime-_),J=!1}}break e}finally{x=null,w=ne,L=!1}J=void 0}}finally{J?oe():ie=!1}}}var oe;if(typeof Y=="function")oe=function(){Y(Se)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,Me=Be.port2;Be.port1.onmessage=Se,oe=function(){Me.postMessage(null)}}else oe=function(){H(Se,0)};function pe(_,J){K=H(function(){_(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(_){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var ne=w;w=J;try{return _()}finally{w=ne}},n.unstable_requestPaint=function(){k=!0},n.unstable_runWithPriority=function(_,J){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var ne=w;w=_;try{return J()}finally{w=ne}},n.unstable_scheduleCallback=function(_,J,ne){var je=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?je+ne:je):ne=je,_){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=ne+ge,_={id:b++,callback:J,priorityLevel:_,startTime:ne,expirationTime:ge,sortIndex:-1},ne>je?(_.sortIndex=ne,i(y,_),s(v)===null&&_===s(y)&&(D?(V(K),K=-1):D=!0,pe(ee,ne-je))):(_.sortIndex=ge,i(v,_),B||L||(B=!0,ie||(ie=!0,oe()))),_},n.unstable_shouldYield=fe,n.unstable_wrapCallback=function(_){var J=w;return function(){var ne=w;w=J;try{return _.apply(this,arguments)}finally{w=ne}}}})(bo)),bo}var Mp;function $g(){return Mp||(Mp=1,xo.exports=Jg()),xo.exports}var So={exports:{}},ot={};/**
26
+ * @license React
27
+ * react-dom.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 Cp;function Fg(){if(Cp)return ot;Cp=1;var n=Io();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(v,y,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:x==null?null:""+x,children:v,containerInfo:y,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ot.createPortal=function(v,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return m(v,y,null,b)},ot.flushSync=function(v){var y=h.T,b=c.p;try{if(h.T=null,c.p=2,v)return v()}finally{h.T=y,c.p=b,c.d.f()}},ot.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(v,y))},ot.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},ot.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var b=y.as,x=g(b,y.crossOrigin),w=typeof y.integrity=="string"?y.integrity:void 0,L=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?c.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:L}):b==="script"&&c.d.X(v,{crossOrigin:x,integrity:w,fetchPriority:L,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ot.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);c.d.M(v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(v)},ot.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,x=g(b,y.crossOrigin);c.d.L(v,b,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ot.preloadModule=function(v,y){if(typeof v=="string")if(y){var b=g(y.as,y.crossOrigin);c.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(v)},ot.requestFormReset=function(v){c.d.r(v)},ot.unstable_batchedUpdates=function(v,y){return v(y)},ot.useFormState=function(v,y,b){return h.H.useFormState(v,y,b)},ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},ot.version="19.2.7",ot}var Tp;function Wg(){if(Tp)return So.exports;Tp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),So.exports=Fg(),So.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Ap;function Ig(){if(Ap)return Wi;Ap=1;var n=$g(),i=Io(),s=Wg();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(m(e)!==e)throw Error(c(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var u=l.return;if(u===null)break;var r=u.alternate;if(r===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===l)return v(u),e;if(r===a)return v(u),t;r=r.sibling}throw Error(c(188))}if(l.return!==a.return)l=u,a=r;else{for(var d=!1,p=u.child;p;){if(p===l){d=!0,l=u,a=r;break}if(p===a){d=!0,a=u,l=r;break}p=p.sibling}if(!d){for(p=r.child;p;){if(p===l){d=!0,l=r,a=u;break}if(p===a){d=!0,a=r,l=u;break}p=p.sibling}if(!d)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,w=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),Se=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=Se&&e[Se]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Symbol.for("react.client.reference");function Me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case H:return"Profiler";case k:return"StrictMode";case ee:return"Suspense";case ie:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case Y:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Me(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return Me(e(t))}catch{}}return null}var pe=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},je=[],ge=-1;function N(e){return{current:e}}function R(e){0>ge||(e.current=je[ge],je[ge]=null,ge--)}function Z(e,t){ge++,je[ge]=e.current,e.current=t}var W=N(null),G=N(null),I=N(null),re=N(null);function Oe(e,t){switch(Z(I,t),Z(G,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ym(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ym(t),e=Gm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(W),Z(W,e)}function _e(){R(W),R(G),R(I)}function Bl(e){e.memoizedState!==null&&Z(re,e);var t=W.current,l=Gm(t,e.type);t!==l&&(Z(G,e),Z(W,l))}function Sa(e){G.current===e&&(R(W),R(G)),re.current===e&&(R(re),Zi._currentValue=ne)}var Pa,Qe;function ja(e){if(Pa===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Pa=t&&t[1]||"",Qe=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Pa+e+Qe}var Fr=!1;function Wr(e,t){if(!e||Fr)return"";Fr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(O){var z=O}Reflect.construct(e,[],q)}else{try{q.call()}catch(O){z=O}e.call(q.prototype)}}else{try{throw Error()}catch(O){z=O}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(O){if(O&&z&&typeof O.stack=="string")return[O.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),d=r[0],p=r[1];if(d&&p){var S=d.split(`
44
+ `),A=p.split(`
45
+ `);for(u=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;u<A.length&&!A[u].includes("DetermineComponentFrameRoot");)u++;if(a===S.length||u===A.length)for(a=S.length-1,u=A.length-1;1<=a&&0<=u&&S[a]!==A[u];)u--;for(;1<=a&&0<=u;a--,u--)if(S[a]!==A[u]){if(a!==1||u!==1)do if(a--,u--,0>u||S[a]!==A[u]){var U=`
46
+ `+S[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=u);break}}}finally{Fr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ja(l):""}function b0(e,t){switch(e.tag){case 26:case 27:case 5:return ja(e.type);case 16:return ja("Lazy");case 13:return e.child!==t&&t!==null?ja("Suspense Fallback"):ja("Suspense");case 19:return ja("SuspenseList");case 0:case 15:return Wr(e.type,!1);case 11:return Wr(e.type.render,!1);case 1:return Wr(e.type,!0);case 31:return ja("Activity");default:return""}}function xf(e){try{var t="",l=null;do t+=b0(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Ir=Object.prototype.hasOwnProperty,Pr=n.unstable_scheduleCallback,es=n.unstable_cancelCallback,S0=n.unstable_shouldYield,j0=n.unstable_requestPaint,Et=n.unstable_now,N0=n.unstable_getCurrentPriorityLevel,bf=n.unstable_ImmediatePriority,Sf=n.unstable_UserBlockingPriority,pu=n.unstable_NormalPriority,E0=n.unstable_LowPriority,jf=n.unstable_IdlePriority,M0=n.log,C0=n.unstable_setDisableYieldValue,ni=null,Mt=null;function Ll(e){if(typeof M0=="function"&&C0(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(ni,e)}catch{}}var Ct=Math.clz32?Math.clz32:R0,T0=Math.log,A0=Math.LN2;function R0(e){return e>>>=0,e===0?32:31-(T0(e)/A0|0)|0}var vu=256,yu=262144,gu=4194304;function Na(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var u=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=a&134217727;return p!==0?(a=p&~r,a!==0?u=Na(a):(d&=p,d!==0?u=Na(d):l||(l=p&~e,l!==0&&(u=Na(l))))):(p=a&~r,p!==0?u=Na(p):d!==0?u=Na(d):l||(l=a&~e,l!==0&&(u=Na(l)))),u===0?0:t!==0&&t!==u&&(t&r)===0&&(r=u&-u,l=t&-t,r>=l||r===32&&(l&4194048)!==0)?t:u}function ii(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function z0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Nf(){var e=gu;return gu<<=1,(gu&62914560)===0&&(gu=4194304),e}function ts(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function w0(e,t,l,a,u,r){var d=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var p=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=d&~l;0<l;){var U=31-Ct(l),q=1<<U;p[U]=0,S[U]=-1;var z=A[U];if(z!==null)for(A[U]=null,U=0;U<z.length;U++){var O=z[U];O!==null&&(O.lane&=-536870913)}l&=~q}a!==0&&Ef(e,a,0),r!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function Ef(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Mf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ct(l),u=1<<a;u&t|e[a]&t&&(e[a]|=t),l&=~u}}function Cf(e,t){var l=t&-t;return l=(l&42)!==0?1:ls(l),(l&(e.suspendedLanes|t))!==0?0:l}function ls(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function as(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tf(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function Af(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Ql=Math.random().toString(36).slice(2),it="__reactFiber$"+Ql,pt="__reactProps$"+Ql,en="__reactContainer$"+Ql,ns="__reactEvents$"+Ql,O0="__reactListeners$"+Ql,_0="__reactHandles$"+Ql,Rf="__reactResources$"+Ql,ri="__reactMarker$"+Ql;function is(e){delete e[it],delete e[pt],delete e[ns],delete e[O0],delete e[_0]}function tn(e){var t=e[it];if(t)return t;for(var l=e.parentNode;l;){if(t=l[en]||l[it]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Fm(e);e!==null;){if(l=e[it])return l;e=Fm(e)}return t}e=l,l=e.parentNode}return null}function ln(e){if(e=e[it]||e[en]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function si(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function an(e){var t=e[Rf];return t||(t=e[Rf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[ri]=!0}var zf=new Set,wf={};function Ea(e,t){nn(e,t),nn(e+"Capture",t)}function nn(e,t){for(wf[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var D0=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]*$"),Of={},_f={};function U0(e){return Ir.call(_f,e)?!0:Ir.call(Of,e)?!1:D0.test(e)?_f[e]=!0:(Of[e]=!0,!1)}function bu(e,t,l){if(U0(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Su(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function ol(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function H0(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){l=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(d){l=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function us(e){if(!e._valueTracker){var t=Df(e)?"checked":"value";e._valueTracker=H0(e,t,""+e[t])}}function Uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Df(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ju(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var B0=/[\n"\\]/g;function Bt(e){return e.replace(B0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rs(e,t,l,a,u,r,d,p){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?ss(e,d,Ht(t)):l!=null?ss(e,d,Ht(l)):a!=null&&e.removeAttribute("value"),u==null&&r!=null&&(e.defaultChecked=!!r),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Ht(p):e.removeAttribute("name")}function Hf(e,t,l,a,u,r,d,p){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||l!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){us(e);return}l=l!=null?""+Ht(l):"",t=t!=null?""+Ht(t):l,p||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=p?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),us(e)}function ss(e,t,l){t==="number"&&ju(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function un(e,t,l,a){if(e=e.options,t){t={};for(var u=0;u<l.length;u++)t["$"+l[u]]=!0;for(l=0;l<e.length;l++)u=t.hasOwnProperty("$"+e[l].value),e[l].selected!==u&&(e[l].selected=u),u&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ht(l),t=null,u=0;u<e.length;u++){if(e[u].value===l){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Bf(e,t,l){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ht(l):""}function Lf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(pe(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ht(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),us(e)}function rn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var L0=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 Qf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||L0.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function qf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&l[u]!==a&&Qf(e,u,a)}else for(var r in t)t.hasOwnProperty(r)&&Qf(e,r,t[r])}function cs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q0=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"]]),q0=/^[\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 Nu(e){return q0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fl(){}var os=null;function fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,cn=null;function kf(e){var t=ln(e);if(t&&(e=t.stateNode)){var l=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(rs(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var u=a[pt]||null;if(!u)throw Error(c(90));rs(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Uf(a)}break e;case"textarea":Bf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&un(e,!!l.multiple,t,!1)}}}var ds=!1;function Yf(e,t,l){if(ds)return e(t,l);ds=!0;try{var a=e(t);return a}finally{if(ds=!1,(sn!==null||cn!==null)&&(or(),sn&&(t=sn,e=cn,cn=sn=null,kf(t),e)))for(t=0;t<e.length;t++)kf(e[t])}}function ci(e,t){var l=e.stateNode;if(l===null)return null;var a=l[pt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var dl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hs=!1;if(dl)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){hs=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{hs=!1}var ql=null,ms=null,Eu=null;function Gf(){if(Eu)return Eu;var e,t=ms,l=t.length,a,u="value"in ql?ql.value:ql.textContent,r=u.length;for(e=0;e<l&&t[e]===u[e];e++);var d=l-e;for(a=1;a<=d&&t[l-a]===u[r-a];a++);return Eu=u.slice(e,1<a?1-a:void 0)}function Mu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Cu(){return!0}function Xf(){return!1}function vt(e){function t(l,a,u,r,d){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(l=e[p],this[p]=l?l(r):r[p]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Cu:Xf,this.isPropagationStopped=Xf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Cu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Cu)},persist:function(){},isPersistent:Cu}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tu=vt(Ma),fi=x({},Ma,{view:0,detail:0}),k0=vt(fi),ps,vs,di,Au=x({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==di&&(di&&e.type==="mousemove"?(ps=e.screenX-di.screenX,vs=e.screenY-di.screenY):vs=ps=0,di=e),ps)},movementY:function(e){return"movementY"in e?e.movementY:vs}}),Kf=vt(Au),Y0=x({},Au,{dataTransfer:0}),G0=vt(Y0),X0=x({},fi,{relatedTarget:0}),ys=vt(X0),K0=x({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),Z0=vt(K0),V0=x({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J0=vt(V0),$0=x({},Ma,{data:0}),Zf=vt($0),F0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W0={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"},I0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I0[e])?!!t[e]:!1}function gs(){return P0}var ey=x({},fi,{key:function(e){if(e.key){var t=F0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gs,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ty=vt(ey),ly=x({},Au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vf=vt(ly),ay=x({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gs}),ny=vt(ay),iy=x({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),uy=vt(iy),ry=x({},Au,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sy=vt(ry),cy=x({},Ma,{newState:0,oldState:0}),oy=vt(cy),fy=[9,13,27,32],xs=dl&&"CompositionEvent"in window,hi=null;dl&&"documentMode"in document&&(hi=document.documentMode);var dy=dl&&"TextEvent"in window&&!hi,Jf=dl&&(!xs||hi&&8<hi&&11>=hi),$f=" ",Ff=!1;function Wf(e,t){switch(e){case"keyup":return fy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function hy(e,t){switch(e){case"compositionend":return If(t);case"keypress":return t.which!==32?null:(Ff=!0,$f);case"textInput":return e=t.data,e===$f&&Ff?null:e;default:return null}}function my(e,t){if(on)return e==="compositionend"||!xs&&Wf(e,t)?(e=Gf(),Eu=ms=ql=null,on=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jf&&t.locale!=="ko"?null:t.data;default:return null}}var py={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 Pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!py[e.type]:t==="textarea"}function ed(e,t,l,a){sn?cn?cn.push(a):cn=[a]:sn=a,t=yr(t,"onChange"),0<t.length&&(l=new Tu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var mi=null,pi=null;function vy(e){Hm(e,0)}function Ru(e){var t=si(e);if(Uf(t))return e}function td(e,t){if(e==="change")return t}var ld=!1;if(dl){var bs;if(dl){var Ss="oninput"in document;if(!Ss){var ad=document.createElement("div");ad.setAttribute("oninput","return;"),Ss=typeof ad.oninput=="function"}bs=Ss}else bs=!1;ld=bs&&(!document.documentMode||9<document.documentMode)}function nd(){mi&&(mi.detachEvent("onpropertychange",id),pi=mi=null)}function id(e){if(e.propertyName==="value"&&Ru(pi)){var t=[];ed(t,pi,e,fs(e)),Yf(vy,t)}}function yy(e,t,l){e==="focusin"?(nd(),mi=t,pi=l,mi.attachEvent("onpropertychange",id)):e==="focusout"&&nd()}function gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ru(pi)}function xy(e,t){if(e==="click")return Ru(t)}function by(e,t){if(e==="input"||e==="change")return Ru(t)}function Sy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Sy;function vi(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!Ir.call(t,u)||!Tt(e[u],t[u]))return!1}return!0}function ud(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rd(e,t){var l=ud(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ud(l)}}function sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ju(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ju(e.document)}return t}function js(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var jy=dl&&"documentMode"in document&&11>=document.documentMode,fn=null,Ns=null,yi=null,Es=!1;function od(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Es||fn==null||fn!==ju(a)||(a=fn,"selectionStart"in a&&js(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}),yi&&vi(yi,a)||(yi=a,a=yr(Ns,"onSelect"),0<a.length&&(t=new Tu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fn)))}function Ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var dn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},Ms={},fd={};dl&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete dn.animationend.animation,delete dn.animationiteration.animation,delete dn.animationstart.animation),"TransitionEvent"in window||delete dn.transitionend.transition);function Ta(e){if(Ms[e])return Ms[e];if(!dn[e])return e;var t=dn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in fd)return Ms[e]=t[l];return e}var dd=Ta("animationend"),hd=Ta("animationiteration"),md=Ta("animationstart"),Ny=Ta("transitionrun"),Ey=Ta("transitionstart"),My=Ta("transitioncancel"),pd=Ta("transitionend"),vd=new Map,Cs="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(" ");Cs.push("scrollEnd");function $t(e,t){vd.set(e,t),Ea(t,[e])}var zu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Lt=[],hn=0,Ts=0;function wu(){for(var e=hn,t=Ts=hn=0;t<e;){var l=Lt[t];Lt[t++]=null;var a=Lt[t];Lt[t++]=null;var u=Lt[t];Lt[t++]=null;var r=Lt[t];if(Lt[t++]=null,a!==null&&u!==null){var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}r!==0&&yd(l,u,r)}}function Ou(e,t,l,a){Lt[hn++]=e,Lt[hn++]=t,Lt[hn++]=l,Lt[hn++]=a,Ts|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function As(e,t,l,a){return Ou(e,t,l,a),_u(e)}function Aa(e,t){return Ou(e,null,null,t),_u(e)}function yd(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var u=!1,r=e.return;r!==null;)r.childLanes|=l,a=r.alternate,a!==null&&(a.childLanes|=l),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(u=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,u&&t!==null&&(u=31-Ct(l),e=r.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=l|536870912),r):null}function _u(e){if(50<Qi)throw Qi=0,Bc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var mn={};function Cy(e,t,l,a){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,l,a){return new Cy(e,t,l,a)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hl(e,t){var l=e.alternate;return l===null?(l=At(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function gd(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Du(e,t,l,a,u,r){var d=0;if(a=e,typeof e=="function")Rs(e)&&(d=1);else if(typeof e=="string")d=wg(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=At(31,l,t,u),e.elementType=le,e.lanes=r,e;case D:return Ra(l.children,u,r,t);case k:d=8,u|=24;break;case H:return e=At(12,l,t,u|2),e.elementType=H,e.lanes=r,e;case ee:return e=At(13,l,t,u),e.elementType=ee,e.lanes=r,e;case ie:return e=At(19,l,t,u),e.elementType=ie,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:d=10;break e;case V:d=9;break e;case X:d=11;break e;case K:d=14;break e;case F:d=16,a=null;break e}d=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=At(d,l,t,u),t.elementType=e,t.type=a,t.lanes=r,t}function Ra(e,t,l,a){return e=At(7,e,a,t),e.lanes=l,e}function zs(e,t,l){return e=At(6,e,null,t),e.lanes=l,e}function xd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function ws(e,t,l){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bd=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=bd.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xf(t)},bd.set(e,t),t)}return{value:e,source:t,stack:xf(t)}}var pn=[],vn=0,Uu=null,gi=0,qt=[],kt=0,kl=null,el=1,tl="";function ml(e,t){pn[vn++]=gi,pn[vn++]=Uu,Uu=e,gi=t}function Sd(e,t,l){qt[kt++]=el,qt[kt++]=tl,qt[kt++]=kl,kl=e;var a=el;e=tl;var u=32-Ct(a)-1;a&=~(1<<u),l+=1;var r=32-Ct(t)+u;if(30<r){var d=u-u%5;r=(a&(1<<d)-1).toString(32),a>>=d,u-=d,el=1<<32-Ct(t)+u|l<<u|a,tl=r+e}else el=1<<r|l<<u|a,tl=e}function Os(e){e.return!==null&&(ml(e,1),Sd(e,1,0))}function _s(e){for(;e===Uu;)Uu=pn[--vn],pn[vn]=null,gi=pn[--vn],pn[vn]=null;for(;e===kl;)kl=qt[--kt],qt[kt]=null,tl=qt[--kt],qt[kt]=null,el=qt[--kt],qt[kt]=null}function jd(e,t){qt[kt++]=el,qt[kt++]=tl,qt[kt++]=kl,el=t.id,tl=t.overflow,kl=e}var ut=null,qe=null,Ne=!1,Yl=null,Yt=!1,Ds=Error(c(519));function Gl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xi(Qt(t,e)),Ds}function Nd(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[it]=e,t[pt]=a,l){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(l=0;l<ki.length;l++)ye(ki[l],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),Hf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),Lf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||qm(t.textContent,l)?(a.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),a.onScroll!=null&&ye("scroll",t),a.onScrollEnd!=null&&ye("scrollend",t),a.onClick!=null&&(t.onclick=fl),t=!0):t=!1,t||Gl(e,!0)}function Ed(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ut=ut.return}}function yn(e){if(e!==ut)return!1;if(!Ne)return Ed(e),Ne=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ic(e.type,e.memoizedProps)),l=!l),l&&qe&&Gl(e),Ed(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=$m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=$m(e)}else t===27?(t=qe,aa(e.type)?(e=ao,ao=null,qe=e):qe=t):qe=ut?Xt(e.stateNode.nextSibling):null;return!0}function za(){qe=ut=null,Ne=!1}function Us(){var e=Yl;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),Yl=null),e}function xi(e){Yl===null?Yl=[e]:Yl.push(e)}var Hs=N(null),wa=null,pl=null;function Xl(e,t,l){Z(Hs,t._currentValue),t._currentValue=l}function vl(e){e._currentValue=Hs.current,R(Hs)}function Bs(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ls(e,t,l,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var r=u.dependencies;if(r!==null){var d=u.child;r=r.firstContext;e:for(;r!==null;){var p=r;r=u;for(var S=0;S<t.length;S++)if(p.context===t[S]){r.lanes|=l,p=r.alternate,p!==null&&(p.lanes|=l),Bs(r.return,l,e),a||(d=null);break e}r=p.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(c(341));d.lanes|=l,r=d.alternate,r!==null&&(r.lanes|=l),Bs(d,l,e),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function gn(e,t,l,a){e=null;for(var u=t,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(c(387));if(d=d.memoizedProps,d!==null){var p=u.type;Tt(u.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(u===re.current){if(d=u.alternate,d===null)throw Error(c(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Zi):e=[Zi])}u=u.return}e!==null&&Ls(t,e,l,a),t.flags|=262144}function Hu(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){wa=e,pl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Md(wa,e)}function Bu(e,t){return wa===null&&Oa(e),Md(e,t)}function Md(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},pl===null){if(e===null)throw Error(c(308));pl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else pl=pl.next=t;return l}var Ty=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ay=n.unstable_scheduleCallback,Ry=n.unstable_NormalPriority,Fe={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qs(){return{controller:new Ty,data:new Map,refCount:0}}function bi(e){e.refCount--,e.refCount===0&&Ay(Ry,function(){e.controller.abort()})}var Si=null,qs=0,xn=0,bn=null;function zy(e,t){if(Si===null){var l=Si=[];qs=0,xn=Gc(),bn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return qs++,t.then(Cd,Cd),t}function Cd(){if(--qs===0&&Si!==null){bn!==null&&(bn.status="fulfilled");var e=Si;Si=null,xn=0,bn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wy(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<l.length;u++)(0,l[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Td=_.S;_.S=function(e,t){om=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zy(e,t),Td!==null&&Td(e,t)};var _a=N(null);function ks(){var e=_a.current;return e!==null?e:Le.pooledCache}function Lu(e,t){t===null?Z(_a,_a.current):Z(_a,t.pool)}function Ad(){var e=ks();return e===null?null:{parent:Fe._currentValue,pool:e}}var Sn=Error(c(460)),Ys=Error(c(474)),Qu=Error(c(542)),qu={then:function(){}};function Rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(fl,fl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Od(e),e;default:if(typeof t.status=="string")t.then(fl,fl);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Od(e),e}throw Ua=t,Sn}}function Da(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ua=l,Sn):l}}var Ua=null;function wd(){if(Ua===null)throw Error(c(459));var e=Ua;return Ua=null,e}function Od(e){if(e===Sn||e===Qu)throw Error(c(483))}var jn=null,ji=0;function ku(e){var t=ji;return ji+=1,jn===null&&(jn=[]),zd(jn,e,t)}function Ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yu(e,t){throw t.$$typeof===w?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _d(e){function t(C,E){if(e){var T=C.deletions;T===null?(C.deletions=[E],C.flags|=16):T.push(E)}}function l(C,E){if(!e)return null;for(;E!==null;)t(C,E),E=E.sibling;return null}function a(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function u(C,E){return C=hl(C,E),C.index=0,C.sibling=null,C}function r(C,E,T){return C.index=T,e?(T=C.alternate,T!==null?(T=T.index,T<E?(C.flags|=67108866,E):T):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,E,T,Q){return E===null||E.tag!==6?(E=zs(T,C.mode,Q),E.return=C,E):(E=u(E,T),E.return=C,E)}function S(C,E,T,Q){var ue=T.type;return ue===D?U(C,E,T.props.children,Q,T.key):E!==null&&(E.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===F&&Da(ue)===E.type)?(E=u(E,T.props),Ni(E,T),E.return=C,E):(E=Du(T.type,T.key,T.props,null,C.mode,Q),Ni(E,T),E.return=C,E)}function A(C,E,T,Q){return E===null||E.tag!==4||E.stateNode.containerInfo!==T.containerInfo||E.stateNode.implementation!==T.implementation?(E=ws(T,C.mode,Q),E.return=C,E):(E=u(E,T.children||[]),E.return=C,E)}function U(C,E,T,Q,ue){return E===null||E.tag!==7?(E=Ra(T,C.mode,Q,ue),E.return=C,E):(E=u(E,T),E.return=C,E)}function q(C,E,T){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=zs(""+E,C.mode,T),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case L:return T=Du(E.type,E.key,E.props,null,C.mode,T),Ni(T,E),T.return=C,T;case B:return E=ws(E,C.mode,T),E.return=C,E;case F:return E=Da(E),q(C,E,T)}if(pe(E)||oe(E))return E=Ra(E,C.mode,T,null),E.return=C,E;if(typeof E.then=="function")return q(C,ku(E),T);if(E.$$typeof===Y)return q(C,Bu(C,E),T);Yu(C,E)}return null}function z(C,E,T,Q){var ue=E!==null?E.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return ue!==null?null:p(C,E,""+T,Q);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case L:return T.key===ue?S(C,E,T,Q):null;case B:return T.key===ue?A(C,E,T,Q):null;case F:return T=Da(T),z(C,E,T,Q)}if(pe(T)||oe(T))return ue!==null?null:U(C,E,T,Q,null);if(typeof T.then=="function")return z(C,E,ku(T),Q);if(T.$$typeof===Y)return z(C,E,Bu(C,T),Q);Yu(C,T)}return null}function O(C,E,T,Q,ue){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(T)||null,p(E,C,""+Q,ue);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case L:return C=C.get(Q.key===null?T:Q.key)||null,S(E,C,Q,ue);case B:return C=C.get(Q.key===null?T:Q.key)||null,A(E,C,Q,ue);case F:return Q=Da(Q),O(C,E,T,Q,ue)}if(pe(Q)||oe(Q))return C=C.get(T)||null,U(E,C,Q,ue,null);if(typeof Q.then=="function")return O(C,E,T,ku(Q),ue);if(Q.$$typeof===Y)return O(C,E,T,Bu(E,Q),ue);Yu(E,Q)}return null}function P(C,E,T,Q){for(var ue=null,Ce=null,te=E,he=E=0,be=null;te!==null&&he<T.length;he++){te.index>he?(be=te,te=null):be=te.sibling;var Te=z(C,te,T[he],Q);if(Te===null){te===null&&(te=be);break}e&&te&&Te.alternate===null&&t(C,te),E=r(Te,E,he),Ce===null?ue=Te:Ce.sibling=Te,Ce=Te,te=be}if(he===T.length)return l(C,te),Ne&&ml(C,he),ue;if(te===null){for(;he<T.length;he++)te=q(C,T[he],Q),te!==null&&(E=r(te,E,he),Ce===null?ue=te:Ce.sibling=te,Ce=te);return Ne&&ml(C,he),ue}for(te=a(te);he<T.length;he++)be=O(te,C,he,T[he],Q),be!==null&&(e&&be.alternate!==null&&te.delete(be.key===null?he:be.key),E=r(be,E,he),Ce===null?ue=be:Ce.sibling=be,Ce=be);return e&&te.forEach(function(sa){return t(C,sa)}),Ne&&ml(C,he),ue}function se(C,E,T,Q){if(T==null)throw Error(c(151));for(var ue=null,Ce=null,te=E,he=E=0,be=null,Te=T.next();te!==null&&!Te.done;he++,Te=T.next()){te.index>he?(be=te,te=null):be=te.sibling;var sa=z(C,te,Te.value,Q);if(sa===null){te===null&&(te=be);break}e&&te&&sa.alternate===null&&t(C,te),E=r(sa,E,he),Ce===null?ue=sa:Ce.sibling=sa,Ce=sa,te=be}if(Te.done)return l(C,te),Ne&&ml(C,he),ue;if(te===null){for(;!Te.done;he++,Te=T.next())Te=q(C,Te.value,Q),Te!==null&&(E=r(Te,E,he),Ce===null?ue=Te:Ce.sibling=Te,Ce=Te);return Ne&&ml(C,he),ue}for(te=a(te);!Te.done;he++,Te=T.next())Te=O(te,C,he,Te.value,Q),Te!==null&&(e&&Te.alternate!==null&&te.delete(Te.key===null?he:Te.key),E=r(Te,E,he),Ce===null?ue=Te:Ce.sibling=Te,Ce=Te);return e&&te.forEach(function(Yg){return t(C,Yg)}),Ne&&ml(C,he),ue}function He(C,E,T,Q){if(typeof T=="object"&&T!==null&&T.type===D&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case L:e:{for(var ue=T.key;E!==null;){if(E.key===ue){if(ue=T.type,ue===D){if(E.tag===7){l(C,E.sibling),Q=u(E,T.props.children),Q.return=C,C=Q;break e}}else if(E.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===F&&Da(ue)===E.type){l(C,E.sibling),Q=u(E,T.props),Ni(Q,T),Q.return=C,C=Q;break e}l(C,E);break}else t(C,E);E=E.sibling}T.type===D?(Q=Ra(T.props.children,C.mode,Q,T.key),Q.return=C,C=Q):(Q=Du(T.type,T.key,T.props,null,C.mode,Q),Ni(Q,T),Q.return=C,C=Q)}return d(C);case B:e:{for(ue=T.key;E!==null;){if(E.key===ue)if(E.tag===4&&E.stateNode.containerInfo===T.containerInfo&&E.stateNode.implementation===T.implementation){l(C,E.sibling),Q=u(E,T.children||[]),Q.return=C,C=Q;break e}else{l(C,E);break}else t(C,E);E=E.sibling}Q=ws(T,C.mode,Q),Q.return=C,C=Q}return d(C);case F:return T=Da(T),He(C,E,T,Q)}if(pe(T))return P(C,E,T,Q);if(oe(T)){if(ue=oe(T),typeof ue!="function")throw Error(c(150));return T=ue.call(T),se(C,E,T,Q)}if(typeof T.then=="function")return He(C,E,ku(T),Q);if(T.$$typeof===Y)return He(C,E,Bu(C,T),Q);Yu(C,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,E!==null&&E.tag===6?(l(C,E.sibling),Q=u(E,T),Q.return=C,C=Q):(l(C,E),Q=zs(T,C.mode,Q),Q.return=C,C=Q),d(C)):l(C,E)}return function(C,E,T,Q){try{ji=0;var ue=He(C,E,T,Q);return jn=null,ue}catch(te){if(te===Sn||te===Qu)throw te;var Ce=At(29,te,null,C.mode);return Ce.lanes=Q,Ce.return=C,Ce}finally{}}}var Ha=_d(!0),Dd=_d(!1),Kl=!1;function Gs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=_u(e),yd(e,null,l),t}return Ou(e,a,t,l),_u(e)}function Ei(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mf(e,l)}}function Ks(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,r=null;if(l=l.firstBaseUpdate,l!==null){do{var d={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};r===null?u=r=d:r=r.next=d,l=l.next}while(l!==null);r===null?u=r=t:r=r.next=t}else u=r=t;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Zs=!1;function Mi(){if(Zs){var e=bn;if(e!==null)throw e}}function Ci(e,t,l,a){Zs=!1;var u=e.updateQueue;Kl=!1;var r=u.firstBaseUpdate,d=u.lastBaseUpdate,p=u.shared.pending;if(p!==null){u.shared.pending=null;var S=p,A=S.next;S.next=null,d===null?r=A:d.next=A,d=S;var U=e.alternate;U!==null&&(U=U.updateQueue,p=U.lastBaseUpdate,p!==d&&(p===null?U.firstBaseUpdate=A:p.next=A,U.lastBaseUpdate=S))}if(r!==null){var q=u.baseState;d=0,U=A=S=null,p=r;do{var z=p.lane&-536870913,O=z!==p.lane;if(O?(xe&z)===z:(a&z)===z){z!==0&&z===xn&&(Zs=!0),U!==null&&(U=U.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var P=e,se=p;z=t;var He=l;switch(se.tag){case 1:if(P=se.payload,typeof P=="function"){q=P.call(He,q,z);break e}q=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=se.payload,z=typeof P=="function"?P.call(He,q,z):P,z==null)break e;q=x({},q,z);break e;case 2:Kl=!0}}z=p.callback,z!==null&&(e.flags|=64,O&&(e.flags|=8192),O=u.callbacks,O===null?u.callbacks=[z]:O.push(z))}else O={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},U===null?(A=U=O,S=q):U=U.next=O,d|=z;if(p=p.next,p===null){if(p=u.shared.pending,p===null)break;O=p,p=O.next,O.next=null,u.lastBaseUpdate=O,u.shared.pending=null}}while(!0);U===null&&(S=q),u.baseState=S,u.firstBaseUpdate=A,u.lastBaseUpdate=U,r===null&&(u.shared.lanes=0),Il|=d,e.lanes=d,e.memoizedState=q}}function Ud(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Hd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ud(l[e],t)}var Nn=N(null),Gu=N(0);function Bd(e,t){e=Ml,Z(Gu,e),Z(Nn,t),Ml=e|t.baseLanes}function Vs(){Z(Gu,Ml),Z(Nn,Nn.current)}function Js(){Ml=Gu.current,R(Nn),R(Gu)}var Rt=N(null),Gt=null;function Jl(e){var t=e.alternate;Z(Je,Je.current&1),Z(Rt,e),Gt===null&&(t===null||Nn.current!==null||t.memoizedState!==null)&&(Gt=e)}function $s(e){Z(Je,Je.current),Z(Rt,e),Gt===null&&(Gt=e)}function Ld(e){e.tag===22?(Z(Je,Je.current),Z(Rt,e),Gt===null&&(Gt=e)):$l()}function $l(){Z(Je,Je.current),Z(Rt,Rt.current)}function zt(e){R(Rt),Gt===e&&(Gt=null),R(Je)}var Je=N(0);function Xu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||to(l)||lo(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yl=0,de=null,De=null,We=null,Ku=!1,En=!1,Ba=!1,Zu=0,Ti=0,Mn=null,Oy=0;function Xe(){throw Error(c(321))}function Fs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Tt(e[l],t[l]))return!1;return!0}function Ws(e,t,l,a,u,r){return yl=r,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Sh:dc,Ba=!1,r=l(a,u),Ba=!1,En&&(r=qd(t,l,a,u)),Qd(e),r}function Qd(e){_.H=zi;var t=De!==null&&De.next!==null;if(yl=0,We=De=de=null,Ku=!1,Ti=0,Mn=null,t)throw Error(c(300));e===null||Ie||(e=e.dependencies,e!==null&&Hu(e)&&(Ie=!0))}function qd(e,t,l,a){de=e;var u=0;do{if(En&&(Mn=null),Ti=0,En=!1,25<=u)throw Error(c(301));if(u+=1,We=De=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}_.H=jh,r=t(l,a)}while(En);return r}function _y(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Ai(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(de.flags|=1024),t}function Is(){var e=Zu!==0;return Zu=0,e}function Ps(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ec(e){if(Ku){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ku=!1}yl=0,We=De=de=null,En=!1,Ti=Zu=0,Mn=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?de.memoizedState=We=e:We=We.next=e,We}function $e(){if(De===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=We===null?de.memoizedState:We.next;if(t!==null)We=t,De=e;else{if(e===null)throw de.alternate===null?Error(c(467)):Error(c(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},We===null?de.memoizedState=We=e:We=We.next=e}return We}function Vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ai(e){var t=Ti;return Ti+=1,Mn===null&&(Mn=[]),e=zd(Mn,e,t),t=de,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Sh:dc),e}function Ju(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ai(e);if(e.$$typeof===Y)return rt(e)}throw Error(c(438,String(e)))}function tc(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=de.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Vu(),de.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=fe;return t.index++,l}function gl(e,t){return typeof t=="function"?t(e):t}function $u(e){var t=$e();return lc(t,De,e)}function lc(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var u=e.baseQueue,r=a.pending;if(r!==null){if(u!==null){var d=u.next;u.next=r.next,r.next=d}t.baseQueue=u=r,a.pending=null}if(r=e.baseState,u===null)e.memoizedState=r;else{t=u.next;var p=d=null,S=null,A=t,U=!1;do{var q=A.lane&-536870913;if(q!==A.lane?(xe&q)===q:(yl&q)===q){var z=A.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),q===xn&&(U=!0);else if((yl&z)===z){A=A.next,z===xn&&(U=!0);continue}else q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(p=S=q,d=r):S=S.next=q,de.lanes|=z,Il|=z;q=A.action,Ba&&l(r,q),r=A.hasEagerState?A.eagerState:l(r,q)}else z={lane:q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(p=S=z,d=r):S=S.next=z,de.lanes|=q,Il|=q;A=A.next}while(A!==null&&A!==t);if(S===null?d=r:S.next=p,!Tt(r,e.memoizedState)&&(Ie=!0,U&&(l=bn,l!==null)))throw l;e.memoizedState=r,e.baseState=d,e.baseQueue=S,a.lastRenderedState=r}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ac(e){var t=$e(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,u=l.pending,r=t.memoizedState;if(u!==null){l.pending=null;var d=u=u.next;do r=e(r,d.action),d=d.next;while(d!==u);Tt(r,t.memoizedState)||(Ie=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),l.lastRenderedState=r}return[r,a]}function kd(e,t,l){var a=de,u=$e(),r=Ne;if(r){if(l===void 0)throw Error(c(407));l=l()}else l=t();var d=!Tt((De||u).memoizedState,l);if(d&&(u.memoizedState=l,Ie=!0),u=u.queue,uc(Xd.bind(null,a,u,e),[e]),u.getSnapshot!==t||d||We!==null&&We.memoizedState.tag&1){if(a.flags|=2048,Cn(9,{destroy:void 0},Gd.bind(null,a,u,l,t),null),Le===null)throw Error(c(349));r||(yl&127)!==0||Yd(a,t,l)}return l}function Yd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=Vu(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Gd(e,t,l,a){t.value=l,t.getSnapshot=a,Kd(t)&&Zd(e)}function Xd(e,t,l){return l(function(){Kd(t)&&Zd(e)})}function Kd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Tt(e,l)}catch{return!0}}function Zd(e){var t=Aa(e,2);t!==null&&St(t,e,2)}function nc(e){var t=dt();if(typeof e=="function"){var l=e;if(e=l(),Ba){Ll(!0);try{l()}finally{Ll(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:e},t}function Vd(e,t,l,a){return e.baseState=l,lc(e,De,typeof a=="function"?a:gl)}function Dy(e,t,l,a,u){if(Iu(e))throw Error(c(485));if(e=t.action,e!==null){var r={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};_.T!==null?l(!0):r.isTransition=!1,a(r),l=t.pending,l===null?(r.next=t.pending=r,Jd(t,r)):(r.next=l.next,t.pending=l.next=r)}}function Jd(e,t){var l=t.action,a=t.payload,u=e.state;if(t.isTransition){var r=_.T,d={};_.T=d;try{var p=l(u,a),S=_.S;S!==null&&S(d,p),$d(e,t,p)}catch(A){ic(e,t,A)}finally{r!==null&&d.types!==null&&(r.types=d.types),_.T=r}}else try{r=l(u,a),$d(e,t,r)}catch(A){ic(e,t,A)}}function $d(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Fd(e,t,a)},function(a){return ic(e,t,a)}):Fd(e,t,l)}function Fd(e,t,l){t.status="fulfilled",t.value=l,Wd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Jd(e,l)))}function ic(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Wd(t),t=t.next;while(t!==a)}e.action=null}function Wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Id(e,t){return t}function Pd(e,t){if(Ne){var l=Le.formState;if(l!==null){e:{var a=de;if(Ne){if(qe){t:{for(var u=qe,r=Yt;u.nodeType!==8;){if(!r){u=null;break t}if(u=Xt(u.nextSibling),u===null){u=null;break t}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){qe=Xt(u.nextSibling),a=u.data==="F!";break e}}Gl(a)}a=!1}a&&(t=l[0])}}return l=dt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Id,lastRenderedState:t},l.queue=a,l=gh.bind(null,de,a),a.dispatch=l,a=nc(!1),r=fc.bind(null,de,!1,a.queue),a=dt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,l=Dy.bind(null,de,u,r,l),u.dispatch=l,a.memoizedState=e,[t,l,!1]}function eh(e){var t=$e();return th(t,De,e)}function th(e,t,l){if(t=lc(e,t,Id)[0],e=$u(gl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ai(t)}catch(d){throw d===Sn?Qu:d}else a=t;t=$e();var u=t.queue,r=u.dispatch;return l!==t.memoizedState&&(de.flags|=2048,Cn(9,{destroy:void 0},Uy.bind(null,u,l),null)),[a,r,e]}function Uy(e,t){e.action=t}function lh(e){var t=$e(),l=De;if(l!==null)return th(t,l,e);$e(),t=t.memoizedState,l=$e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Cn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=Vu(),de.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function ah(){return $e().memoizedState}function Fu(e,t,l,a){var u=dt();de.flags|=e,u.memoizedState=Cn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Wu(e,t,l,a){var u=$e();a=a===void 0?null:a;var r=u.memoizedState.inst;De!==null&&a!==null&&Fs(a,De.memoizedState.deps)?u.memoizedState=Cn(t,r,l,a):(de.flags|=e,u.memoizedState=Cn(1|t,r,l,a))}function nh(e,t){Fu(8390656,8,e,t)}function uc(e,t){Wu(2048,8,e,t)}function Hy(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Vu(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ih(e){var t=$e().memoizedState;return Hy({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function uh(e,t){return Wu(4,2,e,t)}function rh(e,t){return Wu(4,4,e,t)}function sh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ch(e,t,l){l=l!=null?l.concat([e]):null,Wu(4,4,sh.bind(null,t,e),l)}function rc(){}function oh(e,t){var l=$e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Fs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function fh(e,t){var l=$e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Fs(t,a[1]))return a[0];if(a=e(),Ba){Ll(!0);try{e()}finally{Ll(!1)}}return l.memoizedState=[a,t],a}function sc(e,t,l){return l===void 0||(yl&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=dm(),de.lanes|=e,Il|=e,l)}function dh(e,t,l,a){return Tt(l,t)?l:Nn.current!==null?(e=sc(e,l,a),Tt(e,t)||(Ie=!0),e):(yl&42)===0||(yl&1073741824)!==0&&(xe&261930)===0?(Ie=!0,e.memoizedState=l):(e=dm(),de.lanes|=e,Il|=e,t)}function hh(e,t,l,a,u){var r=J.p;J.p=r!==0&&8>r?r:8;var d=_.T,p={};_.T=p,fc(e,!1,t,l);try{var S=u(),A=_.S;if(A!==null&&A(p,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=wy(S,a);Ri(e,t,U,_t(e))}else Ri(e,t,a,_t(e))}catch(q){Ri(e,t,{then:function(){},status:"rejected",reason:q},_t())}finally{J.p=r,d!==null&&p.types!==null&&(d.types=p.types),_.T=d}}function By(){}function cc(e,t,l,a){if(e.tag!==5)throw Error(c(476));var u=mh(e).queue;hh(e,u,t,ne,l===null?By:function(){return ph(e),l(a)})}function mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ph(e){var t=mh(e);t.next===null&&(t=e.alternate.memoizedState),Ri(e,t.next.queue,{},_t())}function oc(){return rt(Zi)}function vh(){return $e().memoizedState}function yh(){return $e().memoizedState}function Ly(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=_t();e=Zl(l);var a=Vl(t,e,l);a!==null&&(St(a,t,l),Ei(a,t,l)),t={cache:Qs()},e.payload=t;return}t=t.return}}function Qy(e,t,l){var a=_t();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Iu(e)?xh(t,l):(l=As(e,t,l,a),l!==null&&(St(l,e,a),bh(l,t,a)))}function gh(e,t,l){var a=_t();Ri(e,t,l,a)}function Ri(e,t,l,a){var u={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Iu(e))xh(t,u);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,p=r(d,l);if(u.hasEagerState=!0,u.eagerState=p,Tt(p,d))return Ou(e,t,u,0),Le===null&&wu(),!1}catch{}finally{}if(l=As(e,t,u,a),l!==null)return St(l,e,a),bh(l,t,a),!0}return!1}function fc(e,t,l,a){if(a={lane:2,revertLane:Gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Iu(e)){if(t)throw Error(c(479))}else t=As(e,l,a,2),t!==null&&St(t,e,2)}function Iu(e){var t=e.alternate;return e===de||t!==null&&t===de}function xh(e,t){En=Ku=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function bh(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mf(e,l)}}var zi={readContext:rt,use:Ju,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};zi.useEffectEvent=Xe;var Sh={readContext:rt,use:Ju,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:nh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Fu(4194308,4,sh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Fu(4194308,4,e,t)},useInsertionEffect:function(e,t){Fu(4,2,e,t)},useMemo:function(e,t){var l=dt();t=t===void 0?null:t;var a=e();if(Ba){Ll(!0);try{e()}finally{Ll(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=dt();if(l!==void 0){var u=l(t);if(Ba){Ll(!0);try{l(t)}finally{Ll(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Qy.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=nc(e);var t=e.queue,l=gh.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:rc,useDeferredValue:function(e,t){var l=dt();return sc(l,e,t)},useTransition:function(){var e=nc(!1);return e=hh.bind(null,de,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,u=dt();if(Ne){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Le===null)throw Error(c(349));(xe&127)!==0||Yd(a,t,l)}u.memoizedState=l;var r={value:l,getSnapshot:t};return u.queue=r,nh(Xd.bind(null,a,r,e),[e]),a.flags|=2048,Cn(9,{destroy:void 0},Gd.bind(null,a,r,l,t),null),l},useId:function(){var e=dt(),t=Le.identifierPrefix;if(Ne){var l=tl,a=el;l=(a&~(1<<32-Ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Zu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Oy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:Pd,useActionState:Pd,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=fc.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:tc,useCacheRefresh:function(){return dt().memoizedState=Ly.bind(null,de)},useEffectEvent:function(e){var t=dt(),l={impl:e};return t.memoizedState=l,function(){if((Ae&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},dc={readContext:rt,use:Ju,useCallback:oh,useContext:rt,useEffect:uc,useImperativeHandle:ch,useInsertionEffect:uh,useLayoutEffect:rh,useMemo:fh,useReducer:$u,useRef:ah,useState:function(){return $u(gl)},useDebugValue:rc,useDeferredValue:function(e,t){var l=$e();return dh(l,De.memoizedState,e,t)},useTransition:function(){var e=$u(gl)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:kd,useId:vh,useHostTransitionStatus:oc,useFormState:eh,useActionState:eh,useOptimistic:function(e,t){var l=$e();return Vd(l,De,e,t)},useMemoCache:tc,useCacheRefresh:yh};dc.useEffectEvent=ih;var jh={readContext:rt,use:Ju,useCallback:oh,useContext:rt,useEffect:uc,useImperativeHandle:ch,useInsertionEffect:uh,useLayoutEffect:rh,useMemo:fh,useReducer:ac,useRef:ah,useState:function(){return ac(gl)},useDebugValue:rc,useDeferredValue:function(e,t){var l=$e();return De===null?sc(l,e,t):dh(l,De.memoizedState,e,t)},useTransition:function(){var e=ac(gl)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:kd,useId:vh,useHostTransitionStatus:oc,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var l=$e();return De!==null?Vd(l,De,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:tc,useCacheRefresh:yh};jh.useEffectEvent=ih;function hc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var mc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=_t(),u=Zl(a);u.payload=t,l!=null&&(u.callback=l),t=Vl(e,u,a),t!==null&&(St(t,e,a),Ei(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=_t(),u=Zl(a);u.tag=1,u.payload=t,l!=null&&(u.callback=l),t=Vl(e,u,a),t!==null&&(St(t,e,a),Ei(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=_t(),a=Zl(l);a.tag=2,t!=null&&(a.callback=t),t=Vl(e,a,l),t!==null&&(St(t,e,l),Ei(t,e,l))}};function Nh(e,t,l,a,u,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,d):t.prototype&&t.prototype.isPureReactComponent?!vi(l,a)||!vi(u,r):!0}function Eh(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&mc.enqueueReplaceState(t,t.state,null)}function La(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=x({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}function Mh(e){zu(e)}function Ch(e){console.error(e)}function Th(e){zu(e)}function Pu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ah(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function pc(e,t,l){return l=Zl(l),l.tag=3,l.payload={element:null},l.callback=function(){Pu(e,t)},l}function Rh(e){return e=Zl(e),e.tag=3,e}function zh(e,t,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var r=a.value;e.payload=function(){return u(r)},e.callback=function(){Ah(t,l,a)}}var d=l.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Ah(t,l,a),typeof u!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function qy(e,t,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&gn(t,l,u,!0),l=Rt.current,l!==null){switch(l.tag){case 31:case 13:return Gt===null?fr():l.alternate===null&&Ke===0&&(Ke=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===qu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),qc(e,a,u)),!1;case 22:return l.flags|=65536,a===qu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),qc(e,a,u)),!1}throw Error(c(435,l.tag))}return qc(e,a,u),fr(),!1}if(Ne)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Ds&&(e=Error(c(422),{cause:a}),xi(Qt(e,l)))):(a!==Ds&&(t=Error(c(423),{cause:a}),xi(Qt(t,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Qt(a,l),u=pc(e.stateNode,a,u),Ks(e,u),Ke!==4&&(Ke=2)),!1;var r=Error(c(520),{cause:a});if(r=Qt(r,l),Li===null?Li=[r]:Li.push(r),Ke!==4&&(Ke=2),t===null)return!0;a=Qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=pc(l.stateNode,a,e),Ks(l,e),!1;case 1:if(t=l.type,r=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Pl===null||!Pl.has(r))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Rh(u),zh(u,e,l,a),Ks(l,u),!1}l=l.return}while(l!==null);return!1}var vc=Error(c(461)),Ie=!1;function st(e,t,l,a){t.child=e===null?Dd(t,null,l,a):Ha(t,e.child,l,a)}function wh(e,t,l,a,u){l=l.render;var r=t.ref;if("ref"in a){var d={};for(var p in a)p!=="ref"&&(d[p]=a[p])}else d=a;return Oa(t),a=Ws(e,t,l,d,r,u),p=Is(),e!==null&&!Ie?(Ps(e,t,u),xl(e,t,u)):(Ne&&p&&Os(t),t.flags|=1,st(e,t,a,u),t.child)}function Oh(e,t,l,a,u){if(e===null){var r=l.type;return typeof r=="function"&&!Rs(r)&&r.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=r,_h(e,t,r,a,u)):(e=Du(l.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Ec(e,u)){var d=r.memoizedProps;if(l=l.compare,l=l!==null?l:vi,l(d,a)&&e.ref===t.ref)return xl(e,t,u)}return t.flags|=1,e=hl(r,a),e.ref=t.ref,e.return=t,t.child=e}function _h(e,t,l,a,u){if(e!==null){var r=e.memoizedProps;if(vi(r,a)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=a=r,Ec(e,u))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,xl(e,t,u)}return yc(e,t,l,a,u)}function Dh(e,t,l,a){var u=a.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|l:l,e!==null){for(a=t.child=e.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~r}else a=0,t.child=null;return Uh(e,t,r,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Lu(t,r!==null?r.cachePool:null),r!==null?Bd(t,r):Vs(),Ld(t);else return a=t.lanes=536870912,Uh(e,t,r!==null?r.baseLanes|l:l,l,a)}else r!==null?(Lu(t,r.cachePool),Bd(t,r),$l(),t.memoizedState=null):(e!==null&&Lu(t,null),Vs(),$l());return st(e,t,u,l),t.child}function wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Uh(e,t,l,a,u){var r=ks();return r=r===null?null:{parent:Fe._currentValue,pool:r},t.memoizedState={baseLanes:l,cachePool:r},e!==null&&Lu(t,null),Vs(),Ld(t),e!==null&&gn(e,t,a,!0),t.childLanes=u,null}function er(e,t){return t=lr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hh(e,t,l){return Ha(t,e.child,null,l),e=er(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function ky(e,t,l){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(a.mode==="hidden")return e=er(t,a),t.lanes=536870912,wi(null,e);if($s(t),(e=qe)?(e=Jm(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kl!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=xd(e),l.return=t,t.child=l,ut=t,qe=null)):e=null,e===null)throw Gl(t);return t.lanes=536870912,null}return er(t,a)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if($s(t),u)if(t.flags&256)t.flags&=-257,t=Hh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ie||gn(e,t,l,!1),u=(l&e.childLanes)!==0,Ie||u){if(a=Le,a!==null&&(d=Cf(a,l),d!==0&&d!==r.retryLane))throw r.retryLane=d,Aa(e,d),St(a,e,d),vc;fr(),t=Hh(e,t,l)}else e=r.treeContext,qe=Xt(d.nextSibling),ut=t,Ne=!0,Yl=null,Yt=!1,e!==null&&jd(t,e),t=er(t,a),t.flags|=4096;return t}return e=hl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function tr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function yc(e,t,l,a,u){return Oa(t),l=Ws(e,t,l,a,void 0,u),a=Is(),e!==null&&!Ie?(Ps(e,t,u),xl(e,t,u)):(Ne&&a&&Os(t),t.flags|=1,st(e,t,l,u),t.child)}function Bh(e,t,l,a,u,r){return Oa(t),t.updateQueue=null,l=qd(t,a,l,u),Qd(e),a=Is(),e!==null&&!Ie?(Ps(e,t,r),xl(e,t,r)):(Ne&&a&&Os(t),t.flags|=1,st(e,t,l,r),t.child)}function Lh(e,t,l,a,u){if(Oa(t),t.stateNode===null){var r=mn,d=l.contextType;typeof d=="object"&&d!==null&&(r=rt(d)),r=new l(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=mc,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},Gs(t),d=l.contextType,r.context=typeof d=="object"&&d!==null?rt(d):mn,r.state=t.memoizedState,d=l.getDerivedStateFromProps,typeof d=="function"&&(hc(t,l,d,a),r.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&mc.enqueueReplaceState(r,r.state,null),Ci(t,a,r,u),Mi(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var p=t.memoizedProps,S=La(l,p);r.props=S;var A=r.context,U=l.contextType;d=mn,typeof U=="object"&&U!==null&&(d=rt(U));var q=l.getDerivedStateFromProps;U=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,U||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(p||A!==d)&&Eh(t,r,a,d),Kl=!1;var z=t.memoizedState;r.state=z,Ci(t,a,r,u),Mi(),A=t.memoizedState,p||z!==A||Kl?(typeof q=="function"&&(hc(t,l,q,a),A=t.memoizedState),(S=Kl||Nh(t,l,S,a,z,A,d))?(U||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),r.props=a,r.state=A,r.context=d,a=S):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,Xs(e,t),d=t.memoizedProps,U=La(l,d),r.props=U,q=t.pendingProps,z=r.context,A=l.contextType,S=mn,typeof A=="object"&&A!==null&&(S=rt(A)),p=l.getDerivedStateFromProps,(A=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==q||z!==S)&&Eh(t,r,a,S),Kl=!1,z=t.memoizedState,r.state=z,Ci(t,a,r,u),Mi();var O=t.memoizedState;d!==q||z!==O||Kl||e!==null&&e.dependencies!==null&&Hu(e.dependencies)?(typeof p=="function"&&(hc(t,l,p,a),O=t.memoizedState),(U=Kl||Nh(t,l,U,a,z,O,S)||e!==null&&e.dependencies!==null&&Hu(e.dependencies))?(A||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,S)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),r.props=a,r.state=O,r.context=S,a=U):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,tr(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=Ha(t,e.child,null,u),t.child=Ha(t,null,l,u)):st(e,t,l,u),t.memoizedState=r.state,e=t.child):e=xl(e,t,u),e}function Qh(e,t,l,a){return za(),t.flags|=256,st(e,t,l,a),t.child}var gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:Ad()}}function bc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ot),e}function qh(e,t,l){var a=t.pendingProps,u=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),d&&(u=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(u?Jl(t):$l(),(e=qe)?(e=Jm(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kl!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=xd(e),l.return=t,t.child=l,ut=t,qe=null)):e=null,e===null)throw Gl(t);return lo(e)?t.lanes=32:t.lanes=536870912,null}var p=a.children;return a=a.fallback,u?($l(),u=t.mode,p=lr({mode:"hidden",children:p},u),a=Ra(a,u,l,null),p.return=t,a.return=t,p.sibling=a,t.child=p,a=t.child,a.memoizedState=xc(l),a.childLanes=bc(e,d,l),t.memoizedState=gc,wi(null,a)):(Jl(t),Sc(t,p))}var S=e.memoizedState;if(S!==null&&(p=S.dehydrated,p!==null)){if(r)t.flags&256?(Jl(t),t.flags&=-257,t=jc(e,t,l)):t.memoizedState!==null?($l(),t.child=e.child,t.flags|=128,t=null):($l(),p=a.fallback,u=t.mode,a=lr({mode:"visible",children:a.children},u),p=Ra(p,u,l,null),p.flags|=2,a.return=t,p.return=t,a.sibling=p,t.child=a,Ha(t,e.child,null,l),a=t.child,a.memoizedState=xc(l),a.childLanes=bc(e,d,l),t.memoizedState=gc,t=wi(null,a));else if(Jl(t),lo(p)){if(d=p.nextSibling&&p.nextSibling.dataset,d)var A=d.dgst;d=A,a=Error(c(419)),a.stack="",a.digest=d,xi({value:a,source:null,stack:null}),t=jc(e,t,l)}else if(Ie||gn(e,t,l,!1),d=(l&e.childLanes)!==0,Ie||d){if(d=Le,d!==null&&(a=Cf(d,l),a!==0&&a!==S.retryLane))throw S.retryLane=a,Aa(e,a),St(d,e,a),vc;to(p)||fr(),t=jc(e,t,l)}else to(p)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,qe=Xt(p.nextSibling),ut=t,Ne=!0,Yl=null,Yt=!1,e!==null&&jd(t,e),t=Sc(t,a.children),t.flags|=4096);return t}return u?($l(),p=a.fallback,u=t.mode,S=e.child,A=S.sibling,a=hl(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,A!==null?p=hl(A,p):(p=Ra(p,u,l,null),p.flags|=2),p.return=t,a.return=t,a.sibling=p,t.child=a,wi(null,a),a=t.child,p=e.child.memoizedState,p===null?p=xc(l):(u=p.cachePool,u!==null?(S=Fe._currentValue,u=u.parent!==S?{parent:S,pool:S}:u):u=Ad(),p={baseLanes:p.baseLanes|l,cachePool:u}),a.memoizedState=p,a.childLanes=bc(e,d,l),t.memoizedState=gc,wi(e.child,a)):(Jl(t),l=e.child,e=l.sibling,l=hl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=l,t.memoizedState=null,l)}function Sc(e,t){return t=lr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function lr(e,t){return e=At(22,e,null,t),e.lanes=0,e}function jc(e,t,l){return Ha(t,e.child,null,l),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Bs(e.return,t,l)}function Nc(e,t,l,a,u,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=l,d.tailMode=u,d.treeForkCount=r)}function Yh(e,t,l){var a=t.pendingProps,u=a.revealOrder,r=a.tail;a=a.children;var d=Je.current,p=(d&2)!==0;if(p?(d=d&1|2,t.flags|=128):d&=1,Z(Je,d),st(e,t,a,l),a=Ne?gi:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kh(e,l,t);else if(e.tag===19)kh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(l=t.child,u=null;l!==null;)e=l.alternate,e!==null&&Xu(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=t.child,t.child=null):(u=l.sibling,l.sibling=null),Nc(t,!1,u,l,r,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Xu(e)===null){t.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}Nc(t,!0,l,null,r,a);break;case"together":Nc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function xl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(gn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=hl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=hl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Hu(e)))}function Yy(e,t,l){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),Xl(t,Fe,e.memoizedState.cache),za();break;case 27:case 5:Bl(t);break;case 4:Oe(t,t.stateNode.containerInfo);break;case 10:Xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$s(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?qh(e,t,l):(Jl(t),e=xl(e,t,l),e!==null?e.sibling:null);Jl(t);break;case 19:var u=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(gn(e,t,l,!1),a=(l&t.childLanes)!==0),u){if(a)return Yh(e,t,l);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Z(Je,Je.current),a)break;return null;case 22:return t.lanes=0,Dh(e,t,l,t.pendingProps);case 24:Xl(t,Fe,e.memoizedState.cache)}return xl(e,t,l)}function Gh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!Ec(e,l)&&(t.flags&128)===0)return Ie=!1,Yy(e,t,l);Ie=(e.flags&131072)!==0}else Ie=!1,Ne&&(t.flags&1048576)!==0&&Sd(t,gi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e=="function")Rs(e)?(a=La(e,a),t.tag=1,t=Lh(null,t,e,a,l)):(t.tag=0,t=yc(null,t,e,a,l));else{if(e!=null){var u=e.$$typeof;if(u===X){t.tag=11,t=wh(null,t,e,a,l);break e}else if(u===K){t.tag=14,t=Oh(null,t,e,a,l);break e}}throw t=Me(e)||e,Error(c(306,t,""))}}return t;case 0:return yc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,u=La(a,t.pendingProps),Lh(e,t,a,u,l);case 3:e:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var r=t.memoizedState;u=r.element,Xs(e,t),Ci(t,a,null,l);var d=t.memoizedState;if(a=d.cache,Xl(t,Fe,a),a!==r.cache&&Ls(t,[Fe],l,!0),Mi(),a=d.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Qh(e,t,a,l);break e}else if(a!==u){u=Qt(Error(c(424)),t),xi(u),t=Qh(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(qe=Xt(e.firstChild),ut=t,Ne=!0,Yl=null,Yt=!0,l=Dd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(za(),a===u){t=xl(e,t,l);break e}st(e,t,a,l)}t=t.child}return t;case 26:return tr(e,t),e===null?(l=ep(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ne||(l=t.type,e=t.pendingProps,a=gr(I.current).createElement(l),a[it]=t,a[pt]=e,ct(a,l,e),lt(a),t.stateNode=a):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Bl(t),e===null&&Ne&&(a=t.stateNode=Wm(t.type,t.pendingProps,I.current),ut=t,Yt=!0,u=qe,aa(t.type)?(ao=u,qe=Xt(a.firstChild)):qe=u),st(e,t,t.pendingProps.children,l),tr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((u=a=qe)&&(a=gg(a,t.type,t.pendingProps,Yt),a!==null?(t.stateNode=a,ut=t,qe=Xt(a.firstChild),Yt=!1,u=!0):u=!1),u||Gl(t)),Bl(t),u=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,a=r.children,Ic(u,r)?a=null:d!==null&&Ic(u,d)&&(t.flags|=32),t.memoizedState!==null&&(u=Ws(e,t,_y,null,null,l),Zi._currentValue=u),tr(e,t),st(e,t,a,l),t.child;case 6:return e===null&&Ne&&((e=l=qe)&&(l=xg(l,t.pendingProps,Yt),l!==null?(t.stateNode=l,ut=t,qe=null,e=!0):e=!1),e||Gl(t)),null;case 13:return qh(e,t,l);case 4:return Oe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ha(t,null,a,l):st(e,t,a,l),t.child;case 11:return wh(e,t,t.type,t.pendingProps,l);case 7:return st(e,t,t.pendingProps,l),t.child;case 8:return st(e,t,t.pendingProps.children,l),t.child;case 12:return st(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Xl(t,t.type,a.value),st(e,t,a.children,l),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Oa(t),u=rt(u),a=a(u),t.flags|=1,st(e,t,a,l),t.child;case 14:return Oh(e,t,t.type,t.pendingProps,l);case 15:return _h(e,t,t.type,t.pendingProps,l);case 19:return Yh(e,t,l);case 31:return ky(e,t,l);case 22:return Dh(e,t,l,t.pendingProps);case 24:return Oa(t),a=rt(Fe),e===null?(u=ks(),u===null&&(u=Le,r=Qs(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=l),u=r),t.memoizedState={parent:a,cache:u},Gs(t),Xl(t,Fe,u)):((e.lanes&l)!==0&&(Xs(e,t),Ci(t,null,null,l),Mi()),u=e.memoizedState,r=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Xl(t,Fe,a)):(a=r.cache,Xl(t,Fe,a),a!==u.cache&&Ls(t,[Fe],l,!0))),st(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function bl(e){e.flags|=4}function Mc(e,t,l,a,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(vm())e.flags|=8192;else throw Ua=qu,Ys}else e.flags&=-16777217}function Xh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t))if(vm())e.flags|=8192;else throw Ua=qu,Ys}function ar(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nf():536870912,e.lanes|=t,zn|=t)}function Oi(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Gy(e,t,l){var a=t.pendingProps;switch(_s(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),vl(Fe),_e(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(yn(t)?bl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Us())),ke(t),null;case 26:var u=t.type,r=t.memoizedState;return e===null?(bl(t),r!==null?(ke(t),Xh(t,r)):(ke(t),Mc(t,u,null,a,l))):r?r!==e.memoizedState?(bl(t),ke(t),Xh(t,r)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&bl(t),ke(t),Mc(t,u,e,a,l)),null;case 27:if(Sa(t),l=I.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return ke(t),null}e=W.current,yn(t)?Nd(t):(e=Wm(u,a,l),t.stateNode=e,bl(t))}return ke(t),null;case 5:if(Sa(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return ke(t),null}if(r=W.current,yn(t))Nd(t);else{var d=gr(I.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?d.createElement(u,{is:a.is}):d.createElement(u)}}r[it]=t,r[pt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(ct(r,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&bl(t)}}return ke(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=I.current,yn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,u=ut,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[it]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||qm(e.nodeValue,l)),e||Gl(t,!0)}else e=gr(e).createTextNode(a),e[it]=t,t.stateNode=e}return ke(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=yn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[it]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else l=Us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return ke(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=yn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(c(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[it]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),u=!1}else u=Us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ar(t,t.updateQueue),ke(t),null);case 4:return _e(),e===null&&Vc(t.stateNode.containerInfo),ke(t),null;case 10:return vl(t.type),ke(t),null;case 19:if(R(Je),a=t.memoizedState,a===null)return ke(t),null;if(u=(t.flags&128)!==0,r=a.rendering,r===null)if(u)Oi(a,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Xu(e),r!==null){for(t.flags|=128,Oi(a,!1),e=r.updateQueue,t.updateQueue=e,ar(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)gd(l,e),l=l.sibling;return Z(Je,Je.current&1|2),Ne&&ml(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Et()>sr&&(t.flags|=128,u=!0,Oi(a,!1),t.lanes=4194304)}else{if(!u)if(e=Xu(r),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,ar(t,e),Oi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!Ne)return ke(t),null}else 2*Et()-a.renderingStartTime>sr&&l!==536870912&&(t.flags|=128,u=!0,Oi(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Et(),e.sibling=null,l=Je.current,Z(Je,u?l&1|2:l&1),Ne&&ml(t,a.treeForkCount),e):(ke(t),null);case 22:case 23:return zt(t),Js(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),l=t.updateQueue,l!==null&&ar(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&R(_a),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vl(Fe),ke(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Xy(e,t){switch(_s(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vl(Fe),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Sa(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Je),null;case 4:return _e(),null;case 10:return vl(t.type),null;case 22:case 23:return zt(t),Js(),e!==null&&R(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vl(Fe),null;case 25:return null;default:return null}}function Kh(e,t){switch(_s(t),t.tag){case 3:vl(Fe),_e();break;case 26:case 27:case 5:Sa(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:R(Je);break;case 10:vl(t.type);break;case 22:case 23:zt(t),Js(),e!==null&&R(_a);break;case 24:vl(Fe)}}function _i(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&e)===e){a=void 0;var r=l.create,d=l.inst;a=r(),d.destroy=a}l=l.next}while(l!==u)}}catch(p){we(t,t.return,p)}}function Fl(e,t,l){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var r=u.next;a=r;do{if((a.tag&e)===e){var d=a.inst,p=d.destroy;if(p!==void 0){d.destroy=void 0,u=t;var S=l,A=p;try{A()}catch(U){we(u,S,U)}}}a=a.next}while(a!==r)}}catch(U){we(t,t.return,U)}}function Zh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Hd(t,l)}catch(a){we(e,e.return,a)}}}function Vh(e,t,l){l.props=La(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){we(e,t,a)}}function Di(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(u){we(e,t,u)}}function ll(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){we(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){we(e,t,u)}else l.current=null}function Jh(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){we(e,e.return,u)}}function Cc(e,t,l){try{var a=e.stateNode;dg(a,e.type,l,t),a[pt]=t}catch(u){we(e,e.return,u)}}function $h(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$h(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ac(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=fl));else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ac(e,t,l),e=e.sibling;e!==null;)Ac(e,t,l),e=e.sibling}function nr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(nr(e,t,l),e=e.sibling;e!==null;)nr(e,t,l),e=e.sibling}function Fh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ct(t,a,l),t[it]=e,t[pt]=l}catch(r){we(e,e.return,r)}}var Sl=!1,Pe=!1,Rc=!1,Wh=typeof WeakSet=="function"?WeakSet:Set,at=null;function Ky(e,t){if(e=e.containerInfo,Fc=Mr,e=cd(e),js(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{l.nodeType,r.nodeType}catch{l=null;break e}var d=0,p=-1,S=-1,A=0,U=0,q=e,z=null;t:for(;;){for(var O;q!==l||u!==0&&q.nodeType!==3||(p=d+u),q!==r||a!==0&&q.nodeType!==3||(S=d+a),q.nodeType===3&&(d+=q.nodeValue.length),(O=q.firstChild)!==null;)z=q,q=O;for(;;){if(q===e)break t;if(z===l&&++A===u&&(p=d),z===r&&++U===a&&(S=d),(O=q.nextSibling)!==null)break;q=z,z=q.parentNode}q=O}l=p===-1||S===-1?null:{start:p,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wc={focusedElem:e,selectionRange:l},Mr=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)u=e[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,l=t,u=r.memoizedProps,r=r.memoizedState,a=l.stateNode;try{var P=La(l.type,u);e=a.getSnapshotBeforeUpdate(P,r),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){we(l,l.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)eo(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function Ih(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Nl(e,l),a&4&&_i(5,l);break;case 1:if(Nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(d){we(l,l.return,d)}else{var u=La(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){we(l,l.return,d)}}a&64&&Zh(l),a&512&&Di(l,l.return);break;case 3:if(Nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Hd(e,t)}catch(d){we(l,l.return,d)}}break;case 27:t===null&&a&4&&Fh(l);case 26:case 5:Nl(e,l),t===null&&a&4&&Jh(l),a&512&&Di(l,l.return);break;case 12:Nl(e,l);break;case 31:Nl(e,l),a&4&&tm(e,l);break;case 13:Nl(e,l),a&4&&lm(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=eg.bind(null,l),bg(e,l))));break;case 22:if(a=l.memoizedState!==null||Sl,!a){t=t!==null&&t.memoizedState!==null||Pe,u=Sl;var r=Pe;Sl=a,(Pe=t)&&!r?El(e,l,(l.subtreeFlags&8772)!==0):Nl(e,l),Sl=u,Pe=r}break;case 30:break;default:Nl(e,l)}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&is(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,yt=!1;function jl(e,t,l){for(l=l.child;l!==null;)em(e,t,l),l=l.sibling}function em(e,t,l){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(ni,l)}catch{}switch(l.tag){case 26:Pe||ll(l,t),jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Pe||ll(l,t);var a=Ye,u=yt;aa(l.type)&&(Ye=l.stateNode,yt=!1),jl(e,t,l),Gi(l.stateNode),Ye=a,yt=u;break;case 5:Pe||ll(l,t);case 6:if(a=Ye,u=yt,Ye=null,jl(e,t,l),Ye=a,yt=u,Ye!==null)if(yt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(l.stateNode)}catch(r){we(l,t,r)}else try{Ye.removeChild(l.stateNode)}catch(r){we(l,t,r)}break;case 18:Ye!==null&&(yt?(e=Ye,Zm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ln(e)):Zm(Ye,l.stateNode));break;case 4:a=Ye,u=yt,Ye=l.stateNode.containerInfo,yt=!0,jl(e,t,l),Ye=a,yt=u;break;case 0:case 11:case 14:case 15:Fl(2,l,t),Pe||Fl(4,l,t),jl(e,t,l);break;case 1:Pe||(ll(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Vh(l,t,a)),jl(e,t,l);break;case 21:jl(e,t,l);break;case 22:Pe=(a=Pe)||l.memoizedState!==null,jl(e,t,l),Pe=a;break;default:jl(e,t,l)}}function tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ln(e)}catch(l){we(t,t.return,l)}}}function lm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ln(e)}catch(l){we(t,t.return,l)}}function Zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wh),t;default:throw Error(c(435,e.tag))}}function ir(e,t){var l=Zy(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var u=tg.bind(null,e,a);a.then(u,u)}})}function gt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],r=e,d=t,p=d;e:for(;p!==null;){switch(p.tag){case 27:if(aa(p.type)){Ye=p.stateNode,yt=!1;break e}break;case 5:Ye=p.stateNode,yt=!1;break e;case 3:case 4:Ye=p.stateNode.containerInfo,yt=!0;break e}p=p.return}if(Ye===null)throw Error(c(160));em(r,d,u),Ye=null,yt=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)am(t,e),t=t.sibling}var Ft=null;function am(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),xt(e),a&4&&(Fl(3,e,e.return),_i(3,e),Fl(5,e,e.return));break;case 1:gt(t,e),xt(e),a&512&&(Pe||l===null||ll(l,l.return)),a&64&&Sl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=Ft;if(gt(t,e),xt(e),a&512&&(Pe||l===null||ll(l,l.return)),a&4){var r=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":r=u.getElementsByTagName("title")[0],(!r||r[ri]||r[it]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(a),u.head.insertBefore(r,u.querySelector("head > title"))),ct(r,a,l),r[it]=e,lt(r),a=r;break e;case"link":var d=ap("link","href",u).get(a+(l.href||""));if(d){for(var p=0;p<d.length;p++)if(r=d[p],r.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&r.getAttribute("rel")===(l.rel==null?null:l.rel)&&r.getAttribute("title")===(l.title==null?null:l.title)&&r.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){d.splice(p,1);break t}}r=u.createElement(a),ct(r,a,l),u.head.appendChild(r);break;case"meta":if(d=ap("meta","content",u).get(a+(l.content||""))){for(p=0;p<d.length;p++)if(r=d[p],r.getAttribute("content")===(l.content==null?null:""+l.content)&&r.getAttribute("name")===(l.name==null?null:l.name)&&r.getAttribute("property")===(l.property==null?null:l.property)&&r.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&r.getAttribute("charset")===(l.charSet==null?null:l.charSet)){d.splice(p,1);break t}}r=u.createElement(a),ct(r,a,l),u.head.appendChild(r);break;default:throw Error(c(468,a))}r[it]=e,lt(r),a=r}e.stateNode=a}else np(u,e.type,e.stateNode);else e.stateNode=lp(u,a,e.memoizedProps);else r!==a?(r===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):r.count--,a===null?np(u,e.type,e.stateNode):lp(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,l.memoizedProps)}break;case 27:gt(t,e),xt(e),a&512&&(Pe||l===null||ll(l,l.return)),l!==null&&a&4&&Cc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(gt(t,e),xt(e),a&512&&(Pe||l===null||ll(l,l.return)),e.flags&32){u=e.stateNode;try{rn(u,"")}catch(P){we(e,e.return,P)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Cc(e,u,l!==null?l.memoizedProps:u)),a&1024&&(Rc=!0);break;case 6:if(gt(t,e),xt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(P){we(e,e.return,P)}}break;case 3:if(Sr=null,u=Ft,Ft=xr(t.containerInfo),gt(t,e),Ft=u,xt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ln(t.containerInfo)}catch(P){we(e,e.return,P)}Rc&&(Rc=!1,nm(e));break;case 4:a=Ft,Ft=xr(e.stateNode.containerInfo),gt(t,e),xt(e),Ft=a;break;case 12:gt(t,e),xt(e);break;case 31:gt(t,e),xt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ir(e,a)));break;case 13:gt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(rr=Et()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ir(e,a)));break;case 22:u=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,A=Sl,U=Pe;if(Sl=A||u,Pe=U||S,gt(t,e),Pe=U,Sl=A,xt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(l===null||S||Sl||Pe||Qa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(r=S.stateNode,u)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{p=S.stateNode;var q=S.memoizedProps.style,z=q!=null&&q.hasOwnProperty("display")?q.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(P){we(S,S.return,P)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=u?"":S.memoizedProps}catch(P){we(S,S.return,P)}}}else if(t.tag===18){if(l===null){S=t;try{var O=S.stateNode;u?Vm(O,!0):Vm(S.stateNode,!1)}catch(P){we(S,S.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ir(e,l))));break;case 19:gt(t,e),xt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ir(e,a)));break;case 30:break;case 21:break;default:gt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if($h(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var u=l.stateNode,r=Tc(e);nr(e,r,u);break;case 5:var d=l.stateNode;l.flags&32&&(rn(d,""),l.flags&=-33);var p=Tc(e);nr(e,p,d);break;case 3:case 4:var S=l.stateNode.containerInfo,A=Tc(e);Ac(e,A,S);break;default:throw Error(c(161))}}catch(U){we(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;nm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ih(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Fl(4,t,t.return),Qa(t);break;case 1:ll(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Vh(t,t.return,l),Qa(t);break;case 27:Gi(t.stateNode);case 26:case 5:ll(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function El(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:El(u,r,l),_i(4,r);break;case 1:if(El(u,r,l),a=r,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(A){we(a,a.return,A)}if(a=r,u=a.updateQueue,u!==null){var p=a.stateNode;try{var S=u.shared.hiddenCallbacks;if(S!==null)for(u.shared.hiddenCallbacks=null,u=0;u<S.length;u++)Ud(S[u],p)}catch(A){we(a,a.return,A)}}l&&d&64&&Zh(r),Di(r,r.return);break;case 27:Fh(r);case 26:case 5:El(u,r,l),l&&a===null&&d&4&&Jh(r),Di(r,r.return);break;case 12:El(u,r,l);break;case 31:El(u,r,l),l&&d&4&&tm(u,r);break;case 13:El(u,r,l),l&&d&4&&lm(u,r);break;case 22:r.memoizedState===null&&El(u,r,l),Di(r,r.return);break;case 30:break;default:El(u,r,l)}t=t.sibling}}function zc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&bi(l))}function wc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e))}function Wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)im(e,t,l,a),t=t.sibling}function im(e,t,l,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,l,a),u&2048&&_i(9,t);break;case 1:Wt(e,t,l,a);break;case 3:Wt(e,t,l,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e)));break;case 12:if(u&2048){Wt(e,t,l,a),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,p=r.onPostCommit;typeof p=="function"&&p(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){we(t,t.return,S)}}else Wt(e,t,l,a);break;case 31:Wt(e,t,l,a);break;case 13:Wt(e,t,l,a);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?Wt(e,t,l,a):Ui(e,t):r._visibility&2?Wt(e,t,l,a):(r._visibility|=2,Tn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&zc(d,t);break;case 24:Wt(e,t,l,a),u&2048&&wc(t.alternate,t);break;default:Wt(e,t,l,a)}}function Tn(e,t,l,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,p=l,S=a,A=d.flags;switch(d.tag){case 0:case 11:case 15:Tn(r,d,p,S,u),_i(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?Tn(r,d,p,S,u):Ui(r,d):(U._visibility|=2,Tn(r,d,p,S,u)),u&&A&2048&&zc(d.alternate,d);break;case 24:Tn(r,d,p,S,u),u&&A&2048&&wc(d.alternate,d);break;default:Tn(r,d,p,S,u)}t=t.sibling}}function Ui(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,u=a.flags;switch(a.tag){case 22:Ui(l,a),u&2048&&zc(a.alternate,a);break;case 24:Ui(l,a),u&2048&&wc(a.alternate,a);break;default:Ui(l,a)}t=t.sibling}}var Hi=8192;function An(e,t,l){if(e.subtreeFlags&Hi)for(e=e.child;e!==null;)um(e,t,l),e=e.sibling}function um(e,t,l){switch(e.tag){case 26:An(e,t,l),e.flags&Hi&&e.memoizedState!==null&&Og(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:An(e,t,l);break;case 3:case 4:var a=Ft;Ft=xr(e.stateNode.containerInfo),An(e,t,l),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Hi,Hi=16777216,An(e,t,l),Hi=a):An(e,t,l));break;default:An(e,t,l)}}function rm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];at=a,cm(a,e)}rm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sm(e),e=e.sibling}function sm(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&Fl(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ur(e)):Bi(e);break;default:Bi(e)}}function ur(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];at=a,cm(a,e)}rm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Fl(8,t,t.return),ur(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ur(t));break;default:ur(t)}e=e.sibling}}function cm(e,t){for(;at!==null;){var l=at;switch(l.tag){case 0:case 11:case 15:Fl(8,l,t);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:bi(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,at=a;else e:for(l=e;at!==null;){a=at;var u=a.sibling,r=a.return;if(Ph(a),a===l){at=null;break e}if(u!==null){u.return=r,at=u;break e}at=r}}}var Vy={getCacheForType:function(e){var t=rt(Fe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return rt(Fe).controller.signal}},Jy=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Le=null,ve=null,xe=0,ze=0,wt=null,Wl=!1,Rn=!1,Oc=!1,Ml=0,Ke=0,Il=0,qa=0,_c=0,Ot=0,zn=0,Li=null,bt=null,Dc=!1,rr=0,om=0,sr=1/0,cr=null,Pl=null,et=0,ea=null,wn=null,Cl=0,Uc=0,Hc=null,fm=null,Qi=0,Bc=null;function _t(){return(Ae&2)!==0&&xe!==0?xe&-xe:_.T!==null?Gc():Tf()}function dm(){if(Ot===0)if((xe&536870912)===0||Ne){var e=yu;yu<<=1,(yu&3932160)===0&&(yu=262144),Ot=e}else Ot=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Ot}function St(e,t,l){(e===Le&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(On(e,0),ta(e,xe,Ot,!1)),ui(e,l),((Ae&2)===0||e!==Le)&&(e===Le&&((Ae&2)===0&&(qa|=l),Ke===4&&ta(e,xe,Ot,!1)),al(e))}function hm(e,t,l){if((Ae&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ii(e,t),u=a?Wy(e,t):Qc(e,t,!0),r=a;do{if(u===0){Rn&&!a&&ta(e,t,0,!1);break}else{if(l=e.current.alternate,r&&!$y(l)){u=Qc(e,t,!1),r=!1;continue}if(u===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var p=e;u=Li;var S=p.current.memoizedState.isDehydrated;if(S&&(On(p,d).flags|=256),d=Qc(p,d,!1),d!==2){if(Oc&&!S){p.errorRecoveryDisabledLanes|=r,qa|=r,u=4;break e}r=bt,bt=u,r!==null&&(bt===null?bt=r:bt.push.apply(bt,r))}u=d}if(r=!1,u!==2)continue}}if(u===1){On(e,0),ta(e,t,0,!0);break}e:{switch(a=e,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ta(a,t,Ot,!Wl);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(u=rr+300-Et(),10<u)){if(ta(a,t,Ot,!Wl),xu(a,0,!0)!==0)break e;Cl=t,a.timeoutHandle=Xm(mm.bind(null,a,l,bt,cr,Dc,t,Ot,qa,zn,Wl,r,"Throttled",-0,0),u);break e}mm(a,l,bt,cr,Dc,t,Ot,qa,zn,Wl,r,null,-0,0)}}break}while(!0);al(e)}function mm(e,t,l,a,u,r,d,p,S,A,U,q,z,O){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fl},um(t,r,q);var P=(r&62914560)===r?rr-Et():(r&4194048)===r?om-Et():0;if(P=_g(q,P),P!==null){Cl=r,e.cancelPendingCommit=P(jm.bind(null,e,t,r,l,a,u,d,p,S,U,q,null,z,O)),ta(e,r,d,!A);return}}jm(e,t,r,l,a,u,d,p,S)}function $y(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],r=u.getSnapshot;u=u.value;try{if(!Tt(r(),u))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ta(e,t,l,a){t&=~_c,t&=~qa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var r=31-Ct(u),d=1<<r;a[r]=-1,u&=~d}l!==0&&Ef(e,l,t)}function or(){return(Ae&6)===0?(qi(0),!1):!0}function Lc(){if(ve!==null){if(ze===0)var e=ve.return;else e=ve,pl=wa=null,ec(e),jn=null,ji=0,e=ve;for(;e!==null;)Kh(e.alternate,e),e=e.return;ve=null}}function On(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,pg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Cl=0,Lc(),Le=e,ve=l=hl(e.current,null),xe=t,ze=0,wt=null,Wl=!1,Rn=ii(e,t),Oc=!1,zn=Ot=_c=qa=Il=Ke=0,bt=Li=null,Dc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-Ct(a),r=1<<u;t|=e[u],a&=~r}return Ml=t,wu(),l}function pm(e,t){de=null,_.H=zi,t===Sn||t===Qu?(t=wd(),ze=3):t===Ys?(t=wd(),ze=4):ze=t===vc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,ve===null&&(Ke=1,Pu(e,Qt(t,e.current)))}function vm(){var e=Rt.current;return e===null?!0:(xe&4194048)===xe?Gt===null:(xe&62914560)===xe||(xe&536870912)!==0?e===Gt:!1}function ym(){var e=_.H;return _.H=zi,e===null?zi:e}function gm(){var e=_.A;return _.A=Vy,e}function fr(){Ke=4,Wl||(xe&4194048)!==xe&&Rt.current!==null||(Rn=!0),(Il&134217727)===0&&(qa&134217727)===0||Le===null||ta(Le,xe,Ot,!1)}function Qc(e,t,l){var a=Ae;Ae|=2;var u=ym(),r=gm();(Le!==e||xe!==t)&&(cr=null,On(e,t)),t=!1;var d=Ke;e:do try{if(ze!==0&&ve!==null){var p=ve,S=wt;switch(ze){case 8:Lc(),d=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var A=ze;if(ze=0,wt=null,_n(e,p,S,A),l&&Rn){d=0;break e}break;default:A=ze,ze=0,wt=null,_n(e,p,S,A)}}Fy(),d=Ke;break}catch(U){pm(e,U)}while(!0);return t&&e.shellSuspendCounter++,pl=wa=null,Ae=a,_.H=u,_.A=r,ve===null&&(Le=null,xe=0,wu()),d}function Fy(){for(;ve!==null;)xm(ve)}function Wy(e,t){var l=Ae;Ae|=2;var a=ym(),u=gm();Le!==e||xe!==t?(cr=null,sr=Et()+500,On(e,t)):Rn=ii(e,t);e:do try{if(ze!==0&&ve!==null){t=ve;var r=wt;t:switch(ze){case 1:ze=0,wt=null,_n(e,t,r,1);break;case 2:case 9:if(Rd(r)){ze=0,wt=null,bm(t);break}t=function(){ze!==2&&ze!==9||Le!==e||(ze=7),al(e)},r.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Rd(r)?(ze=0,wt=null,bm(t)):(ze=0,wt=null,_n(e,t,r,7));break;case 5:var d=null;switch(ve.tag){case 26:d=ve.memoizedState;case 5:case 27:var p=ve;if(d?ip(d):p.stateNode.complete){ze=0,wt=null;var S=p.sibling;if(S!==null)ve=S;else{var A=p.return;A!==null?(ve=A,dr(A)):ve=null}break t}}ze=0,wt=null,_n(e,t,r,5);break;case 6:ze=0,wt=null,_n(e,t,r,6);break;case 8:Lc(),Ke=6;break e;default:throw Error(c(462))}}Iy();break}catch(U){pm(e,U)}while(!0);return pl=wa=null,_.H=a,_.A=u,Ae=l,ve!==null?0:(Le=null,xe=0,wu(),Ke)}function Iy(){for(;ve!==null&&!S0();)xm(ve)}function xm(e){var t=Gh(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,t===null?dr(e):ve=t}function bm(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Bh(l,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Bh(l,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:ec(t);default:Kh(l,t),t=ve=gd(t,Ml),t=Gh(l,t,Ml)}e.memoizedProps=e.pendingProps,t===null?dr(e):ve=t}function _n(e,t,l,a){pl=wa=null,ec(t),jn=null,ji=0;var u=t.return;try{if(qy(e,u,t,l,xe)){Ke=1,Pu(e,Qt(l,e.current)),ve=null;return}}catch(r){if(u!==null)throw ve=u,r;Ke=1,Pu(e,Qt(l,e.current)),ve=null;return}t.flags&32768?(Ne||a===1?e=!0:Rn||(xe&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sm(t,e)):dr(t)}function dr(e){var t=e;do{if((t.flags&32768)!==0){Sm(t,Wl);return}e=t.return;var l=Gy(t.alternate,t,Ml);if(l!==null){ve=l;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Ke===0&&(Ke=5)}function Sm(e,t){do{var l=Xy(e.alternate,e);if(l!==null){l.flags&=32767,ve=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=l}while(e!==null);Ke=6,ve=null}function jm(e,t,l,a,u,r,d,p,S){e.cancelPendingCommit=null;do hr();while(et!==0);if((Ae&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(r=t.lanes|t.childLanes,r|=Ts,w0(e,l,r,d,p,S),e===Le&&(ve=Le=null,xe=0),wn=t,ea=e,Cl=l,Uc=r,Hc=u,fm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lg(pu,function(){return Tm(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,u=J.p,J.p=2,d=Ae,Ae|=4;try{Ky(e,t,l)}finally{Ae=d,J.p=u,_.T=a}}et=1,Nm(),Em(),Mm()}}function Nm(){if(et===1){et=0;var e=ea,t=wn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=J.p;J.p=2;var u=Ae;Ae|=4;try{am(t,e);var r=Wc,d=cd(e.containerInfo),p=r.focusedElem,S=r.selectionRange;if(d!==p&&p&&p.ownerDocument&&sd(p.ownerDocument.documentElement,p)){if(S!==null&&js(p)){var A=S.start,U=S.end;if(U===void 0&&(U=A),"selectionStart"in p)p.selectionStart=A,p.selectionEnd=Math.min(U,p.value.length);else{var q=p.ownerDocument||document,z=q&&q.defaultView||window;if(z.getSelection){var O=z.getSelection(),P=p.textContent.length,se=Math.min(S.start,P),He=S.end===void 0?se:Math.min(S.end,P);!O.extend&&se>He&&(d=He,He=se,se=d);var C=rd(p,se),E=rd(p,He);if(C&&E&&(O.rangeCount!==1||O.anchorNode!==C.node||O.anchorOffset!==C.offset||O.focusNode!==E.node||O.focusOffset!==E.offset)){var T=q.createRange();T.setStart(C.node,C.offset),O.removeAllRanges(),se>He?(O.addRange(T),O.extend(E.node,E.offset)):(T.setEnd(E.node,E.offset),O.addRange(T))}}}}for(q=[],O=p;O=O.parentNode;)O.nodeType===1&&q.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<q.length;p++){var Q=q[p];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Mr=!!Fc,Wc=Fc=null}finally{Ae=u,J.p=a,_.T=l}}e.current=t,et=2}}function Em(){if(et===2){et=0;var e=ea,t=wn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=J.p;J.p=2;var u=Ae;Ae|=4;try{Ih(e,t.alternate,t)}finally{Ae=u,J.p=a,_.T=l}}et=3}}function Mm(){if(et===4||et===3){et=0,j0();var e=ea,t=wn,l=Cl,a=fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,wn=ea=null,Cm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Pl=null),as(l),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(ni,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,u=J.p,J.p=2,_.T=null;try{for(var r=e.onRecoverableError,d=0;d<a.length;d++){var p=a[d];r(p.value,{componentStack:p.stack})}}finally{_.T=t,J.p=u}}(Cl&3)!==0&&hr(),al(e),u=e.pendingLanes,(l&261930)!==0&&(u&42)!==0?e===Bc?Qi++:(Qi=0,Bc=e):Qi=0,qi(0)}}function Cm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bi(t)))}function hr(){return Nm(),Em(),Mm(),Tm()}function Tm(){if(et!==5)return!1;var e=ea,t=Uc;Uc=0;var l=as(Cl),a=_.T,u=J.p;try{J.p=32>l?32:l,_.T=null,l=Hc,Hc=null;var r=ea,d=Cl;if(et=0,wn=ea=null,Cl=0,(Ae&6)!==0)throw Error(c(331));var p=Ae;if(Ae|=4,sm(r.current),im(r,r.current,d,l),Ae=p,qi(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(ni,r)}catch{}return!0}finally{J.p=u,_.T=a,Cm(e,t)}}function Am(e,t,l){t=Qt(l,t),t=pc(e.stateNode,t,2),e=Vl(e,t,2),e!==null&&(ui(e,2),al(e))}function we(e,t,l){if(e.tag===3)Am(e,e,l);else for(;t!==null;){if(t.tag===3){Am(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pl===null||!Pl.has(a))){e=Qt(l,e),l=Rh(2),a=Vl(t,l,2),a!==null&&(zh(l,a,t,e),ui(a,2),al(a));break}}t=t.return}}function qc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Jy;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(l)||(Oc=!0,u.add(l),e=Py.bind(null,e,t,l),t.then(e,e))}function Py(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(xe&l)===l&&(Ke===4||Ke===3&&(xe&62914560)===xe&&300>Et()-rr?(Ae&2)===0&&On(e,0):_c|=l,zn===xe&&(zn=0)),al(e)}function Rm(e,t){t===0&&(t=Nf()),e=Aa(e,t),e!==null&&(ui(e,t),al(e))}function eg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Rm(e,l)}function tg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),Rm(e,l)}function lg(e,t){return Pr(e,t)}var mr=null,Dn=null,kc=!1,pr=!1,Yc=!1,la=0;function al(e){e!==Dn&&e.next===null&&(Dn===null?mr=Dn=e:Dn=Dn.next=e),pr=!0,kc||(kc=!0,ng())}function qi(e,t){if(!Yc&&pr){Yc=!0;do for(var l=!1,a=mr;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var r=0;else{var d=a.suspendedLanes,p=a.pingedLanes;r=(1<<31-Ct(42|e)+1)-1,r&=u&~(d&~p),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(l=!0,_m(a,r))}else r=xe,r=xu(a,a===Le?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||ii(a,r)||(l=!0,_m(a,r));a=a.next}while(l);Yc=!1}}function ag(){zm()}function zm(){pr=kc=!1;var e=0;la!==0&&mg()&&(e=la);for(var t=Et(),l=null,a=mr;a!==null;){var u=a.next,r=wm(a,t);r===0?(a.next=null,l===null?mr=u:l.next=u,u===null&&(Dn=l)):(l=a,(e!==0||(r&3)!==0)&&(pr=!0)),a=u}et!==0&&et!==5||qi(e),la!==0&&(la=0)}function wm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-Ct(r),p=1<<d,S=u[d];S===-1?((p&l)===0||(p&a)!==0)&&(u[d]=z0(p,t)):S<=t&&(e.expiredLanes|=p),r&=~p}if(t=Le,l=xe,l=xu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&es(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ii(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&es(a),as(l)){case 2:case 8:l=Sf;break;case 32:l=pu;break;case 268435456:l=jf;break;default:l=pu}return a=Om.bind(null,e),l=Pr(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&es(a),e.callbackPriority=2,e.callbackNode=null,2}function Om(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(hr()&&e.callbackNode!==l)return null;var a=xe;return a=xu(e,e===Le?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(hm(e,a,t),wm(e,Et()),e.callbackNode!=null&&e.callbackNode===l?Om.bind(null,e):null)}function _m(e,t){if(hr())return null;hm(e,t,!0)}function ng(){vg(function(){(Ae&6)!==0?Pr(bf,ag):zm()})}function Gc(){if(la===0){var e=xn;e===0&&(e=vu,vu<<=1,(vu&261888)===0&&(vu=256)),la=e}return la}function Dm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nu(""+e)}function Um(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function ig(e,t,l,a,u){if(t==="submit"&&l&&l.stateNode===u){var r=Dm((u[pt]||null).action),d=a.submitter;d&&(t=(t=d[pt]||null)?Dm(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var p=new Tu("action","action",null,a,u);e.push({event:p,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var S=d?Um(u,d):new FormData(u);cc(l,{pending:!0,data:S,method:u.method,action:r},null,S)}}else typeof r=="function"&&(p.preventDefault(),S=d?Um(u,d):new FormData(u),cc(l,{pending:!0,data:S,method:u.method,action:r},r,S))},currentTarget:u}]})}}for(var Xc=0;Xc<Cs.length;Xc++){var Kc=Cs[Xc],ug=Kc.toLowerCase(),rg=Kc[0].toUpperCase()+Kc.slice(1);$t(ug,"on"+rg)}$t(dd,"onAnimationEnd"),$t(hd,"onAnimationIteration"),$t(md,"onAnimationStart"),$t("dblclick","onDoubleClick"),$t("focusin","onFocus"),$t("focusout","onBlur"),$t(Ny,"onTransitionRun"),$t(Ey,"onTransitionStart"),$t(My,"onTransitionCancel"),$t(pd,"onTransitionEnd"),nn("onMouseEnter",["mouseout","mouseover"]),nn("onMouseLeave",["mouseout","mouseover"]),nn("onPointerEnter",["pointerout","pointerover"]),nn("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),sg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function Hm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],u=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var d=a.length-1;0<=d;d--){var p=a[d],S=p.instance,A=p.currentTarget;if(p=p.listener,S!==r&&u.isPropagationStopped())break e;r=p,u.currentTarget=A;try{r(u)}catch(U){zu(U)}u.currentTarget=null,r=S}else for(d=0;d<a.length;d++){if(p=a[d],S=p.instance,A=p.currentTarget,p=p.listener,S!==r&&u.isPropagationStopped())break e;r=p,u.currentTarget=A;try{r(u)}catch(U){zu(U)}u.currentTarget=null,r=S}}}}function ye(e,t){var l=t[ns];l===void 0&&(l=t[ns]=new Set);var a=e+"__bubble";l.has(a)||(Bm(t,e,2,!1),l.add(a))}function Zc(e,t,l){var a=0;t&&(a|=4),Bm(l,e,a,t)}var vr="_reactListening"+Math.random().toString(36).slice(2);function Vc(e){if(!e[vr]){e[vr]=!0,zf.forEach(function(l){l!=="selectionchange"&&(sg.has(l)||Zc(l,!1,e),Zc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vr]||(t[vr]=!0,Zc("selectionchange",!1,t))}}function Bm(e,t,l,a){switch(dp(t)){case 2:var u=Hg;break;case 8:u=Bg;break;default:u=so}l=u.bind(null,t,l,e),u=void 0,!hs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,l,{capture:!0,passive:u}):e.addEventListener(t,l,!0):u!==void 0?e.addEventListener(t,l,{passive:u}):e.addEventListener(t,l,!1)}function Jc(e,t,l,a,u){var r=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var p=a.stateNode.containerInfo;if(p===u)break;if(d===4)for(d=a.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;p!==null;){if(d=tn(p),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){a=r=d;continue e}p=p.parentNode}}a=a.return}Yf(function(){var A=r,U=fs(l),q=[];e:{var z=vd.get(e);if(z!==void 0){var O=Tu,P=e;switch(e){case"keypress":if(Mu(l)===0)break e;case"keydown":case"keyup":O=ty;break;case"focusin":P="focus",O=ys;break;case"focusout":P="blur",O=ys;break;case"beforeblur":case"afterblur":O=ys;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Kf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=G0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ny;break;case dd:case hd:case md:O=Z0;break;case pd:O=uy;break;case"scroll":case"scrollend":O=k0;break;case"wheel":O=sy;break;case"copy":case"cut":case"paste":O=J0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Vf;break;case"toggle":case"beforetoggle":O=oy}var se=(t&4)!==0,He=!se&&(e==="scroll"||e==="scrollend"),C=se?z!==null?z+"Capture":null:z;se=[];for(var E=A,T;E!==null;){var Q=E;if(T=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||T===null||C===null||(Q=ci(E,C),Q!=null&&se.push(Yi(E,Q,T))),He)break;E=E.return}0<se.length&&(z=new O(z,P,null,l,U),q.push({event:z,listeners:se}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",z&&l!==os&&(P=l.relatedTarget||l.fromElement)&&(tn(P)||P[en]))break e;if((O||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,O?(P=l.relatedTarget||l.toElement,O=A,P=P?tn(P):null,P!==null&&(He=m(P),se=P.tag,P!==He||se!==5&&se!==27&&se!==6)&&(P=null)):(O=null,P=A),O!==P)){if(se=Kf,Q="onMouseLeave",C="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(se=Vf,Q="onPointerLeave",C="onPointerEnter",E="pointer"),He=O==null?z:si(O),T=P==null?z:si(P),z=new se(Q,E+"leave",O,l,U),z.target=He,z.relatedTarget=T,Q=null,tn(U)===A&&(se=new se(C,E+"enter",P,l,U),se.target=T,se.relatedTarget=He,Q=se),He=Q,O&&P)t:{for(se=cg,C=O,E=P,T=0,Q=C;Q;Q=se(Q))T++;Q=0;for(var ue=E;ue;ue=se(ue))Q++;for(;0<T-Q;)C=se(C),T--;for(;0<Q-T;)E=se(E),Q--;for(;T--;){if(C===E||E!==null&&C===E.alternate){se=C;break t}C=se(C),E=se(E)}se=null}else se=null;O!==null&&Lm(q,z,O,se,!1),P!==null&&He!==null&&Lm(q,He,P,se,!0)}}e:{if(z=A?si(A):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var Ce=td;else if(Pf(z))if(ld)Ce=by;else{Ce=gy;var te=yy}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?A&&cs(A.elementType)&&(Ce=td):Ce=xy;if(Ce&&(Ce=Ce(e,A))){ed(q,Ce,l,U);break e}te&&te(e,z,A),e==="focusout"&&A&&z.type==="number"&&A.memoizedProps.value!=null&&ss(z,"number",z.value)}switch(te=A?si(A):window,e){case"focusin":(Pf(te)||te.contentEditable==="true")&&(fn=te,Ns=A,yi=null);break;case"focusout":yi=Ns=fn=null;break;case"mousedown":Es=!0;break;case"contextmenu":case"mouseup":case"dragend":Es=!1,od(q,l,U);break;case"selectionchange":if(jy)break;case"keydown":case"keyup":od(q,l,U)}var he;if(xs)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else on?Wf(e,l)&&(be="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(be="onCompositionStart");be&&(Jf&&l.locale!=="ko"&&(on||be!=="onCompositionStart"?be==="onCompositionEnd"&&on&&(he=Gf()):(ql=U,ms="value"in ql?ql.value:ql.textContent,on=!0)),te=yr(A,be),0<te.length&&(be=new Zf(be,e,null,l,U),q.push({event:be,listeners:te}),he?be.data=he:(he=If(l),he!==null&&(be.data=he)))),(he=dy?hy(e,l):my(e,l))&&(be=yr(A,"onBeforeInput"),0<be.length&&(te=new Zf("onBeforeInput","beforeinput",null,l,U),q.push({event:te,listeners:be}),te.data=he)),ig(q,e,A,l,U)}Hm(q,t)})}function Yi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function yr(e,t){for(var l=t+"Capture",a=[];e!==null;){var u=e,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=ci(e,l),u!=null&&a.unshift(Yi(e,u,r)),u=ci(e,t),u!=null&&a.push(Yi(e,u,r))),e.tag===3)return a;e=e.return}return[]}function cg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lm(e,t,l,a,u){for(var r=t._reactName,d=[];l!==null&&l!==a;){var p=l,S=p.alternate,A=p.stateNode;if(p=p.tag,S!==null&&S===a)break;p!==5&&p!==26&&p!==27||A===null||(S=A,u?(A=ci(l,r),A!=null&&d.unshift(Yi(l,A,S))):u||(A=ci(l,r),A!=null&&d.push(Yi(l,A,S)))),l=l.return}d.length!==0&&e.push({event:t,listeners:d})}var og=/\r\n?/g,fg=/\u0000|\uFFFD/g;function Qm(e){return(typeof e=="string"?e:""+e).replace(og,`
49
+ `).replace(fg,"")}function qm(e,t){return t=Qm(t),Qm(e)===t}function Ue(e,t,l,a,u,r){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||rn(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&rn(e,""+a);break;case"className":Su(e,"class",a);break;case"tabIndex":Su(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Su(e,l,a);break;case"style":qf(e,a,r);break;case"data":if(t!=="object"){Su(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Nu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.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 r=="function"&&(l==="formAction"?(t!=="input"&&Ue(e,t,"name",u.name,u,null),Ue(e,t,"formEncType",u.formEncType,u,null),Ue(e,t,"formMethod",u.formMethod,u,null),Ue(e,t,"formTarget",u.formTarget,u,null)):(Ue(e,t,"encType",u.encType,u,null),Ue(e,t,"method",u.method,u,null),Ue(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Nu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=fl);break;case"onScroll":a!=null&&ye("scroll",e);break;case"onScrollEnd":a!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Nu(""+a),e.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"?e.setAttribute(l,""+a):e.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"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ye("beforetoggle",e),ye("toggle",e),bu(e,"popover",a);break;case"xlinkActuate":ol(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ol(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ol(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ol(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ol(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ol(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ol(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ol(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ol(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bu(e,"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=Q0.get(l)||l,bu(e,l,a))}}function $c(e,t,l,a,u,r){switch(l){case"style":qf(e,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?rn(e,a):(typeof a=="number"||typeof a=="bigint")&&rn(e,""+a);break;case"onScroll":a!=null&&ye("scroll",e);break;case"onScrollEnd":a!=null&&ye("scrollend",e);break;case"onClick":a!=null&&(e.onclick=fl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),t=l.slice(2,u?l.length-7:void 0),r=e[pt]||null,r=r!=null?r[l]:null,typeof r=="function"&&e.removeEventListener(t,r,u),typeof a=="function")){typeof r!="function"&&r!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,u);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):bu(e,l,a)}}}function ct(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var a=!1,u=!1,r;for(r in l)if(l.hasOwnProperty(r)){var d=l[r];if(d!=null)switch(r){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ue(e,t,r,d,l,null)}}u&&Ue(e,t,"srcSet",l.srcSet,l,null),a&&Ue(e,t,"src",l.src,l,null);return;case"input":ye("invalid",e);var p=r=d=u=null,S=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var U=l[a];if(U!=null)switch(a){case"name":u=U;break;case"type":d=U;break;case"checked":S=U;break;case"defaultChecked":A=U;break;case"value":r=U;break;case"defaultValue":p=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:Ue(e,t,a,U,l,null)}}Hf(e,r,p,S,A,d,u,!1);return;case"select":ye("invalid",e),a=d=r=null;for(u in l)if(l.hasOwnProperty(u)&&(p=l[u],p!=null))switch(u){case"value":r=p;break;case"defaultValue":d=p;break;case"multiple":a=p;default:Ue(e,t,u,p,l,null)}t=r,l=d,e.multiple=!!a,t!=null?un(e,!!a,t,!1):l!=null&&un(e,!!a,l,!0);return;case"textarea":ye("invalid",e),r=u=a=null;for(d in l)if(l.hasOwnProperty(d)&&(p=l[d],p!=null))switch(d){case"value":a=p;break;case"defaultValue":u=p;break;case"children":r=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(c(91));break;default:Ue(e,t,d,p,l,null)}Lf(e,a,u,r);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ue(e,t,S,a,l,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(a=0;a<ki.length;a++)ye(ki[a],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ue(e,t,A,a,l,null)}return;default:if(cs(t)){for(U in l)l.hasOwnProperty(U)&&(a=l[U],a!==void 0&&$c(e,t,U,a,l,void 0));return}}for(p in l)l.hasOwnProperty(p)&&(a=l[p],a!=null&&Ue(e,t,p,a,l,null))}function dg(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,d=null,p=null,S=null,A=null,U=null;for(O in l){var q=l[O];if(l.hasOwnProperty(O)&&q!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=q;default:a.hasOwnProperty(O)||Ue(e,t,O,null,a,q)}}for(var z in a){var O=a[z];if(q=l[z],a.hasOwnProperty(z)&&(O!=null||q!=null))switch(z){case"type":r=O;break;case"name":u=O;break;case"checked":A=O;break;case"defaultChecked":U=O;break;case"value":d=O;break;case"defaultValue":p=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,t));break;default:O!==q&&Ue(e,t,z,O,a,q)}}rs(e,d,p,S,A,U,r,u);return;case"select":O=d=p=z=null;for(r in l)if(S=l[r],l.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":O=S;default:a.hasOwnProperty(r)||Ue(e,t,r,null,a,S)}for(u in a)if(r=a[u],S=l[u],a.hasOwnProperty(u)&&(r!=null||S!=null))switch(u){case"value":z=r;break;case"defaultValue":p=r;break;case"multiple":d=r;default:r!==S&&Ue(e,t,u,r,a,S)}t=p,l=d,a=O,z!=null?un(e,!!l,z,!1):!!a!=!!l&&(t!=null?un(e,!!l,t,!0):un(e,!!l,l?[]:"",!1));return;case"textarea":O=z=null;for(p in l)if(u=l[p],l.hasOwnProperty(p)&&u!=null&&!a.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Ue(e,t,p,null,a,u)}for(d in a)if(u=a[d],r=l[d],a.hasOwnProperty(d)&&(u!=null||r!=null))switch(d){case"value":z=u;break;case"defaultValue":O=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&Ue(e,t,d,u,a,r)}Bf(e,z,O);return;case"option":for(var P in l)if(z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:Ue(e,t,P,null,a,z)}for(S in a)if(z=a[S],O=l[S],a.hasOwnProperty(S)&&z!==O&&(z!=null||O!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ue(e,t,S,z,a,O)}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 se in l)z=l[se],l.hasOwnProperty(se)&&z!=null&&!a.hasOwnProperty(se)&&Ue(e,t,se,null,a,z);for(A in a)if(z=a[A],O=l[A],a.hasOwnProperty(A)&&z!==O&&(z!=null||O!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Ue(e,t,A,z,a,O)}return;default:if(cs(t)){for(var He in l)z=l[He],l.hasOwnProperty(He)&&z!==void 0&&!a.hasOwnProperty(He)&&$c(e,t,He,void 0,a,z);for(U in a)z=a[U],O=l[U],!a.hasOwnProperty(U)||z===O||z===void 0&&O===void 0||$c(e,t,U,z,a,O);return}}for(var C in l)z=l[C],l.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Ue(e,t,C,null,a,z);for(q in a)z=a[q],O=l[q],!a.hasOwnProperty(q)||z===O||z==null&&O==null||Ue(e,t,q,z,a,O)}function km(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var u=l[a],r=u.transferSize,d=u.initiatorType,p=u.duration;if(r&&p&&km(d)){for(d=0,p=u.responseEnd,a+=1;a<l.length;a++){var S=l[a],A=S.startTime;if(A>p)break;var U=S.transferSize,q=S.initiatorType;U&&km(q)&&(S=S.responseEnd,d+=U*(S<p?1:(p-A)/(S-A)))}if(--a,t+=8*(r+d)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Fc=null,Wc=null;function gr(e){return e.nodeType===9?e:e.ownerDocument}function Ym(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ic(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pc=null;function mg(){var e=window.event;return e&&e.type==="popstate"?e===Pc?!1:(Pc=e,!0):(Pc=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,pg=typeof clearTimeout=="function"?clearTimeout:void 0,Km=typeof Promise=="function"?Promise:void 0,vg=typeof queueMicrotask=="function"?queueMicrotask:typeof Km<"u"?function(e){return Km.resolve(null).then(e).catch(yg)}:Xm;function yg(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Zm(e,t){var l=t,a=0;do{var u=l.nextSibling;if(e.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(u),Ln(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Gi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Gi(l);for(var r=l.firstChild;r;){var d=r.nextSibling,p=r.nodeName;r[ri]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&r.rel.toLowerCase()==="stylesheet"||l.removeChild(r),r=d}}else l==="body"&&Gi(e.ownerDocument.body);l=u}while(l);Ln(t)}function Vm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function eo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":eo(l),is(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function gg(e,t,l,a){for(;e.nodeType===1;){var u=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ri])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function xg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Xt(e.nextSibling),e===null))return null;return e}function Jm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function to(e){return e.data==="$?"||e.data==="$~"}function lo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bg(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ao=null;function $m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Xt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Wm(e,t,l){switch(t=gr(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Gi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);is(e)}var Kt=new Map,Im=new Set;function xr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tl=J.d;J.d={f:Sg,r:jg,D:Ng,C:Eg,L:Mg,m:Cg,X:Ag,S:Tg,M:Rg};function Sg(){var e=Tl.f(),t=or();return e||t}function jg(e){var t=ln(e);t!==null&&t.tag===5&&t.type==="form"?ph(t):Tl.r(e)}var Un=typeof document>"u"?null:document;function Pm(e,t,l){var a=Un;if(a&&typeof t=="string"&&t){var u=Bt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),Im.has(u)||(Im.add(u),e={rel:e,crossOrigin:l,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ct(t,"link",e),lt(t),a.head.appendChild(t)))}}function Ng(e){Tl.D(e),Pm("dns-prefetch",e,null)}function Eg(e,t){Tl.C(e,t),Pm("preconnect",e,t)}function Mg(e,t,l){Tl.L(e,t,l);var a=Un;if(a&&e&&t){var u='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+Bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+Bt(l.imageSizes)+'"]')):u+='[href="'+Bt(e)+'"]';var r=u;switch(t){case"style":r=Hn(e);break;case"script":r=Bn(e)}Kt.has(r)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Kt.set(r,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Xi(r))||t==="script"&&a.querySelector(Ki(r))||(t=a.createElement("link"),ct(t,"link",e),lt(t),a.head.appendChild(t)))}}function Cg(e,t){Tl.m(e,t);var l=Un;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Bt(a)+'"][href="'+Bt(e)+'"]',r=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Bn(e)}if(!Kt.has(r)&&(e=x({rel:"modulepreload",href:e},t),Kt.set(r,e),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ki(r)))return}a=l.createElement("link"),ct(a,"link",e),lt(a),l.head.appendChild(a)}}}function Tg(e,t,l){Tl.S(e,t,l);var a=Un;if(a&&e){var u=an(a).hoistableStyles,r=Hn(e);t=t||"default";var d=u.get(r);if(!d){var p={loading:0,preload:null};if(d=a.querySelector(Xi(r)))p.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Kt.get(r))&&no(e,l);var S=d=a.createElement("link");lt(S),ct(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){p.loading|=1}),S.addEventListener("error",function(){p.loading|=2}),p.loading|=4,br(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:p},u.set(r,d)}}}function Ag(e,t){Tl.X(e,t);var l=Un;if(l&&e){var a=an(l).hoistableScripts,u=Bn(e),r=a.get(u);r||(r=l.querySelector(Ki(u)),r||(e=x({src:e,async:!0},t),(t=Kt.get(u))&&io(e,t),r=l.createElement("script"),lt(r),ct(r,"link",e),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function Rg(e,t){Tl.M(e,t);var l=Un;if(l&&e){var a=an(l).hoistableScripts,u=Bn(e),r=a.get(u);r||(r=l.querySelector(Ki(u)),r||(e=x({src:e,async:!0,type:"module"},t),(t=Kt.get(u))&&io(e,t),r=l.createElement("script"),lt(r),ct(r,"link",e),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function ep(e,t,l,a){var u=(u=I.current)?xr(u):null;if(!u)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Hn(l.href),l=an(u).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Hn(l.href);var r=an(u).hoistableStyles,d=r.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=u.querySelector(Xi(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Kt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Kt.set(e,l),r||zg(u,e,l,d.state))),t&&a===null)throw Error(c(528,""));return d}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Bn(l),l=an(u).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Hn(e){return'href="'+Bt(e)+'"'}function Xi(e){return'link[rel="stylesheet"]['+e+"]"}function tp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function zg(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ct(t,"link",l),lt(t),e.head.appendChild(t))}function Bn(e){return'[src="'+Bt(e)+'"]'}function Ki(e){return"script[async]"+e}function lp(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Bt(l.href)+'"]');if(a)return t.instance=a,lt(a),a;var u=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),lt(a),ct(a,"style",u),br(a,l.precedence,e),t.instance=a;case"stylesheet":u=Hn(l.href);var r=e.querySelector(Xi(u));if(r)return t.state.loading|=4,t.instance=r,lt(r),r;a=tp(l),(u=Kt.get(u))&&no(a,u),r=(e.ownerDocument||e).createElement("link"),lt(r);var d=r;return d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),ct(r,"link",a),t.state.loading|=4,br(r,l.precedence,e),t.instance=r;case"script":return r=Bn(l.src),(u=e.querySelector(Ki(r)))?(t.instance=u,lt(u),u):(a=l,(u=Kt.get(r))&&(a=x({},l),io(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),lt(u),ct(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,br(a,l.precedence,e));return t.instance}function br(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,r=u,d=0;d<a.length;d++){var p=a[d];if(p.dataset.precedence===t)r=p;else if(r!==u)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function no(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function io(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Sr=null;function ap(e,t,l){if(Sr===null){var a=new Map,u=Sr=new Map;u.set(l,a)}else u=Sr,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),u=0;u<l.length;u++){var r=l[u];if(!(r[ri]||r[it]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var p=a.get(d);p?p.push(r):a.set(d,[r])}}return a}function np(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function wg(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ip(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Og(e,t,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 u=Hn(a.href),r=t.querySelector(Xi(u));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=r,lt(r);return}r=t.ownerDocument||t,a=tp(a),(u=Kt.get(u))&&no(a,u),r=r.createElement("link"),lt(r);var d=r;d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),ct(r,"link",a),l.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=jr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var uo=0;function _g(e,t){return e.stylesheets&&e.count===0&&Er(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Er(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&uo===0&&(uo=62500*hg());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Er(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>uo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function jr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Er(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Nr=null;function Er(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Nr=new Map,t.forEach(Dg,e),Nr=null,jr.call(e))}function Dg(e,t){if(!(t.state.loading&4)){var l=Nr.get(e);if(l)var a=l.get(null);else{l=new Map,Nr.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var d=u[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(l.set(d.dataset.precedence,d),a=d)}a&&l.set(null,a)}u=t.instance,d=u.getAttribute("data-precedence"),r=l.get(d)||a,r===a&&l.set(null,u),l.set(d,u),this.count++,a=jr.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),r?r.parentNode.insertBefore(u,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Zi={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Ug(e,t,l,a,u,r,d,p,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ts(0),this.hiddenUpdates=ts(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function up(e,t,l,a,u,r,d,p,S,A,U,q){return e=new Ug(e,t,l,d,S,A,U,q,p),t=1,r===!0&&(t|=24),r=At(3,null,null,t),e.current=r,r.stateNode=e,t=Qs(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:l,cache:t},Gs(r),e}function rp(e){return e?(e=mn,e):mn}function sp(e,t,l,a,u,r){u=rp(u),a.context===null?a.context=u:a.pendingContext=u,a=Zl(t),a.payload={element:l},r=r===void 0?null:r,r!==null&&(a.callback=r),l=Vl(e,a,t),l!==null&&(St(l,e,t),Ei(l,e,t))}function cp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ro(e,t){cp(e,t),(e=e.alternate)&&cp(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=Aa(e,67108864);t!==null&&St(t,e,67108864),ro(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=_t();t=ls(t);var l=Aa(e,t);l!==null&&St(l,e,t),ro(e,t)}}var Mr=!0;function Hg(e,t,l,a){var u=_.T;_.T=null;var r=J.p;try{J.p=2,so(e,t,l,a)}finally{J.p=r,_.T=u}}function Bg(e,t,l,a){var u=_.T;_.T=null;var r=J.p;try{J.p=8,so(e,t,l,a)}finally{J.p=r,_.T=u}}function so(e,t,l,a){if(Mr){var u=co(a);if(u===null)Jc(e,t,a,Cr,l),hp(e,a);else if(Qg(u,e,t,l,a))a.stopPropagation();else if(hp(e,a),t&4&&-1<Lg.indexOf(e)){for(;u!==null;){var r=ln(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=Na(r.pendingLanes);if(d!==0){var p=r;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var S=1<<31-Ct(d);p.entanglements[1]|=S,d&=~S}al(r),(Ae&6)===0&&(sr=Et()+500,qi(0))}}break;case 31:case 13:p=Aa(r,2),p!==null&&St(p,r,2),or(),ro(r,2)}if(r=co(a),r===null&&Jc(e,t,a,Cr,l),r===u)break;u=r}u!==null&&a.stopPropagation()}else Jc(e,t,a,null,l)}}function co(e){return e=fs(e),oo(e)}var Cr=null;function oo(e){if(Cr=null,e=tn(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cr=e,null}function dp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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(N0()){case bf:return 2;case Sf:return 8;case pu:case E0:return 32;case jf:return 268435456;default:return 32}default:return 32}}var fo=!1,na=null,ia=null,ua=null,Vi=new Map,Ji=new Map,ra=[],Lg="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 hp(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":Vi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ji.delete(t.pointerId)}}function $i(e,t,l,a,u,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:r,targetContainers:[u]},t!==null&&(t=ln(t),t!==null&&op(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Qg(e,t,l,a,u){switch(t){case"focusin":return na=$i(na,e,t,l,a,u),!0;case"dragenter":return ia=$i(ia,e,t,l,a,u),!0;case"mouseover":return ua=$i(ua,e,t,l,a,u),!0;case"pointerover":var r=u.pointerId;return Vi.set(r,$i(Vi.get(r)||null,e,t,l,a,u)),!0;case"gotpointercapture":return r=u.pointerId,Ji.set(r,$i(Ji.get(r)||null,e,t,l,a,u)),!0}return!1}function mp(e){var t=tn(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Af(e.priority,function(){fp(l)});return}}else if(t===31){if(t=g(l),t!==null){e.blockedOn=t,Af(e.priority,function(){fp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=co(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);os=a,l.target.dispatchEvent(a),os=null}else return t=ln(l),t!==null&&op(t),e.blockedOn=l,!1;t.shift()}return!0}function pp(e,t,l){Tr(e)&&l.delete(t)}function qg(){fo=!1,na!==null&&Tr(na)&&(na=null),ia!==null&&Tr(ia)&&(ia=null),ua!==null&&Tr(ua)&&(ua=null),Vi.forEach(pp),Ji.forEach(pp)}function Ar(e,t){e.blockedOn===t&&(e.blockedOn=null,fo||(fo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,qg)))}var Rr=null;function vp(e){Rr!==e&&(Rr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Rr===e&&(Rr=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(oo(a||l)===null)continue;break}var r=ln(l);r!==null&&(e.splice(t,3),t-=3,cc(r,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function Ln(e){function t(S){return Ar(S,e)}na!==null&&Ar(na,e),ia!==null&&Ar(ia,e),ua!==null&&Ar(ua,e),Vi.forEach(t),Ji.forEach(t);for(var l=0;l<ra.length;l++){var a=ra[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ra.length&&(l=ra[0],l.blockedOn===null);)mp(l),l.blockedOn===null&&ra.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],r=l[a+1],d=u[pt]||null;if(typeof r=="function")d||vp(l);else if(d){var p=null;if(r&&r.hasAttribute("formAction")){if(u=r,d=r[pt]||null)p=d.formAction;else if(oo(u)!==null)continue}else p=d.action;typeof p=="function"?l[a+1]=p:(l.splice(a,3),a-=3),vp(l)}}}function yp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return u=d})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function ho(e){this._internalRoot=e}zr.prototype.render=ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=_t();sp(l,a,e,t,null,null)},zr.prototype.unmount=ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sp(e.current,2,null,e,null,null),or(),t[en]=null}};function zr(e){this._internalRoot=e}zr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ra.length&&t!==0&&t<ra[l].priority;l++);ra.splice(l,0,e),l===0&&mp(e)}};var gp=i.version;if(gp!=="19.2.7")throw Error(c(527,gp,"19.2.7"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=y(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var kg={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wr.isDisabled&&wr.supportsFiber)try{ni=wr.inject(kg),Mt=wr}catch{}}return Wi.createRoot=function(e,t){if(!f(e))throw Error(c(299));var l=!1,a="",u=Mh,r=Ch,d=Th;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=up(e,1,!1,null,null,l,a,null,u,r,d,yp),e[en]=t.current,Vc(e),new ho(t)},Wi.hydrateRoot=function(e,t,l){if(!f(e))throw Error(c(299));var a=!1,u="",r=Mh,d=Ch,p=Th,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(r=l.onUncaughtError),l.onCaughtError!==void 0&&(d=l.onCaughtError),l.onRecoverableError!==void 0&&(p=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=up(e,1,!0,t,l??null,a,u,S,r,d,p,yp),t.context=rp(null),l=t.current,a=_t(),a=ls(a),u=Zl(a),u.callback=null,Vl(l,u,a),l=a,t.current.lanes=l,ui(t,l),al(t),e[en]=t.current,Vc(e),new zr(t)},Wi.version="19.2.7",Wi}var Rp;function Pg(){if(Rp)return go.exports;Rp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),go.exports=Ig(),go.exports}var ex=Pg();/**
50
+ * react-router v7.17.0
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var zp="popstate";function wp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function tx(n={}){function i(c,f){var y;let m=(y=f.state)==null?void 0:y.masked,{pathname:h,search:g,hash:v}=m||c.location;return wo("",{pathname:h,search:g,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default",m?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function s(c,f){return typeof f=="string"?f:au(f)}return ax(i,s,null,n)}function Ge(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function rl(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function lx(){return Math.random().toString(36).substring(2,10)}function Op(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function wo(n,i,s=null,c,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?ti(i):i,state:s,key:i&&i.key||c||lx(),mask:f}}function au({pathname:n="/",search:i="",hash:s=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function ti(n){let i={};if(n){let s=n.indexOf("#");s>=0&&(i.hash=n.substring(s),n=n.substring(0,s));let c=n.indexOf("?");c>=0&&(i.search=n.substring(c),n=n.substring(0,c)),n&&(i.pathname=n)}return i}function ax(n,i,s,c={}){let{window:f=document.defaultView,v5Compat:m=!1}=c,h=f.history,g="POP",v=null,y=b();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function b(){return(h.state||{idx:null}).idx}function x(){g="POP";let k=b(),H=k==null?null:k-y;y=k,v&&v({action:g,location:D.location,delta:H})}function w(k,H){g="PUSH";let V=wp(k)?k:wo(D.location,k,H);y=b()+1;let Y=Op(V,y),X=D.createHref(V.mask||V);try{h.pushState(Y,"",X)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;f.location.assign(X)}m&&v&&v({action:g,location:D.location,delta:1})}function L(k,H){g="REPLACE";let V=wp(k)?k:wo(D.location,k,H);y=b();let Y=Op(V,y),X=D.createHref(V.mask||V);h.replaceState(Y,"",X),m&&v&&v({action:g,location:D.location,delta:0})}function B(k){return nx(f,k)}let D={get action(){return g},get location(){return n(f,h)},listen(k){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(zp,x),v=k,()=>{f.removeEventListener(zp,x),v=null}},createHref(k){return i(f,k)},createURL:B,encodeLocation(k){let H=B(k);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:w,replace:L,go(k){return h.go(k)}};return D}function nx(n,i,s=!1){let c="http://localhost";n&&(c=n.location.origin!=="null"?n.location.origin:n.location.href),Ge(c,"No window.location.(origin|href) available to create URL");let f=typeof i=="string"?i:au(i);return f=f.replace(/ $/,"%20"),!s&&f.startsWith("//")&&(f=c+f),new URL(f,c)}function pv(n,i,s="/"){return ix(n,i,s,!1)}function ix(n,i,s,c,f){let m=typeof i=="string"?ti(i):i,h=Dl(m.pathname||"/",s);if(h==null)return null;let g=ux(n),v=null,y=gx(h);for(let b=0;v==null&&b<g.length;++b)v=vx(g[b],y,c);return v}function ux(n){let i=vv(n);return rx(i),i}function vv(n,i=[],s=[],c="",f=!1){let m=(h,g,v=f,y)=>{let b={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(c)&&v)return;Ge(b.relativePath.startsWith(c),`Absolute route path "${b.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(c.length)}let x=Pt([c,b.relativePath]),w=s.concat(b);h.children&&h.children.length>0&&(Ge(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),vv(h.children,i,w,x,v)),!(h.path==null&&!h.index)&&i.push({path:x,score:mx(x,h.index),routesMeta:w})};return n.forEach((h,g)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))m(h,g);else for(let y of yv(h.path))m(h,g,!0,y)}),i}function yv(n){let i=n.split("/");if(i.length===0)return[];let[s,...c]=i,f=s.endsWith("?"),m=s.replace(/\?$/,"");if(c.length===0)return f?[m,""]:[m];let h=yv(c.join("/")),g=[];return g.push(...h.map(v=>v===""?m:[m,v].join("/"))),f&&g.push(...h),g.map(v=>n.startsWith("/")&&v===""?"/":v)}function rx(n){n.sort((i,s)=>i.score!==s.score?s.score-i.score:px(i.routesMeta.map(c=>c.childrenIndex),s.routesMeta.map(c=>c.childrenIndex)))}var sx=/^:[\w-]+$/,cx=3,ox=2,fx=1,dx=10,hx=-2,_p=n=>n==="*";function mx(n,i){let s=n.split("/"),c=s.length;return s.some(_p)&&(c+=hx),i&&(c+=ox),s.filter(f=>!_p(f)).reduce((f,m)=>f+(sx.test(m)?cx:m===""?fx:dx),c)}function px(n,i){return n.length===i.length&&n.slice(0,-1).every((c,f)=>c===i[f])?n[n.length-1]-i[i.length-1]:0}function vx(n,i,s=!1){let{routesMeta:c}=n,f={},m="/",h=[];for(let g=0;g<c.length;++g){let v=c[g],y=g===c.length-1,b=m==="/"?i:i.slice(m.length)||"/",x=qr({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},b),w=v.route;if(!x&&y&&s&&!c[c.length-1].route.index&&(x=qr({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!x)return null;Object.assign(f,x.params),h.push({params:f,pathname:Pt([m,x.pathname]),pathnameBase:jx(Pt([m,x.pathnameBase])),route:w}),x.pathnameBase!=="/"&&(m=Pt([m,x.pathnameBase]))}return h}function qr(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,c]=yx(n.path,n.caseSensitive,n.end),f=i.match(s);if(!f)return null;let m=f[0],h=m.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:c.reduce((y,{paramName:b,isOptional:x},w)=>{if(b==="*"){let B=g[w]||"";h=m.slice(0,m.length-B.length).replace(/(.)\/+$/,"$1")}const L=g[w];return x&&!L?y[b]=void 0:y[b]=(L||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:h,pattern:n}}function yx(n,i=!1,s=!0){rl(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,v,y,b)=>{if(c.push({paramName:g,isOptional:v!=null}),v){let x=b.charAt(y+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),c]}function gx(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return rl(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Dl(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,c=n.charAt(s);return c&&c!=="/"?null:n.slice(s)||"/"}var xx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bx(n,i="/"){let{pathname:s,search:c="",hash:f=""}=typeof n=="string"?ti(n):n,m;return s?(s=xv(s),s.startsWith("/")?m=Dp(s.substring(1),"/"):m=Dp(s,i)):m=i,{pathname:m,search:Nx(c),hash:Ex(f)}}function Dp(n,i){let s=kr(i).split("/");return n.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function jo(n,i,s,c){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Sx(n){return n.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function gv(n){let i=Sx(n);return i.map((s,c)=>c===i.length-1?s.pathname:s.pathnameBase)}function Po(n,i,s,c=!1){let f;typeof n=="string"?f=ti(n):(f={...n},Ge(!f.pathname||!f.pathname.includes("?"),jo("?","pathname","search",f)),Ge(!f.pathname||!f.pathname.includes("#"),jo("#","pathname","hash",f)),Ge(!f.search||!f.search.includes("#"),jo("#","search","hash",f)));let m=n===""||f.pathname==="",h=m?"/":f.pathname,g;if(h==null)g=s;else{let x=i.length-1;if(!c&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),x-=1;f.pathname=w.join("/")}g=x>=0?i[x]:"/"}let v=bx(f,g),y=h&&h!=="/"&&h.endsWith("/"),b=(m||h===".")&&s.endsWith("/");return!v.pathname.endsWith("/")&&(y||b)&&(v.pathname+="/"),v}var xv=n=>n.replace(/\/\/+/g,"/"),Pt=n=>xv(n.join("/")),kr=n=>n.replace(/\/+$/,""),jx=n=>kr(n).replace(/^\/*/,"/"),Nx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Ex=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Mx=class{constructor(n,i,s,c=!1){this.status=n,this.statusText=i||"",this.internal=c,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Cx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Tx(n){let i=n.map(s=>s.route.path).filter(Boolean);return Pt(i)||"/"}var bv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sv(n,i){let s=n;if(typeof s!="string"||!xx.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let c=s,f=!1;if(bv)try{let m=new URL(window.location.href),h=s.startsWith("//")?new URL(m.protocol+s):new URL(s),g=Dl(h.pathname,i);h.origin===m.origin&&g!=null?s=g+h.search+h.hash:f=!0}catch{rl(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var jv=["POST","PUT","PATCH","DELETE"];new Set(jv);var Ax=["GET",...jv];new Set(Ax);var li=M.createContext(null);li.displayName="DataRouter";var Kr=M.createContext(null);Kr.displayName="DataRouterState";var Nv=M.createContext(!1);function Rx(){return M.useContext(Nv)}var Ev=M.createContext({isTransitioning:!1});Ev.displayName="ViewTransition";var zx=M.createContext(new Map);zx.displayName="Fetchers";var wx=M.createContext(null);wx.displayName="Await";var Jt=M.createContext(null);Jt.displayName="Navigation";var du=M.createContext(null);du.displayName="Location";var Ul=M.createContext({outlet:null,matches:[],isDataRoute:!1});Ul.displayName="Route";var ef=M.createContext(null);ef.displayName="RouteError";var Mv="REACT_ROUTER_ERROR",Ox="REDIRECT",_x="ROUTE_ERROR_RESPONSE";function Dx(n){if(n.startsWith(`${Mv}:${Ox}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Ux(n){if(n.startsWith(`${Mv}:${_x}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Mx(i.status,i.statusText,i.data)}catch{}}function Hx(n,{relative:i}={}){Ge(hu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:c}=M.useContext(Jt),{hash:f,pathname:m,search:h}=mu(n,{relative:i}),g=m;return s!=="/"&&(g=m==="/"?s:Pt([s,m])),c.createHref({pathname:g,search:h,hash:f})}function hu(){return M.useContext(du)!=null}function Hl(){return Ge(hu(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(du).location}var Cv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tv(n){M.useContext(Jt).static||M.useLayoutEffect(n)}function Bx(){let{isDataRoute:n}=M.useContext(Ul);return n?Fx():Lx()}function Lx(){Ge(hu(),"useNavigate() may be used only in the context of a <Router> component.");let n=M.useContext(li),{basename:i,navigator:s}=M.useContext(Jt),{matches:c}=M.useContext(Ul),{pathname:f}=Hl(),m=JSON.stringify(gv(c)),h=M.useRef(!1);return Tv(()=>{h.current=!0}),M.useCallback((v,y={})=>{if(rl(h.current,Cv),!h.current)return;if(typeof v=="number"){s.go(v);return}let b=Po(v,JSON.parse(m),f,y.relative==="path");n==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Pt([i,b.pathname])),(y.replace?s.replace:s.push)(b,y.state,y)},[i,s,m,f,n])}M.createContext(null);function mu(n,{relative:i}={}){let{matches:s}=M.useContext(Ul),{pathname:c}=Hl(),f=JSON.stringify(gv(s));return M.useMemo(()=>Po(n,JSON.parse(f),c,i==="path"),[n,f,c,i])}function Qx(n,i){return Av(n,i)}function Av(n,i,s){var k;Ge(hu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=M.useContext(Jt),{matches:f}=M.useContext(Ul),m=f[f.length-1],h=m?m.params:{},g=m?m.pathname:"/",v=m?m.pathnameBase:"/",y=m&&m.route;{let H=y&&y.path||"";zv(g,!y||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${H}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let b=Hl(),x;if(i){let H=typeof i=="string"?ti(i):i;Ge(v==="/"||((k=H.pathname)==null?void 0:k.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${H.pathname}" was given in the \`location\` prop.`),x=H}else x=b;let w=x.pathname||"/",L=w;if(v!=="/"){let H=v.replace(/^\//,"").split("/");L="/"+w.replace(/^\//,"").split("/").slice(H.length).join("/")}let B=s&&s.state.matches.length?s.state.matches.map(H=>Object.assign(H,{route:s.manifest[H.route.id]||H.route})):pv(n,{pathname:L});rl(y||B!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),rl(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let D=Xx(B&&B.map(H=>Object.assign({},H,{params:Object.assign({},h,H.params),pathname:Pt([v,c.encodeLocation?c.encodeLocation(H.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?v:Pt([v,c.encodeLocation?c.encodeLocation(H.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),f,s);return i&&D?M.createElement(du.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},D):D}function qx(){let n=$x(),i=Cx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:m},"ErrorBoundary")," or"," ",M.createElement("code",{style:m},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},i),s?M.createElement("pre",{style:f},s):null,h)}var kx=M.createElement(qx,null),Rv=class extends M.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const s=Ux(n.digest);s&&(n=s)}let i=n!==void 0?M.createElement(Ul.Provider,{value:this.props.routeContext},M.createElement(ef.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?M.createElement(Yx,{error:n},i):i}};Rv.contextType=Nv;var No=new WeakMap;function Yx({children:n,error:i}){let{basename:s}=M.useContext(Jt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Dx(i.digest);if(c){let f=No.get(i);if(f)throw f;let m=Sv(c.location,s);if(bv&&!No.get(i))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw No.set(i,h),h}return M.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return n}function Gx({routeContext:n,match:i,children:s}){let c=M.useContext(li);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),M.createElement(Ul.Provider,{value:n},s)}function Xx(n,i=[],s){let c=s==null?void 0:s.state;if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let f=n,m=c==null?void 0:c.errors;if(m!=null){let b=f.findIndex(x=>x.route.id&&(m==null?void 0:m[x.route.id])!==void 0);Ge(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let h=!1,g=-1;if(s&&c){h=c.renderFallback;for(let b=0;b<f.length;b++){let x=f[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=b),x.route.id){let{loaderData:w,errors:L}=c,B=x.route.loader&&!w.hasOwnProperty(x.route.id)&&(!L||L[x.route.id]===void 0);if(x.route.lazy||B){s.isStatic&&(h=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let v=s==null?void 0:s.onError,y=c&&v?(b,x)=>{var w,L;v(b,{location:c.location,params:((L=(w=c.matches)==null?void 0:w[0])==null?void 0:L.params)??{},pattern:Tx(c.matches),errorInfo:x})}:void 0;return f.reduceRight((b,x,w)=>{let L,B=!1,D=null,k=null;c&&(L=m&&x.route.id?m[x.route.id]:void 0,D=x.route.errorElement||kx,h&&(g<0&&w===0?(zv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,k=null):g===w&&(B=!0,k=x.route.hydrateFallbackElement||null)));let H=i.concat(f.slice(0,w+1)),V=()=>{let Y;return L?Y=D:B?Y=k:x.route.Component?Y=M.createElement(x.route.Component,null):x.route.element?Y=x.route.element:Y=b,M.createElement(Gx,{match:x,routeContext:{outlet:b,matches:H,isDataRoute:c!=null},children:Y})};return c&&(x.route.ErrorBoundary||x.route.errorElement||w===0)?M.createElement(Rv,{location:c.location,revalidation:c.revalidation,component:D,error:L,children:V(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:y}):V()},null)}function tf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kx(n){let i=M.useContext(li);return Ge(i,tf(n)),i}function Zx(n){let i=M.useContext(Kr);return Ge(i,tf(n)),i}function Vx(n){let i=M.useContext(Ul);return Ge(i,tf(n)),i}function lf(n){let i=Vx(n),s=i.matches[i.matches.length-1];return Ge(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function Jx(){return lf("useRouteId")}function $x(){var c;let n=M.useContext(ef),i=Zx("useRouteError"),s=lf("useRouteError");return n!==void 0?n:(c=i.errors)==null?void 0:c[s]}function Fx(){let{router:n}=Kx("useNavigate"),i=lf("useNavigate"),s=M.useRef(!1);return Tv(()=>{s.current=!0}),M.useCallback(async(f,m={})=>{rl(s.current,Cv),s.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:i,...m}))},[n,i])}var Up={};function zv(n,i,s){!i&&!Up[n]&&(Up[n]=!0,rl(!1,s))}M.memo(Wx);function Wx({routes:n,manifest:i,future:s,state:c,isStatic:f,onError:m}){return Av(n,void 0,{manifest:i,state:c,isStatic:f,onError:m})}function tu(n){Ge(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ix({basename:n="/",children:i=null,location:s,navigationType:c="POP",navigator:f,static:m=!1,useTransitions:h}){Ge(!hu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),v=M.useMemo(()=>({basename:g,navigator:f,static:m,useTransitions:h,future:{}}),[g,f,m,h]);typeof s=="string"&&(s=ti(s));let{pathname:y="/",search:b="",hash:x="",state:w=null,key:L="default",mask:B}=s,D=M.useMemo(()=>{let k=Dl(y,g);return k==null?null:{location:{pathname:k,search:b,hash:x,state:w,key:L,mask:B},navigationType:c}},[g,y,b,x,w,L,c,B]);return rl(D!=null,`<Router basename="${g}"> is not able to match the URL "${y}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:M.createElement(Jt.Provider,{value:v},M.createElement(du.Provider,{children:i,value:D}))}function Px({children:n,location:i}){return Qx(Oo(n),i)}function Oo(n,i=[]){let s=[];return M.Children.forEach(n,(c,f)=>{if(!M.isValidElement(c))return;let m=[...i,f];if(c.type===M.Fragment){s.push.apply(s,Oo(c.props.children,m));return}Ge(c.type===tu,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ge(!c.props.index||!c.props.children,"An index route cannot have child routes.");let h={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(h.children=Oo(c.props.children,m)),s.push(h)}),s}var Br="get",Lr="application/x-www-form-urlencoded";function Zr(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function eb(n){return Zr(n)&&n.tagName.toLowerCase()==="button"}function tb(n){return Zr(n)&&n.tagName.toLowerCase()==="form"}function lb(n){return Zr(n)&&n.tagName.toLowerCase()==="input"}function ab(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function nb(n,i){return n.button===0&&(!i||i==="_self")&&!ab(n)}var _r=null;function ib(){if(_r===null)try{new FormData(document.createElement("form"),0),_r=!1}catch{_r=!0}return _r}var ub=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Eo(n){return n!=null&&!ub.has(n)?(rl(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lr}"`),null):n}function rb(n,i){let s,c,f,m,h;if(tb(n)){let g=n.getAttribute("action");c=g?Dl(g,i):null,s=n.getAttribute("method")||Br,f=Eo(n.getAttribute("enctype"))||Lr,m=new FormData(n)}else if(eb(n)||lb(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||g.getAttribute("action");if(c=v?Dl(v,i):null,s=n.getAttribute("formmethod")||g.getAttribute("method")||Br,f=Eo(n.getAttribute("formenctype"))||Eo(g.getAttribute("enctype"))||Lr,m=new FormData(g,n),!ib()){let{name:y,type:b,value:x}=n;if(b==="image"){let w=y?`${y}.`:"";m.append(`${w}x`,"0"),m.append(`${w}y`,"0")}else y&&m.append(y,x)}}else{if(Zr(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Br,c=null,f=Lr,h=n}return m&&f==="text/plain"&&(h=m,m=void 0),{action:c,method:s.toLowerCase(),encType:f,formData:m,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function af(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function wv(n,i,s,c){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:i&&Dl(f.pathname,i)==="/"?f.pathname=`${kr(i)}/_root.${c}`:f.pathname=`${kr(f.pathname)}.${c}`,f}async function sb(n,i){if(n.id in i)return i[n.id];try{let s=await import(n.module);return i[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function cb(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function ob(n,i,s){let c=await Promise.all(n.map(async f=>{let m=i.routes[f.route.id];if(m){let h=await sb(m,s);return h.links?h.links():[]}return[]}));return mb(c.flat(1).filter(cb).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Hp(n,i,s,c,f,m){let h=(v,y)=>s[y]?v.route.id!==s[y].route.id:!0,g=(v,y)=>{var b;return s[y].pathname!==v.pathname||((b=s[y].route.path)==null?void 0:b.endsWith("*"))&&s[y].params["*"]!==v.params["*"]};return m==="assets"?i.filter((v,y)=>h(v,y)||g(v,y)):m==="data"?i.filter((v,y)=>{var x;let b=c.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(h(v,y)||g(v,y))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((x=s[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function fb(n,i,{includeHydrateFallback:s}={}){return db(n.map(c=>{let f=i.routes[c.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function db(n){return[...new Set(n)]}function hb(n){let i={},s=Object.keys(n).sort();for(let c of s)i[c]=n[c];return i}function mb(n,i){let s=new Set;return new Set(i),n.reduce((c,f)=>{let m=JSON.stringify(hb(f));return s.has(m)||(s.add(m),c.push({key:m,link:f})),c},[])}function nf(){let n=M.useContext(li);return af(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function pb(){let n=M.useContext(Kr);return af(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var uf=M.createContext(void 0);uf.displayName="FrameworkContext";function rf(){let n=M.useContext(uf);return af(n,"You must render this element inside a <HydratedRouter> element"),n}function vb(n,i){let s=M.useContext(uf),[c,f]=M.useState(!1),[m,h]=M.useState(!1),{onFocus:g,onBlur:v,onMouseEnter:y,onMouseLeave:b,onTouchStart:x}=i,w=M.useRef(null);M.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let D=H=>{H.forEach(V=>{h(V.isIntersecting)})},k=new IntersectionObserver(D,{threshold:.5});return w.current&&k.observe(w.current),()=>{k.disconnect()}}},[n]),M.useEffect(()=>{if(c){let D=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(D)}}},[c]);let L=()=>{f(!0)},B=()=>{f(!1),h(!1)};return s?n!=="intent"?[m,w,{}]:[m,w,{onFocus:Ii(g,L),onBlur:Ii(v,B),onMouseEnter:Ii(y,L),onMouseLeave:Ii(b,B),onTouchStart:Ii(x,L)}]:[!1,w,{}]}function Ii(n,i){return s=>{n&&n(s),s.defaultPrevented||i(s)}}function yb({page:n,...i}){let s=Rx(),{router:c}=nf(),f=M.useMemo(()=>pv(c.routes,n,c.basename),[c.routes,n,c.basename]);return f?s?M.createElement(xb,{page:n,matches:f,...i}):M.createElement(bb,{page:n,matches:f,...i}):null}function gb(n){let{manifest:i,routeModules:s}=rf(),[c,f]=M.useState([]);return M.useEffect(()=>{let m=!1;return ob(n,i,s).then(h=>{m||f(h)}),()=>{m=!0}},[n,i,s]),c}function xb({page:n,matches:i,...s}){let c=Hl(),{future:f}=rf(),{basename:m}=nf(),h=M.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let g=wv(n,m,f.v8_trailingSlashAwareDataRequests,"rsc"),v=!1,y=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?v=!0:y.push(b.route.id);return v&&y.length>0&&g.searchParams.set("_routes",y.join(",")),[g.pathname+g.search]},[m,f.v8_trailingSlashAwareDataRequests,n,c,i]);return M.createElement(M.Fragment,null,h.map(g=>M.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...s})))}function bb({page:n,matches:i,...s}){let c=Hl(),{future:f,manifest:m,routeModules:h}=rf(),{basename:g}=nf(),{loaderData:v,matches:y}=pb(),b=M.useMemo(()=>Hp(n,i,y,m,c,"data"),[n,i,y,m,c]),x=M.useMemo(()=>Hp(n,i,y,m,c,"assets"),[n,i,y,m,c]),w=M.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let D=new Set,k=!1;if(i.forEach(V=>{var X;let Y=m.routes[V.route.id];!Y||!Y.hasLoader||(!b.some(ee=>ee.route.id===V.route.id)&&V.route.id in v&&((X=h[V.route.id])!=null&&X.shouldRevalidate)||Y.hasClientLoader?k=!0:D.add(V.route.id))}),D.size===0)return[];let H=wv(n,g,f.v8_trailingSlashAwareDataRequests,"data");return k&&D.size>0&&H.searchParams.set("_routes",i.filter(V=>D.has(V.route.id)).map(V=>V.route.id).join(",")),[H.pathname+H.search]},[g,f.v8_trailingSlashAwareDataRequests,v,c,m,b,i,n,h]),L=M.useMemo(()=>fb(x,m),[x,m]),B=gb(x);return M.createElement(M.Fragment,null,w.map(D=>M.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...s})),L.map(D=>M.createElement("link",{key:D,rel:"modulepreload",href:D,...s})),B.map(({key:D,link:k})=>M.createElement("link",{key:D,nonce:s.nonce,...k,crossOrigin:k.crossOrigin??s.crossOrigin})))}function Sb(...n){return i=>{n.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var jb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jb&&(window.__reactRouterVersion="7.17.0")}catch{}function Nb({basename:n,children:i,useTransitions:s,window:c}){let f=M.useRef();f.current==null&&(f.current=tx({window:c,v5Compat:!0}));let m=f.current,[h,g]=M.useState({action:m.action,location:m.location}),v=M.useCallback(y=>{s===!1?g(y):M.startTransition(()=>g(y))},[s]);return M.useLayoutEffect(()=>m.listen(v),[m,v]),M.createElement(Ix,{basename:n,children:i,location:h.location,navigationType:h.action,navigator:m,useTransitions:s})}var Ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sf=M.forwardRef(function({onClick:i,discover:s="render",prefetch:c="none",relative:f,reloadDocument:m,replace:h,mask:g,state:v,target:y,to:b,preventScrollReset:x,viewTransition:w,defaultShouldRevalidate:L,...B},D){let{basename:k,navigator:H,useTransitions:V}=M.useContext(Jt),Y=typeof b=="string"&&Ov.test(b),X=Sv(b,k);b=X.to;let ee=Hx(b,{relative:f}),ie=Hl(),K=null;if(g){let pe=Po(g,[],ie.mask?ie.mask.pathname:"/",!0);k!=="/"&&(pe.pathname=pe.pathname==="/"?k:Pt([k,pe.pathname])),K=H.createHref(pe)}let[F,le,fe]=vb(c,B),Se=Cb(b,{replace:h,mask:g,state:v,target:y,preventScrollReset:x,relative:f,viewTransition:w,defaultShouldRevalidate:L,useTransitions:V});function oe(pe){i&&i(pe),pe.defaultPrevented||Se(pe)}let Be=!(X.isExternal||m),Me=M.createElement("a",{...B,...fe,href:(Be?K:void 0)||X.absoluteURL||ee,onClick:Be?oe:i,ref:Sb(D,le),target:y,"data-discover":!Y&&s==="render"?"true":void 0});return F&&!Y?M.createElement(M.Fragment,null,Me,M.createElement(yb,{page:ee})):Me});sf.displayName="Link";var cf=M.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:c="",end:f=!1,style:m,to:h,viewTransition:g,children:v,...y},b){let x=mu(h,{relative:y.relative}),w=Hl(),L=M.useContext(Kr),{navigator:B,basename:D}=M.useContext(Jt),k=L!=null&&wb(x)&&g===!0,H=B.encodeLocation?B.encodeLocation(x).pathname:x.pathname,V=w.pathname,Y=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;s||(V=V.toLowerCase(),Y=Y?Y.toLowerCase():null,H=H.toLowerCase()),Y&&D&&(Y=Dl(Y,D)||Y);const X=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let ee=V===H||!f&&V.startsWith(H)&&V.charAt(X)==="/",ie=Y!=null&&(Y===H||!f&&Y.startsWith(H)&&Y.charAt(H.length)==="/"),K={isActive:ee,isPending:ie,isTransitioning:k},F=ee?i:void 0,le;typeof c=="function"?le=c(K):le=[c,ee?"active":null,ie?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let fe=typeof m=="function"?m(K):m;return M.createElement(sf,{...y,"aria-current":F,className:le,ref:b,style:fe,to:h,viewTransition:g},typeof v=="function"?v(K):v)});cf.displayName="NavLink";var Eb=M.forwardRef(({discover:n="render",fetcherKey:i,navigate:s,reloadDocument:c,replace:f,state:m,method:h=Br,action:g,onSubmit:v,relative:y,preventScrollReset:b,viewTransition:x,defaultShouldRevalidate:w,...L},B)=>{let{useTransitions:D}=M.useContext(Jt),k=Rb(),H=zb(g,{relative:y}),V=h.toLowerCase()==="get"?"get":"post",Y=typeof g=="string"&&Ov.test(g),X=ee=>{if(v&&v(ee),ee.defaultPrevented)return;ee.preventDefault();let ie=ee.nativeEvent.submitter,K=(ie==null?void 0:ie.getAttribute("formmethod"))||h,F=()=>k(ie||ee.currentTarget,{fetcherKey:i,method:K,navigate:s,replace:f,state:m,relative:y,preventScrollReset:b,viewTransition:x,defaultShouldRevalidate:w});D&&s!==!1?M.startTransition(()=>F()):F()};return M.createElement("form",{ref:B,method:V,action:H,onSubmit:c?v:X,...L,"data-discover":!Y&&n==="render"?"true":void 0})});Eb.displayName="Form";function Mb(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _v(n){let i=M.useContext(li);return Ge(i,Mb(n)),i}function Cb(n,{target:i,replace:s,mask:c,state:f,preventScrollReset:m,relative:h,viewTransition:g,defaultShouldRevalidate:v,useTransitions:y}={}){let b=Bx(),x=Hl(),w=mu(n,{relative:h});return M.useCallback(L=>{if(nb(L,i)){L.preventDefault();let B=s!==void 0?s:au(x)===au(w),D=()=>b(n,{replace:B,mask:c,state:f,preventScrollReset:m,relative:h,viewTransition:g,defaultShouldRevalidate:v});y?M.startTransition(()=>D()):D()}},[x,b,w,s,c,f,i,n,m,h,g,v,y])}var Tb=0,Ab=()=>`__${String(++Tb)}__`;function Rb(){let{router:n}=_v("useSubmit"),{basename:i}=M.useContext(Jt),s=Jx(),c=n.fetch,f=n.navigate;return M.useCallback(async(m,h={})=>{let{action:g,method:v,encType:y,formData:b,body:x}=rb(m,i);if(h.navigate===!1){let w=h.fetcherKey||Ab();await c(w,s,h.action||g,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:x,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await f(h.action||g,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:x,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:s,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,f,i,s])}function zb(n,{relative:i}={}){let{basename:s}=M.useContext(Jt),c=M.useContext(Ul);Ge(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),m={...mu(n||".",{relative:i})},h=Hl();if(n==null){m.search=h.search;let g=new URLSearchParams(m.search),v=g.getAll("index");if(v.some(b=>b==="")){g.delete("index"),v.filter(x=>x).forEach(x=>g.append("index",x));let b=g.toString();m.search=b?`?${b}`:""}}return(!n||n===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(m.pathname=m.pathname==="/"?s:Pt([s,m.pathname])),au(m)}function wb(n,{relative:i}={}){let s=M.useContext(Ev);Ge(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=_v("useViewTransitionState"),f=mu(n,{relative:i});if(!s.isTransitioning)return!1;let m=Dl(s.currentLocation.pathname,c)||s.currentLocation.pathname,h=Dl(s.nextLocation.pathname,c)||s.nextLocation.pathname;return qr(f.pathname,h)!=null||qr(f.pathname,m)!=null}var ai=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ya,oa,Yn,nv,Ob=(nv=class extends ai{constructor(){super();ae(this,Ya);ae(this,oa);ae(this,Yn);$(this,Yn,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){j(this,oa)||this.setEventListener(j(this,Yn))}onUnsubscribe(){var i;this.hasListeners()||((i=j(this,oa))==null||i.call(this),$(this,oa,void 0))}setEventListener(i){var s;$(this,Yn,i),(s=j(this,oa))==null||s.call(this),$(this,oa,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){j(this,Ya)!==i&&($(this,Ya,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(s=>{s(i)})}isFocused(){var i;return typeof j(this,Ya)=="boolean"?j(this,Ya):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ya=new WeakMap,oa=new WeakMap,Yn=new WeakMap,nv),of=new Ob,_b={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},fa,Wo,iv,Db=(iv=class{constructor(){ae(this,fa,_b);ae(this,Wo,!1)}setTimeoutProvider(n){$(this,fa,n)}setTimeout(n,i){return j(this,fa).setTimeout(n,i)}clearTimeout(n){j(this,fa).clearTimeout(n)}setInterval(n,i){return j(this,fa).setInterval(n,i)}clearInterval(n){j(this,fa).clearInterval(n)}},fa=new WeakMap,Wo=new WeakMap,iv),ka=new Db;function Ub(n){setTimeout(n,0)}var Hb=typeof window>"u"||"Deno"in globalThis;function mt(){}function Bb(n,i){return typeof n=="function"?n(i):n}function _o(n){return typeof n=="number"&&n>=0&&n!==1/0}function Dv(n,i){return Math.max(n+(i||0)-Date.now(),0)}function xa(n,i){return typeof n=="function"?n(i):n}function Ut(n,i){return typeof n=="function"?n(i):n}function Bp(n,i){const{type:s="all",exact:c,fetchStatus:f,predicate:m,queryKey:h,stale:g}=n;if(h){if(c){if(i.queryHash!==ff(h,i.options))return!1}else if(!nu(i.queryKey,h))return!1}if(s!=="all"){const v=i.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||f&&f!==i.state.fetchStatus||m&&!m(i))}function Lp(n,i){const{exact:s,status:c,predicate:f,mutationKey:m}=n;if(m){if(!i.options.mutationKey)return!1;if(s){if(Wa(i.options.mutationKey)!==Wa(m))return!1}else if(!nu(i.options.mutationKey,m))return!1}return!(c&&i.state.status!==c||f&&!f(i))}function ff(n,i){return((i==null?void 0:i.queryKeyHashFn)||Wa)(n)}function Wa(n){return JSON.stringify(n,(i,s)=>Do(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function nu(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(s=>nu(n[s],i[s])):!1}var Lb=Object.prototype.hasOwnProperty;function Uv(n,i,s=0){if(n===i)return n;if(s>500)return i;const c=Qp(n)&&Qp(i);if(!c&&!(Do(n)&&Do(i)))return i;const m=(c?n:Object.keys(n)).length,h=c?i:Object.keys(i),g=h.length,v=c?new Array(g):{};let y=0;for(let b=0;b<g;b++){const x=c?b:h[b],w=n[x],L=i[x];if(w===L){v[x]=w,(c?b<m:Lb.call(n,x))&&y++;continue}if(w===null||L===null||typeof w!="object"||typeof L!="object"){v[x]=L;continue}const B=Uv(w,L,s+1);v[x]=B,B===w&&y++}return m===g&&y===m?n:v}function Yr(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const s in n)if(n[s]!==i[s])return!1;return!0}function Qp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Do(n){if(!qp(n))return!1;const i=n.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!qp(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function qp(n){return Object.prototype.toString.call(n)==="[object Object]"}function Qb(n){return new Promise(i=>{ka.setTimeout(i,n)})}function Uo(n,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,i):s.structuralSharing!==!1?Uv(n,i):i}function qb(n,i,s=0){const c=[...n,i];return s&&c.length>s?c.slice(1):c}function kb(n,i,s=0){const c=[i,...n];return s&&c.length>s?c.slice(0,-1):c}var df=Symbol();function Hv(n,i){return!n.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!n.queryFn||n.queryFn===df?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function hf(n,i){return typeof n=="function"?n(...i):!!n}function Yb(n,i,s){let c=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=i()),c||(c=!0,f.aborted?s():f.addEventListener("abort",s,{once:!0})),f)}),n}var iu=(()=>{let n=()=>Hb;return{isServer(){return n()},setIsServer(i){n=i}}})();function Ho(){let n,i;const s=new Promise((f,m)=>{n=f,i=m});s.status="pending",s.catch(()=>{});function c(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{c({status:"fulfilled",value:f}),n(f)},s.reject=f=>{c({status:"rejected",reason:f}),i(f)},s}var Gb=Ub;function Xb(){let n=[],i=0,s=g=>{g()},c=g=>{g()},f=Gb;const m=g=>{i?n.push(g):f(()=>{s(g)})},h=()=>{const g=n;n=[],g.length&&f(()=>{c(()=>{g.forEach(v=>{s(v)})})})};return{batch:g=>{let v;i++;try{v=g()}finally{i--,i||h()}return v},batchCalls:g=>(...v)=>{m(()=>{g(...v)})},schedule:m,setNotifyFunction:g=>{s=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{f=g}}}var tt=Xb(),Gn,da,Xn,uv,Kb=(uv=class extends ai{constructor(){super();ae(this,Gn,!0);ae(this,da);ae(this,Xn);$(this,Xn,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i(!0),c=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){j(this,da)||this.setEventListener(j(this,Xn))}onUnsubscribe(){var i;this.hasListeners()||((i=j(this,da))==null||i.call(this),$(this,da,void 0))}setEventListener(i){var s;$(this,Xn,i),(s=j(this,da))==null||s.call(this),$(this,da,i(this.setOnline.bind(this)))}setOnline(i){j(this,Gn)!==i&&($(this,Gn,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return j(this,Gn)}},Gn=new WeakMap,da=new WeakMap,Xn=new WeakMap,uv),Gr=new Kb;function Zb(n){return Math.min(1e3*2**n,3e4)}function Bv(n){return(n??"online")==="online"?Gr.isOnline():!0}var Bo=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Lv(n){let i=!1,s=0,c;const f=Ho(),m=()=>f.status!=="pending",h=D=>{var k;if(!m()){const H=new Bo(D);w(H),(k=n.onCancel)==null||k.call(n,H)}},g=()=>{i=!0},v=()=>{i=!1},y=()=>of.isFocused()&&(n.networkMode==="always"||Gr.isOnline())&&n.canRun(),b=()=>Bv(n.networkMode)&&n.canRun(),x=D=>{m()||(c==null||c(),f.resolve(D))},w=D=>{m()||(c==null||c(),f.reject(D))},L=()=>new Promise(D=>{var k;c=H=>{(m()||y())&&D(H)},(k=n.onPause)==null||k.call(n)}).then(()=>{var D;c=void 0,m()||(D=n.onContinue)==null||D.call(n)}),B=()=>{if(m())return;let D;const k=s===0?n.initialPromise:void 0;try{D=k??n.fn()}catch(H){D=Promise.reject(H)}Promise.resolve(D).then(x).catch(H=>{var ie;if(m())return;const V=n.retry??(iu.isServer()?0:3),Y=n.retryDelay??Zb,X=typeof Y=="function"?Y(s,H):Y,ee=V===!0||typeof V=="number"&&s<V||typeof V=="function"&&V(s,H);if(i||!ee){w(H);return}s++,(ie=n.onFail)==null||ie.call(n,s,H),Qb(X).then(()=>y()?void 0:L()).then(()=>{i?w(H):B()})})};return{promise:f,status:()=>f.status,cancel:h,continue:()=>(c==null||c(),f),cancelRetry:g,continueRetry:v,canStart:b,start:()=>(b()?B():L().then(B),f)}}var Ga,rv,Qv=(rv=class{constructor(){ae(this,Ga)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_o(this.gcTime)&&$(this,Ga,ka.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(iu.isServer()?1/0:300*1e3))}clearGcTimeout(){j(this,Ga)!==void 0&&(ka.clearTimeout(j(this,Ga)),$(this,Ga,void 0))}},Ga=new WeakMap,rv);function Vb(n){return{onFetch:(i,s)=>{var b,x,w,L,B;const c=i.options,f=(w=(x=(b=i.fetchOptions)==null?void 0:b.meta)==null?void 0:x.fetchMore)==null?void 0:w.direction,m=((L=i.state.data)==null?void 0:L.pages)||[],h=((B=i.state.data)==null?void 0:B.pageParams)||[];let g={pages:[],pageParams:[]},v=0;const y=async()=>{let D=!1;const k=Y=>{Yb(Y,()=>i.signal,()=>D=!0)},H=Hv(i.options,i.fetchOptions),V=async(Y,X,ee)=>{if(D)return Promise.reject(i.signal.reason);if(X==null&&Y.pages.length)return Promise.resolve(Y);const K=(()=>{const Se={client:i.client,queryKey:i.queryKey,pageParam:X,direction:ee?"backward":"forward",meta:i.options.meta};return k(Se),Se})(),F=await H(K),{maxPages:le}=i.options,fe=ee?kb:qb;return{pages:fe(Y.pages,F,le),pageParams:fe(Y.pageParams,X,le)}};if(f&&m.length){const Y=f==="backward",X=Y?Jb:kp,ee={pages:m,pageParams:h},ie=X(c,ee);g=await V(ee,ie,Y)}else{const Y=n??m.length;do{const X=v===0?h[0]??c.initialPageParam:kp(c,g);if(v>0&&X==null)break;g=await V(g,X),v++}while(v<Y)}return g};i.options.persister?i.fetchFn=()=>{var D,k;return(k=(D=i.options).persister)==null?void 0:k.call(D,y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s)}:i.fetchFn=y}}}function kp(n,{pages:i,pageParams:s}){const c=i.length-1;return i.length>0?n.getNextPageParam(i[c],i,s[c],s):void 0}function Jb(n,{pages:i,pageParams:s}){var c;return i.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,i[0],i,s[0],s):void 0}var Kn,Xa,Zn,Zt,Ka,nt,ru,Za,Dt,qv,Al,sv,$b=(sv=class extends Qv{constructor(i){super();ae(this,Dt);ae(this,Kn);ae(this,Xa);ae(this,Zn);ae(this,Zt);ae(this,Ka);ae(this,nt);ae(this,ru);ae(this,Za);$(this,Za,!1),$(this,ru,i.defaultOptions),this.setOptions(i.options),this.observers=[],$(this,Ka,i.client),$(this,Zt,j(this,Ka).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,$(this,Xa,Gp(this.options)),this.state=i.state??j(this,Xa),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return j(this,Kn)}get promise(){var i;return(i=j(this,nt))==null?void 0:i.promise}setOptions(i){if(this.options={...j(this,ru),...i},i!=null&&i._type&&$(this,Kn,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Gp(this.options);s.data!==void 0&&(this.setState(Yp(s.data,s.dataUpdatedAt)),$(this,Xa,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,Zt).remove(this)}setData(i,s){const c=Uo(this.state.data,i,this.options);return me(this,Dt,Al).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(i){me(this,Dt,Al).call(this,{type:"setState",state:i})}cancel(i){var c,f;const s=(c=j(this,nt))==null?void 0:c.promise;return(f=j(this,nt))==null||f.cancel(i),s?s.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return j(this,Xa)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Ut(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===df||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>xa(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Dv(this.state.dataUpdatedAt,i)}onFocus(){var s;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(s=j(this,nt))==null||s.continue()}onOnline(){var s;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(s=j(this,nt))==null||s.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),j(this,Zt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(j(this,nt)&&(j(this,Za)||me(this,Dt,qv).call(this)?j(this,nt).cancel({revert:!0}):j(this,nt).cancelRetry()),this.scheduleGc()),j(this,Zt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,Dt,Al).call(this,{type:"invalidate"})}async fetch(i,s){var y,b,x,w,L,B,D,k,H,V,Y;if(this.state.fetchStatus!=="idle"&&((y=j(this,nt))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(j(this,nt))return j(this,nt).continueRetry(),j(this,nt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const X=this.observers.find(ee=>ee.options.queryFn);X&&this.setOptions(X.options)}const c=new AbortController,f=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>($(this,Za,!0),c.signal)})},m=()=>{const X=Hv(this.options,s),ie=(()=>{const K={client:j(this,Ka),queryKey:this.queryKey,meta:this.meta};return f(K),K})();return $(this,Za,!1),this.options.persister?this.options.persister(X,ie,this):X(ie)},g=(()=>{const X={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:j(this,Ka),state:this.state,fetchFn:m};return f(X),X})(),v=j(this,Kn)==="infinite"?Vb(this.options.pages):this.options.behavior;v==null||v.onFetch(g,this),$(this,Zn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=g.fetchOptions)==null?void 0:b.meta))&&me(this,Dt,Al).call(this,{type:"fetch",meta:(x=g.fetchOptions)==null?void 0:x.meta}),$(this,nt,Lv({initialPromise:s==null?void 0:s.initialPromise,fn:g.fetchFn,onCancel:X=>{X instanceof Bo&&X.revert&&this.setState({...j(this,Zn),fetchStatus:"idle"}),c.abort()},onFail:(X,ee)=>{me(this,Dt,Al).call(this,{type:"failed",failureCount:X,error:ee})},onPause:()=>{me(this,Dt,Al).call(this,{type:"pause"})},onContinue:()=>{me(this,Dt,Al).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const X=await j(this,nt).start();if(X===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(X),(L=(w=j(this,Zt).config).onSuccess)==null||L.call(w,X,this),(D=(B=j(this,Zt).config).onSettled)==null||D.call(B,X,this.state.error,this),X}catch(X){if(X instanceof Bo){if(X.silent)return j(this,nt).promise;if(X.revert){if(this.state.data===void 0)throw X;return this.state.data}}throw me(this,Dt,Al).call(this,{type:"error",error:X}),(H=(k=j(this,Zt).config).onError)==null||H.call(k,X,this),(Y=(V=j(this,Zt).config).onSettled)==null||Y.call(V,this.state.data,X,this),X}finally{this.scheduleGc()}}},Kn=new WeakMap,Xa=new WeakMap,Zn=new WeakMap,Zt=new WeakMap,Ka=new WeakMap,nt=new WeakMap,ru=new WeakMap,Za=new WeakMap,Dt=new WeakSet,qv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Al=function(i){const s=c=>{switch(i.type){case"failed":return{...c,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...kv(c.data,this.options),fetchMeta:i.meta??null};case"success":const f={...c,...Yp(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,Zn,i.manual?f:void 0),f;case"error":const m=i.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=s(this.state),tt.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),j(this,Zt).notify({query:this,type:"updated",action:i})})},sv);function kv(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bv(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Yp(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Gp(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,s=i!==void 0,c=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var jt,Ee,su,ht,Va,Vn,Rl,ha,cu,Jn,$n,Ja,$a,ma,Fn,Re,lu,Lo,Qo,qo,ko,Yo,Go,Xo,Yv,cv,Fb=(cv=class extends ai{constructor(i,s){super();ae(this,Re);ae(this,jt);ae(this,Ee);ae(this,su);ae(this,ht);ae(this,Va);ae(this,Vn);ae(this,Rl);ae(this,ha);ae(this,cu);ae(this,Jn);ae(this,$n);ae(this,Ja);ae(this,$a);ae(this,ma);ae(this,Fn,new Set);this.options=s,$(this,jt,i),$(this,ha,null),$(this,Rl,Ho()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,Ee).addObserver(this),Xp(j(this,Ee),this.options)?me(this,Re,lu).call(this):this.updateResult(),me(this,Re,ko).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ko(j(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ko(j(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,Re,Yo).call(this),me(this,Re,Go).call(this),j(this,Ee).removeObserver(this)}setOptions(i){const s=this.options,c=j(this,Ee);if(this.options=j(this,jt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ut(this.options.enabled,j(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,Re,Xo).call(this),j(this,Ee).setOptions(this.options),s._defaulted&&!Yr(this.options,s)&&j(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,Ee),observer:this});const f=this.hasListeners();f&&Kp(j(this,Ee),c,this.options,s)&&me(this,Re,lu).call(this),this.updateResult(),f&&(j(this,Ee)!==c||Ut(this.options.enabled,j(this,Ee))!==Ut(s.enabled,j(this,Ee))||xa(this.options.staleTime,j(this,Ee))!==xa(s.staleTime,j(this,Ee)))&&me(this,Re,Lo).call(this);const m=me(this,Re,Qo).call(this);f&&(j(this,Ee)!==c||Ut(this.options.enabled,j(this,Ee))!==Ut(s.enabled,j(this,Ee))||m!==j(this,ma))&&me(this,Re,qo).call(this,m)}getOptimisticResult(i){const s=j(this,jt).getQueryCache().build(j(this,jt),i),c=this.createResult(s,i);return Ib(this,c)&&($(this,ht,c),$(this,Vn,this.options),$(this,Va,j(this,Ee).state)),c}getCurrentResult(){return j(this,ht)}trackResult(i,s){return new Proxy(i,{get:(c,f)=>(this.trackProp(f),s==null||s(f),f==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&j(this,Rl).status==="pending"&&j(this,Rl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,f))})}trackProp(i){j(this,Fn).add(i)}getCurrentQuery(){return j(this,Ee)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const s=j(this,jt).defaultQueryOptions(i),c=j(this,jt).getQueryCache().build(j(this,jt),s);return c.fetch().then(()=>this.createResult(c,s))}fetch(i){return me(this,Re,lu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,ht)))}createResult(i,s){var le;const c=j(this,Ee),f=this.options,m=j(this,ht),h=j(this,Va),g=j(this,Vn),y=i!==c?i.state:j(this,su),{state:b}=i;let x={...b},w=!1,L;if(s._optimisticResults){const fe=this.hasListeners(),Se=!fe&&Xp(i,s),oe=fe&&Kp(i,c,s,f);(Se||oe)&&(x={...x,...kv(b.data,i.options)}),s._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:B,errorUpdatedAt:D,status:k}=x;L=x.data;let H=!1;if(s.placeholderData!==void 0&&L===void 0&&k==="pending"){let fe;m!=null&&m.isPlaceholderData&&s.placeholderData===(g==null?void 0:g.placeholderData)?(fe=m.data,H=!0):fe=typeof s.placeholderData=="function"?s.placeholderData((le=j(this,$n))==null?void 0:le.state.data,j(this,$n)):s.placeholderData,fe!==void 0&&(k="success",L=Uo(m==null?void 0:m.data,fe,s),w=!0)}if(s.select&&L!==void 0&&!H)if(m&&L===(h==null?void 0:h.data)&&s.select===j(this,cu))L=j(this,Jn);else try{$(this,cu,s.select),L=s.select(L),L=Uo(m==null?void 0:m.data,L,s),$(this,Jn,L),$(this,ha,null)}catch(fe){$(this,ha,fe)}j(this,ha)&&(B=j(this,ha),L=j(this,Jn),D=Date.now(),k="error");const V=x.fetchStatus==="fetching",Y=k==="pending",X=k==="error",ee=Y&&V,ie=L!==void 0,F={status:k,fetchStatus:x.fetchStatus,isPending:Y,isSuccess:k==="success",isError:X,isInitialLoading:ee,isLoading:ee,data:L,dataUpdatedAt:x.dataUpdatedAt,error:B,errorUpdatedAt:D,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:x.dataUpdateCount>y.dataUpdateCount||x.errorUpdateCount>y.errorUpdateCount,isFetching:V,isRefetching:V&&!Y,isLoadingError:X&&!ie,isPaused:x.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:X&&ie,isStale:mf(i,s),refetch:this.refetch,promise:j(this,Rl),isEnabled:Ut(s.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const fe=F.data!==void 0,Se=F.status==="error"&&!fe,oe=pe=>{Se?pe.reject(F.error):fe&&pe.resolve(F.data)},Be=()=>{const pe=$(this,Rl,F.promise=Ho());oe(pe)},Me=j(this,Rl);switch(Me.status){case"pending":i.queryHash===c.queryHash&&oe(Me);break;case"fulfilled":(Se||F.data!==Me.value)&&Be();break;case"rejected":(!Se||F.error!==Me.reason)&&Be();break}}return F}updateResult(){const i=j(this,ht),s=this.createResult(j(this,Ee),this.options);if($(this,Va,j(this,Ee).state),$(this,Vn,this.options),j(this,Va).data!==void 0&&$(this,$n,j(this,Ee)),Yr(s,i))return;$(this,ht,s);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:f}=this.options,m=typeof f=="function"?f():f;if(m==="all"||!m&&!j(this,Fn).size)return!0;const h=new Set(m??j(this,Fn));return this.options.throwOnError&&h.add("error"),Object.keys(j(this,ht)).some(g=>{const v=g;return j(this,ht)[v]!==i[v]&&h.has(v)})};me(this,Re,Yv).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,Re,ko).call(this)}},jt=new WeakMap,Ee=new WeakMap,su=new WeakMap,ht=new WeakMap,Va=new WeakMap,Vn=new WeakMap,Rl=new WeakMap,ha=new WeakMap,cu=new WeakMap,Jn=new WeakMap,$n=new WeakMap,Ja=new WeakMap,$a=new WeakMap,ma=new WeakMap,Fn=new WeakMap,Re=new WeakSet,lu=function(i){me(this,Re,Xo).call(this);let s=j(this,Ee).fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(mt)),s},Lo=function(){me(this,Re,Yo).call(this);const i=xa(this.options.staleTime,j(this,Ee));if(iu.isServer()||j(this,ht).isStale||!_o(i))return;const c=Dv(j(this,ht).dataUpdatedAt,i)+1;$(this,Ja,ka.setTimeout(()=>{j(this,ht).isStale||this.updateResult()},c))},Qo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,Ee)):this.options.refetchInterval)??!1},qo=function(i){me(this,Re,Go).call(this),$(this,ma,i),!(iu.isServer()||Ut(this.options.enabled,j(this,Ee))===!1||!_o(j(this,ma))||j(this,ma)===0)&&$(this,$a,ka.setInterval(()=>{(this.options.refetchIntervalInBackground||of.isFocused())&&me(this,Re,lu).call(this)},j(this,ma)))},ko=function(){me(this,Re,Lo).call(this),me(this,Re,qo).call(this,me(this,Re,Qo).call(this))},Yo=function(){j(this,Ja)!==void 0&&(ka.clearTimeout(j(this,Ja)),$(this,Ja,void 0))},Go=function(){j(this,$a)!==void 0&&(ka.clearInterval(j(this,$a)),$(this,$a,void 0))},Xo=function(){const i=j(this,jt).getQueryCache().build(j(this,jt),this.options);if(i===j(this,Ee))return;const s=j(this,Ee);$(this,Ee,i),$(this,su,i.state),this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))},Yv=function(i){tt.batch(()=>{i.listeners&&this.listeners.forEach(s=>{s(j(this,ht))}),j(this,jt).getQueryCache().notify({query:j(this,Ee),type:"observerResultsUpdated"})})},cv);function Wb(n,i){return Ut(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&Ut(i.retryOnMount,n)===!1)}function Xp(n,i){return Wb(n,i)||n.state.data!==void 0&&Ko(n,i,i.refetchOnMount)}function Ko(n,i,s){if(Ut(i.enabled,n)!==!1&&xa(i.staleTime,n)!=="static"){const c=typeof s=="function"?s(n):s;return c==="always"||c!==!1&&mf(n,i)}return!1}function Kp(n,i,s,c){return(n!==i||Ut(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&mf(n,s)}function mf(n,i){return Ut(i.enabled,n)!==!1&&n.isStaleByTime(xa(i.staleTime,n))}function Ib(n,i){return!Yr(n.getCurrentResult(),i)}var ou,nl,ft,Fa,il,ca,ov,Pb=(ov=class extends Qv{constructor(i){super();ae(this,il);ae(this,ou);ae(this,nl);ae(this,ft);ae(this,Fa);$(this,ou,i.client),this.mutationId=i.mutationId,$(this,ft,i.mutationCache),$(this,nl,[]),this.state=i.state||Gv(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){j(this,nl).includes(i)||(j(this,nl).push(i),this.clearGcTimeout(),j(this,ft).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){$(this,nl,j(this,nl).filter(s=>s!==i)),this.scheduleGc(),j(this,ft).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){j(this,nl).length||(this.state.status==="pending"?this.scheduleGc():j(this,ft).remove(this))}continue(){var i;return((i=j(this,Fa))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var h,g,v,y,b,x,w,L,B,D,k,H,V,Y,X,ee,ie,K;const s=()=>{me(this,il,ca).call(this,{type:"continue"})},c={client:j(this,ou),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,Fa,Lv({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(F,le)=>{me(this,il,ca).call(this,{type:"failed",failureCount:F,error:le})},onPause:()=>{me(this,il,ca).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,ft).canRun(this)}));const f=this.state.status==="pending",m=!j(this,Fa).canStart();try{if(f)s();else{me(this,il,ca).call(this,{type:"pending",variables:i,isPaused:m}),j(this,ft).config.onMutate&&await j(this,ft).config.onMutate(i,this,c);const le=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,i,c));le!==this.state.context&&me(this,il,ca).call(this,{type:"pending",context:le,variables:i,isPaused:m})}const F=await j(this,Fa).start();return await((y=(v=j(this,ft).config).onSuccess)==null?void 0:y.call(v,F,i,this.state.context,this,c)),await((x=(b=this.options).onSuccess)==null?void 0:x.call(b,F,i,this.state.context,c)),await((L=(w=j(this,ft).config).onSettled)==null?void 0:L.call(w,F,null,this.state.variables,this.state.context,this,c)),await((D=(B=this.options).onSettled)==null?void 0:D.call(B,F,null,i,this.state.context,c)),me(this,il,ca).call(this,{type:"success",data:F}),F}catch(F){try{await((H=(k=j(this,ft).config).onError)==null?void 0:H.call(k,F,i,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await((Y=(V=this.options).onError)==null?void 0:Y.call(V,F,i,this.state.context,c))}catch(le){Promise.reject(le)}try{await((ee=(X=j(this,ft).config).onSettled)==null?void 0:ee.call(X,void 0,F,this.state.variables,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await((K=(ie=this.options).onSettled)==null?void 0:K.call(ie,void 0,F,i,this.state.context,c))}catch(le){Promise.reject(le)}throw me(this,il,ca).call(this,{type:"error",error:F}),F}finally{j(this,ft).runNext(this)}}},ou=new WeakMap,nl=new WeakMap,ft=new WeakMap,Fa=new WeakMap,il=new WeakSet,ca=function(i){const s=c=>{switch(i.type){case"failed":return{...c,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...c,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:i.error,failureCount:c.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),tt.batch(()=>{j(this,nl).forEach(c=>{c.onMutationUpdate(i)}),j(this,ft).notify({mutation:this,type:"updated",action:i})})},ov);function Gv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zl,It,fu,fv,e1=(fv=class extends ai{constructor(i={}){super();ae(this,zl);ae(this,It);ae(this,fu);this.config=i,$(this,zl,new Set),$(this,It,new Map),$(this,fu,0)}build(i,s,c){const f=new Pb({client:i,mutationCache:this,mutationId:++Or(this,fu)._,options:i.defaultMutationOptions(s),state:c});return this.add(f),f}add(i){j(this,zl).add(i);const s=Dr(i);if(typeof s=="string"){const c=j(this,It).get(s);c?c.push(i):j(this,It).set(s,[i])}this.notify({type:"added",mutation:i})}remove(i){if(j(this,zl).delete(i)){const s=Dr(i);if(typeof s=="string"){const c=j(this,It).get(s);if(c)if(c.length>1){const f=c.indexOf(i);f!==-1&&c.splice(f,1)}else c[0]===i&&j(this,It).delete(s)}}this.notify({type:"removed",mutation:i})}canRun(i){const s=Dr(i);if(typeof s=="string"){const c=j(this,It).get(s),f=c==null?void 0:c.find(m=>m.state.status==="pending");return!f||f===i}else return!0}runNext(i){var c;const s=Dr(i);if(typeof s=="string"){const f=(c=j(this,It).get(s))==null?void 0:c.find(m=>m!==i&&m.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{j(this,zl).forEach(i=>{this.notify({type:"removed",mutation:i})}),j(this,zl).clear(),j(this,It).clear()})}getAll(){return Array.from(j(this,zl))}find(i){const s={exact:!0,...i};return this.getAll().find(c=>Lp(s,c))}findAll(i={}){return this.getAll().filter(s=>Lp(i,s))}notify(i){tt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){const i=this.getAll().filter(s=>s.state.isPaused);return tt.batch(()=>Promise.all(i.map(s=>s.continue().catch(mt))))}},zl=new WeakMap,It=new WeakMap,fu=new WeakMap,fv);function Dr(n){var i;return(i=n.options.scope)==null?void 0:i.id}var wl,pa,Nt,Ol,_l,Qr,Zo,dv,t1=(dv=class extends ai{constructor(s,c){super();ae(this,_l);ae(this,wl);ae(this,pa);ae(this,Nt);ae(this,Ol);$(this,wl,s),this.setOptions(c),this.bindMethods(),me(this,_l,Qr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=j(this,wl).defaultMutationOptions(s),Yr(this.options,c)||j(this,wl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:j(this,Nt),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Wa(c.mutationKey)!==Wa(this.options.mutationKey)?this.reset():((f=j(this,Nt))==null?void 0:f.state.status)==="pending"&&j(this,Nt).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=j(this,Nt))==null||s.removeObserver(this)}onMutationUpdate(s){me(this,_l,Qr).call(this),me(this,_l,Zo).call(this,s)}getCurrentResult(){return j(this,pa)}reset(){var s;(s=j(this,Nt))==null||s.removeObserver(this),$(this,Nt,void 0),me(this,_l,Qr).call(this),me(this,_l,Zo).call(this)}mutate(s,c){var f;return $(this,Ol,c),(f=j(this,Nt))==null||f.removeObserver(this),$(this,Nt,j(this,wl).getMutationCache().build(j(this,wl),this.options)),j(this,Nt).addObserver(this),j(this,Nt).execute(s)}},wl=new WeakMap,pa=new WeakMap,Nt=new WeakMap,Ol=new WeakMap,_l=new WeakSet,Qr=function(){var c;const s=((c=j(this,Nt))==null?void 0:c.state)??Gv();$(this,pa,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},Zo=function(s){tt.batch(()=>{var c,f,m,h,g,v,y,b;if(j(this,Ol)&&this.hasListeners()){const x=j(this,pa).variables,w=j(this,pa).context,L={client:j(this,wl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(f=(c=j(this,Ol)).onSuccess)==null||f.call(c,s.data,x,w,L)}catch(B){Promise.reject(B)}try{(h=(m=j(this,Ol)).onSettled)==null||h.call(m,s.data,null,x,w,L)}catch(B){Promise.reject(B)}}else if((s==null?void 0:s.type)==="error"){try{(v=(g=j(this,Ol)).onError)==null||v.call(g,s.error,x,w,L)}catch(B){Promise.reject(B)}try{(b=(y=j(this,Ol)).onSettled)==null||b.call(y,void 0,s.error,x,w,L)}catch(B){Promise.reject(B)}}}this.listeners.forEach(x=>{x(j(this,pa))})})},dv),ul,hv,l1=(hv=class extends ai{constructor(i={}){super();ae(this,ul);this.config=i,$(this,ul,new Map)}build(i,s,c){const f=s.queryKey,m=s.queryHash??ff(f,s);let h=this.get(m);return h||(h=new $b({client:i,queryKey:f,queryHash:m,options:i.defaultQueryOptions(s),state:c,defaultOptions:i.getQueryDefaults(f)}),this.add(h)),h}add(i){j(this,ul).has(i.queryHash)||(j(this,ul).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=j(this,ul).get(i.queryHash);s&&(i.destroy(),s===i&&j(this,ul).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){tt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return j(this,ul).get(i)}getAll(){return[...j(this,ul).values()]}find(i){const s={exact:!0,...i};return this.getAll().find(c=>Bp(s,c))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(c=>Bp(i,c)):s}notify(i){tt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},ul=new WeakMap,hv),Ze,va,ya,Wn,In,ga,Pn,ei,mv,a1=(mv=class{constructor(n={}){ae(this,Ze);ae(this,va);ae(this,ya);ae(this,Wn);ae(this,In);ae(this,ga);ae(this,Pn);ae(this,ei);$(this,Ze,n.queryCache||new l1),$(this,va,n.mutationCache||new e1),$(this,ya,n.defaultOptions||{}),$(this,Wn,new Map),$(this,In,new Map),$(this,ga,0)}mount(){Or(this,ga)._++,j(this,ga)===1&&($(this,Pn,of.subscribe(async n=>{n&&(await this.resumePausedMutations(),j(this,Ze).onFocus())})),$(this,ei,Gr.subscribe(async n=>{n&&(await this.resumePausedMutations(),j(this,Ze).onOnline())})))}unmount(){var n,i;Or(this,ga)._--,j(this,ga)===0&&((n=j(this,Pn))==null||n.call(this),$(this,Pn,void 0),(i=j(this,ei))==null||i.call(this),$(this,ei,void 0))}isFetching(n){return j(this,Ze).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return j(this,va).findAll({...n,status:"pending"}).length}getQueryData(n){var s;const i=this.defaultQueryOptions({queryKey:n});return(s=j(this,Ze).get(i.queryHash))==null?void 0:s.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),s=j(this,Ze).build(this,i),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(xa(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(n){return j(this,Ze).findAll(n).map(({queryKey:i,state:s})=>{const c=s.data;return[i,c]})}setQueryData(n,i,s){const c=this.defaultQueryOptions({queryKey:n}),f=j(this,Ze).get(c.queryHash),m=f==null?void 0:f.state.data,h=Bb(i,m);if(h!==void 0)return j(this,Ze).build(this,c).setData(h,{...s,manual:!0})}setQueriesData(n,i,s){return tt.batch(()=>j(this,Ze).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,i,s)]))}getQueryState(n){var s;const i=this.defaultQueryOptions({queryKey:n});return(s=j(this,Ze).get(i.queryHash))==null?void 0:s.state}removeQueries(n){const i=j(this,Ze);tt.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(n,i){const s=j(this,Ze);return tt.batch(()=>(s.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const s={revert:!0,...i},c=tt.batch(()=>j(this,Ze).findAll(n).map(f=>f.cancel(s)));return Promise.all(c).then(mt).catch(mt)}invalidateQueries(n,i={}){return tt.batch(()=>(j(this,Ze).findAll(n).forEach(s=>{s.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},i)))}refetchQueries(n,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},c=tt.batch(()=>j(this,Ze).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let m=f.fetch(void 0,s);return s.throwOnError||(m=m.catch(mt)),f.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(mt)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const s=j(this,Ze).build(this,i);return s.isStaleByTime(xa(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(mt).catch(mt)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(mt).catch(mt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Gr.isOnline()?j(this,va).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Ze)}getMutationCache(){return j(this,va)}getDefaultOptions(){return j(this,ya)}setDefaultOptions(n){$(this,ya,n)}setQueryDefaults(n,i){j(this,Wn).set(Wa(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...j(this,Wn).values()],s={};return i.forEach(c=>{nu(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,i){j(this,In).set(Wa(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...j(this,In).values()],s={};return i.forEach(c=>{nu(n,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const i={...j(this,ya).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=ff(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===df&&(i.enabled=!1),i}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...j(this,ya).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){j(this,Ze).clear(),j(this,va).clear()}},Ze=new WeakMap,va=new WeakMap,ya=new WeakMap,Wn=new WeakMap,In=new WeakMap,ga=new WeakMap,Pn=new WeakMap,ei=new WeakMap,mv),Xv=M.createContext(void 0),Vr=n=>{const i=M.useContext(Xv);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},n1=({client:n,children:i})=>(M.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),o.jsx(Xv.Provider,{value:n,children:i})),Kv=M.createContext(!1),i1=()=>M.useContext(Kv);Kv.Provider;function u1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var r1=M.createContext(u1()),s1=()=>M.useContext(r1),c1=(n,i,s)=>{const c=s!=null&&s.state.error&&typeof n.throwOnError=="function"?hf(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||c)&&(i.isReset()||(n.retryOnMount=!1))},o1=n=>{M.useEffect(()=>{n.clearReset()},[n])},f1=({result:n,errorResetBoundary:i,throwOnError:s,query:c,suspense:f})=>n.isError&&!i.isReset()&&!n.isFetching&&c&&(f&&n.data===void 0||hf(s,[n.error,c])),d1=n=>{if(n.suspense){const s=f=>f==="static"?f:Math.max(f??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...f)=>s(c(...f)):s(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},h1=(n,i)=>n.isLoading&&n.isFetching&&!i,m1=(n,i)=>(n==null?void 0:n.suspense)&&i.isPending,Zp=(n,i,s)=>i.fetchOptimistic(n).catch(()=>{s.clearReset()});function p1(n,i,s){var L,B,D,k;const c=i1(),f=s1(),m=Vr(),h=m.defaultQueryOptions(n);(B=(L=m.getDefaultOptions().queries)==null?void 0:L._experimental_beforeQuery)==null||B.call(L,h);const g=m.getQueryCache().get(h.queryHash),v=n.subscribed!==!1;h._optimisticResults=c?"isRestoring":v?"optimistic":void 0,d1(h),c1(h,f,g),o1(f);const y=!m.getQueryCache().get(h.queryHash),[b]=M.useState(()=>new i(m,h)),x=b.getOptimisticResult(h),w=!c&&v;if(M.useSyncExternalStore(M.useCallback(H=>{const V=w?b.subscribe(tt.batchCalls(H)):mt;return b.updateResult(),V},[b,w]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),M.useEffect(()=>{b.setOptions(h)},[h,b]),m1(h,x))throw Zp(h,b,f);if(f1({result:x,errorResetBoundary:f,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw x.error;if((k=(D=m.getDefaultOptions().queries)==null?void 0:D._experimental_afterQuery)==null||k.call(D,h,x),h.experimental_prefetchInRender&&!iu.isServer()&&h1(x,c)){const H=y?Zp(h,b,f):g==null?void 0:g.promise;H==null||H.catch(mt).finally(()=>{b.updateResult()})}return h.notifyOnChangeProps?x:b.trackResult(x)}function sl(n,i){return p1(n,Fb)}function pf(n,i){const s=Vr(),[c]=M.useState(()=>new t1(s,n));M.useEffect(()=>{c.setOptions(n)},[c,n]);const f=M.useSyncExternalStore(M.useCallback(h=>c.subscribe(tt.batchCalls(h)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m=M.useCallback((h,g)=>{c.mutate(h,g).catch(mt)},[c]);if(f.error&&hf(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:m,mutateAsync:f.mutate}}/**
61
+ * @license lucide-react v1.17.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Zv=(...n)=>n.filter((i,s,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===s).join(" ").trim();/**
66
+ * @license lucide-react v1.17.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const v1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
71
+ * @license lucide-react v1.17.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const y1=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,c)=>c?c.toUpperCase():s.toLowerCase());/**
76
+ * @license lucide-react v1.17.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const Vp=n=>{const i=y1(n);return i.charAt(0).toUpperCase()+i.slice(1)};/**
81
+ * @license lucide-react v1.17.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */var Mo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
86
+ * @license lucide-react v1.17.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const g1=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},x1=M.createContext({}),b1=()=>M.useContext(x1),S1=M.forwardRef(({color:n,size:i,strokeWidth:s,absoluteStrokeWidth:c,className:f="",children:m,iconNode:h,...g},v)=>{const{size:y=24,strokeWidth:b=2,absoluteStrokeWidth:x=!1,color:w="currentColor",className:L=""}=b1()??{},B=c??x?Number(s??b)*24/Number(i??y):s??b;return M.createElement("svg",{ref:v,...Mo,width:i??y??Mo.width,height:i??y??Mo.height,stroke:n??w,strokeWidth:B,className:Zv("lucide",L,f),...!m&&!g1(g)&&{"aria-hidden":"true"},...g},[...h.map(([D,k])=>M.createElement(D,k)),...Array.isArray(m)?m:[m]])});/**
91
+ * @license lucide-react v1.17.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Ve=(n,i)=>{const s=M.forwardRef(({className:c,...f},m)=>M.createElement(S1,{ref:m,iconNode:i,className:Zv(`lucide-${v1(Vp(n))}`,`lucide-${n}`,c),...f}));return s.displayName=Vp(n),s};/**
96
+ * @license lucide-react v1.17.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const j1=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Jp=Ve("activity",j1);/**
101
+ * @license lucide-react v1.17.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const N1=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],$p=Ve("boxes",N1);/**
106
+ * @license lucide-react v1.17.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const E1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],M1=Ve("check",E1);/**
111
+ * @license lucide-react v1.17.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const C1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],T1=Ve("circle-check",C1);/**
116
+ * @license lucide-react v1.17.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const A1=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],R1=Ve("circle-dashed",A1);/**
121
+ * @license lucide-react v1.17.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const z1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Vv=Ve("clock-3",z1);/**
126
+ * @license lucide-react v1.17.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const w1=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Vo=Ve("credit-card",w1);/**
131
+ * @license lucide-react v1.17.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const O1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],_1=Ve("database",O1);/**
136
+ * @license lucide-react v1.17.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const D1=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],U1=Ve("git-branch",D1);/**
141
+ * @license lucide-react v1.17.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const H1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jo=Ve("loader-circle",H1);/**
146
+ * @license lucide-react v1.17.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const B1=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],L1=Ve("lock-keyhole",B1);/**
151
+ * @license lucide-react v1.17.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const Q1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],q1=Ve("plus",Q1);/**
156
+ * @license lucide-react v1.17.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const k1=[["path",{d:"M13 16H8",key:"wsln4y"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]],Y1=Ve("receipt-text",k1);/**
161
+ * @license lucide-react v1.17.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const G1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],X1=Ve("refresh-cw",G1);/**
166
+ * @license lucide-react v1.17.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const K1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],vf=Ve("search",K1);/**
171
+ * @license lucide-react v1.17.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const Z1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],V1=Ve("shield-check",Z1);/**
176
+ * @license lucide-react v1.17.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const J1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$1=Ve("terminal",J1);/**
181
+ * @license lucide-react v1.17.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const F1=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],W1=Ve("timer",F1);/**
186
+ * @license lucide-react v1.17.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const I1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Jv=Ve("trash-2",I1);/**
191
+ * @license lucide-react v1.17.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const P1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],e2=Ve("trending-up",P1);/**
196
+ * @license lucide-react v1.17.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const t2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]],l2=Ve("wallet-cards",t2);/**
201
+ * @license lucide-react v1.17.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const a2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$v=Ve("x",a2);class Fv extends Error{constructor(s,c,f){super(s);mo(this,"status");mo(this,"code");this.status=c,this.code=f}}async function cl(n){var s,c;const i=await fetch(n);if(!i.ok){const f=await i.json().catch(()=>({}));throw new Fv(((s=f.error)==null?void 0:s.message)??`${n} returned ${i.status}`,i.status,(c=f.error)==null?void 0:c.code)}return i.json()}async function Jr(n,i,s){var f,m;const c=await fetch(i,{method:n,headers:s?{"content-type":"application/json"}:void 0,body:s?JSON.stringify(s):void 0});if(!c.ok){const h=await c.json().catch(()=>({}));throw new Fv(((f=h.error)==null?void 0:f.message)??`${n} ${i} returned ${c.status}`,c.status,(m=h.error)==null?void 0:m.code)}return c.json()}function yf(){return sl({queryKey:["ledger","inferences"],queryFn:()=>cl("/ledger/inferences"),refetchInterval:1e4})}function Wv(){return sl({queryKey:["ledger","purchases"],queryFn:()=>cl("/ledger/purchases"),refetchInterval:1e4})}function n2(){return sl({queryKey:["payments"],queryFn:()=>cl("/payments"),refetchInterval:1e4})}function i2(){const n=Vr();return pf({mutationFn:()=>Jr("POST","/payments/clawtip/activate"),onSuccess:()=>{n.invalidateQueries({queryKey:["payments"]})}})}function u2(){return pf({mutationFn:()=>Jr("POST","/payments/clawtip/recharge")})}function r2(){return sl({queryKey:["providers","status"],queryFn:()=>cl("/providers/status"),refetchInterval:1e4})}function Iv(){return sl({queryKey:["routing","strategy"],queryFn:()=>cl("/routing/strategy")})}function s2(){const n=Vr();return pf({mutationFn:i=>Jr("PUT","/routing/strategy",i),onSuccess:()=>{n.invalidateQueries({queryKey:["routing","strategy"]})}})}function c2(n){const i=new URLSearchParams;for(const[s,c]of Object.entries(n))c!=null&&c!==""&&i.set(s,o2(c));return sl({queryKey:["routing","preview",i.toString()],queryFn:()=>cl(`/routing/preview?${i.toString()}`),enabled:!1})}function o2(n){return Array.isArray(n)?n.join(","):typeof n=="object"&&n!==null?Object.entries(n).map(([i,s])=>`${i}:${s}`).join(","):String(n)}function Pv(){return sl({queryKey:["sellers"],queryFn:()=>cl("/sellers"),refetchInterval:3e4})}function e0(){return sl({queryKey:["models"],queryFn:()=>cl("/models"),refetchInterval:3e4})}function f2(){return sl({queryKey:["prewarm","focus-set"],queryFn:()=>cl("/v1.2/prewarm").then(n=>({ok:!0,focusSet:n.focusSet??[],source:"historical"}))})}async function Co(n){const i=Array.isArray(n)?{models:n}:n;return Jr("PUT","/prewarm/focus-set",i)}function d2(){return sl({queryKey:["status"],queryFn:()=>cl("/status"),refetchInterval:5e3})}function ba({children:n,className:i=""}){return o.jsx("div",{className:["rounded-[12px] border border-[var(--color-line-2)] bg-white shadow-[0_12px_36px_rgba(60,41,112,0.08)]",i].join(" "),children:n})}function gf({tone:n="lavender",children:i}){const s={lavender:"bg-[var(--color-lavender)] text-[var(--color-purple)]",green:"bg-emerald-50 text-emerald-700",amber:"bg-amber-50 text-amber-700",red:"bg-rose-50 text-rose-700",blue:"bg-indigo-50 text-indigo-700",gray:"bg-slate-100 text-slate-600"};return o.jsxs("span",{className:["inline-flex items-center gap-1.5 text-[0.78rem] font-medium px-2.5 py-0.5 rounded-full",s[n]??s.lavender].join(" "),children:[o.jsx("span",{className:"size-1.5 rounded-full bg-current"}),i]})}const h2=[{method:"alipay-agent",name:"Alipay Agent Payment",icon:"A"},{method:"wechat-pay",name:"WeChat Pay",icon:"W"},{method:"coinbase-smart-wallet",name:"Coinbase Smart Wallet",icon:"C"}];function Fp(){var oe,Be,Me,pe,_,J,ne,je,ge,N,R,Z,W,G,I,re,Oe,_e,Bl,Sa,Pa;const[n,i]=M.useState(null),s=d2(),c=Iv(),f=n2(),m=r2(),h=i2(),g=u2(),v=f.refetch,y=h.reset,b=yf(),x=Wv(),w=Pv(),L=e0(),B=((oe=b.data)==null?void 0:oe.inferences)??[],D=((Be=x.data)==null?void 0:Be.purchases)??[],k=((Me=f.data)==null?void 0:Me.payments)??[],H=new Set((((pe=L.data)==null?void 0:pe.data)??[]).map(Qe=>Qe.id)).size,V=((_=w.data)==null?void 0:_.sellers.length)??((ne=(J=L.data)==null?void 0:J.sellers)==null?void 0:ne.length)??0,Y=M.useMemo(()=>E2(B,D),[B,D]),X=M.useMemo(()=>M2(k,B),[B,k]),ie=k.some(Qe=>Vt(Qe.method)==="clawtip"&&(Qe.enabled||i0(Qe.config,"walletConfigPresent")))||((je=h.data)==null?void 0:je.walletConfigPresent)===!0,K=((ge=s.data)==null?void 0:ge.status)==="running"&&!s.isError,F=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),le=((N=c.data)==null?void 0:N.strategy.mode)??((R=s.data)==null?void 0:R.sellerRoutingMode)??"—",fe=((Z=c.data)==null?void 0:Z.strategy.scorer)??((W=s.data)==null?void 0:W.sellerRoutingScorer)??"—",Se=()=>{i(null),h.reset(),g.reset()};return M.useEffect(()=>{if((n==null?void 0:n.kind)!=="activate"||Vt(n.method)!=="clawtip"||ie)return;const Qe=window.setInterval(()=>{v()},1500);return()=>window.clearInterval(Qe)},[ie,n==null?void 0:n.kind,n==null?void 0:n.method,v]),M.useEffect(()=>{(n==null?void 0:n.kind)==="activate"&&Vt(n.method)==="clawtip"&&ie&&(i(null),y())},[ie,n==null?void 0:n.kind,n==null?void 0:n.method,y]),o.jsxs("div",{className:"min-w-0 overflow-x-hidden space-y-3",children:[o.jsxs("section",{className:"grid grid-cols-2 gap-2.5 md:grid-cols-3 xl:grid-cols-6",children:[o.jsx(Qn,{to:"/routing",icon:o.jsx(U1,{className:"size-4"}),label:"Router",value:le,note:`${fe} scorer`,tone:"router"}),o.jsx(Qn,{to:"/ledger",icon:o.jsx(Jp,{className:"size-4"}),label:"Today requests",value:Y.todayRequestCount.toLocaleString(),note:`${Y.totalRequestCount.toLocaleString()} total`,tone:"requests"}),o.jsx(Qn,{to:"/ledger",icon:o.jsx(Vo,{className:"size-4"}),label:"Spend today",value:kn(Y.todaySpendMicros,4),note:`${kn(Y.totalSpendMicros,4)} total`,tone:"spend"}),o.jsx(Qn,{to:"/ledger",icon:o.jsx($p,{className:"size-4"}),label:"Today tokens",value:qn(Y.todayInputTokens+Y.todayOutputTokens),note:`In ${qn(Y.todayInputTokens)} / Out ${qn(Y.todayOutputTokens)}`,tone:"todayTokens"}),o.jsx(Qn,{to:"/ledger",icon:o.jsx(Jp,{className:"size-4"}),label:"Total tokens",value:qn(Y.inputTokens+Y.outputTokens),note:`In ${qn(Y.inputTokens)} / Out ${qn(Y.outputTokens)}`,tone:"tokens"}),o.jsx(Qn,{to:"/routing",icon:o.jsx($p,{className:"size-4"}),label:"Models / Sellers",value:`${H}`,note:`${V} sellers`,tone:"capacity"})]}),o.jsxs("section",{className:"grid min-w-0 gap-3 sm:grid-cols-[minmax(0,1.45fr)_minmax(260px,0.8fr)]",children:[o.jsxs("div",{className:"min-w-0 space-y-3",children:[o.jsxs(ba,{className:"p-3.5",children:[o.jsx("div",{className:"flex items-start justify-between gap-4",children:o.jsx("div",{children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("h2",{className:"text-[1rem] font-semibold text-[var(--color-ink)]",children:"Payment management"}),o.jsx(gf,{tone:k.some(Qe=>Qe.enabled)?"green":"amber",children:k.some(Qe=>Qe.enabled)?"configured":"not configured"})]})})}),o.jsx("div",{className:"mt-2 min-w-0 overflow-hidden rounded-[10px] border border-[var(--color-line-2)] bg-white",children:X.map(Qe=>o.jsx(v2,{...Qe,onActivate:()=>{i({kind:"activate",method:Qe.method}),Qe.method==="clawtip"&&h.mutate()},onRecharge:()=>{i({kind:"recharge",method:Qe.method}),Qe.method==="clawtip"&&g.mutate()}},Qe.method))})]}),o.jsxs(ba,{className:"p-3",children:[o.jsxs("div",{className:"mb-2 flex min-w-0 flex-col gap-2",children:[o.jsxs("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-2",children:[o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(e2,{className:"size-4 shrink-0 text-[var(--color-purple)]"}),o.jsx("h2",{className:"truncate text-[1rem] font-semibold text-[var(--color-ink)]",children:"TokenUsage"})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[o.jsx(To,{icon:o.jsx(Vo,{className:"size-3.5"}),label:"Weekly spend",value:kn(Y.weeklySpendMicros),tone:"spend"}),o.jsx(To,{icon:o.jsx(T1,{className:"size-3.5"}),label:"Completed purchases",value:Y.completedPurchases.toString(),tone:"ok"}),o.jsx(To,{icon:o.jsx(Vv,{className:"size-3.5"}),label:"Pending purchases",value:Y.pendingPurchases.toString(),tone:"warn"})]})]}),o.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2.5 gap-y-1 text-[0.7rem] text-[var(--color-muted)]",children:[Y.modelUsage.map(Qe=>o.jsx(S2,{model:Qe.model,color:Qe.color},Qe.model)),o.jsx(Wp,{label:"in"}),o.jsx(Wp,{label:"out",dashed:!0})]})]}),o.jsxs("div",{className:"grid min-w-0 gap-3 sm:grid-cols-[minmax(0,1fr)_190px]",children:[o.jsx(g2,{days:Y.days,series:Y.modelUsage}),o.jsxs("div",{className:"grid gap-3",children:[o.jsx(x2,{days:Y.days,values:Y.cost,total:kn(Y.weeklySpendMicros)}),o.jsx(b2,{values:Y.thirtyDaySpend,total:kn(Y.totalSpendMicros)})]})]})]})]}),o.jsx("aside",{className:"min-w-0 space-y-3",children:o.jsx(m2,{clients:((G=m.data)==null?void 0:G.clients)??[],configuredCount:((I=m.data)==null?void 0:I.summary.configuredCount)??0,installCommand:((re=m.data)==null?void 0:re.summary.installCommand)??"tb init",loading:m.isLoading,error:m.error})})]}),o.jsx(j2,{checkedAt:F,healthy:K,pid:(Oe=s.data)==null?void 0:Oe.pid,status:(_e=s.data)==null?void 0:_e.status,proxyPort:(Bl=s.data)==null?void 0:Bl.proxyPort,controlPort:(Sa=s.data)==null?void 0:Sa.controlPort,registryUrl:(Pa=s.data)==null?void 0:Pa.sellerRegistryUrl}),n?o.jsx(y2,{modal:n,methods:X,qr:n.kind==="activate"?h.data:g.data,loading:n.kind==="activate"?h.isPending:g.isPending,error:n.kind==="activate"?h.error:g.error,onClose:Se}):null]})}function m2({clients:n,configuredCount:i,installCommand:s,loading:c,error:f}){const[m,h]=M.useState(!1),g=[...n].sort((y,b)=>Pp(y.status)-Pp(b.status)||y.name.localeCompare(b.name)),v=async()=>{await n0(s)&&(h(!0),window.setTimeout(()=>h(!1),1500))};return o.jsxs(ba,{className:"p-4",children:[o.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx($1,{className:"size-4 text-[var(--color-purple)]"}),o.jsx("h2",{className:"text-[1rem] font-semibold text-[var(--color-ink)]",children:"Client tools"})]}),o.jsxs("span",{className:"font-mono text-[0.74rem] text-[var(--color-muted)]",children:[i," configured"]})]}),o.jsx("div",{className:"mt-3 rounded-[10px] border border-indigo-100 bg-indigo-50 px-3 py-2",children:o.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:"text-[0.78rem] font-medium text-indigo-900",children:"Provider install runs in CLI"}),o.jsxs("div",{className:"mt-0.5 text-[0.74rem] text-indigo-900/70",children:["Run ",o.jsx("span",{className:"font-mono",children:s})," to install or repair client configs."]})]}),o.jsx("button",{className:"shrink-0 rounded-[8px] bg-indigo-600 px-2.5 py-1.5 text-[0.72rem] font-semibold text-white shadow-[0_8px_18px_rgba(79,70,229,0.16)] transition hover:bg-indigo-700 active:translate-y-px",onClick:v,children:m?"Copied":"CLI"})]})}),o.jsx("div",{className:"mt-3 grid gap-2",children:c?o.jsxs("div",{className:"flex items-center gap-2 rounded-[9px] border border-[var(--color-line-2)] bg-white px-3 py-2 text-[0.78rem] text-[var(--color-muted)]",children:[o.jsx(Jo,{className:"size-4 animate-spin text-[var(--color-purple)]"}),"Checking local client configs..."]}):f?o.jsx("div",{className:"rounded-[9px] border border-rose-100 bg-rose-50 px-3 py-2 text-[0.78rem] text-rose-700",children:f instanceof Error?f.message:String(f)}):g.map(y=>o.jsx(p2,{client:y},y.id))})]})}function p2({client:n}){const[i,s]=M.useState(!1),c=A2(n.status),f=n.status==="manual"?n.reason:a0(n.configPath??n.reason),m=async()=>{!n.manualConfig||!await n0(R2(n.manualConfig))||(s(!0),window.setTimeout(()=>s(!1),1500))};return o.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-2 rounded-[9px] border border-[var(--color-line-2)] bg-white px-3 py-2",children:[o.jsxs("div",{className:"min-w-0",children:[o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx("span",{className:"truncate text-[0.82rem] font-semibold text-[var(--color-ink)]",children:n.name}),n.commandName?o.jsx("span",{className:"font-mono text-[0.68rem] text-[var(--color-muted)]",children:n.commandName}):null]}),o.jsx("div",{className:"mt-0.5 truncate text-[0.72rem] text-[var(--color-muted)]",children:f})]}),o.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-1",children:[o.jsx("span",{className:["rounded-[7px] px-2 py-0.5 text-[0.68rem] font-semibold uppercase",c].join(" "),children:n.status}),n.manualConfig?o.jsx("button",{className:"rounded-[7px] border border-indigo-100 bg-indigo-50 px-2 py-1 text-[0.68rem] font-semibold text-indigo-700 transition hover:bg-indigo-100 active:translate-y-px",onClick:m,children:i?"Copied":"Copy"}):null]})]})}function Qn({to:n,icon:i,label:s,value:c,note:f,tone:m}){const h={router:{card:"border border-[var(--color-lavender-2)] bg-white shadow-[0_14px_30px_rgba(124,61,240,0.14)] hover:border-[var(--color-purple)] before:bg-[var(--color-purple)]",icon:"bg-[var(--color-lavender)] text-[var(--color-purple)]",label:"text-[var(--color-purple)]/72",value:"text-[var(--color-ink)]",note:"text-[var(--color-muted)]"},requests:{card:"border border-emerald-100 bg-white shadow-[0_10px_24px_rgba(16,185,129,0.08)] hover:border-emerald-200 before:bg-emerald-500",icon:"bg-emerald-50 text-emerald-700",label:"text-emerald-700/72",value:"text-[var(--color-ink)]",note:"text-emerald-950/58"},spend:{card:"border border-teal-100 bg-white shadow-[0_10px_24px_rgba(15,118,110,0.08)] hover:border-teal-200 before:bg-teal-600",icon:"bg-teal-50 text-teal-700",label:"text-teal-700/72",value:"text-[var(--color-ink)]",note:"text-teal-900/62"},todayTokens:{card:"border border-amber-100 bg-white shadow-[0_10px_24px_rgba(245,158,11,0.08)] hover:border-amber-200 before:bg-amber-500",icon:"bg-amber-50 text-amber-700",label:"text-amber-800/70",value:"text-[var(--color-ink)]",note:"text-amber-950/58"},tokens:{card:"border border-violet-100 bg-white shadow-[0_10px_24px_rgba(124,61,240,0.08)] hover:border-violet-200 before:bg-[var(--color-purple)]",icon:"bg-[var(--color-lavender)] text-[var(--color-purple)]",label:"text-[var(--color-purple)]/72",value:"text-[var(--color-ink)]",note:"text-[var(--color-muted)]"},capacity:{card:"border border-amber-100 bg-white shadow-[0_10px_24px_rgba(245,158,11,0.08)] hover:border-amber-200 before:bg-amber-500",icon:"bg-amber-50 text-amber-700",label:"text-amber-800/70",value:"text-[var(--color-ink)]",note:"text-amber-950/58"}}[m];return o.jsxs(sf,{to:n,"aria-label":`Open ${s}`,className:["relative block min-h-[94px] overflow-hidden rounded-[10px] p-3 transition before:absolute before:inset-y-0 before:left-0 before:w-1 hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-[var(--color-purple)]",h.card].join(" "),children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("div",{className:`grid size-7 place-items-center rounded-[8px] ${h.icon}`,children:i}),o.jsx("span",{className:["text-right text-[0.66rem] font-semibold uppercase leading-3",h.label].join(" "),children:s})]}),o.jsx("div",{className:["mt-2 text-[1.25rem] font-semibold leading-none",h.value].join(" "),children:c}),o.jsx("div",{className:["mt-1.5 truncate text-[0.72rem]",h.note].join(" "),children:f})]})}function v2({name:n,method:i,balance:s,status:c,note:f,action:m,icon:h,balanceHidden:g,onActivate:v,onRecharge:y}){const b=c==="Bound",x=c==="Coming soon",w=b&&g&&Vt(i)==="clawtip";return o.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_74px_82px] items-center gap-2 border-b border-[var(--color-line-2)] px-2 py-2.5 last:border-b-0 sm:grid-cols-[minmax(0,1fr)_96px_92px] sm:gap-3 sm:px-3",children:[o.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[o.jsx("div",{className:["grid size-8 shrink-0 place-items-center rounded-[8px] text-[0.8rem] font-bold",b?"bg-[var(--color-lavender)] text-[var(--color-purple)]":"bg-[var(--color-page)] text-[var(--color-muted)]"].join(" "),children:h}),o.jsx("div",{className:"flex items-center gap-2",children:o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:"truncate font-semibold text-[var(--color-ink)]",children:n}),f?o.jsx("div",{className:"mt-0.5 truncate text-[0.74rem] text-[var(--color-muted)]",children:f}):null]})})]}),w?o.jsxs("button",{type:"button",className:"inline-flex w-fit items-center gap-1 rounded-[7px] border border-[var(--color-lavender-2)] bg-[var(--color-lavender)] px-2 py-1 font-mono text-[0.82rem] font-semibold text-[var(--color-purple)] transition hover:border-[var(--color-purple)] hover:bg-white active:translate-y-px",onClick:y,"aria-label":"Scan with JD app to view ClawTip wallet balance",title:"Scan with JD app to view wallet balance",children:[o.jsx(L1,{className:"size-3.5"}),"••••"]}):o.jsx("div",{className:"font-mono text-[0.9rem] font-semibold text-[var(--color-ink)]",children:s}),x?o.jsx("span",{className:"text-right text-[0.76rem] font-semibold text-[var(--color-muted)]",children:"Coming soon"}):o.jsx("button",{className:"rounded-[8px] bg-[var(--color-purple)] px-2.5 py-1.5 text-[0.76rem] font-semibold text-white shadow-[0_8px_18px_rgba(124,61,240,0.16)] transition hover:bg-[#6e32dc] active:translate-y-px",onClick:b?y:v,"aria-label":`${m} ${n}`,children:m})]})}function y2({modal:n,methods:i,qr:s,loading:c,error:f,onClose:m}){const h=n.kind==="recharge",g=i.find(D=>D.method===n.method),v=h&&Vt(n.method)==="clawtip",y=Ao(g==null?void 0:g.config,"resourceUrl"),b=Ao(g==null?void 0:g.config,"walletConfigPath"),x=Ao(g==null?void 0:g.config,"orderNo"),w=(s==null?void 0:s.walletConfigPresent)===!0||i0(g==null?void 0:g.config,"walletConfigPresent"),L=!h&&!!(s!=null&&s.qrImageUrl)&&!w&&!f,B=(g==null?void 0:g.name)??t0(n.method);return o.jsx("div",{className:"fixed inset-0 z-30 grid place-items-center bg-[rgba(32,26,56,0.28)] px-4",children:o.jsxs("div",{className:"w-full max-w-[420px] rounded-[14px] bg-white p-5 shadow-[0_20px_56px_rgba(32,26,56,0.20)]",children:[o.jsxs("div",{className:"flex items-start justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-[1.05rem] font-semibold text-[var(--color-ink)]",children:v?"ClawTip wallet QR":h?`Recharge ${B}`:`Activate ${B}`}),o.jsx("p",{className:"mt-1 text-[0.82rem] leading-5 text-[var(--color-muted)]",children:v?"Scan with JD app to view wallet balance or recharge.":h?"Load the fixed ClawTip recharge QR from static assets.":"Reuse the tb init ClawTip flow and wait for wallet binding."})]}),o.jsx("button",{className:"rounded-[7px] p-1.5 text-[var(--color-muted)] transition hover:bg-[var(--color-page)]",onClick:m,"aria-label":"Close payment modal",children:o.jsx($v,{className:"size-4"})})]}),o.jsxs("div",{className:"mt-4 grid gap-4 sm:grid-cols-[140px_minmax(0,1fr)]",children:[o.jsx("div",{className:"grid aspect-square place-items-center overflow-hidden rounded-[10px] border border-[var(--color-line-2)] bg-[var(--color-page)] p-2",children:s!=null&&s.qrImageUrl?o.jsx("img",{className:"h-full w-full object-contain",src:s.qrImageUrl,alt:`${B} ${h?"recharge":"activation"} QR code`}):o.jsxs("div",{className:"flex flex-col items-center gap-2 px-3 text-center text-[0.78rem] leading-5 text-[var(--color-muted)]",children:[c?o.jsx(Jo,{className:"size-5 animate-spin text-[var(--color-purple)]"}):null,o.jsx("span",{children:c?"Generating ClawTip QR...":"QR image unavailable"})]})}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(Pi,{label:"Method",value:B}),o.jsx(Pi,{label:"Wallet",value:w?"bound":"waiting",warn:!w}),s!=null&&s.orderNo||x?o.jsx(Pi,{label:"Order",value:(s==null?void 0:s.orderNo)??x??""}):null,s!=null&&s.walletConfigPath||b?o.jsx(Pi,{label:"Config",value:a0((s==null?void 0:s.walletConfigPath)??b??"")}):null,s!=null&&s.clawtipId?o.jsx(Pi,{label:"Device",value:s.clawtipId}):null,f?o.jsx("div",{className:"rounded-[8px] border border-rose-100 bg-rose-50 px-3 py-2 text-[0.78rem] leading-5 text-rose-700",children:f instanceof Error?f.message:String(f)}):null,s!=null&&s.qrImageUrl?o.jsx("div",{className:"rounded-[8px] border border-emerald-100 bg-emerald-50 px-3 py-2 text-[0.78rem] leading-5 text-emerald-800",children:h?"Scan with JD app to view wallet balance or recharge.":o.jsxs("span",{className:"flex items-start gap-2",children:[L?o.jsx(Jo,{className:"mt-0.5 size-4 shrink-0 animate-spin"}):null,o.jsx("span",{children:w?"Wallet bound. Closing...":"Scan with JD app. TokenBuddy is waiting for the local wallet config."})]})}):null,s!=null&&s.resourceUrl||y?o.jsx("a",{className:"block rounded-[8px] border border-[var(--color-line-2)] bg-white px-3 py-2 font-mono text-[0.75rem] text-[var(--color-purple)] transition hover:bg-[var(--color-lavender)]",href:(s==null?void 0:s.resourceUrl)??y,target:"_blank",rel:"noreferrer",children:l0((s==null?void 0:s.resourceUrl)??y??"")}):!(s!=null&&s.qrImageUrl)&&!c&&!f?o.jsxs("div",{className:"rounded-[8px] border border-amber-100 bg-amber-50 px-3 py-2 text-[0.78rem] leading-5 text-amber-800",children:["No recharge link is available from the daemon. Run ",o.jsx("span",{className:"font-mono",children:"tb init"})," to bind this payment method."]}):null]})]})]})})}function g2({days:n,series:i}){const f={top:14,right:18,bottom:26,left:26},m=i.flatMap(y=>[...y.input,...y.output]),h=Math.max(1,...m),g=y=>f.left+y*(680-f.left-f.right)/Math.max(1,n.length-1),v=y=>f.top+(1-y/h)*(150-f.top-f.bottom);return o.jsx("div",{className:"rounded-[10px] border border-[var(--color-line-2)] bg-white px-3 py-1.5",children:o.jsxs("svg",{className:"h-[160px] w-full",viewBox:"0 0 680 150",role:"img","aria-label":"Daily model input and output usage lines",children:[[.25,.5,.75,1].map(y=>o.jsx("line",{x1:f.left,x2:680-f.right,y1:f.top+(1-y)*(150-f.top-f.bottom),y2:f.top+(1-y)*(150-f.top-f.bottom),stroke:"#eee9fb",strokeWidth:"1"},y)),n.map((y,b)=>o.jsx("text",{x:g(b),y:143,textAnchor:"middle",className:"fill-[var(--color-muted)] text-[10px]",children:y},y)),i.map(y=>o.jsxs("g",{children:[o.jsx("path",{d:$o(y.input.map((b,x)=>[g(x),v(b)])),fill:"none",stroke:y.color,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:$o(y.output.map((b,x)=>[g(x),v(b)])),fill:"none",stroke:y.color,strokeWidth:"2.4",strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.75"}),y.input.map((b,x)=>o.jsx("circle",{cx:g(x),cy:v(b),r:"2.7",fill:y.color},`${y.model}-input-${x}`)),y.output.map((b,x)=>o.jsx("circle",{cx:g(x),cy:v(b),r:"2.2",fill:"#fff",stroke:y.color,strokeWidth:"1.8"},`${y.model}-output-${x}`))]},y.model)),i.length===0?o.jsx("text",{x:680/2,y:150/2,textAnchor:"middle",className:"fill-[var(--color-muted)] text-[12px]",children:"No token usage yet"}):null]})})}function x2({days:n,values:i,total:s}){const m={top:10,right:8,bottom:16,left:8},h=Math.max(1,...i),g=y=>m.left+y*(190-m.left-m.right)/Math.max(1,i.length-1),v=y=>m.top+(1-y/h)*(72-m.top-m.bottom);return o.jsxs("div",{className:"rounded-[10px] border border-[var(--color-line-2)] bg-white px-3 py-1.5",children:[o.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[o.jsx("span",{className:"text-[0.74rem] font-semibold text-[var(--color-ink)]",children:"Cost curve"}),o.jsx("span",{className:"font-mono text-[0.74rem] text-[var(--color-muted)]",children:s})]}),o.jsxs("svg",{className:"h-[66px] w-full",viewBox:"0 0 190 72",role:"img","aria-label":"Daily cost curve",children:[o.jsx("path",{d:$o(i.map((y,b)=>[g(b),v(y)])),fill:"none",stroke:"#f59e0b",strokeWidth:"3",strokeLinecap:"round"}),i.map((y,b)=>o.jsx("circle",{cx:g(b),cy:v(y),r:"2.4",fill:"#f59e0b"},n[b]))]})]})}function b2({values:n,total:i}){const s=Math.max(1,...n);return o.jsxs("div",{className:"rounded-[10px] border border-[var(--color-line-2)] bg-white px-3 py-1.5",children:[o.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[o.jsx("span",{className:"text-[0.74rem] font-semibold text-[var(--color-ink)]",children:"30 day spend"}),o.jsx("span",{className:"font-mono text-[0.74rem] text-[var(--color-muted)]",children:i})]}),o.jsx("div",{className:"flex h-[60px] items-end gap-1",children:n.map((c,f)=>o.jsx("span",{className:"flex-1 rounded-t-[3px] bg-[var(--color-purple)]/75",style:{height:`${Math.max(8,c/s*100)}%`}},f))})]})}function $o(n){return n.length===0?"":n.length===1?`M ${n[0][0]} ${n[0][1]}`:n.reduce((i,s,c)=>{if(c===0)return`M ${s[0]} ${s[1]}`;const f=n[c-1],m=(f[0]+s[0])/2;return`${i} C ${m} ${f[1]}, ${m} ${s[1]}, ${s[0]} ${s[1]}`},"")}function To({icon:n,label:i,value:s,tone:c}){const f={spend:"border-teal-100 bg-teal-50 text-teal-700",ok:"border-emerald-100 bg-emerald-50 text-emerald-700",warn:"border-amber-100 bg-amber-50 text-amber-700"}[c];return o.jsxs("div",{className:["inline-flex h-7 items-center gap-1.5 rounded-[8px] border px-2",f].join(" "),title:i,"aria-label":`${i}: ${s}`,children:[n,o.jsx("span",{className:"font-mono text-[0.78rem] font-semibold text-[var(--color-ink)]",children:s})]})}function S2({model:n,color:i}){return o.jsxs("span",{className:"inline-flex min-w-0 max-w-[9rem] items-center gap-1.5 rounded-[7px] border border-[var(--color-line-2)] bg-white px-1.5 py-0.5",title:n,children:[o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:i}}),o.jsx("span",{className:"truncate font-mono text-[0.68rem]",children:n})]})}function Wp({label:n,dashed:i=!1}){return o.jsxs("span",{className:"inline-flex items-center gap-1 rounded-[7px] border border-[var(--color-line-2)] bg-white px-1.5 py-0.5",children:[o.jsx("span",{className:["h-px w-4 border-t border-[var(--color-ink)]",i?"border-dashed":""].join(" ")}),o.jsx("span",{className:"font-mono text-[0.68rem]",children:n})]})}function Pi({label:n,value:i,warn:s=!1}){return o.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o.jsx("div",{className:"text-[0.78rem] text-[var(--color-muted)]",children:n}),o.jsx("div",{className:["font-mono text-[0.94rem] font-semibold",s?"text-amber-700":"text-[var(--color-ink)]"].join(" "),children:i})]})}function j2({checkedAt:n,healthy:i,pid:s,status:c,proxyPort:f,controlPort:m,registryUrl:h}){const g=[{icon:"D",label:"Daemon",value:s?`pid ${s}`:c??"unknown",tone:i?"green":"amber"},{icon:"P",label:"Proxy",value:f?`:${f}`:"—",tone:"blue"},{icon:"C",label:"Control",value:m?`:${m}`:"—",tone:"purple"},{icon:"R",label:"Registry",value:h?l0(h):"—",tone:"amber"}];return o.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2 rounded-[12px] border border-[var(--color-line-2)] bg-white px-3 py-2 shadow-[0_12px_28px_rgba(41,31,84,0.06)]",children:[o.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-[8px] border border-[var(--color-line-2)] bg-white px-2.5 py-1 text-[0.72rem] font-medium text-[var(--color-muted)]",children:[o.jsx(X1,{className:"size-3.5"}),n]}),g.map(v=>o.jsx(N2,{...v},v.label))]})}function N2({icon:n,label:i,value:s,tone:c}){const f={green:"bg-emerald-50 text-emerald-700",blue:"bg-blue-50 text-blue-700",purple:"bg-[var(--color-lavender)] text-[var(--color-purple)]",amber:"bg-amber-50 text-amber-700"}[c];return o.jsxs("div",{className:"inline-flex min-w-0 max-w-full items-center gap-2 rounded-[8px] border border-[var(--color-line-2)] bg-white px-2.5 py-1",children:[o.jsx("span",{className:["grid size-5 shrink-0 place-items-center rounded-[6px] text-[0.62rem] font-bold",f].join(" "),children:n}),o.jsx("span",{className:"text-[0.72rem] font-semibold text-[var(--color-ink)]",children:i}),o.jsx("span",{className:"min-w-0 truncate font-mono text-[0.72rem] text-[var(--color-muted)]",children:s})]})}function E2(n,i){const s=Ip(7),c=Ip(30),f=Fo(new Date),m=new Set(s.map(K=>K.key)),h=new Map(c.map((K,F)=>[K.key,F])),g=["#7c3df0","#0f9f7a","#2563eb","#f59e0b"],v=new Map,y=s.map(()=>0),b=c.map(()=>0);let x=0,w=0,L=0,B=0,D=0,k=0,H=0,V=0,Y=0;for(const K of n){const F=Fo(new Date(K.createdAt)),le=K.billedMicros??0,fe=K.promptTokens??0,Se=K.completionTokens??0;Y+=1,w+=le,B+=fe,D+=Se,F===f&&(V+=1,x+=le,k+=fe,H+=Se);const oe=s.findIndex(Me=>Me.key===F);if(oe>=0){L+=le,y[oe]+=le/1e6;const Me=v.get(K.modelId)??{input:s.map(()=>0),output:s.map(()=>0),total:0};Me.input[oe]+=fe,Me.output[oe]+=Se,Me.total+=fe+Se,v.set(K.modelId,Me)}else m.has(F)&&(L+=le);const Be=h.get(F);Be!==void 0&&(b[Be]+=le/1e6)}const X=i.filter(K=>T2(K.status)).length,ee=i.filter(K=>K.status==="pending").length,ie=Array.from(v.entries()).sort((K,F)=>F[1].total-K[1].total).slice(0,4).map(([K,F],le)=>({model:K,color:g[le%g.length],input:F.input,output:F.output}));return{days:s.map(K=>K.label),modelUsage:ie,cost:y,thirtyDaySpend:b,todaySpendMicros:x,totalSpendMicros:w,weeklySpendMicros:L,completedPurchases:X,pendingPurchases:ee,inputTokens:B,outputTokens:D,todayInputTokens:k,todayOutputTokens:H,todayRequestCount:V,totalRequestCount:Y}}function M2(n,i){const s=new Map;for(const h of[...i].sort((g,v)=>g.createdAt.localeCompare(v.createdAt)))!h.paymentMethod||h.balanceSnapshotMicros===void 0||s.set(Vt(h.paymentMethod),h.balanceSnapshotMicros);const c=[...n].filter(h=>Vt(h.method)!=="mock").sort((h,g)=>Number(g.isDefault)-Number(h.isDefault)||h.method.localeCompare(g.method)).map(h=>{const g=Vt(h.method),v=h.enabled||!!(h.config&&Object.keys(h.config).length>0),y=s.get(g),b=g==="clawtip";return{name:t0(h.method),method:h.method,balance:b?"••••":y===void 0?"—":kn(y),status:h.enabled?"Bound":"Available",note:v?h.isDefault?"Default wallet":"Configured":"Not bound",action:h.enabled?"Recharge":"Activate",icon:C2(h.method),balanceHidden:b,config:h.config}}),f=new Set(c.map(h=>Vt(h.method))),m=h2.filter(h=>!f.has(Vt(h.method))).map(h=>({name:h.name,method:h.method,balance:"—",status:"Coming soon",note:"",action:"",icon:h.icon}));return[...c,...m]}function Ip(n){const i=[],s=new Intl.DateTimeFormat("en",{weekday:"short"});for(let c=n-1;c>=0;c-=1){const f=new Date;f.setHours(0,0,0,0),f.setDate(f.getDate()-c),i.push({key:Fo(f),label:s.format(f)})}return i}function Fo(n){if(Number.isNaN(n.getTime()))return"";const i=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),c=String(n.getDate()).padStart(2,"0");return`${i}-${s}-${c}`}function t0(n){const i=Vt(n);return i==="clawtip"?"ClawTip":i==="alipay-agent"?"Alipay Agent Payment":i==="wechat-pay"?"WeChat Pay":i==="coinbase-smart-wallet"?"Coinbase Smart Wallet":n.split(/[-_\s]+/).filter(Boolean).map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")}function C2(n){const i=Vt(n);return i==="clawtip"?"C":i==="wechat-pay"?"W":i==="alipay-agent"?"A":i.charAt(0).toUpperCase()||"P"}function Vt(n){return n.trim().toLowerCase()}function T2(n){return n==="settled"||n==="active"||n==="completed"||n==="success"}function kn(n,i=2){return`$${(n/1e6).toFixed(i)}`}function qn(n){return Intl.NumberFormat("en",{notation:n>=1e4?"compact":"standard",maximumFractionDigits:n>=1e4?1:0}).format(n)}function l0(n){try{const i=new URL(n),s=i.pathname==="/"?"":i.pathname;return`${i.host}${s}`.slice(0,34)}catch{return n.length>34?`${n.slice(0,31)}...`:n}}function a0(n){const i=n.split("/");return i.length<=3?n:`.../${i.slice(-2).join("/")}`}function Pp(n){return n==="configured"?0:n==="installed"?1:n==="manual"?2:3}function A2(n){return n==="configured"?"bg-emerald-50 text-emerald-700":n==="installed"?"bg-amber-50 text-amber-700":n==="manual"?"bg-indigo-50 text-indigo-700":"bg-slate-100 text-slate-600"}async function n0(n){var s;if((s=navigator.clipboard)!=null&&s.writeText)try{return await navigator.clipboard.writeText(n),!0}catch{}const i=document.createElement("textarea");i.value=n,i.setAttribute("readonly",""),i.style.position="fixed",i.style.left="-9999px",i.style.top="0",document.body.appendChild(i),i.focus(),i.select(),i.setSelectionRange(0,i.value.length);try{return document.execCommand("copy")}finally{document.body.removeChild(i)}}function R2(n){return JSON.stringify({openaiCompatible:{baseURL:n.openaiBaseUrl,apiKey:n.apiKey},anthropicCompatible:{baseURL:n.anthropicBaseUrl,apiKey:n.apiKey}},null,2)}function Ao(n,i){const s=n==null?void 0:n[i];return typeof s=="string"&&s.length>0?s:void 0}function i0(n,i){return(n==null?void 0:n[i])===!0}const u0=[{value:"fullAuto",label:"Full auto",help:"Choose from all compatible sellers for each model."},{value:"fixedSet",label:"Fixed set",help:"Choose automatically within your selected seller set."},{value:"fixed",label:"Fixed",help:"Pin one fixed seller for each model."}],r0=[{value:"balanced",label:"Balanced",help:"Balance reliability, speed, and cost."},{value:"speed",label:"Speed first",help:"Prioritize low TTFT and high throughput."},{value:"discount",label:"Cost first",help:"Prioritize discount and available balance."}];function z2(){var ge,N,R,Z,W;const n=Iv(),i=s2(),s=Pv(),c=e0(),f=f2(),m=yf(),[h,g]=M.useState({mode:"fullAuto",scorer:"balanced"}),[v,y]=M.useState([]),[b,x]=M.useState(""),[w,L]=M.useState(null),[B,D]=M.useState(null),k=c2({...h,modelId:b}),H=c.data,V=((ge=s.data)==null?void 0:ge.sellers)??[],Y=((N=f.data)==null?void 0:N.focusSet)??[],X=M.useMemo(()=>Q2((H==null?void 0:H.data)??[],Y),[Y,H==null?void 0:H.data]),ee=k2(k.data),ie=M.useMemo(()=>q2(V,H,(ee==null?void 0:ee.routes)??[]),[H,ee==null?void 0:ee.routes,V]),K=M.useMemo(()=>v.map(G=>X.find(I=>I.id===G)).filter(m0),[X,v]),F=h.sellerIds??[],le=h.fixedByModel??{},fe=K.length,Se=K.filter(G=>h.mode==="fixed"?!!le[G.id]:h.mode==="fixedSet"?F.length>0:!0).length,oe=M.useMemo(()=>{var G;return Y2(((G=m.data)==null?void 0:G.inferences)??[],ee,b,h)},[b,h,(R=m.data)==null?void 0:R.inferences,ee]);M.useEffect(()=>{var G;(G=n.data)!=null&&G.strategy&&g(n.data.strategy)},[(Z=n.data)==null?void 0:Z.strategy]),M.useEffect(()=>{if(v.length>0||X.length===0)return;const G=Y.filter(re=>X.some(Oe=>Oe.id===re)),I=G.length>0?G:X.slice(0,2).map(re=>re.id);y(I),x(I[0]??"")},[Y,X,v.length]),M.useEffect(()=>{!b||v.includes(b)||x(v[0]??"")},[b,v]),M.useEffect(()=>{b&&k.refetch()},[b,h.mode,h.scorer,h.sellerId,(W=h.sellerIds)==null?void 0:W.join(","),I2(h.fixedByModel)]);async function Be(G){g(G),L(null);try{await i.mutateAsync(G)}catch(I){L(I instanceof Error?I.message:String(I))}}function Me(G){y(I=>{if(I.includes(G)){const Oe=I.filter(_e=>_e!==G);return b===G&&x(Oe[0]??""),Co(Oe).catch(()=>{}),Oe}x(G);const re=[...I,G];return Co(re).catch(()=>{}),re})}function pe(G){y(I=>{const re=I.filter(Oe=>Oe!==G);return b===G&&x(re[0]??""),Co(re).catch(()=>{}),re})}function _(G){const I=Z2({...h,mode:G},ie,b);Be(I)}function J(G){Be({...h,scorer:G})}function ne(G,I){const re=h.sellerIds??[],Oe=re.includes(I)?re.filter(_e=>_e!==I):[...re,I];Be({...h,mode:"fixedSet",sellerIds:Oe,sellerId:void 0})}function je(G,I){const re={...h.fixedByModel??{},[G]:I};Be({...h,mode:"fixed",fixedByModel:re,sellerId:void 0,sellerIds:void 0}),x(G),D(null)}return o.jsxs("div",{className:"space-y-5",children:[o.jsx("section",{children:o.jsxs(ba,{className:"p-4",children:[o.jsxs("div",{className:"flex items-center gap-2 border-b border-[var(--color-line-2)] px-4 py-3",children:[o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx("div",{className:"text-[0.78rem] font-semibold uppercase tracking-wider text-[var(--color-muted)]",children:"Models"})}),o.jsxs("button",{type:"button",onClick:()=>D({kind:"models"}),className:"inline-flex items-center gap-1.5 rounded-[8px] bg-[var(--color-purple)] px-3 py-1.5 text-[0.78rem] font-semibold text-white hover:bg-[var(--color-purple-2)]","aria-label":"Add models",children:[o.jsx(q1,{size:14}),"Add"]})]}),o.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[K.map(G=>{const I=b===G.id,re=G.sellerCount>0;return o.jsxs("div",{className:["inline-flex min-h-9 items-center gap-2 rounded-[9px] border px-3 py-1.5 transition-colors",re?"border-[var(--color-lavender-2)] bg-[var(--color-lavender)] text-[var(--color-purple)] hover:border-[var(--color-purple)] hover:bg-white":"border-rose-200 bg-rose-50 text-rose-700 hover:bg-white",I?"ring-2 ring-[var(--color-lavender-2)] ring-offset-1 ring-offset-white":""].join(" "),children:[o.jsx("button",{type:"button",onClick:()=>x(G.id),className:"flex items-center text-left",children:o.jsx("span",{className:["font-mono text-[0.82rem] font-semibold",re?"text-[var(--color-purple)]":"text-rose-700"].join(" "),children:G.id})}),o.jsx("button",{type:"button",onClick:()=>pe(G.id),className:["inline-flex size-5 items-center justify-center rounded-[6px]",re?"text-[var(--color-purple)]/70 hover:bg-white hover:text-[var(--color-purple)]":"text-rose-700/70 hover:bg-white hover:text-rose-700"].join(" "),"aria-label":`Remove ${G.id}`,children:o.jsx(Jv,{size:12})})]},G.id)}),K.length===0?o.jsx("div",{className:"px-4 py-8 text-center text-[0.88rem] text-[var(--color-muted)]",children:"No models yet. Click Add to add common models."}):null,f.isError?o.jsx("div",{className:"px-3 py-2 text-[0.82rem] text-amber-700",children:"Focus models could not be saved."}):null]})]})}),o.jsx("section",{children:o.jsx(ba,{className:"overflow-hidden",children:o.jsxs("div",{className:"p-5",children:[o.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[o.jsx("div",{className:"text-[0.78rem] font-semibold uppercase tracking-wider text-[var(--color-muted)]",children:"Strategy"}),o.jsxs("div",{className:"text-[0.78rem] text-[var(--color-muted)]",children:[Se,"/",Math.max(fe,1)," configured"]})]}),n.isLoading||s.isLoading||c.isLoading?o.jsx("div",{className:"mb-3 rounded-[10px] border border-[var(--color-line-2)] bg-white px-3 py-2 text-[0.82rem] text-[var(--color-muted)]",children:"Loading routing data..."}):null,n.isError||s.isError||c.isError?o.jsx("div",{className:"mb-3 rounded-[10px] border border-rose-100 bg-rose-50 px-3 py-2 text-[0.82rem] text-rose-700",children:"Some routing data could not be loaded. Check that tb-proxyd is running."}):null,w?o.jsx("div",{className:"mb-3 rounded-[10px] border border-rose-100 bg-rose-50 px-3 py-2 text-[0.82rem] text-rose-700",children:w}):null,o.jsx("div",{className:"mb-5 grid grid-cols-1 gap-2 md:grid-cols-3",children:u0.map(G=>o.jsx(H2,{active:h.mode===G.value,title:G.label,description:G.help,onClick:()=>_(G.value)},G.value))}),o.jsx("div",{className:"rounded-[14px] border border-[var(--color-line-2)] bg-white p-4",children:o.jsx(w2,{mode:h.mode,scorer:h.scorer,selectedModels:K,fixedSetSellers:F,fixedByModel:le,sellers:ie,activeModelId:b,onScorerChange:J,onOpenSellerPicker:D,onToggleFixedSetSeller:ne})})]})})}),o.jsx("section",{className:"xl:col-span-2",children:o.jsxs(ba,{className:"overflow-hidden",children:[o.jsx("div",{className:"border-b border-[var(--color-line-2)] px-4 py-3",children:o.jsx("div",{className:"text-[0.78rem] font-semibold uppercase tracking-wider text-[var(--color-muted)]",children:"Recent decisions"})}),o.jsx("div",{className:"min-w-0 max-w-full overflow-x-auto",children:o.jsxs("table",{className:"w-full border-collapse text-left text-[0.82rem]",children:[o.jsx("thead",{className:"bg-white/70 text-[0.7rem] uppercase tracking-wider text-[var(--color-muted)]",children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-4 py-2 font-semibold",children:"Time"}),o.jsx("th",{className:"px-4 py-2 font-semibold",children:"Model"}),o.jsx("th",{className:"px-4 py-2 font-semibold",children:"Seller"}),o.jsx("th",{className:"px-4 py-2 font-semibold",children:"Mode"}),o.jsx("th",{className:"px-4 py-2 font-semibold",children:"Scoring"}),o.jsx("th",{className:"px-4 py-2 font-semibold",children:"Reason"})]})}),o.jsxs("tbody",{className:"divide-y divide-[var(--color-line-2)] bg-white",children:[oe.slice(0,5).map(G=>o.jsxs("tr",{children:[o.jsx("td",{className:"whitespace-nowrap px-4 py-2.5 font-mono text-[var(--color-muted)]",children:G.time}),o.jsx("td",{className:"whitespace-nowrap px-4 py-2.5 font-mono font-semibold text-[var(--color-ink)]",children:G.modelId}),o.jsx("td",{className:"whitespace-nowrap px-4 py-2.5 text-[var(--color-purple)]",children:f0(G.sellerId,ie)}),o.jsx("td",{className:"whitespace-nowrap px-4 py-2.5 text-[var(--color-muted)]",children:tS(G.mode)}),o.jsx("td",{className:"whitespace-nowrap px-4 py-2.5 text-[var(--color-muted)]",children:eS(G.scorer)}),o.jsx("td",{className:"min-w-[260px] px-4 py-2.5 text-[var(--color-muted)]",children:G.reason})]},`${G.time}-${G.modelId}`)),oe.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-[var(--color-muted)]",children:"No routing decisions yet."})}):null]})]})})]})}),(B==null?void 0:B.kind)==="models"?o.jsx(D2,{models:X,selectedModelIds:v,onClose:()=>D(null),onToggle:Me}):null,(B==null?void 0:B.kind)==="sellers"?o.jsx(U2,{modelId:B.modelId,selection:B.selection,selectedSellerIds:B.selection==="single"?le[B.modelId]?[le[B.modelId]]:[]:F,scorer:h.scorer,sellers:ie,onClose:()=>D(null),onToggle:G=>{B.selection==="single"?je(B.modelId,G):ne(B.modelId,G)}}):null]})}function w2({mode:n,scorer:i,selectedModels:s,fixedSetSellers:c,fixedByModel:f,sellers:m,activeModelId:h,onScorerChange:g,onOpenSellerPicker:v,onToggleFixedSetSeller:y}){var w;const b=lS(s,h),x=(w=b[0])==null?void 0:w.id;return n==="fullAuto"?o.jsx("div",{children:o.jsx(ev,{scorer:i,onChange:g})}):n==="fixedSet"?o.jsxs("div",{className:"space-y-3",children:[o.jsx(ev,{scorer:i,onChange:g}),o.jsx(O2,{modelId:x,sellers:m,sellerIds:c,onChoose:L=>v({kind:"sellers",modelId:L,selection:"multi"}),onRemove:L=>{x&&y(x,L)}})]}):o.jsx("div",{className:"space-y-3",children:o.jsx(_2,{selectedModels:b,activeModelId:h,resolveValue:L=>f0(f[L],m),onChoose:L=>v({kind:"sellers",modelId:L,selection:"single"})})})}function ev({scorer:n,onChange:i}){return o.jsx("div",{className:"rounded-[12px] border border-[var(--color-line-2)] bg-white p-1.5",children:o.jsx("div",{className:"grid grid-cols-1 gap-1.5 md:grid-cols-3",children:r0.map(s=>o.jsxs("button",{type:"button",onClick:()=>i(s.value),"aria-label":`Routing scorer: ${s.label}`,className:["flex min-h-14 items-center gap-2 rounded-[9px] px-3 py-2 text-left transition-colors",n===s.value?"bg-[var(--color-lavender)] text-[var(--color-ink)]":"text-[var(--color-muted)] hover:bg-[var(--color-lavender)]/40"].join(" "),children:[o.jsx($r,{active:n===s.value,fixed:!0}),o.jsxs("span",{className:"min-w-0",children:[o.jsx("span",{className:"block text-[0.86rem] font-semibold",children:s.label}),o.jsx("span",{className:"block truncate text-[0.72rem] text-[var(--color-muted)]",children:s.help})]})]},s.value))})})}function O2({modelId:n,sellers:i,sellerIds:s,onChoose:c,onRemove:f}){if(!n)return o.jsx("div",{className:"rounded-[12px] border border-[var(--color-line-2)] bg-white px-3 py-4 text-[0.86rem] text-[var(--color-muted)]",children:"Add models before configuring a seller set."});const m=s.map(h=>i.find(g=>g.id===h)).filter(m0);return o.jsxs("div",{className:"overflow-hidden rounded-[12px] border border-[var(--color-line-2)] bg-white",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-3 border-b border-[var(--color-line-2)] bg-white/70 px-3 py-2.5",children:[o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx("div",{className:"text-[0.78rem] font-semibold uppercase tracking-wider text-[var(--color-muted)]",children:"Sellers"})}),o.jsx("button",{type:"button",onClick:()=>c(n),className:"rounded-[8px] border border-[var(--color-lavender-2)] bg-[var(--color-lavender)] px-3 py-1.5 text-[0.78rem] font-semibold text-[var(--color-purple)] hover:bg-white","aria-label":`Add sellers to fixed set for ${n}`,children:"Add sellers"})]}),m.length>0?o.jsx("div",{className:"min-w-0 max-w-full overflow-x-auto",children:o.jsxs("table",{className:"w-full border-collapse text-left text-[0.82rem]",children:[o.jsx("thead",{className:"bg-white/70 text-[0.68rem] uppercase tracking-wider text-[var(--color-muted)]",children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-3 py-2 font-semibold",children:"Seller"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Discount"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Markup fee"}),o.jsx("th",{className:"px-3 py-2 font-semibold",children:"Payment"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"TTFT"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Tok/s"}),o.jsx("th",{className:"w-10 px-3 py-2 font-semibold"})]})}),o.jsx("tbody",{className:"divide-y divide-[var(--color-line-2)] bg-white",children:m.map(h=>o.jsxs("tr",{children:[o.jsx("td",{className:"px-3 py-2.5 font-semibold text-[var(--color-ink)]",children:h.name}),o.jsxs("td",{className:"whitespace-nowrap px-3 py-2.5 text-right",children:[o.jsx("div",{className:"font-mono font-semibold text-[var(--color-purple)]",children:h.discount}),o.jsx("div",{className:"mt-0.5 font-mono text-[0.72rem] text-[var(--color-muted)]",children:h.price})]}),o.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono text-[var(--color-ink)]",children:h.markupFee}),o.jsx("td",{className:"px-3 py-2.5 text-[var(--color-muted)]",children:h.paymentMethods.join(", ")}),o.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono text-[var(--color-ink)]",children:c0(h.latencyMs)}),o.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono text-[var(--color-ink)]",children:o0(h.tokensPerSecond)}),o.jsx("td",{className:"px-3 py-2.5 text-right",children:o.jsx("button",{type:"button",onClick:()=>f(h.id),className:"inline-flex size-7 items-center justify-center rounded-[7px] text-[var(--color-muted)] hover:bg-rose-50 hover:text-rose-700","aria-label":`Remove ${h.name}`,children:o.jsx(Jv,{size:14})})})]},h.id))})]})}):o.jsx("div",{className:"px-3 py-8 text-center text-[0.86rem] text-[var(--color-muted)]",children:"No sellers yet. Click Add sellers to build the fixed set."})]})}function _2({selectedModels:n,activeModelId:i,resolveValue:s,onChoose:c}){return n.length===0?o.jsx("div",{className:"rounded-[12px] border border-[var(--color-line-2)] bg-white px-3 py-4 text-[0.86rem] text-[var(--color-muted)]",children:"Add models before configuring sellers."}):o.jsx("div",{className:"divide-y divide-[var(--color-line-2)] rounded-[12px] border border-[var(--color-line-2)] bg-white",children:n.map(f=>o.jsxs("div",{className:["flex flex-wrap items-center gap-3 px-3 py-3",i===f.id?"bg-[var(--color-lavender)]/55":""].join(" "),children:[o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx("div",{className:"truncate font-mono text-[0.88rem] font-semibold text-[var(--color-ink)]",children:f.id})}),o.jsxs("div",{className:"min-w-0 flex items-center gap-2",children:[o.jsx("button",{type:"button",onClick:()=>c(f.id),className:"max-w-[240px] truncate rounded-[8px] border border-[var(--color-lavender-2)] bg-[var(--color-lavender)] px-3 py-1.5 text-[0.78rem] font-semibold text-[var(--color-purple)] hover:bg-white","aria-label":`Choose seller for ${f.id}`,children:s(f.id)}),o.jsx("button",{type:"button",onClick:()=>c(f.id),className:"rounded-[8px] border border-[var(--color-line-2)] bg-white px-3 py-1.5 text-[0.78rem] font-semibold text-[var(--color-muted)] hover:border-[var(--color-lavender-2)] hover:text-[var(--color-purple)]","aria-label":`Reselect seller for ${f.id}`,children:"Reselect"})]})]},f.id))})}function D2({models:n,selectedModelIds:i,onClose:s,onToggle:c}){const[f,m]=M.useState(""),h=n.filter(g=>h0(f,[g.id,g.paymentMethod,g.enabled?"enabled":"not enabled"]));return o.jsxs(s0,{title:"Add models",onClose:s,children:[o.jsx(d0,{value:f,onChange:m,placeholder:"Search models or payment"}),o.jsx("div",{className:"mt-3 overflow-hidden rounded-[12px] border border-[var(--color-line-2)]",children:o.jsxs("table",{className:"w-full border-collapse text-left text-[0.84rem]",children:[o.jsx("thead",{className:"bg-white/70 text-[0.7rem] uppercase tracking-wider text-[var(--color-muted)]",children:o.jsxs("tr",{children:[o.jsx("th",{className:"w-10 px-3 py-2 font-semibold"}),o.jsx("th",{className:"px-3 py-2 font-semibold",children:"Model"}),o.jsx("th",{className:"px-3 py-2 font-semibold",children:"Payment"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Sellers"})]})}),o.jsxs("tbody",{className:"divide-y divide-[var(--color-line-2)] bg-white",children:[h.map(g=>{const v=i.includes(g.id);return o.jsxs("tr",{onClick:()=>c(g.id),className:["cursor-pointer",v?"bg-[var(--color-lavender)]/70":"hover:bg-[var(--color-lavender)]/35",g.enabled?"":"opacity-60"].join(" "),children:[o.jsx("td",{className:"px-3 py-2.5",children:o.jsx($r,{active:v,fixed:!1})}),o.jsx("td",{className:"px-3 py-2.5 font-mono font-semibold text-[var(--color-ink)]",children:g.id}),o.jsx("td",{className:"px-3 py-2.5",children:o.jsx(B2,{enabled:g.enabled,paymentMethod:g.paymentMethod})}),o.jsx("td",{className:"px-3 py-2.5 text-right text-[var(--color-muted)]",children:g.sellerCount})]},g.id)}),h.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:4,className:"px-3 py-8 text-center text-[var(--color-muted)]",children:"No models found."})}):null]})]})})]})}function U2({modelId:n,selection:i,selectedSellerIds:s,scorer:c,sellers:f,onClose:m,onToggle:h}){const[g,v]=M.useState(""),b=L2(f.filter(x=>x.coverageModelIds.includes(n)),[n],c).filter(x=>h0(g,[x.name,x.id,x.paymentMethods.join(" "),x.health,x.notes.join(" ")]));return o.jsxs(s0,{title:`Choose seller · ${n}`,onClose:m,children:[o.jsx(d0,{value:g,onChange:v,placeholder:"Search sellers, payment, notes"}),o.jsx("div",{className:"mt-3 overflow-hidden rounded-[12px] border border-[var(--color-line-2)]",children:o.jsxs("table",{className:"w-full border-collapse text-left text-[0.82rem]",children:[o.jsx("thead",{className:"bg-white/70 text-[0.7rem] uppercase tracking-wider text-[var(--color-muted)]",children:o.jsxs("tr",{children:[o.jsx("th",{className:"w-10 px-3 py-2 font-semibold"}),o.jsx("th",{className:"px-3 py-2 font-semibold",children:"Seller"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Discount"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Markup fee"}),o.jsx("th",{className:"px-3 py-2 font-semibold",children:"Payment"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"TTFT"}),o.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Tok/s"})]})}),o.jsxs("tbody",{className:"divide-y divide-[var(--color-line-2)] bg-white",children:[b.map(x=>{const w=s.includes(x.id);return o.jsxs("tr",{onClick:()=>h(x.id),className:["cursor-pointer",w?"bg-[var(--color-lavender)]/70":"hover:bg-[var(--color-lavender)]/35"].join(" "),children:[o.jsx("td",{className:"px-3 py-2.5",children:o.jsx($r,{active:w,fixed:i==="single"})}),o.jsx("td",{className:"px-3 py-2.5 font-semibold text-[var(--color-ink)]",children:x.name}),o.jsxs("td",{className:"whitespace-nowrap px-3 py-2.5 text-right",children:[o.jsx("div",{className:"font-mono font-semibold text-[var(--color-purple)]",children:x.discount}),o.jsx("div",{className:"mt-0.5 font-mono text-[0.72rem] text-[var(--color-muted)]",children:x.price})]}),o.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono text-[var(--color-ink)]",children:x.markupFee}),o.jsx("td",{className:"px-3 py-2.5 text-[var(--color-muted)]",children:x.paymentMethods.join(", ")}),o.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono text-[var(--color-ink)]",children:c0(x.latencyMs)}),o.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono text-[var(--color-ink)]",children:o0(x.tokensPerSecond)})]},x.id)}),b.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:7,className:"px-3 py-8 text-center text-[var(--color-muted)]",children:"No sellers found."})}):null]})]})})]})}function s0({title:n,children:i,onClose:s}){return o.jsx("div",{className:"fixed inset-0 z-30 flex items-center justify-center bg-[#201a38]/35 px-4 py-6 backdrop-blur-sm",children:o.jsxs("div",{className:"max-h-[86dvh] w-full max-w-[820px] overflow-hidden rounded-[14px] border border-[var(--color-line-2)] bg-white shadow-[0_24px_70px_rgba(32,26,56,0.22)]",children:[o.jsxs("div",{className:"flex items-center gap-3 border-b border-[var(--color-line-2)] px-5 py-4",children:[o.jsx("div",{className:"min-w-0 flex-1 truncate text-[1rem] font-semibold text-[var(--color-ink)]",children:n}),o.jsx("button",{type:"button",onClick:s,className:"inline-flex size-8 items-center justify-center rounded-[8px] text-[var(--color-muted)] hover:bg-[var(--color-lavender)] hover:text-[var(--color-purple)]","aria-label":"Close",children:o.jsx($v,{size:16})})]}),o.jsx("div",{className:"max-h-[calc(86dvh-65px)] overflow-auto p-4",children:i})]})})}function H2({active:n,title:i,description:s,onClick:c}){return o.jsxs("button",{type:"button",onClick:c,"aria-label":`Set ${i} routing mode`,className:["min-h-[86px] rounded-[12px] border px-3 py-2.5 text-left transition-all",n?"border-[var(--color-lavender-2)] bg-[var(--color-lavender)] text-[var(--color-ink)]":"border-[var(--color-line-2)] bg-white text-[var(--color-muted)] hover:border-[var(--color-line)]"].join(" "),children:[o.jsxs("span",{className:"flex items-center gap-2 font-mono text-[0.86rem] font-semibold",children:[o.jsx($r,{active:n,fixed:!0}),i]}),o.jsx("span",{className:"mt-1.5 block text-[0.74rem] leading-snug text-[var(--color-muted)]",children:s})]})}function B2({enabled:n,paymentMethod:i}){return o.jsxs("span",{className:["inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[0.72rem] ring-1",n?"bg-emerald-50 text-emerald-700 ring-emerald-100":"bg-slate-100 text-slate-500 ring-slate-200"].join(" "),children:[n?o.jsx(V1,{size:12}):o.jsx(R1,{size:12}),i," ",n?"enabled":"not enabled"]})}function $r({active:n,fixed:i}){return o.jsx("span",{className:["inline-flex size-5 shrink-0 items-center justify-center border",i?"rounded-full":"rounded-[6px]",n?"border-[var(--color-purple)] bg-[var(--color-purple)] text-white":"border-[var(--color-line)] bg-white text-transparent"].join(" "),children:o.jsx(M1,{size:13,strokeWidth:2.4})})}function L2(n,i,s){return[...n].sort((c,f)=>{const m=tv(c,i),h=tv(f,i);return m!==h?h-m:s==="speed"?W2(c.latencyMs,f.latencyMs):s==="discount"?Number.parseInt(f.discount,10)-Number.parseInt(c.discount,10):f.healthScore-c.healthScore})}function Q2(n,i){const s=new Map;for(const f of n){const m=s.get(f.id)??{sellerIds:new Set,paymentMethods:new Set};m.sellerIds.add(f.sellerId);for(const h of f.paymentMethods)m.paymentMethods.add(h);s.set(f.id,m)}const c=new Map(i.map((f,m)=>[f,m]));return Array.from(s.entries()).map(([f,m])=>({id:f,paymentMethod:Array.from(m.paymentMethods)[0]??"-",enabled:m.sellerIds.size>0,sellerCount:m.sellerIds.size})).sort((f,m)=>{const h=c.get(f.id),g=c.get(m.id);return h!==void 0||g!==void 0?(h??9999)-(g??9999):f.id.localeCompare(m.id)})}function q2(n,i,s){const c=(i==null?void 0:i.data)??[],f=new Map(((i==null?void 0:i.sellers)??[]).map(h=>[h.id,h])),m=new Map(s.map(h=>[h.seller.id,h]));return n.map((h,g)=>{var B;const v=m.get(h.id),y=f.get(h.id),b=Array.from(new Set(c.filter(D=>D.sellerId===h.id).map(D=>D.id))),x=(v==null?void 0:v.metrics.ttftMs)??(v==null?void 0:v.metrics.avgLatencyMs),w=v==null?void 0:v.metrics.healthScore,L=(v==null?void 0:v.metrics.discountRatio)??(y==null?void 0:y.discountRatio);return{id:h.id,name:P2(h.name??(y==null?void 0:y.name)??h.id),endpoint:h.url,health:(y==null?void 0:y.status)==="error"||(y==null?void 0:y.status)==="manifest_unavailable"||h.status==="failed"?"offline":h.status==="degraded"?"degraded":"online",healthScore:Number.isFinite(w)?Math.round(w):0,coverageModelIds:b,paymentMethods:(y==null?void 0:y.paymentMethods)??h.paymentMethods??[],discount:J2(L),markupFee:$2(y==null?void 0:y.serviceFeeRatio),price:v?"preview":"registry",latencyMs:Number.isFinite(x)?Math.round(x):void 0,tokensPerSecond:void 0,notes:[((B=h.supportedProtocols)==null?void 0:B.join(", "))||"no protocols",`registry #${g+1}`]}})}function k2(n){if(n)return n.plan??{routes:n.routes,mode:n.mode,scorer:n.scorer,reason:n.reason}}function Y2(n,i,s,c){var h,g;const f=n.slice(-5).reverse().map(v=>{const y=G2(v.routeReason);return{time:F2(v.createdAt),modelId:v.modelId,sellerId:v.sellerKey,mode:(y==null?void 0:y.mode)??c.mode,scorer:(y==null?void 0:y.scorer)??c.scorer,status:v.fallbackCount&&v.fallbackCount>0?"fallback":"selected",reason:v.routeReason||v.status,chain:v.falloverChain??[]}});if(f.length>0)return f;const m=(h=i==null?void 0:i.routes)==null?void 0:h[0];return m?[{time:"Preview",modelId:s||"-",sellerId:m.seller.id,mode:i.mode??c.mode,scorer:i.scorer??c.scorer,status:"selected",reason:i.reason??"Current preview route.",chain:((g=i.routes)==null?void 0:g.map(v=>v.seller.id))??[]}]:[]}function G2(n){const[i,s]=(n==null?void 0:n.split(":"))??[];if(X2(i)&&K2(s))return{mode:i,scorer:s}}function X2(n){return n==="fixed"||n==="fixedSet"||n==="fullAuto"}function K2(n){return n==="speed"||n==="discount"||n==="balanced"}function Z2(n,i,s){var c,f;if(n.mode==="fixed"){const m={...n.fixedByModel??{}},h=((c=V2(i,s))==null?void 0:c.id)||((f=i[0])==null?void 0:f.id);return s&&!m[s]&&h&&(m[s]=h),{mode:"fixed",scorer:n.scorer,fixedByModel:m}}if(n.mode==="fixedSet"){const m=n.sellerIds&&n.sellerIds.length>0?n.sellerIds:i.filter(h=>!s||h.coverageModelIds.includes(s)).slice(0,2).map(h=>h.id);return{mode:"fixedSet",scorer:n.scorer,sellerIds:m}}return{mode:"fullAuto",scorer:n.scorer}}function V2(n,i){return n.find(s=>!i||s.coverageModelIds.includes(i))}function J2(n){if(!Number.isFinite(n))return"-";const i=Math.max(0,1-n);return`${Math.round(i*100)}%`}function $2(n){return Number.isFinite(n)?`${Math.round(n*100)}%`:"-"}function c0(n){return Number.isFinite(n)?`${Math.round(n)}ms`:"-"}function o0(n){return Number.isFinite(n)?`${Math.round(n)}`:"-"}function F2(n){const i=new Date(n);return Number.isNaN(i.getTime())?n:i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function tv(n,i){return i.length===0?n.coverageModelIds.length:i.filter(s=>n.coverageModelIds.includes(s)).length}function W2(n,i){const s=Number.isFinite(n),c=Number.isFinite(i);return s&&c?n-i:s?-1:c?1:0}function f0(n,i){var s;return n?((s=i.find(c=>c.id===n))==null?void 0:s.name)??n:"Not selected"}function I2(n){return Object.entries(n??{}).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${i}:${s}`).join(",")}function P2(n){var i;return((i=n.split("(")[0])==null?void 0:i.trim())||n}function eS(n){var i;return((i=r0.find(s=>s.value===n))==null?void 0:i.label)??n}function d0({value:n,onChange:i,placeholder:s}){return o.jsxs("label",{className:"flex items-center gap-2 rounded-[12px] border border-[var(--color-line-2)] bg-white px-3 py-2 text-[0.84rem] text-[var(--color-muted)]",children:[o.jsx(vf,{size:15}),o.jsx("input",{name:"routing-search",value:n,onChange:c=>i(c.target.value),placeholder:s,className:"min-w-0 flex-1 bg-transparent font-mono text-[0.84rem] text-[var(--color-ink)] outline-none placeholder:text-[var(--color-faint)]"})]})}function h0(n,i){const s=n.trim().toLowerCase();return s?i.some(c=>c.toLowerCase().includes(s)):!0}function tS(n){var i;return((i=u0.find(s=>s.value===n))==null?void 0:i.label)??n}function lS(n,i){return i?[...n].sort((s,c)=>s.id===i?-1:c.id===i?1:0):n}function m0(n){return n!==void 0}function p0({totalItems:n,pageSize:i,page:s,onPageChange:c,onPageSizeChange:f,pageSizeOptions:m=[25,50,100]}){const h=Math.max(1,Math.ceil(n/i)),g=M.useMemo(()=>aS(s,h),[s,h]);if(n===0)return null;const v=(s-1)*i+1,y=Math.min(s*i,n);return o.jsxs("div",{className:"flex flex-col gap-3 border-t border-[var(--color-line-2)] bg-[var(--color-page)]/60 px-4 py-3 text-[0.85rem] lg:flex-row lg:items-center lg:justify-between",children:[o.jsxs("div",{className:"text-[var(--color-muted)]",children:["Showing ",o.jsx("span",{className:"font-mono font-semibold text-[var(--color-ink)]",children:v}),"-",o.jsx("span",{className:"font-mono font-semibold text-[var(--color-ink)]",children:y})," of"," ",o.jsx("span",{className:"font-mono font-semibold text-[var(--color-ink)]",children:n})]}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o.jsx("label",{className:"text-[0.78rem] text-[var(--color-muted)]",children:"Rows"}),o.jsx("select",{className:"bg-[var(--color-card)] border border-[var(--color-line-2)] rounded px-1.5 py-0.5 text-[0.85rem] text-[var(--color-ink)] focus:outline-none focus:border-[var(--color-purple)]",value:i,onChange:b=>{const x=Math.max(1,Number(b.target.value)||25);f==null||f(x),c(1)},children:m.map(b=>o.jsx("option",{value:b,children:b},b))}),o.jsxs("div",{className:"ml-2 flex items-center gap-1",children:[o.jsx("button",{type:"button",disabled:s<=1,onClick:()=>c(1),className:"px-2 py-0.5 rounded border border-[var(--color-line-2)] text-[var(--color-ink)] disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--color-lavender)]/40",title:"First page","aria-label":"First page",children:"«"}),o.jsx("button",{type:"button",disabled:s<=1,onClick:()=>c(s-1),className:"px-2 py-0.5 rounded border border-[var(--color-line-2)] text-[var(--color-ink)] disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--color-lavender)]/40",title:"Previous page","aria-label":"Previous page",children:"‹"}),g.map((b,x)=>b==="…"?o.jsx("span",{className:"px-1.5 text-[var(--color-muted)]",children:"…"},`gap-${x}`):o.jsx("button",{type:"button",onClick:()=>c(b),"aria-label":`Page ${b}`,"aria-current":b===s?"page":void 0,className:b===s?"px-2.5 py-0.5 rounded bg-[var(--color-purple)] text-white font-medium":"px-2.5 py-0.5 rounded border border-[var(--color-line-2)] text-[var(--color-ink)] hover:bg-[var(--color-lavender)]/40",children:b},b)),o.jsx("button",{type:"button",disabled:s>=h,onClick:()=>c(s+1),className:"px-2 py-0.5 rounded border border-[var(--color-line-2)] text-[var(--color-ink)] disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--color-lavender)]/40",title:"Next page","aria-label":"Next page",children:"›"}),o.jsx("button",{type:"button",disabled:s>=h,onClick:()=>c(h),className:"px-2 py-0.5 rounded border border-[var(--color-line-2)] text-[var(--color-ink)] disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--color-lavender)]/40",title:"Last page","aria-label":"Last page",children:"»"}),o.jsx("span",{className:"ml-2 text-[0.78rem] text-[var(--color-muted)]",children:"Go to"}),o.jsx("input",{type:"number",min:1,max:h,defaultValue:s,"aria-label":"Go to page",onKeyDown:b=>{if(b.key==="Enter"){const x=Math.max(1,Math.min(h,Number(b.target.value)||1));c(x)}},className:"w-14 bg-[var(--color-card)] border border-[var(--color-line-2)] rounded px-1.5 py-0.5 text-[0.85rem] text-[var(--color-ink)] text-center focus:outline-none focus:border-[var(--color-purple)]"}),o.jsx("span",{className:"text-[0.78rem] text-[var(--color-muted)]",children:"page"})]})]})]})}function aS(n,i){if(i<=7)return Array.from({length:i},(f,m)=>m+1);const s=[],c=f=>{s[s.length-1]!==f&&s.push(f)};c(1),n>4&&c("…");for(let f=Math.max(2,n-1);f<=Math.min(i-1,n+1);f++)c(f);return n<i-3&&c("…"),c(i),s}const eu=n=>n<10?`0${n}`:`${n}`;function uu(n){if(!n)return"—";const i=new Date(n);return Number.isNaN(i.getTime())?"—":`${i.getFullYear()}-${eu(i.getMonth()+1)}-${eu(i.getDate())} ${eu(i.getHours())}:${eu(i.getMinutes())}:${eu(i.getSeconds())}`}function nS(){var ge,N;const n=yf(),i=Wv(),[s,c]=M.useState("inferences"),[f,m]=M.useState(""),[h,g]=M.useState("all"),[v,y]=M.useState("all"),[b,x]=M.useState("all"),[w,L]=M.useState("all"),[B,D]=M.useState(1),[k,H]=M.useState(1),[V,Y]=M.useState(25),[X,ee]=M.useState(null),[ie,K]=M.useState(null),F=n.isLoading||i.isLoading,le=((ge=n.data)==null?void 0:ge.inferences)??[],fe=((N=i.data)==null?void 0:N.purchases)??[],Se=f.trim().toLowerCase(),oe=M.useMemo(()=>oS(le,fe),[le,fe]),Be=M.useMemo(()=>fS(le),[le]),Me=M.useMemo(()=>dS(fe),[fe]),pe=M.useMemo(()=>le.filter(R=>h!=="all"&&R.status!==h||v!=="all"&&R.modelId!==v?!1:hS(R,Se)).sort((R,Z)=>Z.createdAt.localeCompare(R.createdAt)),[le,v,h,Se]),_=M.useMemo(()=>fe.filter(R=>b!=="all"&&R.status!==b||w!=="all"&&R.paymentMethod!==w?!1:mS(R,Se)).sort((R,Z)=>Z.createdAt.localeCompare(R.createdAt)),[fe,w,b,Se]),J=M.useMemo(()=>av(pe,B,V),[pe,B,V]),ne=M.useMemo(()=>av(_,k,V),[_,k,V]),je=n.isError||i.isError;return M.useEffect(()=>{const R=Math.max(1,Math.ceil(pe.length/V));B>R&&D(R)},[pe.length,B,V]),M.useEffect(()=>{const R=Math.max(1,Math.ceil(_.length/V));k>R&&H(R)},[_.length,V,k]),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("section",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:[o.jsx(Ur,{icon:o.jsx(Y1,{className:"size-5"}),label:"Inference spend",value:Ia(oe.inferenceSpendMicros,4),detail:`${oe.inferenceCount.toLocaleString()} requests`,tone:"spend"}),o.jsx(Ur,{icon:o.jsx(_1,{className:"size-5"}),label:"Token usage",value:Ro(oe.inputTokens+oe.outputTokens),detail:`Input: ${Ro(oe.inputTokens)} / Output: ${Ro(oe.outputTokens)}`,tone:"tokens"}),o.jsx(Ur,{icon:o.jsx(l2,{className:"size-5"}),label:"Purchase credit",value:Ia(oe.purchaseCreditMicros,4),detail:`${oe.settledPurchases.toLocaleString()} settled`,tone:"credit"}),o.jsx(Ur,{icon:o.jsx(Vv,{className:"size-5"}),label:"Average response",value:oe.averageDurationMs===void 0?"N/A":`${(oe.averageDurationMs/1e3).toFixed(2)}s`,detail:"Completed inference time",tone:"latency"})]}),o.jsxs(ba,{className:"overflow-hidden p-0",children:[o.jsxs("div",{className:"border-b border-[var(--color-line-2)] bg-white px-4 py-3",children:[o.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[o.jsx("div",{children:o.jsx("h1",{className:"text-[1.05rem] font-semibold text-[var(--color-ink)]",children:"Usage details"})}),o.jsxs("div",{className:"grid grid-cols-2 overflow-hidden rounded-[10px] border border-[var(--color-line-2)] bg-[var(--color-page)] p-1",children:[o.jsx(lv,{active:s==="inferences",count:pe.length,onClick:()=>c("inferences"),children:"Inferences"}),o.jsx(lv,{active:s==="purchases",count:_.length,onClick:()=>c("purchases"),children:"Purchases"})]})]}),o.jsxs("div",{className:"mt-3 grid gap-2 lg:grid-cols-[minmax(220px,1fr)_160px_200px]",children:[o.jsxs("label",{className:"relative block",children:[o.jsx(vf,{className:"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-[var(--color-muted)]"}),o.jsx("input",{className:"h-9 w-full rounded-[8px] border border-[var(--color-line-2)] bg-white pl-9 pr-3 text-[0.86rem] text-[var(--color-ink)] outline-none transition placeholder:text-[var(--color-muted)] focus:border-[var(--color-purple)]",value:f,placeholder:s==="inferences"?"Search request, model, seller...":"Search purchase, method, seller...",onChange:R=>{m(R.target.value),D(1),H(1)}})]}),s==="inferences"?o.jsxs(o.Fragment,{children:[o.jsx(Hr,{label:"Status",value:h,options:Be.statuses,onChange:R=>{g(R),D(1)}}),o.jsx(Hr,{label:"Model",value:v,options:Be.models,onChange:R=>{y(R),D(1)}})]}):o.jsxs(o.Fragment,{children:[o.jsx(Hr,{label:"Status",value:b,options:Me.statuses,onChange:R=>{x(R),H(1)}}),o.jsx(Hr,{label:"Method",value:w,options:Me.methods,onChange:R=>{L(R),H(1)}})]})]})]}),je?o.jsx("div",{className:"border-b border-rose-100 bg-rose-50 px-4 py-3 text-[0.86rem] text-rose-700",children:"Ledger data could not be loaded. The local daemon may be offline or missing ledger endpoints."}):null,F?o.jsx(cS,{}):s==="inferences"?o.jsx(iS,{entries:J,total:pe.length,page:B,pageSize:V,openId:X,onToggle:R=>ee(X===R?null:R),onPageChange:D,onPageSizeChange:R=>{Y(R),D(1),H(1)}}):o.jsx(uS,{entries:ne,total:_.length,page:k,pageSize:V,openId:ie,onToggle:R=>K(ie===R?null:R),onPageChange:H,onPageSizeChange:R=>{Y(R),D(1),H(1)}})]})]})}function Ur({icon:n,label:i,value:s,detail:c,tone:f}){const m={spend:{card:"border-[#cceee6] bg-[#e8fbf7]",icon:"bg-white text-[#0f766e]",label:"text-[#0f766e]",value:"text-[#201a38]",accent:"bg-[#0f766e]"},tokens:{card:"border-[#d9e7ff] bg-[#eaf2ff]",icon:"bg-white text-[#2563eb]",label:"text-[#2563eb]",value:"text-[#201a38]",accent:"bg-[#2563eb]"},credit:{card:"border-[#dff8ec] bg-[#e8fff6]",icon:"bg-white text-emerald-700",label:"text-emerald-700",value:"text-[#201a38]",accent:"bg-emerald-500"},latency:{card:"border-[#f8d5de] bg-[#fff0f3]",icon:"bg-white text-[#ef5b78]",label:"text-[#ef5b78]",value:"text-[#201a38]",accent:"bg-[#ef5b78]"}}[f];return o.jsxs(ba,{className:["relative flex min-h-[7rem] items-center gap-4 overflow-hidden px-4 py-4",m.card].join(" "),children:[o.jsx("div",{className:["absolute inset-y-0 left-0 w-1",m.accent].join(" ")}),o.jsx("div",{className:["grid size-11 shrink-0 place-items-center rounded-[10px] shadow-sm",m.icon].join(" "),children:n}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:["text-[0.72rem] font-bold uppercase tracking-[0.08em]",m.label].join(" "),children:i}),o.jsx("div",{className:["mt-1 truncate font-mono text-[1.55rem] font-bold leading-none tracking-normal",m.value].join(" "),children:s}),o.jsx("div",{className:"mt-2 truncate text-[0.76rem] font-medium text-[var(--color-muted)]",children:c})]})]})}function lv({active:n,count:i,onClick:s,children:c}){return o.jsxs("button",{type:"button",onClick:s,className:["inline-flex h-8 items-center justify-center gap-2 rounded-[8px] px-3 text-[0.82rem] font-semibold transition",n?"bg-white text-[var(--color-ink)] shadow-sm":"text-[var(--color-muted)] hover:text-[var(--color-ink)]"].join(" "),children:[o.jsx("span",{children:c}),o.jsx("span",{className:"font-mono text-[0.76rem]",children:i.toLocaleString()})]})}function Hr({label:n,value:i,options:s,onChange:c}){return o.jsxs("label",{className:"grid gap-1",children:[o.jsx("span",{className:"sr-only",children:n}),o.jsxs("select",{className:"h-9 rounded-[8px] border border-[var(--color-line-2)] bg-white px-3 text-[0.86rem] text-[var(--color-ink)] outline-none transition focus:border-[var(--color-purple)]",value:i,onChange:f=>c(f.target.value),children:[o.jsxs("option",{value:"all",children:["All ",n.toLowerCase()]}),s.map(f=>o.jsx("option",{value:f,children:f},f))]})]})}function iS({entries:n,total:i,page:s,pageSize:c,openId:f,onToggle:m,onPageChange:h,onPageSizeChange:g}){return i===0?o.jsx(g0,{label:"inference records"}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"min-w-0 max-w-full overflow-x-auto",children:o.jsxs("table",{className:"w-full min-w-[1080px] text-[0.86rem]",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"bg-[var(--color-page)]/70 text-left text-[0.7rem] font-semibold uppercase tracking-[0.08em] text-[var(--color-muted)]",children:[o.jsx("th",{className:"px-4 py-2.5",children:"When"}),o.jsx("th",{className:"px-4 py-2.5",children:"Request"}),o.jsx("th",{className:"px-4 py-2.5",children:"Model"}),o.jsx("th",{className:"px-4 py-2.5",children:"Seller"}),o.jsx("th",{className:"px-4 py-2.5 text-right",children:"Input"}),o.jsx("th",{className:"px-4 py-2.5 text-right",children:"Output"}),o.jsx("th",{className:"px-4 py-2.5 text-right",children:"Cost"}),o.jsx("th",{className:"px-4 py-2.5 text-right",children:"Latency"}),o.jsx("th",{className:"px-4 py-2.5",children:"Status"})]})}),n.map(v=>o.jsxs("tbody",{children:[o.jsxs("tr",{onClick:()=>m(v.requestId),className:"cursor-pointer border-t border-[var(--color-line-2)] transition hover:bg-[var(--color-lavender)]/25",children:[o.jsx("td",{className:"whitespace-nowrap px-4 py-3 font-mono text-[0.76rem] text-[var(--color-muted)]",children:uu(v.createdAt)}),o.jsx("td",{className:"px-4 py-3",children:o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(v0,{tone:"purple",children:o.jsx(W1,{className:"size-4"})}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:"max-w-[180px] truncate font-mono text-[0.78rem] font-semibold text-[var(--color-ink)]",children:v.requestId}),o.jsx("div",{className:"mt-0.5 max-w-[180px] truncate text-[0.72rem] text-[var(--color-muted)]",children:v.endpoint})]})]})}),o.jsx("td",{className:"max-w-[190px] truncate px-4 py-3 text-[var(--color-ink)]",children:v.modelId}),o.jsx("td",{className:"px-4 py-3 font-mono text-[0.78rem] text-[var(--color-text)]",children:v.sellerKey}),o.jsx("td",{className:"px-4 py-3 text-right font-mono text-[0.82rem]",children:(v.promptTokens??0).toLocaleString()}),o.jsx("td",{className:"px-4 py-3 text-right font-mono text-[0.82rem]",children:(v.completionTokens??0).toLocaleString()}),o.jsx("td",{className:"px-4 py-3 text-right font-mono text-[0.82rem] font-semibold text-[var(--color-ink)]",children:Ia(v.billedMicros??0,4)}),o.jsx("td",{className:"px-4 py-3 text-right font-mono text-[0.82rem] text-[var(--color-muted)]",children:v.durationMs===void 0?"N/A":`${v.durationMs}ms`}),o.jsx("td",{className:"px-4 py-3",children:o.jsx(gf,{tone:x0(v.status),children:v.status})})]}),f===v.requestId?o.jsx("tr",{children:o.jsx("td",{colSpan:9,className:"border-t border-[var(--color-line-2)] bg-[var(--color-page)]/70 px-5 py-4",children:o.jsx(rS,{entry:v})})}):null]},v.requestId))]})}),o.jsx(p0,{totalItems:i,pageSize:c,page:s,onPageChange:h,onPageSizeChange:g})]})}function uS({entries:n,total:i,page:s,pageSize:c,openId:f,onToggle:m,onPageChange:h,onPageSizeChange:g}){return i===0?o.jsx(g0,{label:"purchase records"}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"min-w-0 max-w-full overflow-x-auto",children:o.jsxs("table",{className:"w-full min-w-[980px] text-[0.86rem]",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"bg-[var(--color-page)]/70 text-left text-[0.7rem] font-semibold uppercase tracking-[0.08em] text-[var(--color-muted)]",children:[o.jsx("th",{className:"px-4 py-2.5",children:"When"}),o.jsx("th",{className:"px-4 py-2.5",children:"Purchase"}),o.jsx("th",{className:"px-4 py-2.5",children:"Payment method"}),o.jsx("th",{className:"px-4 py-2.5",children:"Model"}),o.jsx("th",{className:"px-4 py-2.5",children:"Seller"}),o.jsx("th",{className:"px-4 py-2.5 text-right",children:"Credit"}),o.jsx("th",{className:"px-4 py-2.5",children:"Status"})]})}),n.map(v=>o.jsxs("tbody",{children:[o.jsxs("tr",{onClick:()=>m(v.purchaseId),className:"cursor-pointer border-t border-[var(--color-line-2)] transition hover:bg-[var(--color-lavender)]/25",children:[o.jsx("td",{className:"whitespace-nowrap px-4 py-3 font-mono text-[0.76rem] text-[var(--color-muted)]",children:uu(v.createdAt)}),o.jsx("td",{className:"px-4 py-3",children:o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(v0,{tone:"green",children:o.jsx(Vo,{className:"size-4"})}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:"max-w-[210px] truncate font-mono text-[0.78rem] font-semibold text-[var(--color-ink)]",children:v.purchaseId}),o.jsx("div",{className:"mt-0.5 max-w-[210px] truncate text-[0.72rem] text-[var(--color-muted)]",children:v.paymentReferenceHash??"No reference hash"})]})]})}),o.jsx("td",{className:"px-4 py-3 text-[var(--color-ink)]",children:v.paymentMethod}),o.jsx("td",{className:"max-w-[180px] truncate px-4 py-3 text-[var(--color-ink)]",children:v.modelId}),o.jsx("td",{className:"px-4 py-3 font-mono text-[0.78rem] text-[var(--color-text)]",children:v.sellerKey}),o.jsxs("td",{className:"px-4 py-3 text-right font-mono text-[0.82rem] font-semibold text-emerald-700",children:["+",Ia(v.creditMicros,4)]}),o.jsx("td",{className:"px-4 py-3",children:o.jsx(gf,{tone:x0(v.status),children:v.status})})]}),f===v.purchaseId?o.jsx("tr",{children:o.jsx("td",{colSpan:7,className:"border-t border-[var(--color-line-2)] bg-[var(--color-page)]/70 px-5 py-4",children:o.jsx(sS,{entry:v})})}):null]},v.purchaseId))]})}),o.jsx(p0,{totalItems:i,pageSize:c,page:s,onPageChange:h,onPageSizeChange:g})]})}function v0({tone:n,children:i}){return o.jsx("div",{className:["grid size-9 shrink-0 place-items-center rounded-lg border",n==="purple"?"border-[var(--color-lavender-2)] bg-[var(--color-lavender)] text-[var(--color-purple)]":"border-emerald-100 bg-emerald-50 text-emerald-700"].join(" "),children:i})}function rS({entry:n}){return o.jsx(y0,{rows:[["Request ID",n.requestId],["Created",uu(n.createdAt)],["Endpoint",n.endpoint],["Payment method",n.paymentMethod??"N/A"],["Route",`${n.routeReason??"N/A"} -> ${n.sellerKey}`],["Fallback chain",n.falloverChain&&n.falloverChain.length>0?n.falloverChain.join(" -> "):"N/A"],["Upstream status",n.upstreamStatus??"N/A"],["TTFT / duration",`${n.ttftMs!==void 0?`${n.ttftMs}ms`:"N/A"} / ${n.durationMs!==void 0?`${n.durationMs}ms`:"N/A"}`],["Input / output tokens",`${(n.promptTokens??0).toLocaleString()} / ${(n.completionTokens??0).toLocaleString()}`],["Billed",Ia(n.billedMicros??0,4)],["Balance after",n.balanceSnapshotMicros!==void 0?Ia(n.balanceSnapshotMicros,4):"N/A"],["Prompt hash",n.promptHash?`${n.promptHash.slice(0,32)}...`:"N/A"],["Response hash",n.responseHash?`${n.responseHash.slice(0,32)}...`:"N/A"],["Price version",n.priceVersion??"N/A"]]})}function sS({entry:n}){return o.jsx(y0,{rows:[["Purchase ID",n.purchaseId],["Created",uu(n.createdAt)],["Completed",n.completedAt?uu(n.completedAt):"N/A"],["Payment method",n.paymentMethod],["Payment reference",n.paymentReferenceHash?`${n.paymentReferenceHash.slice(0,32)}...`:"N/A"],["Credit",Ia(n.creditMicros,4)],["Credit micros",n.creditMicros.toLocaleString()],["Currency",n.currency],["Seller",n.sellerKey],["Model",n.modelId]]})}function y0({rows:n}){return o.jsx("div",{className:"grid gap-x-4 gap-y-2 text-[0.84rem] sm:grid-cols-[150px_minmax(0,1fr)]",children:n.map(([i,s])=>o.jsxs("div",{className:"contents",children:[o.jsx("div",{className:"text-[var(--color-muted)]",children:i}),o.jsx("div",{className:"min-w-0 break-all font-mono text-[0.8rem] text-[var(--color-ink)]",children:s})]},i))})}function cS(){return o.jsx("div",{className:"space-y-2 px-4 py-4",children:Array.from({length:7},(n,i)=>o.jsx("div",{className:"h-12 rounded-lg bg-[var(--color-lavender)]/35"},i))})}function g0({label:n}){return o.jsxs("div",{className:"flex min-h-[220px] flex-col items-center justify-center px-6 py-10 text-center",children:[o.jsx("div",{className:"grid size-12 place-items-center rounded-xl border border-[var(--color-line-2)] bg-[var(--color-page)] text-[var(--color-purple)]",children:o.jsx(vf,{className:"size-5"})}),o.jsxs("div",{className:"mt-4 font-semibold text-[var(--color-ink)]",children:["No matching ",n]}),o.jsx("div",{className:"mt-1 max-w-[360px] text-[0.86rem] text-[var(--color-muted)]",children:"Adjust the query or filters to inspect another slice of the local ledger."})]})}function oS(n,i){const s=n.reduce((v,y)=>v+(y.billedMicros??0),0),c=i.reduce((v,y)=>v+y.creditMicros,0),f=n.reduce((v,y)=>v+(y.promptTokens??0),0),m=n.reduce((v,y)=>v+(y.completionTokens??0),0),h=n.map(v=>v.durationMs).filter(v=>v!==void 0),g=h.length===0?void 0:h.reduce((v,y)=>v+y,0)/h.length;return{inferenceCount:n.length,inferenceSpendMicros:s,purchaseCreditMicros:c,inputTokens:f,outputTokens:m,settledPurchases:i.filter(v=>pS(v.status)).length,averageDurationMs:g}}function fS(n){return{statuses:Xr(n.map(i=>i.status)),models:Xr(n.map(i=>i.modelId))}}function dS(n){return{statuses:Xr(n.map(i=>i.status)),methods:Xr(n.map(i=>i.paymentMethod))}}function Xr(n){return Array.from(new Set(n.filter(Boolean))).sort((i,s)=>i.localeCompare(s))}function hS(n,i){return i?[n.requestId,n.sellerKey,n.modelId,n.endpoint,n.status,n.paymentMethod,n.routeReason,n.upstreamStatus].some(s=>s==null?void 0:s.toLowerCase().includes(i)):!0}function mS(n,i){return i?[n.purchaseId,n.sellerKey,n.modelId,n.paymentMethod,n.status,n.currency,n.paymentReferenceHash].some(s=>s==null?void 0:s.toLowerCase().includes(i)):!0}function av(n,i,s){const c=(i-1)*s;return n.slice(c,c+s)}function x0(n){return n==="ok"||n==="settled"||n==="completed"||n==="success"||n==="active"?"green":n==="fallback"||n==="pending"?"amber":n==="failed"||n==="error"||n==="canceled"?"red":"gray"}function pS(n){return n==="settled"||n==="active"||n==="completed"||n==="success"}function Ia(n,i=2){return`$${(n/1e6).toFixed(i)}`}function Ro(n){return Intl.NumberFormat("en",{notation:n>=1e4?"compact":"standard",maximumFractionDigits:n>=1e4?1:0}).format(n)}function vS(){return o.jsxs("div",{className:"min-h-full",children:[o.jsxs("nav",{className:"sticky top-0 z-10 flex h-12 items-center gap-2 border-b border-[var(--color-line-2)] bg-[var(--color-page)] px-3 sm:gap-5 sm:px-6",children:[o.jsxs(cf,{to:"/overview",className:"group inline-flex shrink-0 items-baseline rounded-[7px] px-1 py-1.5 focus:outline-none focus:ring-2 focus:ring-[var(--color-purple)]","aria-label":"TOKENBUDDY.AI home",children:[o.jsx("span",{className:"relative font-mono text-[0.78rem] font-black uppercase leading-none tracking-[0.14em] text-[var(--color-ink)] after:absolute after:-bottom-1 after:left-0 after:h-0.5 after:w-full after:origin-left after:scale-x-75 after:rounded-full after:bg-[var(--color-purple)] after:opacity-0 after:transition group-hover:after:scale-x-100 group-hover:after:opacity-100 sm:text-[0.86rem]",children:"TOKENBUDDY"}),o.jsxs("span",{className:"ml-0.5 font-mono text-[0.78rem] font-black uppercase leading-none tracking-[0.06em] text-[var(--color-purple)] sm:text-[0.86rem]",children:[o.jsx("span",{className:"text-[var(--color-purple-2)]",children:"."}),"AI"]})]}),o.jsxs("div",{className:"ml-auto flex min-w-0 gap-0.5 sm:gap-1",children:[o.jsx(zo,{to:"/overview",children:"Overview"}),o.jsx(zo,{to:"/routing",children:"Routing"}),o.jsx(zo,{to:"/ledger",children:"Ledger"})]})]}),o.jsx("main",{className:"mx-auto max-w-[1180px] px-3 py-5 sm:px-6 sm:py-7",children:o.jsxs(Px,{children:[o.jsx(tu,{path:"/",element:o.jsx(Fp,{})}),o.jsx(tu,{path:"/overview",element:o.jsx(Fp,{})}),o.jsx(tu,{path:"/routing",element:o.jsx(z2,{})}),o.jsx(tu,{path:"/ledger",element:o.jsx(nS,{})})]})})]})}function zo({to:n,children:i}){return o.jsx(cf,{to:n,className:({isActive:s})=>["rounded-full px-2 py-1.5 text-[0.82rem] font-medium transition-colors sm:px-3.5 sm:text-[0.92rem]",s?"font-semibold text-[var(--color-ink)] underline decoration-[var(--color-purple)] decoration-2 underline-offset-[10px]":"text-[var(--color-muted)] hover:text-[var(--color-ink)]"].join(" "),children:i})}function yS(){!("serviceWorker"in navigator)||window.location.port==="5173"||window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})})}const gS=new a1({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!1,retry:1}}});ex.createRoot(document.getElementById("root")).render(o.jsx(M.StrictMode,{children:o.jsx(n1,{client:gS,children:o.jsx(Nb,{children:o.jsx(vS,{})})})}));yS();
206
+ //# sourceMappingURL=index-YHs-Ca0f.js.map