146 lines
348 KiB
JavaScript
146 lines
348 KiB
JavaScript
var My=l=>{throw TypeError(l)};var jo=(l,i,u)=>i.has(l)||My("Cannot "+u);var E=(l,i,u)=>(jo(l,i,"read from private field"),u?u.call(l):i.get(l)),te=(l,i,u)=>i.has(l)?My("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,u),J=(l,i,u,r)=>(jo(l,i,"write to private field"),r?r.call(l,u):i.set(l,u),u),de=(l,i,u)=>(jo(l,i,"access private method"),u);var Qs=(l,i,u,r)=>({set _(o){J(l,i,o,u)},get _(){return E(l,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function u(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=u(o);fetch(o.href,f)}})();function Qp(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Co={exports:{}},nu={};/**
|
|
* @license React
|
|
* react-jsx-runtime.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Uy;function mb(){if(Uy)return nu;Uy=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:l,type:r,key:h,ref:o!==void 0?o:null,props:f}}return nu.Fragment=i,nu.jsx=u,nu.jsxs=u,nu}var qy;function yb(){return qy||(qy=1,Co.exports=mb()),Co.exports}var m=yb(),_o={exports:{}},re={};/**
|
|
* @license React
|
|
* react.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Ly;function pb(){if(Ly)return re;Ly=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=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"),j=Symbol.iterator;function G(R){return R===null||typeof R!="object"?null:(R=j&&R[j]||R["@@iterator"],typeof R=="function"?R:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,O={};function H(R,Q,Z){this.props=R,this.context=Q,this.refs=O,this.updater=Z||N}H.prototype.isReactComponent={},H.prototype.setState=function(R,Q){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,Q,"setState")},H.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function X(){}X.prototype=H.prototype;function K(R,Q,Z){this.props=R,this.context=Q,this.refs=O,this.updater=Z||N}var k=K.prototype=new X;k.constructor=K,D(k,H.prototype),k.isPureReactComponent=!0;var F=Array.isArray;function ae(){}var $={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function fe(R,Q,Z){var W=Z.ref;return{$$typeof:l,type:R,key:Q,ref:W!==void 0?W:null,props:Z}}function Oe(R,Q){return fe(R.type,Q,R.props)}function Qe(R){return typeof R=="object"&&R!==null&&R.$$typeof===l}function qe(R){var Q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return Q[Z]})}var Ie=/\/+/g;function Le(R,Q){return typeof R=="object"&&R!==null&&R.key!=null?qe(""+R.key):Q.toString(36)}function _e(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ae,ae):(R.status="pending",R.then(function(Q){R.status==="pending"&&(R.status="fulfilled",R.value=Q)},function(Q){R.status==="pending"&&(R.status="rejected",R.reason=Q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,Q,Z,W,se){var he=typeof R;(he==="undefined"||he==="boolean")&&(R=null);var Ne=!1;if(R===null)Ne=!0;else switch(he){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(R.$$typeof){case l:case i:Ne=!0;break;case b:return Ne=R._init,q(Ne(R._payload),Q,Z,W,se)}}if(Ne)return se=se(R),Ne=W===""?"."+Le(R,0):W,F(se)?(Z="",Ne!=null&&(Z=Ne.replace(Ie,"$&/")+"/"),q(se,Q,Z,"",function(oi){return oi})):se!=null&&(Qe(se)&&(se=Oe(se,Z+(se.key==null||R&&R.key===se.key?"":(""+se.key).replace(Ie,"$&/")+"/")+Ne)),Q.push(se)),1;Ne=0;var ht=W===""?".":W+":";if(F(R))for(var Ve=0;Ve<R.length;Ve++)W=R[Ve],he=ht+Le(W,Ve),Ne+=q(W,Q,Z,he,se);else if(Ve=G(R),typeof Ve=="function")for(R=Ve.call(R),Ve=0;!(W=R.next()).done;)W=W.value,he=ht+Le(W,Ve++),Ne+=q(W,Q,Z,he,se);else if(he==="object"){if(typeof R.then=="function")return q(_e(R),Q,Z,W,se);throw Q=String(R),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function V(R,Q,Z){if(R==null)return R;var W=[],se=0;return q(R,W,"","",function(he){return Q.call(Z,he,se++)}),W}function ee(R){if(R._status===-1){var Q=R._result;Q=Q(),Q.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=Q)}if(R._status===1)return R._result.default;throw R._result}var Re=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},we={map:V,forEach:function(R,Q,Z){V(R,function(){Q.apply(this,arguments)},Z)},count:function(R){var Q=0;return V(R,function(){Q++}),Q},toArray:function(R){return V(R,function(Q){return Q})||[]},only:function(R){if(!Qe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return re.Activity=x,re.Children=we,re.Component=H,re.Fragment=u,re.Profiler=o,re.PureComponent=K,re.StrictMode=r,re.Suspense=v,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,re.__COMPILER_RUNTIME={__proto__:null,c:function(R){return $.H.useMemoCache(R)}},re.cache=function(R){return function(){return R.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(R,Q,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var W=D({},R.props),se=R.key;if(Q!=null)for(he in Q.key!==void 0&&(se=""+Q.key),Q)!le.call(Q,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Q.ref===void 0||(W[he]=Q[he]);var he=arguments.length-2;if(he===1)W.children=Z;else if(1<he){for(var Ne=Array(he),ht=0;ht<he;ht++)Ne[ht]=arguments[ht+2];W.children=Ne}return fe(R.type,se,W)},re.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},re.createElement=function(R,Q,Z){var W,se={},he=null;if(Q!=null)for(W in Q.key!==void 0&&(he=""+Q.key),Q)le.call(Q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(se[W]=Q[W]);var Ne=arguments.length-2;if(Ne===1)se.children=Z;else if(1<Ne){for(var ht=Array(Ne),Ve=0;Ve<Ne;Ve++)ht[Ve]=arguments[Ve+2];se.children=ht}if(R&&R.defaultProps)for(W in Ne=R.defaultProps,Ne)se[W]===void 0&&(se[W]=Ne[W]);return fe(R,he,se)},re.createRef=function(){return{current:null}},re.forwardRef=function(R){return{$$typeof:g,render:R}},re.isValidElement=Qe,re.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:ee}},re.memo=function(R,Q){return{$$typeof:y,type:R,compare:Q===void 0?null:Q}},re.startTransition=function(R){var Q=$.T,Z={};$.T=Z;try{var W=R(),se=$.S;se!==null&&se(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ae,Re)}catch(he){Re(he)}finally{Q!==null&&Z.types!==null&&(Q.types=Z.types),$.T=Q}},re.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},re.use=function(R){return $.H.use(R)},re.useActionState=function(R,Q,Z){return $.H.useActionState(R,Q,Z)},re.useCallback=function(R,Q){return $.H.useCallback(R,Q)},re.useContext=function(R){return $.H.useContext(R)},re.useDebugValue=function(){},re.useDeferredValue=function(R,Q){return $.H.useDeferredValue(R,Q)},re.useEffect=function(R,Q){return $.H.useEffect(R,Q)},re.useEffectEvent=function(R){return $.H.useEffectEvent(R)},re.useId=function(){return $.H.useId()},re.useImperativeHandle=function(R,Q,Z){return $.H.useImperativeHandle(R,Q,Z)},re.useInsertionEffect=function(R,Q){return $.H.useInsertionEffect(R,Q)},re.useLayoutEffect=function(R,Q){return $.H.useLayoutEffect(R,Q)},re.useMemo=function(R,Q){return $.H.useMemo(R,Q)},re.useOptimistic=function(R,Q){return $.H.useOptimistic(R,Q)},re.useReducer=function(R,Q,Z){return $.H.useReducer(R,Q,Z)},re.useRef=function(R){return $.H.useRef(R)},re.useState=function(R){return $.H.useState(R)},re.useSyncExternalStore=function(R,Q,Z){return $.H.useSyncExternalStore(R,Q,Z)},re.useTransition=function(){return $.H.useTransition()},re.version="19.2.4",re}var Hy;function hf(){return Hy||(Hy=1,_o.exports=pb()),_o.exports}var w=hf();const gb=Qp(w);var Do={exports:{}},lu={},zo={exports:{}},Mo={};/**
|
|
* @license React
|
|
* scheduler.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var By;function vb(){return By||(By=1,(function(l){function i(q,V){var ee=q.length;q.push(V);e:for(;0<ee;){var Re=ee-1>>>1,we=q[Re];if(0<o(we,V))q[Re]=V,q[ee]=we,ee=Re;else break e}}function u(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var V=q[0],ee=q.pop();if(ee!==V){q[0]=ee;e:for(var Re=0,we=q.length,R=we>>>1;Re<R;){var Q=2*(Re+1)-1,Z=q[Q],W=Q+1,se=q[W];if(0>o(Z,ee))W<we&&0>o(se,Z)?(q[Re]=se,q[W]=ee,Re=W):(q[Re]=Z,q[Q]=ee,Re=Q);else if(W<we&&0>o(se,ee))q[Re]=se,q[W]=ee,Re=W;else break e}}return V}function o(q,V){var ee=q.sortIndex-V.sortIndex;return ee!==0?ee:q.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var v=[],y=[],b=1,x=null,j=3,G=!1,N=!1,D=!1,O=!1,H=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function k(q){for(var V=u(y);V!==null;){if(V.callback===null)r(y);else if(V.startTime<=q)r(y),V.sortIndex=V.expirationTime,i(v,V);else break;V=u(y)}}function F(q){if(D=!1,k(q),!N)if(u(v)!==null)N=!0,ae||(ae=!0,qe());else{var V=u(y);V!==null&&_e(F,V.startTime-q)}}var ae=!1,$=-1,le=5,fe=-1;function Oe(){return O?!0:!(l.unstable_now()-fe<le)}function Qe(){if(O=!1,ae){var q=l.unstable_now();fe=q;var V=!0;try{e:{N=!1,D&&(D=!1,X($),$=-1),G=!0;var ee=j;try{t:{for(k(q),x=u(v);x!==null&&!(x.expirationTime>q&&Oe());){var Re=x.callback;if(typeof Re=="function"){x.callback=null,j=x.priorityLevel;var we=Re(x.expirationTime<=q);if(q=l.unstable_now(),typeof we=="function"){x.callback=we,k(q),V=!0;break t}x===u(v)&&r(v),k(q)}else r(v);x=u(v)}if(x!==null)V=!0;else{var R=u(y);R!==null&&_e(F,R.startTime-q),V=!1}}break e}finally{x=null,j=ee,G=!1}V=void 0}}finally{V?qe():ae=!1}}}var qe;if(typeof K=="function")qe=function(){K(Qe)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,Le=Ie.port2;Ie.port1.onmessage=Qe,qe=function(){Le.postMessage(null)}}else qe=function(){H(Qe,0)};function _e(q,V){$=H(function(){q(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(q){q.callback=null},l.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<q?Math.floor(1e3/q):5},l.unstable_getCurrentPriorityLevel=function(){return j},l.unstable_next=function(q){switch(j){case 1:case 2:case 3:var V=3;break;default:V=j}var ee=j;j=V;try{return q()}finally{j=ee}},l.unstable_requestPaint=function(){O=!0},l.unstable_runWithPriority=function(q,V){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=j;j=q;try{return V()}finally{j=ee}},l.unstable_scheduleCallback=function(q,V,ee){var Re=l.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Re+ee:Re):ee=Re,q){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=ee+we,q={id:b++,callback:V,priorityLevel:q,startTime:ee,expirationTime:we,sortIndex:-1},ee>Re?(q.sortIndex=ee,i(y,q),u(v)===null&&q===u(y)&&(D?(X($),$=-1):D=!0,_e(F,ee-Re))):(q.sortIndex=we,i(v,q),N||G||(N=!0,ae||(ae=!0,qe()))),q},l.unstable_shouldYield=Oe,l.unstable_wrapCallback=function(q){var V=j;return function(){var ee=j;j=V;try{return q.apply(this,arguments)}finally{j=ee}}}})(Mo)),Mo}var Qy;function bb(){return Qy||(Qy=1,zo.exports=vb()),zo.exports}var Uo={exports:{}},ot={};/**
|
|
* @license React
|
|
* react-dom.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Gy;function xb(){if(Gy)return ot;Gy=1;var l=hf();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 u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(v,y,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:v,containerInfo:y,implementation:b}}var h=l.__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=r,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 f(v,y,null,b)},ot.flushSync=function(v){var y=h.T,b=r.p;try{if(h.T=null,r.p=2,v)return v()}finally{h.T=y,r.p=b,r.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,r.d.C(v,y))},ot.prefetchDNS=function(v){typeof v=="string"&&r.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),j=typeof y.integrity=="string"?y.integrity:void 0,G=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?r.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:j,fetchPriority:G}):b==="script"&&r.d.X(v,{crossOrigin:x,integrity:j,fetchPriority:G,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);r.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&&r.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);r.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);r.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 r.d.m(v)},ot.requestFormReset=function(v){r.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.4",ot}var Yy;function Sb(){if(Yy)return Uo.exports;Yy=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Uo.exports=xb(),Uo.exports}/**
|
|
* @license React
|
|
* react-dom-client.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Ky;function Eb(){if(Ky)return lu;Ky=1;var l=bb(),i=hf(),u=Sb();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a: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(f(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,n=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(n=s.return,n!==null){a=n;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return v(s),e;if(c===n)return v(s),t;c=c.sibling}throw Error(r(188))}if(a.return!==n.return)a=s,n=c;else{for(var d=!1,p=s.child;p;){if(p===a){d=!0,a=s,n=c;break}if(p===n){d=!0,n=s,a=c;break}p=p.sibling}if(!d){for(p=c.child;p;){if(p===a){d=!0,a=c,n=s;break}if(p===n){d=!0,n=c,a=s;break}p=p.sibling}if(!d)throw Error(r(189))}}if(a.alternate!==n)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?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,j=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),K=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),Oe=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=Qe&&e[Qe]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case H:return"Profiler";case O:return"StrictMode";case F:return"Suspense";case ae:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case K:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var _e=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Re=[],we=-1;function R(e){return{current:e}}function Q(e){0>we||(e.current=Re[we],Re[we]=null,we--)}function Z(e,t){we++,Re[we]=e.current,e.current=t}var W=R(null),se=R(null),he=R(null),Ne=R(null);function ht(e,t){switch(Z(he,t),Z(se,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ny(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ny(t),e=ly(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(W),Z(W,e)}function Ve(){Q(W),Q(se),Q(he)}function oi(e){e.memoizedState!==null&&Z(Ne,e);var t=W.current,a=ly(t,e.type);t!==a&&(Z(se,e),Z(W,a))}function Eu(e){se.current===e&&(Q(W),Q(se)),Ne.current===e&&(Q(Ne),Ii._currentValue=ee)}var or,zf;function On(e){if(or===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);or=t&&t[1]||"",zf=-1<a.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+or+e+zf}var fr=!1;function dr(e,t){if(!e||fr)return"";fr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var z=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){z=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){z=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&z&&typeof U.stack=="string")return[U.stack,z.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=n.DetermineComponentFrameRoot(),d=c[0],p=c[1];if(d&&p){var S=d.split(`
|
|
`),_=p.split(`
|
|
`);for(s=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;s<_.length&&!_[s].includes("DetermineComponentFrameRoot");)s++;if(n===S.length||s===_.length)for(n=S.length-1,s=_.length-1;1<=n&&0<=s&&S[n]!==_[s];)s--;for(;1<=n&&0<=s;n--,s--)if(S[n]!==_[s]){if(n!==1||s!==1)do if(n--,s--,0>s||S[n]!==_[s]){var L=`
|
|
`+S[n].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=n&&0<=s);break}}}finally{fr=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?On(a):""}function X0(e,t){switch(e.tag){case 26:case 27:case 5:return On(e.type);case 16:return On("Lazy");case 13:return e.child!==t&&t!==null?On("Suspense Fallback"):On("Suspense");case 19:return On("SuspenseList");case 0:case 15:return dr(e.type,!1);case 11:return dr(e.type.render,!1);case 1:return dr(e.type,!0);case 31:return On("Activity");default:return""}}function Mf(e){try{var t="",a=null;do t+=X0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var hr=Object.prototype.hasOwnProperty,mr=l.unstable_scheduleCallback,yr=l.unstable_cancelCallback,V0=l.unstable_shouldYield,Z0=l.unstable_requestPaint,wt=l.unstable_now,J0=l.unstable_getCurrentPriorityLevel,Uf=l.unstable_ImmediatePriority,qf=l.unstable_UserBlockingPriority,Ru=l.unstable_NormalPriority,F0=l.unstable_LowPriority,Lf=l.unstable_IdlePriority,$0=l.log,W0=l.unstable_setDisableYieldValue,fi=null,jt=null;function Ka(e){if(typeof $0=="function"&&W0(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(fi,e)}catch{}}var Ct=Math.clz32?Math.clz32:eg,P0=Math.log,I0=Math.LN2;function eg(e){return e>>>=0,e===0?32:31-(P0(e)/I0|0)|0}var Tu=256,Nu=262144,Au=4194304;function wn(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 Ou(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~c,n!==0?s=wn(n):(d&=p,d!==0?s=wn(d):a||(a=p&~e,a!==0&&(s=wn(a))))):(p=n&~c,p!==0?s=wn(p):d!==0?s=wn(d):a||(a=n&~e,a!==0&&(s=wn(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function di(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tg(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 Hf(){var e=Au;return Au<<=1,(Au&62914560)===0&&(Au=4194304),e}function pr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ag(e,t,a,n,s,c){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(a=d&~a;0<a;){var L=31-Ct(a),Y=1<<L;p[L]=0,S[L]=-1;var z=_[L];if(z!==null)for(_[L]=null,L=0;L<z.length;L++){var U=z[L];U!==null&&(U.lane&=-536870913)}a&=~Y}n!==0&&Bf(e,n,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function Bf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ct(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Qf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ct(a),s=1<<n;s&t|e[n]&t&&(e[n]|=t),a&=~s}}function Gf(e,t){var a=t&-t;return a=(a&42)!==0?1:gr(a),(a&(e.suspendedLanes|t))!==0?0:a}function gr(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 vr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yf(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Oy(e.type))}function Kf(e,t){var a=V.p;try{return V.p=e,t()}finally{V.p=a}}var ka=Math.random().toString(36).slice(2),it="__reactFiber$"+ka,gt="__reactProps$"+ka,rl="__reactContainer$"+ka,br="__reactEvents$"+ka,ng="__reactListeners$"+ka,lg="__reactHandles$"+ka,kf="__reactResources$"+ka,mi="__reactMarker$"+ka;function xr(e){delete e[it],delete e[gt],delete e[br],delete e[ng],delete e[lg]}function cl(e){var t=e[it];if(t)return t;for(var a=e.parentNode;a;){if(t=a[rl]||a[it]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=fy(e);e!==null;){if(a=e[it])return a;e=fy(e)}return t}e=a,a=e.parentNode}return null}function ol(e){if(e=e[it]||e[rl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fl(e){var t=e[kf];return t||(t=e[kf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[mi]=!0}var Xf=new Set,Vf={};function jn(e,t){dl(e,t),dl(e+"Capture",t)}function dl(e,t){for(Vf[e]=t,e=0;e<t.length;e++)Xf.add(t[e])}var ig=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]*$"),Zf={},Jf={};function ug(e){return hr.call(Jf,e)?!0:hr.call(Zf,e)?!1:ig.test(e)?Jf[e]=!0:(Zf[e]=!0,!1)}function wu(e,t,a){if(ug(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ju(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ga(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ff(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sg(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){a=""+d,c.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){if(!e._valueTracker){var t=Ff(e)?"checked":"value";e._valueTracker=sg(e,t,""+e[t])}}function $f(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Ff(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Cu(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 rg=/[\n"\\]/g;function Qt(e){return e.replace(rg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Er(e,t,a,n,s,c,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=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,d,Bt(t)):a!=null?Rr(e,d,Bt(a)):n!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Bt(p):e.removeAttribute("name")}function Wf(e,t,a,n,s,c,d,p){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Sr(e);return}a=a!=null?""+Bt(a):"",t=t!=null?""+Bt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}n=n??s,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=p?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Sr(e)}function Rr(e,t,a){t==="number"&&Cu(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function hl(e,t,a,n){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Bt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Pf(e,t,a){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Bt(a):""}function If(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(r(92));if(_e(n)){if(1<n.length)throw Error(r(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Bt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Sr(e)}function ml(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var cg=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 ed(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||cg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function td(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var s in t)n=t[s],t.hasOwnProperty(s)&&a[s]!==n&&ed(e,s,n)}else for(var c in t)t.hasOwnProperty(c)&&ed(e,c,t[c])}function Tr(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 og=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"]]),fg=/^[\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 _u(e){return fg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function va(){}var Nr=null;function Ar(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yl=null,pl=null;function ad(e){var t=ol(e);if(t&&(e=t.stateNode)){var a=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Er(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var s=n[gt]||null;if(!s)throw Error(r(90));Er(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&$f(n)}break e;case"textarea":Pf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&hl(e,!!a.multiple,t,!1)}}}var Or=!1;function nd(e,t,a){if(Or)return e(t,a);Or=!0;try{var n=e(t);return n}finally{if(Or=!1,(yl!==null||pl!==null)&&(vs(),yl&&(t=yl,e=pl,pl=yl=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function pi(e,t){var a=e.stateNode;if(a===null)return null;var n=a[gt]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wr=!1;if(ba)try{var gi={};Object.defineProperty(gi,"passive",{get:function(){wr=!0}}),window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{wr=!1}var Xa=null,jr=null,Du=null;function ld(){if(Du)return Du;var e,t=jr,a=t.length,n,s="value"in Xa?Xa.value:Xa.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===s[c-n];n++);return Du=s.slice(e,1<n?1-n:void 0)}function zu(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 Mu(){return!0}function id(){return!1}function vt(e){function t(a,n,s,c,d){this._reactName=a,this._targetInst=s,this.type=n,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Mu:id,this.isPropagationStopped=id,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Mu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Mu)},persist:function(){},isPersistent:Mu}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uu=vt(Cn),vi=x({},Cn,{view:0,detail:0}),dg=vt(vi),Cr,_r,bi,qu=x({},vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zr,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!==bi&&(bi&&e.type==="mousemove"?(Cr=e.screenX-bi.screenX,_r=e.screenY-bi.screenY):_r=Cr=0,bi=e),Cr)},movementY:function(e){return"movementY"in e?e.movementY:_r}}),ud=vt(qu),hg=x({},qu,{dataTransfer:0}),mg=vt(hg),yg=x({},vi,{relatedTarget:0}),Dr=vt(yg),pg=x({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0}),gg=vt(pg),vg=x({},Cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bg=vt(vg),xg=x({},Cn,{data:0}),sd=vt(xg),Sg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Eg={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"},Rg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rg[e])?!!t[e]:!1}function zr(){return Tg}var Ng=x({},vi,{key:function(e){if(e.key){var t=Sg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Eg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zr,charCode:function(e){return e.type==="keypress"?zu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ag=vt(Ng),Og=x({},qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rd=vt(Og),wg=x({},vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zr}),jg=vt(wg),Cg=x({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),_g=vt(Cg),Dg=x({},qu,{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}),zg=vt(Dg),Mg=x({},Cn,{newState:0,oldState:0}),Ug=vt(Mg),qg=[9,13,27,32],Mr=ba&&"CompositionEvent"in window,xi=null;ba&&"documentMode"in document&&(xi=document.documentMode);var Lg=ba&&"TextEvent"in window&&!xi,cd=ba&&(!Mr||xi&&8<xi&&11>=xi),od=" ",fd=!1;function dd(e,t){switch(e){case"keyup":return qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gl=!1;function Hg(e,t){switch(e){case"compositionend":return hd(t);case"keypress":return t.which!==32?null:(fd=!0,od);case"textInput":return e=t.data,e===od&&fd?null:e;default:return null}}function Bg(e,t){if(gl)return e==="compositionend"||!Mr&&dd(e,t)?(e=ld(),Du=jr=Xa=null,gl=!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 cd&&t.locale!=="ko"?null:t.data;default:return null}}var Qg={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 md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qg[e.type]:t==="textarea"}function yd(e,t,a,n){yl?pl?pl.push(n):pl=[n]:yl=n,t=Ns(t,"onChange"),0<t.length&&(a=new Uu("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Si=null,Ei=null;function Gg(e){Wm(e,0)}function Lu(e){var t=yi(e);if($f(t))return e}function pd(e,t){if(e==="change")return t}var gd=!1;if(ba){var Ur;if(ba){var qr="oninput"in document;if(!qr){var vd=document.createElement("div");vd.setAttribute("oninput","return;"),qr=typeof vd.oninput=="function"}Ur=qr}else Ur=!1;gd=Ur&&(!document.documentMode||9<document.documentMode)}function bd(){Si&&(Si.detachEvent("onpropertychange",xd),Ei=Si=null)}function xd(e){if(e.propertyName==="value"&&Lu(Ei)){var t=[];yd(t,Ei,e,Ar(e)),nd(Gg,t)}}function Yg(e,t,a){e==="focusin"?(bd(),Si=t,Ei=a,Si.attachEvent("onpropertychange",xd)):e==="focusout"&&bd()}function Kg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lu(Ei)}function kg(e,t){if(e==="click")return Lu(t)}function Xg(e,t){if(e==="input"||e==="change")return Lu(t)}function Vg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Vg;function Ri(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var s=a[n];if(!hr.call(t,s)||!_t(e[s],t[s]))return!1}return!0}function Sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ed(e,t){var a=Sd(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Sd(a)}}function Rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Td(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Cu(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Cu(e.document)}return t}function Lr(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 Zg=ba&&"documentMode"in document&&11>=document.documentMode,vl=null,Hr=null,Ti=null,Br=!1;function Nd(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Br||vl==null||vl!==Cu(n)||(n=vl,"selectionStart"in n&&Lr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ti&&Ri(Ti,n)||(Ti=n,n=Ns(Hr,"onSelect"),0<n.length&&(t=new Uu("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=vl)))}function _n(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var bl={animationend:_n("Animation","AnimationEnd"),animationiteration:_n("Animation","AnimationIteration"),animationstart:_n("Animation","AnimationStart"),transitionrun:_n("Transition","TransitionRun"),transitionstart:_n("Transition","TransitionStart"),transitioncancel:_n("Transition","TransitionCancel"),transitionend:_n("Transition","TransitionEnd")},Qr={},Ad={};ba&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete bl.animationend.animation,delete bl.animationiteration.animation,delete bl.animationstart.animation),"TransitionEvent"in window||delete bl.transitionend.transition);function Dn(e){if(Qr[e])return Qr[e];if(!bl[e])return e;var t=bl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ad)return Qr[e]=t[a];return e}var Od=Dn("animationend"),wd=Dn("animationiteration"),jd=Dn("animationstart"),Jg=Dn("transitionrun"),Fg=Dn("transitionstart"),$g=Dn("transitioncancel"),Cd=Dn("transitionend"),_d=new Map,Gr="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(" ");Gr.push("scrollEnd");function It(e,t){_d.set(e,t),jn(t,[e])}var Hu=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)},Gt=[],xl=0,Yr=0;function Bu(){for(var e=xl,t=Yr=xl=0;t<e;){var a=Gt[t];Gt[t++]=null;var n=Gt[t];Gt[t++]=null;var s=Gt[t];Gt[t++]=null;var c=Gt[t];if(Gt[t++]=null,n!==null&&s!==null){var d=n.pending;d===null?s.next=s:(s.next=d.next,d.next=s),n.pending=s}c!==0&&Dd(a,s,c)}}function Qu(e,t,a,n){Gt[xl++]=e,Gt[xl++]=t,Gt[xl++]=a,Gt[xl++]=n,Yr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Kr(e,t,a,n){return Qu(e,t,a,n),Gu(e)}function zn(e,t){return Qu(e,null,null,t),Gu(e)}function Dd(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,n=c.alternate,n!==null&&(n.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Ct(a),e=c.hiddenUpdates,n=e[s],n===null?e[s]=[t]:n.push(t),t.lane=a|536870912),c):null}function Gu(e){if(50<Vi)throw Vi=0,Pc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sl={};function Wg(e,t,a,n){this.tag=e,this.key=a,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,n){return new Wg(e,t,a,n)}function kr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xa(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function zd(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Yu(e,t,a,n,s,c){var d=0;if(n=e,typeof e=="function")kr(e)&&(d=1);else if(typeof e=="string")d=ab(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Dt(31,a,t,s),e.elementType=fe,e.lanes=c,e;case D:return Mn(a.children,s,c,t);case O:d=8,s|=24;break;case H:return e=Dt(12,a,t,s|2),e.elementType=H,e.lanes=c,e;case F:return e=Dt(13,a,t,s),e.elementType=F,e.lanes=c,e;case ae:return e=Dt(19,a,t,s),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:d=10;break e;case X:d=9;break e;case k:d=11;break e;case $:d=14;break e;case le:d=16,n=null;break e}d=29,a=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=Dt(d,a,t,s),t.elementType=e,t.type=n,t.lanes=c,t}function Mn(e,t,a,n){return e=Dt(7,e,n,t),e.lanes=a,e}function Xr(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function Md(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Vr(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ud=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var a=Ud.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Mf(t)},Ud.set(e,t),t)}return{value:e,source:t,stack:Mf(t)}}var El=[],Rl=0,Ku=null,Ni=0,Kt=[],kt=0,Va=null,sa=1,ra="";function Sa(e,t){El[Rl++]=Ni,El[Rl++]=Ku,Ku=e,Ni=t}function qd(e,t,a){Kt[kt++]=sa,Kt[kt++]=ra,Kt[kt++]=Va,Va=e;var n=sa;e=ra;var s=32-Ct(n)-1;n&=~(1<<s),a+=1;var c=32-Ct(t)+s;if(30<c){var d=s-s%5;c=(n&(1<<d)-1).toString(32),n>>=d,s-=d,sa=1<<32-Ct(t)+s|a<<s|n,ra=c+e}else sa=1<<c|a<<s|n,ra=e}function Zr(e){e.return!==null&&(Sa(e,1),qd(e,1,0))}function Jr(e){for(;e===Ku;)Ku=El[--Rl],El[Rl]=null,Ni=El[--Rl],El[Rl]=null;for(;e===Va;)Va=Kt[--kt],Kt[kt]=null,ra=Kt[--kt],Kt[kt]=null,sa=Kt[--kt],Kt[kt]=null}function Ld(e,t){Kt[kt++]=sa,Kt[kt++]=ra,Kt[kt++]=Va,sa=t.id,ra=t.overflow,Va=e}var ut=null,He=null,ve=!1,Za=null,Xt=!1,Fr=Error(r(519));function Ja(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ai(Yt(t,e)),Fr}function Hd(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[it]=e,t[gt]=n,a){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(a=0;a<Ji.length;a++)ye(Ji[a],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),Wf(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),If(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||ty(t.textContent,a)?(n.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),n.onScroll!=null&&ye("scroll",t),n.onScrollEnd!=null&&ye("scrollend",t),n.onClick!=null&&(t.onclick=va),t=!0):t=!1,t||Ja(e,!0)}function Bd(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:ut=ut.return}}function Tl(e){if(e!==ut)return!1;if(!ve)return Bd(e),ve=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||mo(e.type,e.memoizedProps)),a=!a),a&&He&&Ja(e),Bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=oy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=oy(e)}else t===27?(t=He,cn(e.type)?(e=bo,bo=null,He=e):He=t):He=ut?Zt(e.stateNode.nextSibling):null;return!0}function Un(){He=ut=null,ve=!1}function $r(){var e=Za;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),Za=null),e}function Ai(e){Za===null?Za=[e]:Za.push(e)}var Wr=R(null),qn=null,Ea=null;function Fa(e,t,a){Z(Wr,t._currentValue),t._currentValue=a}function Ra(e){e._currentValue=Wr.current,Q(Wr)}function Pr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Ir(e,t,a,n){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var d=s.child;c=c.firstContext;e:for(;c!==null;){var p=c;c=s;for(var S=0;S<t.length;S++)if(p.context===t[S]){c.lanes|=a,p=c.alternate,p!==null&&(p.lanes|=a),Pr(c.return,a,e),n||(d=null);break e}c=p.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(r(341));d.lanes|=a,c=d.alternate,c!==null&&(c.lanes|=a),Pr(d,a,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function Nl(e,t,a,n){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var p=s.type;_t(s.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(s===Ne.current){if(d=s.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ii):e=[Ii])}s=s.return}e!==null&&Ir(t,e,a,n),t.flags|=262144}function ku(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ln(e){qn=e,Ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Qd(qn,e)}function Xu(e,t){return qn===null&&Ln(e),Qd(e,t)}function Qd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ea===null){if(e===null)throw Error(r(308));Ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ea=Ea.next=t;return a}var Pg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Ig=l.unstable_scheduleCallback,ev=l.unstable_NormalPriority,Fe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new Pg,data:new Map,refCount:0}}function Oi(e){e.refCount--,e.refCount===0&&Ig(ev,function(){e.controller.abort()})}var wi=null,tc=0,Al=0,Ol=null;function tv(e,t){if(wi===null){var a=wi=[];tc=0,Al=lo(),Ol={status:"pending",value:void 0,then:function(n){a.push(n)}}}return tc++,t.then(Gd,Gd),t}function Gd(){if(--tc===0&&wi!==null){Ol!==null&&(Ol.status="fulfilled");var e=wi;wi=null,Al=0,Ol=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function av(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(n.status="rejected",n.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),n}var Yd=q.S;q.S=function(e,t){Nm=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tv(e,t),Yd!==null&&Yd(e,t)};var Hn=R(null);function ac(){var e=Hn.current;return e!==null?e:Ue.pooledCache}function Vu(e,t){t===null?Z(Hn,Hn.current):Z(Hn,t.pool)}function Kd(){var e=ac();return e===null?null:{parent:Fe._currentValue,pool:e}}var wl=Error(r(460)),nc=Error(r(474)),Zu=Error(r(542)),Ju={then:function(){}};function kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(va,va),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e;default:if(typeof t.status=="string")t.then(va,va);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=n}},function(n){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e}throw Qn=t,wl}}function Bn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Qn=a,wl):a}}var Qn=null;function Vd(){if(Qn===null)throw Error(r(459));var e=Qn;return Qn=null,e}function Zd(e){if(e===wl||e===Zu)throw Error(r(483))}var jl=null,ji=0;function Fu(e){var t=ji;return ji+=1,jl===null&&(jl=[]),Xd(jl,e,t)}function Ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function $u(e,t){throw t.$$typeof===j?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jd(e){function t(A,T){if(e){var C=A.deletions;C===null?(A.deletions=[T],A.flags|=16):C.push(T)}}function a(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function n(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function s(A,T){return A=xa(A,T),A.index=0,A.sibling=null,A}function c(A,T,C){return A.index=C,e?(C=A.alternate,C!==null?(C=C.index,C<T?(A.flags|=67108866,T):C):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function d(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function p(A,T,C,B){return T===null||T.tag!==6?(T=Xr(C,A.mode,B),T.return=A,T):(T=s(T,C),T.return=A,T)}function S(A,T,C,B){var ne=C.type;return ne===D?L(A,T,C.props.children,B,C.key):T!==null&&(T.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===le&&Bn(ne)===T.type)?(T=s(T,C.props),Ci(T,C),T.return=A,T):(T=Yu(C.type,C.key,C.props,null,A.mode,B),Ci(T,C),T.return=A,T)}function _(A,T,C,B){return T===null||T.tag!==4||T.stateNode.containerInfo!==C.containerInfo||T.stateNode.implementation!==C.implementation?(T=Vr(C,A.mode,B),T.return=A,T):(T=s(T,C.children||[]),T.return=A,T)}function L(A,T,C,B,ne){return T===null||T.tag!==7?(T=Mn(C,A.mode,B,ne),T.return=A,T):(T=s(T,C),T.return=A,T)}function Y(A,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Xr(""+T,A.mode,C),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case G:return C=Yu(T.type,T.key,T.props,null,A.mode,C),Ci(C,T),C.return=A,C;case N:return T=Vr(T,A.mode,C),T.return=A,T;case le:return T=Bn(T),Y(A,T,C)}if(_e(T)||qe(T))return T=Mn(T,A.mode,C,null),T.return=A,T;if(typeof T.then=="function")return Y(A,Fu(T),C);if(T.$$typeof===K)return Y(A,Xu(A,T),C);$u(A,T)}return null}function z(A,T,C,B){var ne=T!==null?T.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ne!==null?null:p(A,T,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case G:return C.key===ne?S(A,T,C,B):null;case N:return C.key===ne?_(A,T,C,B):null;case le:return C=Bn(C),z(A,T,C,B)}if(_e(C)||qe(C))return ne!==null?null:L(A,T,C,B,null);if(typeof C.then=="function")return z(A,T,Fu(C),B);if(C.$$typeof===K)return z(A,T,Xu(A,C),B);$u(A,C)}return null}function U(A,T,C,B,ne){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return A=A.get(C)||null,p(T,A,""+B,ne);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case G:return A=A.get(B.key===null?C:B.key)||null,S(T,A,B,ne);case N:return A=A.get(B.key===null?C:B.key)||null,_(T,A,B,ne);case le:return B=Bn(B),U(A,T,C,B,ne)}if(_e(B)||qe(B))return A=A.get(C)||null,L(T,A,B,ne,null);if(typeof B.then=="function")return U(A,T,C,Fu(B),ne);if(B.$$typeof===K)return U(A,T,C,Xu(T,B),ne);$u(T,B)}return null}function P(A,T,C,B){for(var ne=null,Se=null,I=T,oe=T=0,ge=null;I!==null&&oe<C.length;oe++){I.index>oe?(ge=I,I=null):ge=I.sibling;var Ee=z(A,I,C[oe],B);if(Ee===null){I===null&&(I=ge);break}e&&I&&Ee.alternate===null&&t(A,I),T=c(Ee,T,oe),Se===null?ne=Ee:Se.sibling=Ee,Se=Ee,I=ge}if(oe===C.length)return a(A,I),ve&&Sa(A,oe),ne;if(I===null){for(;oe<C.length;oe++)I=Y(A,C[oe],B),I!==null&&(T=c(I,T,oe),Se===null?ne=I:Se.sibling=I,Se=I);return ve&&Sa(A,oe),ne}for(I=n(I);oe<C.length;oe++)ge=U(I,A,oe,C[oe],B),ge!==null&&(e&&ge.alternate!==null&&I.delete(ge.key===null?oe:ge.key),T=c(ge,T,oe),Se===null?ne=ge:Se.sibling=ge,Se=ge);return e&&I.forEach(function(mn){return t(A,mn)}),ve&&Sa(A,oe),ne}function ie(A,T,C,B){if(C==null)throw Error(r(151));for(var ne=null,Se=null,I=T,oe=T=0,ge=null,Ee=C.next();I!==null&&!Ee.done;oe++,Ee=C.next()){I.index>oe?(ge=I,I=null):ge=I.sibling;var mn=z(A,I,Ee.value,B);if(mn===null){I===null&&(I=ge);break}e&&I&&mn.alternate===null&&t(A,I),T=c(mn,T,oe),Se===null?ne=mn:Se.sibling=mn,Se=mn,I=ge}if(Ee.done)return a(A,I),ve&&Sa(A,oe),ne;if(I===null){for(;!Ee.done;oe++,Ee=C.next())Ee=Y(A,Ee.value,B),Ee!==null&&(T=c(Ee,T,oe),Se===null?ne=Ee:Se.sibling=Ee,Se=Ee);return ve&&Sa(A,oe),ne}for(I=n(I);!Ee.done;oe++,Ee=C.next())Ee=U(I,A,oe,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&I.delete(Ee.key===null?oe:Ee.key),T=c(Ee,T,oe),Se===null?ne=Ee:Se.sibling=Ee,Se=Ee);return e&&I.forEach(function(hb){return t(A,hb)}),ve&&Sa(A,oe),ne}function Me(A,T,C,B){if(typeof C=="object"&&C!==null&&C.type===D&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case G:e:{for(var ne=C.key;T!==null;){if(T.key===ne){if(ne=C.type,ne===D){if(T.tag===7){a(A,T.sibling),B=s(T,C.props.children),B.return=A,A=B;break e}}else if(T.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===le&&Bn(ne)===T.type){a(A,T.sibling),B=s(T,C.props),Ci(B,C),B.return=A,A=B;break e}a(A,T);break}else t(A,T);T=T.sibling}C.type===D?(B=Mn(C.props.children,A.mode,B,C.key),B.return=A,A=B):(B=Yu(C.type,C.key,C.props,null,A.mode,B),Ci(B,C),B.return=A,A=B)}return d(A);case N:e:{for(ne=C.key;T!==null;){if(T.key===ne)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){a(A,T.sibling),B=s(T,C.children||[]),B.return=A,A=B;break e}else{a(A,T);break}else t(A,T);T=T.sibling}B=Vr(C,A.mode,B),B.return=A,A=B}return d(A);case le:return C=Bn(C),Me(A,T,C,B)}if(_e(C))return P(A,T,C,B);if(qe(C)){if(ne=qe(C),typeof ne!="function")throw Error(r(150));return C=ne.call(C),ie(A,T,C,B)}if(typeof C.then=="function")return Me(A,T,Fu(C),B);if(C.$$typeof===K)return Me(A,T,Xu(A,C),B);$u(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(a(A,T.sibling),B=s(T,C),B.return=A,A=B):(a(A,T),B=Xr(C,A.mode,B),B.return=A,A=B),d(A)):a(A,T)}return function(A,T,C,B){try{ji=0;var ne=Me(A,T,C,B);return jl=null,ne}catch(I){if(I===wl||I===Zu)throw I;var Se=Dt(29,I,null,A.mode);return Se.lanes=B,Se.return=A,Se}finally{}}}var Gn=Jd(!0),Fd=Jd(!1),$a=!1;function lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(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 Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Te&2)!==0){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,t=Gu(e),Dd(e,null,a),t}return Qu(e,n,t,a),Gu(e)}function _i(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Qf(e,a)}}function uc(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=d:c=c.next=d,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var sc=!1;function Di(){if(sc){var e=Ol;if(e!==null)throw e}}function zi(e,t,a,n){sc=!1;var s=e.updateQueue;$a=!1;var c=s.firstBaseUpdate,d=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var S=p,_=S.next;S.next=null,d===null?c=_:d.next=_,d=S;var L=e.alternate;L!==null&&(L=L.updateQueue,p=L.lastBaseUpdate,p!==d&&(p===null?L.firstBaseUpdate=_:p.next=_,L.lastBaseUpdate=S))}if(c!==null){var Y=s.baseState;d=0,L=_=S=null,p=c;do{var z=p.lane&-536870913,U=z!==p.lane;if(U?(pe&z)===z:(n&z)===z){z!==0&&z===Al&&(sc=!0),L!==null&&(L=L.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var P=e,ie=p;z=t;var Me=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){Y=P.call(Me,Y,z);break e}Y=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,z=typeof P=="function"?P.call(Me,Y,z):P,z==null)break e;Y=x({},Y,z);break e;case 2:$a=!0}}z=p.callback,z!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[z]:U.push(z))}else U={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},L===null?(_=L=U,S=Y):L=L.next=U,d|=z;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;U=p,p=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);L===null&&(S=Y),s.baseState=S,s.firstBaseUpdate=_,s.lastBaseUpdate=L,c===null&&(s.shared.lanes=0),nn|=d,e.lanes=d,e.memoizedState=Y}}function $d(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Wd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)$d(a[e],t)}var Cl=R(null),Wu=R(0);function Pd(e,t){e=Da,Z(Wu,e),Z(Cl,t),Da=e|t.baseLanes}function rc(){Z(Wu,Da),Z(Cl,Cl.current)}function cc(){Da=Wu.current,Q(Cl),Q(Wu)}var zt=R(null),Vt=null;function Ia(e){var t=e.alternate;Z(Ze,Ze.current&1),Z(zt,e),Vt===null&&(t===null||Cl.current!==null||t.memoizedState!==null)&&(Vt=e)}function oc(e){Z(Ze,Ze.current),Z(zt,e),Vt===null&&(Vt=e)}function Id(e){e.tag===22?(Z(Ze,Ze.current),Z(zt,e),Vt===null&&(Vt=e)):en()}function en(){Z(Ze,Ze.current),Z(zt,zt.current)}function Mt(e){Q(zt),Vt===e&&(Vt=null),Q(Ze)}var Ze=R(0);function Pu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||go(a)||vo(a)))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 Ta=0,ce=null,De=null,$e=null,Iu=!1,_l=!1,Yn=!1,es=0,Mi=0,Dl=null,nv=0;function Ke(){throw Error(r(321))}function fc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!_t(e[a],t[a]))return!1;return!0}function dc(e,t,a,n,s,c){return Ta=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?qh:Oc,Yn=!1,c=a(n,s),Yn=!1,_l&&(c=th(t,a,n,s)),eh(e),c}function eh(e){q.H=Li;var t=De!==null&&De.next!==null;if(Ta=0,$e=De=ce=null,Iu=!1,Mi=0,Dl=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&ku(e)&&(We=!0))}function th(e,t,a,n){ce=e;var s=0;do{if(_l&&(Dl=null),Mi=0,_l=!1,25<=s)throw Error(r(301));if(s+=1,$e=De=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}q.H=Lh,c=t(a,n)}while(_l);return c}function lv(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?Ui(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ce.flags|=1024),t}function hc(){var e=es!==0;return es=0,e}function mc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function yc(e){if(Iu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Iu=!1}Ta=0,$e=De=ce=null,_l=!1,Mi=es=0,Dl=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ce.memoizedState=$e=e:$e=$e.next=e,$e}function Je(){if(De===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=$e===null?ce.memoizedState:$e.next;if(t!==null)$e=t,De=e;else{if(e===null)throw ce.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},$e===null?ce.memoizedState=$e=e:$e=$e.next=e}return $e}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ui(e){var t=Mi;return Mi+=1,Dl===null&&(Dl=[]),e=Xd(Dl,e,t),t=ce,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?qh:Oc),e}function as(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ui(e);if(e.$$typeof===K)return st(e)}throw Error(r(438,String(e)))}function pc(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ce.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ts(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Oe;return t.index++,a}function Na(e,t){return typeof t=="function"?t(e):t}function ns(e){var t=Je();return gc(t,De,e)}function gc(e,t,a){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=a;var s=e.baseQueue,c=n.pending;if(c!==null){if(s!==null){var d=s.next;s.next=c.next,c.next=d}t.baseQueue=s=c,n.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var p=d=null,S=null,_=t,L=!1;do{var Y=_.lane&-536870913;if(Y!==_.lane?(pe&Y)===Y:(Ta&Y)===Y){var z=_.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),Y===Al&&(L=!0);else if((Ta&z)===z){_=_.next,z===Al&&(L=!0);continue}else Y={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(p=S=Y,d=c):S=S.next=Y,ce.lanes|=z,nn|=z;Y=_.action,Yn&&a(c,Y),c=_.hasEagerState?_.eagerState:a(c,Y)}else z={lane:Y,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(p=S=z,d=c):S=S.next=z,ce.lanes|=Y,nn|=Y;_=_.next}while(_!==null&&_!==t);if(S===null?d=c:S.next=p,!_t(c,e.memoizedState)&&(We=!0,L&&(a=Ol,a!==null)))throw a;e.memoizedState=c,e.baseState=d,e.baseQueue=S,n.lastRenderedState=c}return s===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function vc(e){var t=Je(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var n=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var d=s=s.next;do c=e(c,d.action),d=d.next;while(d!==s);_t(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,n]}function ah(e,t,a){var n=ce,s=Je(),c=ve;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=t();var d=!_t((De||s).memoizedState,a);if(d&&(s.memoizedState=a,We=!0),s=s.queue,Sc(ih.bind(null,n,s,e),[e]),s.getSnapshot!==t||d||$e!==null&&$e.memoizedState.tag&1){if(n.flags|=2048,zl(9,{destroy:void 0},lh.bind(null,n,s,a,t),null),Ue===null)throw Error(r(349));c||(Ta&127)!==0||nh(n,t,a)}return a}function nh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=ts(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lh(e,t,a,n){t.value=a,t.getSnapshot=n,uh(t)&&sh(e)}function ih(e,t,a){return a(function(){uh(t)&&sh(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!_t(e,a)}catch{return!0}}function sh(e){var t=zn(e,2);t!==null&&Rt(t,e,2)}function bc(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),Yn){Ka(!0);try{a()}finally{Ka(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t}function rh(e,t,a,n){return e.baseState=a,gc(e,De,typeof n=="function"?n:Na)}function iv(e,t,a,n,s){if(us(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};q.T!==null?a(!0):c.isTransition=!1,n(c),a=t.pending,a===null?(c.next=t.pending=c,ch(t,c)):(c.next=a.next,t.pending=a.next=c)}}function ch(e,t){var a=t.action,n=t.payload,s=e.state;if(t.isTransition){var c=q.T,d={};q.T=d;try{var p=a(s,n),S=q.S;S!==null&&S(d,p),oh(e,t,p)}catch(_){xc(e,t,_)}finally{c!==null&&d.types!==null&&(c.types=d.types),q.T=c}}else try{c=a(s,n),oh(e,t,c)}catch(_){xc(e,t,_)}}function oh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){fh(e,t,n)},function(n){return xc(e,t,n)}):fh(e,t,a)}function fh(e,t,a){t.status="fulfilled",t.value=a,dh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ch(e,a)))}function xc(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,dh(t),t=t.next;while(t!==n)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hh(e,t){return t}function mh(e,t){if(ve){var a=Ue.formState;if(a!==null){e:{var n=ce;if(ve){if(He){t:{for(var s=He,c=Xt;s.nodeType!==8;){if(!c){s=null;break t}if(s=Zt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){He=Zt(s.nextSibling),n=s.data==="F!";break e}}Ja(n)}n=!1}n&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:t},a.queue=n,a=zh.bind(null,ce,n),n.dispatch=a,n=bc(!1),c=Ac.bind(null,ce,!1,n.queue),n=mt(),s={state:t,dispatch:null,action:e,pending:null},n.queue=s,a=iv.bind(null,ce,s,c,a),s.dispatch=a,n.memoizedState=e,[t,a,!1]}function yh(e){var t=Je();return ph(t,De,e)}function ph(e,t,a){if(t=gc(e,t,hh)[0],e=ns(Na)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ui(t)}catch(d){throw d===wl?Zu:d}else n=t;t=Je();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,zl(9,{destroy:void 0},uv.bind(null,s,a),null)),[n,c,e]}function uv(e,t){e.action=t}function gh(e){var t=Je(),a=De;if(a!==null)return ph(t,a,e);Je(),t=t.memoizedState,a=Je();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function zl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ce.updateQueue,t===null&&(t=ts(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function vh(){return Je().memoizedState}function ls(e,t,a,n){var s=mt();ce.flags|=e,s.memoizedState=zl(1|t,{destroy:void 0},a,n===void 0?null:n)}function is(e,t,a,n){var s=Je();n=n===void 0?null:n;var c=s.memoizedState.inst;De!==null&&n!==null&&fc(n,De.memoizedState.deps)?s.memoizedState=zl(t,c,a,n):(ce.flags|=e,s.memoizedState=zl(1|t,c,a,n))}function bh(e,t){ls(8390656,8,e,t)}function Sc(e,t){is(2048,8,e,t)}function sv(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=ts(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function xh(e){var t=Je().memoizedState;return sv({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Sh(e,t){return is(4,2,e,t)}function Eh(e,t){return is(4,4,e,t)}function Rh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Th(e,t,a){a=a!=null?a.concat([e]):null,is(4,4,Rh.bind(null,t,e),a)}function Ec(){}function Nh(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&fc(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Ah(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&fc(t,n[1]))return n[0];if(n=e(),Yn){Ka(!0);try{e()}finally{Ka(!1)}}return a.memoizedState=[n,t],n}function Rc(e,t,a){return a===void 0||(Ta&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Om(),ce.lanes|=e,nn|=e,a)}function Oh(e,t,a,n){return _t(a,t)?a:Cl.current!==null?(e=Rc(e,a,n),_t(e,t)||(We=!0),e):(Ta&42)===0||(Ta&1073741824)!==0&&(pe&261930)===0?(We=!0,e.memoizedState=a):(e=Om(),ce.lanes|=e,nn|=e,t)}function wh(e,t,a,n,s){var c=V.p;V.p=c!==0&&8>c?c:8;var d=q.T,p={};q.T=p,Ac(e,!1,t,a);try{var S=s(),_=q.S;if(_!==null&&_(p,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=av(S,n);qi(e,t,L,Lt(e))}else qi(e,t,n,Lt(e))}catch(Y){qi(e,t,{then:function(){},status:"rejected",reason:Y},Lt())}finally{V.p=c,d!==null&&p.types!==null&&(d.types=p.types),q.T=d}}function rv(){}function Tc(e,t,a,n){if(e.tag!==5)throw Error(r(476));var s=jh(e).queue;wh(e,s,t,ee,a===null?rv:function(){return Ch(e),a(n)})}function jh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ch(e){var t=jh(e);t.next===null&&(t=e.alternate.memoizedState),qi(e,t.next.queue,{},Lt())}function Nc(){return st(Ii)}function _h(){return Je().memoizedState}function Dh(){return Je().memoizedState}function cv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Lt();e=Wa(a);var n=Pa(t,e,a);n!==null&&(Rt(n,t,a),_i(n,t,a)),t={cache:ec()},e.payload=t;return}t=t.return}}function ov(e,t,a){var n=Lt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},us(e)?Mh(t,a):(a=Kr(e,t,a,n),a!==null&&(Rt(a,e,n),Uh(a,t,n)))}function zh(e,t,a){var n=Lt();qi(e,t,a,n)}function qi(e,t,a,n){var s={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(us(e))Mh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,p=c(d,a);if(s.hasEagerState=!0,s.eagerState=p,_t(p,d))return Qu(e,t,s,0),Ue===null&&Bu(),!1}catch{}finally{}if(a=Kr(e,t,s,n),a!==null)return Rt(a,e,n),Uh(a,t,n),!0}return!1}function Ac(e,t,a,n){if(n={lane:2,revertLane:lo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},us(e)){if(t)throw Error(r(479))}else t=Kr(e,a,n,2),t!==null&&Rt(t,e,2)}function us(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Mh(e,t){_l=Iu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Uh(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Qf(e,a)}}var Li={readContext:st,use:as,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};Li.useEffectEvent=Ke;var qh={readContext:st,use:as,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:bh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ls(4194308,4,Rh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var n=e();if(Yn){Ka(!0);try{e()}finally{Ka(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=mt();if(a!==void 0){var s=a(t);if(Yn){Ka(!0);try{a(t)}finally{Ka(!1)}}}else s=t;return n.memoizedState=n.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},n.queue=e,e=e.dispatch=ov.bind(null,ce,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=bc(e);var t=e.queue,a=zh.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ec,useDeferredValue:function(e,t){var a=mt();return Rc(a,e,t)},useTransition:function(){var e=bc(!1);return e=wh.bind(null,ce,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ce,s=mt();if(ve){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ue===null)throw Error(r(349));(pe&127)!==0||nh(n,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,bh(ih.bind(null,n,c,e),[e]),n.flags|=2048,zl(9,{destroy:void 0},lh.bind(null,n,c,a,t),null),a},useId:function(){var e=mt(),t=Ue.identifierPrefix;if(ve){var a=ra,n=sa;a=(n&~(1<<32-Ct(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=es++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=nv++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Nc,useFormState:mh,useActionState:mh,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ac.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:pc,useCacheRefresh:function(){return mt().memoizedState=cv.bind(null,ce)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((Te&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Oc={readContext:st,use:as,useCallback:Nh,useContext:st,useEffect:Sc,useImperativeHandle:Th,useInsertionEffect:Sh,useLayoutEffect:Eh,useMemo:Ah,useReducer:ns,useRef:vh,useState:function(){return ns(Na)},useDebugValue:Ec,useDeferredValue:function(e,t){var a=Je();return Oh(a,De.memoizedState,e,t)},useTransition:function(){var e=ns(Na)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Ui(e),t]},useSyncExternalStore:ah,useId:_h,useHostTransitionStatus:Nc,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var a=Je();return rh(a,De,e,t)},useMemoCache:pc,useCacheRefresh:Dh};Oc.useEffectEvent=xh;var Lh={readContext:st,use:as,useCallback:Nh,useContext:st,useEffect:Sc,useImperativeHandle:Th,useInsertionEffect:Sh,useLayoutEffect:Eh,useMemo:Ah,useReducer:vc,useRef:vh,useState:function(){return vc(Na)},useDebugValue:Ec,useDeferredValue:function(e,t){var a=Je();return De===null?Rc(a,e,t):Oh(a,De.memoizedState,e,t)},useTransition:function(){var e=vc(Na)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Ui(e),t]},useSyncExternalStore:ah,useId:_h,useHostTransitionStatus:Nc,useFormState:gh,useActionState:gh,useOptimistic:function(e,t){var a=Je();return De!==null?rh(a,De,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:pc,useCacheRefresh:Dh};Lh.useEffectEvent=xh;function wc(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var jc={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Lt(),s=Wa(n);s.payload=t,a!=null&&(s.callback=a),t=Pa(e,s,n),t!==null&&(Rt(t,e,n),_i(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Lt(),s=Wa(n);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Pa(e,s,n),t!==null&&(Rt(t,e,n),_i(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Lt(),n=Wa(a);n.tag=2,t!=null&&(n.callback=t),t=Pa(e,n,a),t!==null&&(Rt(t,e,a),_i(t,e,a))}};function Hh(e,t,a,n,s,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,d):t.prototype&&t.prototype.isPureReactComponent?!Ri(a,n)||!Ri(s,c):!0}function Bh(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&jc.enqueueReplaceState(t,t.state,null)}function Kn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Qh(e){Hu(e)}function Gh(e){console.error(e)}function Yh(e){Hu(e)}function ss(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Kh(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Cc(e,t,a){return a=Wa(a),a.tag=3,a.payload={element:null},a.callback=function(){ss(e,t)},a}function kh(e){return e=Wa(e),e.tag=3,e}function Xh(e,t,a,n){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=n.value;e.payload=function(){return s(c)},e.callback=function(){Kh(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Kh(t,a,n),typeof s!="function"&&(ln===null?ln=new Set([this]):ln.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})})}function fv(e,t,a,n,s){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Nl(t,a,s,!0),a=zt.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?bs():a.alternate===null&&ke===0&&(ke=3),a.flags&=-257,a.flags|=65536,a.lanes=s,n===Ju?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),to(e,n,s)),!1;case 22:return a.flags|=65536,n===Ju?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),to(e,n,s)),!1}throw Error(r(435,a.tag))}return to(e,n,s),bs(),!1}if(ve)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,n!==Fr&&(e=Error(r(422),{cause:n}),Ai(Yt(e,a)))):(n!==Fr&&(t=Error(r(423),{cause:n}),Ai(Yt(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,n=Yt(n,a),s=Cc(e.stateNode,n,s),uc(e,s),ke!==4&&(ke=2)),!1;var c=Error(r(520),{cause:n});if(c=Yt(c,a),Xi===null?Xi=[c]:Xi.push(c),ke!==4&&(ke=2),t===null)return!0;n=Yt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Cc(a.stateNode,n,e),uc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ln===null||!ln.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=kh(s),Xh(s,e,a,n),uc(a,s),!1}a=a.return}while(a!==null);return!1}var _c=Error(r(461)),We=!1;function rt(e,t,a,n){t.child=e===null?Fd(t,null,a,n):Gn(t,e.child,a,n)}function Vh(e,t,a,n,s){a=a.render;var c=t.ref;if("ref"in n){var d={};for(var p in n)p!=="ref"&&(d[p]=n[p])}else d=n;return Ln(t),n=dc(e,t,a,d,c,s),p=hc(),e!==null&&!We?(mc(e,t,s),Aa(e,t,s)):(ve&&p&&Zr(t),t.flags|=1,rt(e,t,n,s),t.child)}function Zh(e,t,a,n,s){if(e===null){var c=a.type;return typeof c=="function"&&!kr(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Jh(e,t,c,n,s)):(e=Yu(a.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Bc(e,s)){var d=c.memoizedProps;if(a=a.compare,a=a!==null?a:Ri,a(d,n)&&e.ref===t.ref)return Aa(e,t,s)}return t.flags|=1,e=xa(c,n),e.ref=t.ref,e.return=t,t.child=e}function Jh(e,t,a,n,s){if(e!==null){var c=e.memoizedProps;if(Ri(c,n)&&e.ref===t.ref)if(We=!1,t.pendingProps=n=c,Bc(e,s))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Aa(e,t,s)}return Dc(e,t,a,n,s)}function Fh(e,t,a,n){var s=n.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(n=t.child=e.child,s=0;n!==null;)s=s|n.lanes|n.childLanes,n=n.sibling;n=s&~c}else n=0,t.child=null;return $h(e,t,c,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vu(t,c!==null?c.cachePool:null),c!==null?Pd(t,c):rc(),Id(t);else return n=t.lanes=536870912,$h(e,t,c!==null?c.baseLanes|a:a,a,n)}else c!==null?(Vu(t,c.cachePool),Pd(t,c),en(),t.memoizedState=null):(e!==null&&Vu(t,null),rc(),en());return rt(e,t,s,a),t.child}function Hi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $h(e,t,a,n,s){var c=ac();return c=c===null?null:{parent:Fe._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Vu(t,null),rc(),Id(t),e!==null&&Nl(e,t,n,!0),t.childLanes=s,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wh(e,t,a){return Gn(t,e.child,null,a),e=rs(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function dv(e,t,a){var n=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(n.mode==="hidden")return e=rs(t,n),t.lanes=536870912,Hi(null,e);if(oc(t),(e=He)?(e=cy(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Va!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Md(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw Ja(t);return t.lanes=536870912,null}return rs(t,n)}var c=e.memoizedState;if(c!==null){var d=c.dehydrated;if(oc(t),s)if(t.flags&256)t.flags&=-257,t=Wh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||Nl(e,t,a,!1),s=(a&e.childLanes)!==0,We||s){if(n=Ue,n!==null&&(d=Gf(n,a),d!==0&&d!==c.retryLane))throw c.retryLane=d,zn(e,d),Rt(n,e,d),_c;bs(),t=Wh(e,t,a)}else e=c.treeContext,He=Zt(d.nextSibling),ut=t,ve=!0,Za=null,Xt=!1,e!==null&&Ld(t,e),t=rs(t,n),t.flags|=4096;return t}return e=xa(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Dc(e,t,a,n,s){return Ln(t),a=dc(e,t,a,n,void 0,s),n=hc(),e!==null&&!We?(mc(e,t,s),Aa(e,t,s)):(ve&&n&&Zr(t),t.flags|=1,rt(e,t,a,s),t.child)}function Ph(e,t,a,n,s,c){return Ln(t),t.updateQueue=null,a=th(t,n,a,s),eh(e),n=hc(),e!==null&&!We?(mc(e,t,c),Aa(e,t,c)):(ve&&n&&Zr(t),t.flags|=1,rt(e,t,a,c),t.child)}function Ih(e,t,a,n,s){if(Ln(t),t.stateNode===null){var c=Sl,d=a.contextType;typeof d=="object"&&d!==null&&(c=st(d)),c=new a(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=jc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},lc(t),d=a.contextType,c.context=typeof d=="object"&&d!==null?st(d):Sl,c.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(wc(t,a,d,n),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&jc.enqueueReplaceState(c,c.state,null),zi(t,n,c,s),Di(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var p=t.memoizedProps,S=Kn(a,p);c.props=S;var _=c.context,L=a.contextType;d=Sl,typeof L=="object"&&L!==null&&(d=st(L));var Y=a.getDerivedStateFromProps;L=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||_!==d)&&Bh(t,c,n,d),$a=!1;var z=t.memoizedState;c.state=z,zi(t,n,c,s),Di(),_=t.memoizedState,p||z!==_||$a?(typeof Y=="function"&&(wc(t,a,Y,n),_=t.memoizedState),(S=$a||Hh(t,a,S,n,z,_,d))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=_),c.props=n,c.state=_,c.context=d,n=S):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,ic(e,t),d=t.memoizedProps,L=Kn(a,d),c.props=L,Y=t.pendingProps,z=c.context,_=a.contextType,S=Sl,typeof _=="object"&&_!==null&&(S=st(_)),p=a.getDerivedStateFromProps,(_=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==Y||z!==S)&&Bh(t,c,n,S),$a=!1,z=t.memoizedState,c.state=z,zi(t,n,c,s),Di();var U=t.memoizedState;d!==Y||z!==U||$a||e!==null&&e.dependencies!==null&&ku(e.dependencies)?(typeof p=="function"&&(wc(t,a,p,n),U=t.memoizedState),(L=$a||Hh(t,a,L,n,z,U,S)||e!==null&&e.dependencies!==null&&ku(e.dependencies))?(_||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,U,S),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,U,S)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=U),c.props=n,c.state=U,c.context=S,n=L):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,cs(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=Gn(t,e.child,null,s),t.child=Gn(t,null,a,s)):rt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=Aa(e,t,s),e}function em(e,t,a,n){return Un(),t.flags|=256,rt(e,t,a,n),t.child}var zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mc(e){return{baseLanes:e,cachePool:Kd()}}function Uc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=qt),e}function tm(e,t,a){var n=t.pendingProps,s=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(s?Ia(t):en(),(e=He)?(e=cy(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Va!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Md(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw Ja(t);return vo(e)?t.lanes=32:t.lanes=536870912,null}var p=n.children;return n=n.fallback,s?(en(),s=t.mode,p=os({mode:"hidden",children:p},s),n=Mn(n,s,a,null),p.return=t,n.return=t,p.sibling=n,t.child=p,n=t.child,n.memoizedState=Mc(a),n.childLanes=Uc(e,d,a),t.memoizedState=zc,Hi(null,n)):(Ia(t),qc(t,p))}var S=e.memoizedState;if(S!==null&&(p=S.dehydrated,p!==null)){if(c)t.flags&256?(Ia(t),t.flags&=-257,t=Lc(e,t,a)):t.memoizedState!==null?(en(),t.child=e.child,t.flags|=128,t=null):(en(),p=n.fallback,s=t.mode,n=os({mode:"visible",children:n.children},s),p=Mn(p,s,a,null),p.flags|=2,n.return=t,p.return=t,n.sibling=p,t.child=n,Gn(t,e.child,null,a),n=t.child,n.memoizedState=Mc(a),n.childLanes=Uc(e,d,a),t.memoizedState=zc,t=Hi(null,n));else if(Ia(t),vo(p)){if(d=p.nextSibling&&p.nextSibling.dataset,d)var _=d.dgst;d=_,n=Error(r(419)),n.stack="",n.digest=d,Ai({value:n,source:null,stack:null}),t=Lc(e,t,a)}else if(We||Nl(e,t,a,!1),d=(a&e.childLanes)!==0,We||d){if(d=Ue,d!==null&&(n=Gf(d,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,zn(e,n),Rt(d,e,n),_c;go(p)||bs(),t=Lc(e,t,a)}else go(p)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,He=Zt(p.nextSibling),ut=t,ve=!0,Za=null,Xt=!1,e!==null&&Ld(t,e),t=qc(t,n.children),t.flags|=4096);return t}return s?(en(),p=n.fallback,s=t.mode,S=e.child,_=S.sibling,n=xa(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,_!==null?p=xa(_,p):(p=Mn(p,s,a,null),p.flags|=2),p.return=t,n.return=t,n.sibling=p,t.child=n,Hi(null,n),n=t.child,p=e.child.memoizedState,p===null?p=Mc(a):(s=p.cachePool,s!==null?(S=Fe._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Kd(),p={baseLanes:p.baseLanes|a,cachePool:s}),n.memoizedState=p,n.childLanes=Uc(e,d,a),t.memoizedState=zc,Hi(e.child,n)):(Ia(t),a=e.child,e=a.sibling,a=xa(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function qc(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Lc(e,t,a){return Gn(t,e.child,null,a),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function am(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Pr(e.return,t,a)}function Hc(e,t,a,n,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:s,treeForkCount:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=s,d.treeForkCount=c)}function nm(e,t,a){var n=t.pendingProps,s=n.revealOrder,c=n.tail;n=n.children;var d=Ze.current,p=(d&2)!==0;if(p?(d=d&1|2,t.flags|=128):d&=1,Z(Ze,d),rt(e,t,n,a),n=ve?Ni:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&am(e,a,t);else if(e.tag===19)am(e,a,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(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Pu(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Hc(t,!1,s,a,c,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Pu(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Hc(t,!0,a,null,c,n);break;case"together":Hc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Aa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),nn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Nl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=xa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=xa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Bc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ku(e)))}function hv(e,t,a){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),Fa(t,Fe,e.memoizedState.cache),Un();break;case 27:case 5:oi(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:Fa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ia(t),t.flags|=128,null):(a&t.child.childLanes)!==0?tm(e,t,a):(Ia(t),e=Aa(e,t,a),e!==null?e.sibling:null);Ia(t);break;case 19:var s=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Nl(e,t,a,!1),n=(a&t.childLanes)!==0),s){if(n)return nm(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(Ze,Ze.current),n)break;return null;case 22:return t.lanes=0,Fh(e,t,a,t.pendingProps);case 24:Fa(t,Fe,e.memoizedState.cache)}return Aa(e,t,a)}function lm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Bc(e,a)&&(t.flags&128)===0)return We=!1,hv(e,t,a);We=(e.flags&131072)!==0}else We=!1,ve&&(t.flags&1048576)!==0&&qd(t,Ni,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Bn(t.elementType),t.type=e,typeof e=="function")kr(e)?(n=Kn(e,n),t.tag=1,t=Ih(null,t,e,n,a)):(t.tag=0,t=Dc(null,t,e,n,a));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=Vh(null,t,e,n,a);break e}else if(s===$){t.tag=14,t=Zh(null,t,e,n,a);break e}}throw t=Le(e)||e,Error(r(306,t,""))}}return t;case 0:return Dc(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,s=Kn(n,t.pendingProps),Ih(e,t,n,s,a);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var c=t.memoizedState;s=c.element,ic(e,t),zi(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Fa(t,Fe,n),n!==c.cache&&Ir(t,[Fe],a,!0),Di(),n=d.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=em(e,t,n,a);break e}else if(n!==s){s=Yt(Error(r(424)),t),Ai(s),t=em(e,t,n,a);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(He=Zt(e.firstChild),ut=t,ve=!0,Za=null,Xt=!0,a=Fd(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Un(),n===s){t=Aa(e,t,a);break e}rt(e,t,n,a)}t=t.child}return t;case 26:return cs(e,t),e===null?(a=yy(t.type,null,t.pendingProps,null))?t.memoizedState=a:ve||(a=t.type,e=t.pendingProps,n=As(he.current).createElement(a),n[it]=t,n[gt]=e,ct(n,a,e),at(n),t.stateNode=n):t.memoizedState=yy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oi(t),e===null&&ve&&(n=t.stateNode=dy(t.type,t.pendingProps,he.current),ut=t,Xt=!0,s=He,cn(t.type)?(bo=s,He=Zt(n.firstChild)):He=s),rt(e,t,t.pendingProps.children,a),cs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((s=n=He)&&(n=Kv(n,t.type,t.pendingProps,Xt),n!==null?(t.stateNode=n,ut=t,He=Zt(n.firstChild),Xt=!1,s=!0):s=!1),s||Ja(t)),oi(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,n=c.children,mo(s,c)?n=null:d!==null&&mo(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=dc(e,t,lv,null,null,a),Ii._currentValue=s),cs(e,t),rt(e,t,n,a),t.child;case 6:return e===null&&ve&&((e=a=He)&&(a=kv(a,t.pendingProps,Xt),a!==null?(t.stateNode=a,ut=t,He=null,e=!0):e=!1),e||Ja(t)),null;case 13:return tm(e,t,a);case 4:return ht(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gn(t,null,n,a):rt(e,t,n,a),t.child;case 11:return Vh(e,t,t.type,t.pendingProps,a);case 7:return rt(e,t,t.pendingProps,a),t.child;case 8:return rt(e,t,t.pendingProps.children,a),t.child;case 12:return rt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Fa(t,t.type,n.value),rt(e,t,n.children,a),t.child;case 9:return s=t.type._context,n=t.pendingProps.children,Ln(t),s=st(s),n=n(s),t.flags|=1,rt(e,t,n,a),t.child;case 14:return Zh(e,t,t.type,t.pendingProps,a);case 15:return Jh(e,t,t.type,t.pendingProps,a);case 19:return nm(e,t,a);case 31:return dv(e,t,a);case 22:return Fh(e,t,a,t.pendingProps);case 24:return Ln(t),n=st(Fe),e===null?(s=ac(),s===null&&(s=Ue,c=ec(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:n,cache:s},lc(t),Fa(t,Fe,s)):((e.lanes&a)!==0&&(ic(e,t),zi(t,null,null,a),Di()),s=e.memoizedState,c=t.memoizedState,s.parent!==n?(s={parent:n,cache:n},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Fa(t,Fe,n)):(n=c.cache,Fa(t,Fe,n),n!==s.cache&&Ir(t,[Fe],a,!0))),rt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Oa(e){e.flags|=4}function Qc(e,t,a,n,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(_m())e.flags|=8192;else throw Qn=Ju,nc}else e.flags&=-16777217}function im(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xy(t))if(_m())e.flags|=8192;else throw Qn=Ju,nc}function fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hf():536870912,e.lanes|=t,Ll|=t)}function Bi(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,n|=s.subtreeFlags&65011712,n|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function mv(e,t,a){var n=t.pendingProps;switch(Jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ra(Fe),Ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Tl(t)?Oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$r())),Be(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Oa(t),c!==null?(Be(t),im(t,c)):(Be(t),Qc(t,s,null,n,a))):c?c!==e.memoizedState?(Oa(t),Be(t),im(t,c)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Oa(t),Be(t),Qc(t,s,e,n,a)),null;case 27:if(Eu(t),a=he.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Oa(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=W.current,Tl(t)?Hd(t):(e=dy(s,n,a),t.stateNode=e,Oa(t))}return Be(t),null;case 5:if(Eu(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Oa(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(c=W.current,Tl(t))Hd(t);else{var d=As(he.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?d.createElement(s,{is:n.is}):d.createElement(s)}}c[it]=t,c[gt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.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=c;e:switch(ct(c,s,n),s){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Oa(t)}}return Be(t),Qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Oa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=he.current,Tl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,s=ut,s!==null)switch(s.tag){case 27:case 5:n=s.memoizedProps}e[it]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||ty(e.nodeValue,a)),e||Ja(t,!0)}else e=As(e).createTextNode(n),e[it]=t,t.stateNode=e}return Be(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Tl(t),a!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else Un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=$r(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Tl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[it]=t}else Un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else s=$r(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,s=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(s=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==s&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),fs(t,t.updateQueue),Be(t),null);case 4:return Ve(),e===null&&ro(t.stateNode.containerInfo),Be(t),null;case 10:return Ra(t.type),Be(t),null;case 19:if(Q(Ze),n=t.memoizedState,n===null)return Be(t),null;if(s=(t.flags&128)!==0,c=n.rendering,c===null)if(s)Bi(n,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Pu(e),c!==null){for(t.flags|=128,Bi(n,!1),e=c.updateQueue,t.updateQueue=e,fs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zd(a,e),a=a.sibling;return Z(Ze,Ze.current&1|2),ve&&Sa(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&wt()>ps&&(t.flags|=128,s=!0,Bi(n,!1),t.lanes=4194304)}else{if(!s)if(e=Pu(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,fs(t,e),Bi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!ve)return Be(t),null}else 2*wt()-n.renderingStartTime>ps&&a!==536870912&&(t.flags|=128,s=!0,Bi(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=wt(),e.sibling=null,a=Ze.current,Z(Ze,s?a&1|2:a&1),ve&&Sa(t,n.treeForkCount),e):(Be(t),null);case 22:case 23:return Mt(t),cc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&fs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Q(Hn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ra(Fe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function yv(e,t){switch(Jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ra(Fe),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Eu(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(r(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ze),null;case 4:return Ve(),null;case 10:return Ra(t.type),null;case 22:case 23:return Mt(t),cc(),e!==null&&Q(Hn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ra(Fe),null;case 25:return null;default:return null}}function um(e,t){switch(Jr(t),t.tag){case 3:Ra(Fe),Ve();break;case 26:case 27:case 5:Eu(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:Q(Ze);break;case 10:Ra(t.type);break;case 22:case 23:Mt(t),cc(),e!==null&&Q(Hn);break;case 24:Ra(Fe)}}function Qi(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){n=void 0;var c=a.create,d=a.inst;n=c(),d.destroy=n}a=a.next}while(a!==s)}}catch(p){Ce(t,t.return,p)}}function tn(e,t,a){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var c=s.next;n=c;do{if((n.tag&e)===e){var d=n.inst,p=d.destroy;if(p!==void 0){d.destroy=void 0,s=t;var S=a,_=p;try{_()}catch(L){Ce(s,S,L)}}}n=n.next}while(n!==c)}}catch(L){Ce(t,t.return,L)}}function sm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Wd(t,a)}catch(n){Ce(e,e.return,n)}}}function rm(e,t,a){a.props=Kn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ce(e,t,n)}}function Gi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(s){Ce(e,t,s)}}function ca(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(s){Ce(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Ce(e,t,s)}else a.current=null}function cm(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(s){Ce(e,e.return,s)}}function Gc(e,t,a){try{var n=e.stateNode;Lv(n,e.type,a,t),n[gt]=t}catch(s){Ce(e,e.return,s)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cn(e.type)||e.tag===4}function Yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(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&&cn(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 Kc(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=va));else if(n!==4&&(n===27&&cn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,a),e=e.sibling;e!==null;)Kc(e,t,a),e=e.sibling}function ds(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&cn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ds(e,t,a),e=e.sibling;e!==null;)ds(e,t,a),e=e.sibling}function fm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ct(t,n,a),t[it]=e,t[gt]=a}catch(c){Ce(e,e.return,c)}}var wa=!1,Pe=!1,kc=!1,dm=typeof WeakSet=="function"?WeakSet:Set,nt=null;function pv(e,t){if(e=e.containerInfo,fo=zs,e=Td(e),Lr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var s=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var d=0,p=-1,S=-1,_=0,L=0,Y=e,z=null;t:for(;;){for(var U;Y!==a||s!==0&&Y.nodeType!==3||(p=d+s),Y!==c||n!==0&&Y.nodeType!==3||(S=d+n),Y.nodeType===3&&(d+=Y.nodeValue.length),(U=Y.firstChild)!==null;)z=Y,Y=U;for(;;){if(Y===e)break t;if(z===a&&++_===s&&(p=d),z===c&&++L===n&&(S=d),(U=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=U}a=p===-1||S===-1?null:{start:p,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(ho={focusedElem:e,selectionRange:a},zs=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,c=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(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,n=a.stateNode;try{var P=Kn(a.type,s);e=n.getSnapshotBeforeUpdate(P,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ce(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)po(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":po(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function hm(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ca(e,a),n&4&&Qi(5,a);break;case 1:if(Ca(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Ce(a,a.return,d)}else{var s=Kn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ce(a,a.return,d)}}n&64&&sm(a),n&512&&Gi(a,a.return);break;case 3:if(Ca(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Wd(e,t)}catch(d){Ce(a,a.return,d)}}break;case 27:t===null&&n&4&&fm(a);case 26:case 5:Ca(e,a),t===null&&n&4&&cm(a),n&512&&Gi(a,a.return);break;case 12:Ca(e,a);break;case 31:Ca(e,a),n&4&&pm(e,a);break;case 13:Ca(e,a),n&4&&gm(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Nv.bind(null,a),Xv(e,a))));break;case 22:if(n=a.memoizedState!==null||wa,!n){t=t!==null&&t.memoizedState!==null||Pe,s=wa;var c=Pe;wa=n,(Pe=t)&&!c?_a(e,a,(a.subtreeFlags&8772)!==0):Ca(e,a),wa=s,Pe=c}break;case 30:break;default:Ca(e,a)}}function mm(e){var t=e.alternate;t!==null&&(e.alternate=null,mm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xr(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 Ge=null,bt=!1;function ja(e,t,a){for(a=a.child;a!==null;)ym(e,t,a),a=a.sibling}function ym(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(fi,a)}catch{}switch(a.tag){case 26:Pe||ca(a,t),ja(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pe||ca(a,t);var n=Ge,s=bt;cn(a.type)&&(Ge=a.stateNode,bt=!1),ja(e,t,a),$i(a.stateNode),Ge=n,bt=s;break;case 5:Pe||ca(a,t);case 6:if(n=Ge,s=bt,Ge=null,ja(e,t,a),Ge=n,bt=s,Ge!==null)if(bt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(a.stateNode)}catch(c){Ce(a,t,c)}else try{Ge.removeChild(a.stateNode)}catch(c){Ce(a,t,c)}break;case 18:Ge!==null&&(bt?(e=Ge,sy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Xl(e)):sy(Ge,a.stateNode));break;case 4:n=Ge,s=bt,Ge=a.stateNode.containerInfo,bt=!0,ja(e,t,a),Ge=n,bt=s;break;case 0:case 11:case 14:case 15:tn(2,a,t),Pe||tn(4,a,t),ja(e,t,a);break;case 1:Pe||(ca(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&rm(a,t,n)),ja(e,t,a);break;case 21:ja(e,t,a);break;case 22:Pe=(n=Pe)||a.memoizedState!==null,ja(e,t,a),Pe=n;break;default:ja(e,t,a)}}function pm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xl(e)}catch(a){Ce(t,t.return,a)}}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xl(e)}catch(a){Ce(t,t.return,a)}}function gv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dm),t;default:throw Error(r(435,e.tag))}}function hs(e,t){var a=gv(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var s=Av.bind(null,e,n);n.then(s,s)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var s=a[n],c=e,d=t,p=d;e:for(;p!==null;){switch(p.tag){case 27:if(cn(p.type)){Ge=p.stateNode,bt=!1;break e}break;case 5:Ge=p.stateNode,bt=!1;break e;case 3:case 4:Ge=p.stateNode.containerInfo,bt=!0;break e}p=p.return}if(Ge===null)throw Error(r(160));ym(c,d,s),Ge=null,bt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vm(t,e),t=t.sibling}var ea=null;function vm(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),St(e),n&4&&(tn(3,e,e.return),Qi(3,e),tn(5,e,e.return));break;case 1:xt(t,e),St(e),n&512&&(Pe||a===null||ca(a,a.return)),n&64&&wa&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var s=ea;if(xt(t,e),St(e),n&512&&(Pe||a===null||ca(a,a.return)),n&4){var c=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(n){case"title":c=s.getElementsByTagName("title")[0],(!c||c[mi]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(n),s.head.insertBefore(c,s.querySelector("head > title"))),ct(c,n,a),c[it]=e,at(c),n=c;break e;case"link":var d=vy("link","href",s).get(n+(a.href||""));if(d){for(var p=0;p<d.length;p++)if(c=d[p],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(p,1);break t}}c=s.createElement(n),ct(c,n,a),s.head.appendChild(c);break;case"meta":if(d=vy("meta","content",s).get(n+(a.content||""))){for(p=0;p<d.length;p++)if(c=d[p],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(p,1);break t}}c=s.createElement(n),ct(c,n,a),s.head.appendChild(c);break;default:throw Error(r(468,n))}c[it]=e,at(c),n=c}e.stateNode=n}else by(s,e.type,e.stateNode);else e.stateNode=gy(s,n,e.memoizedProps);else c!==n?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,n===null?by(s,e.type,e.stateNode):gy(s,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Gc(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),St(e),n&512&&(Pe||a===null||ca(a,a.return)),a!==null&&n&4&&Gc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),St(e),n&512&&(Pe||a===null||ca(a,a.return)),e.flags&32){s=e.stateNode;try{ml(s,"")}catch(P){Ce(e,e.return,P)}}n&4&&e.stateNode!=null&&(s=e.memoizedProps,Gc(e,s,a!==null?a.memoizedProps:s)),n&1024&&(kc=!0);break;case 6:if(xt(t,e),St(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(P){Ce(e,e.return,P)}}break;case 3:if(js=null,s=ea,ea=Os(t.containerInfo),xt(t,e),ea=s,St(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Xl(t.containerInfo)}catch(P){Ce(e,e.return,P)}kc&&(kc=!1,bm(e));break;case 4:n=ea,ea=Os(e.stateNode.containerInfo),xt(t,e),St(e),ea=n;break;case 12:xt(t,e),St(e);break;case 31:xt(t,e),St(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,hs(e,n)));break;case 13:xt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ys=wt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,hs(e,n)));break;case 22:s=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,_=wa,L=Pe;if(wa=_||s,Pe=L||S,xt(t,e),Pe=L,wa=_,St(e),n&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||S||wa||Pe||kn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(c=S.stateNode,s)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{p=S.stateNode;var Y=S.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(P){Ce(S,S.return,P)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(P){Ce(S,S.return,P)}}}else if(t.tag===18){if(a===null){S=t;try{var U=S.stateNode;s?ry(U,!0):ry(S.stateNode,!1)}catch(P){Ce(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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,hs(e,a))));break;case 19:xt(t,e),St(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,hs(e,n)));break;case 30:break;case 21:break;default:xt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(om(n)){a=n;break}n=n.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var s=a.stateNode,c=Yc(e);ds(e,c,s);break;case 5:var d=a.stateNode;a.flags&32&&(ml(d,""),a.flags&=-33);var p=Yc(e);ds(e,p,d);break;case 3:case 4:var S=a.stateNode.containerInfo,_=Yc(e);Kc(e,_,S);break;default:throw Error(r(161))}}catch(L){Ce(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hm(e,t.alternate,t),t=t.sibling}function kn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:tn(4,t,t.return),kn(t);break;case 1:ca(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&rm(t,t.return,a),kn(t);break;case 27:$i(t.stateNode);case 26:case 5:ca(t,t.return),kn(t);break;case 22:t.memoizedState===null&&kn(t);break;case 30:kn(t);break;default:kn(t)}e=e.sibling}}function _a(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,s=e,c=t,d=c.flags;switch(c.tag){case 0:case 11:case 15:_a(s,c,a),Qi(4,c);break;case 1:if(_a(s,c,a),n=c,s=n.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(_){Ce(n,n.return,_)}if(n=c,s=n.updateQueue,s!==null){var p=n.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)$d(S[s],p)}catch(_){Ce(n,n.return,_)}}a&&d&64&&sm(c),Gi(c,c.return);break;case 27:fm(c);case 26:case 5:_a(s,c,a),a&&n===null&&d&4&&cm(c),Gi(c,c.return);break;case 12:_a(s,c,a);break;case 31:_a(s,c,a),a&&d&4&&pm(s,c);break;case 13:_a(s,c,a),a&&d&4&&gm(s,c);break;case 22:c.memoizedState===null&&_a(s,c,a),Gi(c,c.return);break;case 30:break;default:_a(s,c,a)}t=t.sibling}}function Xc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Oi(a))}function Vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oi(e))}function ta(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(e,t,a,n),t=t.sibling}function xm(e,t,a,n){var s=t.flags;switch(t.tag){case 0:case 11:case 15:ta(e,t,a,n),s&2048&&Qi(9,t);break;case 1:ta(e,t,a,n);break;case 3:ta(e,t,a,n),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oi(e)));break;case 12:if(s&2048){ta(e,t,a,n),e=t.stateNode;try{var c=t.memoizedProps,d=c.id,p=c.onPostCommit;typeof p=="function"&&p(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ce(t,t.return,S)}}else ta(e,t,a,n);break;case 31:ta(e,t,a,n);break;case 13:ta(e,t,a,n);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?c._visibility&2?ta(e,t,a,n):Yi(e,t):c._visibility&2?ta(e,t,a,n):(c._visibility|=2,Ml(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Xc(d,t);break;case 24:ta(e,t,a,n),s&2048&&Vc(t.alternate,t);break;default:ta(e,t,a,n)}}function Ml(e,t,a,n,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,d=t,p=a,S=n,_=d.flags;switch(d.tag){case 0:case 11:case 15:Ml(c,d,p,S,s),Qi(8,d);break;case 23:break;case 22:var L=d.stateNode;d.memoizedState!==null?L._visibility&2?Ml(c,d,p,S,s):Yi(c,d):(L._visibility|=2,Ml(c,d,p,S,s)),s&&_&2048&&Xc(d.alternate,d);break;case 24:Ml(c,d,p,S,s),s&&_&2048&&Vc(d.alternate,d);break;default:Ml(c,d,p,S,s)}t=t.sibling}}function Yi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,s=n.flags;switch(n.tag){case 22:Yi(a,n),s&2048&&Xc(n.alternate,n);break;case 24:Yi(a,n),s&2048&&Vc(n.alternate,n);break;default:Yi(a,n)}t=t.sibling}}var Ki=8192;function Ul(e,t,a){if(e.subtreeFlags&Ki)for(e=e.child;e!==null;)Sm(e,t,a),e=e.sibling}function Sm(e,t,a){switch(e.tag){case 26:Ul(e,t,a),e.flags&Ki&&e.memoizedState!==null&&nb(a,ea,e.memoizedState,e.memoizedProps);break;case 5:Ul(e,t,a);break;case 3:case 4:var n=ea;ea=Os(e.stateNode.containerInfo),Ul(e,t,a),ea=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ki,Ki=16777216,Ul(e,t,a),Ki=n):Ul(e,t,a));break;default:Ul(e,t,a)}}function Em(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 ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,Tm(n,e)}Em(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rm(e),e=e.sibling}function Rm(e){switch(e.tag){case 0:case 11:case 15:ki(e),e.flags&2048&&tn(9,e,e.return);break;case 3:ki(e);break;case 12:ki(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ms(e)):ki(e);break;default:ki(e)}}function ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,Tm(n,e)}Em(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:tn(8,t,t.return),ms(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ms(t));break;default:ms(t)}e=e.sibling}}function Tm(e,t){for(;nt!==null;){var a=nt;switch(a.tag){case 0:case 11:case 15:tn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Oi(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,nt=n;else e:for(a=e;nt!==null;){n=nt;var s=n.sibling,c=n.return;if(mm(n),n===a){nt=null;break e}if(s!==null){s.return=c,nt=s;break e}nt=c}}}var vv={getCacheForType:function(e){var t=st(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return st(Fe).controller.signal}},bv=typeof WeakMap=="function"?WeakMap:Map,Te=0,Ue=null,me=null,pe=0,je=0,Ut=null,an=!1,ql=!1,Zc=!1,Da=0,ke=0,nn=0,Xn=0,Jc=0,qt=0,Ll=0,Xi=null,Et=null,Fc=!1,ys=0,Nm=0,ps=1/0,gs=null,ln=null,et=0,un=null,Hl=null,za=0,$c=0,Wc=null,Am=null,Vi=0,Pc=null;function Lt(){return(Te&2)!==0&&pe!==0?pe&-pe:q.T!==null?lo():Yf()}function Om(){if(qt===0)if((pe&536870912)===0||ve){var e=Nu;Nu<<=1,(Nu&3932160)===0&&(Nu=262144),qt=e}else qt=536870912;return e=zt.current,e!==null&&(e.flags|=32),qt}function Rt(e,t,a){(e===Ue&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Bl(e,0),sn(e,pe,qt,!1)),hi(e,a),((Te&2)===0||e!==Ue)&&(e===Ue&&((Te&2)===0&&(Xn|=a),ke===4&&sn(e,pe,qt,!1)),oa(e))}function wm(e,t,a){if((Te&6)!==0)throw Error(r(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||di(e,t),s=n?Ev(e,t):eo(e,t,!0),c=n;do{if(s===0){ql&&!n&&sn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!xv(a)){s=eo(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)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;s=Xi;var S=p.current.memoizedState.isDehydrated;if(S&&(Bl(p,d).flags|=256),d=eo(p,d,!1),d!==2){if(Zc&&!S){p.errorRecoveryDisabledLanes|=c,Xn|=c,s=4;break e}c=Et,Et=s,c!==null&&(Et===null?Et=c:Et.push.apply(Et,c))}s=d}if(c=!1,s!==2)continue}}if(s===1){Bl(e,0),sn(e,t,0,!0);break}e:{switch(n=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:sn(n,t,qt,!an);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=ys+300-wt(),10<s)){if(sn(n,t,qt,!an),Ou(n,0,!0)!==0)break e;za=t,n.timeoutHandle=iy(jm.bind(null,n,a,Et,gs,Fc,t,qt,Xn,Ll,an,c,"Throttled",-0,0),s);break e}jm(n,a,Et,gs,Fc,t,qt,Xn,Ll,an,c,null,-0,0)}}break}while(!0);oa(e)}function jm(e,t,a,n,s,c,d,p,S,_,L,Y,z,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:va},Sm(t,c,Y);var P=(c&62914560)===c?ys-wt():(c&4194048)===c?Nm-wt():0;if(P=lb(Y,P),P!==null){za=c,e.cancelPendingCommit=P(Lm.bind(null,e,t,c,a,n,s,d,p,S,L,Y,null,z,U)),sn(e,c,d,!_);return}}Lm(e,t,c,a,n,s,d,p,S)}function xv(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var s=a[n],c=s.getSnapshot;s=s.value;try{if(!_t(c(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 sn(e,t,a,n){t&=~Jc,t&=~Xn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var s=t;0<s;){var c=31-Ct(s),d=1<<c;n[c]=-1,s&=~d}a!==0&&Bf(e,a,t)}function vs(){return(Te&6)===0?(Zi(0),!1):!0}function Ic(){if(me!==null){if(je===0)var e=me.return;else e=me,Ea=qn=null,yc(e),jl=null,ji=0,e=me;for(;e!==null;)um(e.alternate,e),e=e.return;me=null}}function Bl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Qv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),za=0,Ic(),Ue=e,me=a=xa(e.current,null),pe=t,je=0,Ut=null,an=!1,ql=di(e,t),Zc=!1,Ll=qt=Jc=Xn=nn=ke=0,Et=Xi=null,Fc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var s=31-Ct(n),c=1<<s;t|=e[s],n&=~c}return Da=t,Bu(),a}function Cm(e,t){ce=null,q.H=Li,t===wl||t===Zu?(t=Vd(),je=3):t===nc?(t=Vd(),je=4):je=t===_c?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ut=t,me===null&&(ke=1,ss(e,Yt(t,e.current)))}function _m(){var e=zt.current;return e===null?!0:(pe&4194048)===pe?Vt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Vt:!1}function Dm(){var e=q.H;return q.H=Li,e===null?Li:e}function zm(){var e=q.A;return q.A=vv,e}function bs(){ke=4,an||(pe&4194048)!==pe&&zt.current!==null||(ql=!0),(nn&134217727)===0&&(Xn&134217727)===0||Ue===null||sn(Ue,pe,qt,!1)}function eo(e,t,a){var n=Te;Te|=2;var s=Dm(),c=zm();(Ue!==e||pe!==t)&&(gs=null,Bl(e,t)),t=!1;var d=ke;e:do try{if(je!==0&&me!==null){var p=me,S=Ut;switch(je){case 8:Ic(),d=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var _=je;if(je=0,Ut=null,Ql(e,p,S,_),a&&ql){d=0;break e}break;default:_=je,je=0,Ut=null,Ql(e,p,S,_)}}Sv(),d=ke;break}catch(L){Cm(e,L)}while(!0);return t&&e.shellSuspendCounter++,Ea=qn=null,Te=n,q.H=s,q.A=c,me===null&&(Ue=null,pe=0,Bu()),d}function Sv(){for(;me!==null;)Mm(me)}function Ev(e,t){var a=Te;Te|=2;var n=Dm(),s=zm();Ue!==e||pe!==t?(gs=null,ps=wt()+500,Bl(e,t)):ql=di(e,t);e:do try{if(je!==0&&me!==null){t=me;var c=Ut;t:switch(je){case 1:je=0,Ut=null,Ql(e,t,c,1);break;case 2:case 9:if(kd(c)){je=0,Ut=null,Um(t);break}t=function(){je!==2&&je!==9||Ue!==e||(je=7),oa(e)},c.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:kd(c)?(je=0,Ut=null,Um(t)):(je=0,Ut=null,Ql(e,t,c,7));break;case 5:var d=null;switch(me.tag){case 26:d=me.memoizedState;case 5:case 27:var p=me;if(d?xy(d):p.stateNode.complete){je=0,Ut=null;var S=p.sibling;if(S!==null)me=S;else{var _=p.return;_!==null?(me=_,xs(_)):me=null}break t}}je=0,Ut=null,Ql(e,t,c,5);break;case 6:je=0,Ut=null,Ql(e,t,c,6);break;case 8:Ic(),ke=6;break e;default:throw Error(r(462))}}Rv();break}catch(L){Cm(e,L)}while(!0);return Ea=qn=null,q.H=n,q.A=s,Te=a,me!==null?0:(Ue=null,pe=0,Bu(),ke)}function Rv(){for(;me!==null&&!V0();)Mm(me)}function Mm(e){var t=lm(e.alternate,e,Da);e.memoizedProps=e.pendingProps,t===null?xs(e):me=t}function Um(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ph(a,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=Ph(a,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:yc(t);default:um(a,t),t=me=zd(t,Da),t=lm(a,t,Da)}e.memoizedProps=e.pendingProps,t===null?xs(e):me=t}function Ql(e,t,a,n){Ea=qn=null,yc(t),jl=null,ji=0;var s=t.return;try{if(fv(e,s,t,a,pe)){ke=1,ss(e,Yt(a,e.current)),me=null;return}}catch(c){if(s!==null)throw me=s,c;ke=1,ss(e,Yt(a,e.current)),me=null;return}t.flags&32768?(ve||n===1?e=!0:ql||(pe&536870912)!==0?e=!1:(an=e=!0,(n===2||n===9||n===3||n===6)&&(n=zt.current,n!==null&&n.tag===13&&(n.flags|=16384))),qm(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){qm(t,an);return}e=t.return;var a=mv(t.alternate,t,Da);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ke===0&&(ke=5)}function qm(e,t){do{var a=yv(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);ke=6,me=null}function Lm(e,t,a,n,s,c,d,p,S){e.cancelPendingCommit=null;do Ss();while(et!==0);if((Te&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Yr,ag(e,a,c,d,p,S),e===Ue&&(me=Ue=null,pe=0),Hl=t,un=e,za=a,$c=c,Wc=s,Am=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ov(Ru,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=q.T,q.T=null,s=V.p,V.p=2,d=Te,Te|=4;try{pv(e,t,a)}finally{Te=d,V.p=s,q.T=n}}et=1,Hm(),Bm(),Qm()}}function Hm(){if(et===1){et=0;var e=un,t=Hl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null;var n=V.p;V.p=2;var s=Te;Te|=4;try{vm(t,e);var c=ho,d=Td(e.containerInfo),p=c.focusedElem,S=c.selectionRange;if(d!==p&&p&&p.ownerDocument&&Rd(p.ownerDocument.documentElement,p)){if(S!==null&&Lr(p)){var _=S.start,L=S.end;if(L===void 0&&(L=_),"selectionStart"in p)p.selectionStart=_,p.selectionEnd=Math.min(L,p.value.length);else{var Y=p.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var U=z.getSelection(),P=p.textContent.length,ie=Math.min(S.start,P),Me=S.end===void 0?ie:Math.min(S.end,P);!U.extend&&ie>Me&&(d=Me,Me=ie,ie=d);var A=Ed(p,ie),T=Ed(p,Me);if(A&&T&&(U.rangeCount!==1||U.anchorNode!==A.node||U.anchorOffset!==A.offset||U.focusNode!==T.node||U.focusOffset!==T.offset)){var C=Y.createRange();C.setStart(A.node,A.offset),U.removeAllRanges(),ie>Me?(U.addRange(C),U.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),U.addRange(C))}}}}for(Y=[],U=p;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<Y.length;p++){var B=Y[p];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}zs=!!fo,ho=fo=null}finally{Te=s,V.p=n,q.T=a}}e.current=t,et=2}}function Bm(){if(et===2){et=0;var e=un,t=Hl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=q.T,q.T=null;var n=V.p;V.p=2;var s=Te;Te|=4;try{hm(e,t.alternate,t)}finally{Te=s,V.p=n,q.T=a}}et=3}}function Qm(){if(et===4||et===3){et=0,Z0();var e=un,t=Hl,a=za,n=Am;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,Hl=un=null,Gm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ln=null),vr(a),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(fi,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=q.T,s=V.p,V.p=2,q.T=null;try{for(var c=e.onRecoverableError,d=0;d<n.length;d++){var p=n[d];c(p.value,{componentStack:p.stack})}}finally{q.T=t,V.p=s}}(za&3)!==0&&Ss(),oa(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Pc?Vi++:(Vi=0,Pc=e):Vi=0,Zi(0)}}function Gm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oi(t)))}function Ss(){return Hm(),Bm(),Qm(),Ym()}function Ym(){if(et!==5)return!1;var e=un,t=$c;$c=0;var a=vr(za),n=q.T,s=V.p;try{V.p=32>a?32:a,q.T=null,a=Wc,Wc=null;var c=un,d=za;if(et=0,Hl=un=null,za=0,(Te&6)!==0)throw Error(r(331));var p=Te;if(Te|=4,Rm(c.current),xm(c,c.current,d,a),Te=p,Zi(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(fi,c)}catch{}return!0}finally{V.p=s,q.T=n,Gm(e,t)}}function Km(e,t,a){t=Yt(a,t),t=Cc(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(hi(e,2),oa(e))}function Ce(e,t,a){if(e.tag===3)Km(e,e,a);else for(;t!==null;){if(t.tag===3){Km(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ln===null||!ln.has(n))){e=Yt(a,e),a=kh(2),n=Pa(t,a,2),n!==null&&(Xh(a,n,t,e),hi(n,2),oa(n));break}}t=t.return}}function to(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new bv;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(a)||(Zc=!0,s.add(a),e=Tv.bind(null,e,t,a),t.then(e,e))}function Tv(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(pe&a)===a&&(ke===4||ke===3&&(pe&62914560)===pe&&300>wt()-ys?(Te&2)===0&&Bl(e,0):Jc|=a,Ll===pe&&(Ll=0)),oa(e)}function km(e,t){t===0&&(t=Hf()),e=zn(e,t),e!==null&&(hi(e,t),oa(e))}function Nv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),km(e,a)}function Av(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(t),km(e,a)}function Ov(e,t){return mr(e,t)}var Es=null,Gl=null,ao=!1,Rs=!1,no=!1,rn=0;function oa(e){e!==Gl&&e.next===null&&(Gl===null?Es=Gl=e:Gl=Gl.next=e),Rs=!0,ao||(ao=!0,jv())}function Zi(e,t){if(!no&&Rs){no=!0;do for(var a=!1,n=Es;n!==null;){if(e!==0){var s=n.pendingLanes;if(s===0)var c=0;else{var d=n.suspendedLanes,p=n.pingedLanes;c=(1<<31-Ct(42|e)+1)-1,c&=s&~(d&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Jm(n,c))}else c=pe,c=Ou(n,n===Ue?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||di(n,c)||(a=!0,Jm(n,c));n=n.next}while(a);no=!1}}function wv(){Xm()}function Xm(){Rs=ao=!1;var e=0;rn!==0&&Bv()&&(e=rn);for(var t=wt(),a=null,n=Es;n!==null;){var s=n.next,c=Vm(n,t);c===0?(n.next=null,a===null?Es=s:a.next=s,s===null&&(Gl=a)):(a=n,(e!==0||(c&3)!==0)&&(Rs=!0)),n=s}et!==0&&et!==5||Zi(e),rn!==0&&(rn=0)}function Vm(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-Ct(c),p=1<<d,S=s[d];S===-1?((p&a)===0||(p&n)!==0)&&(s[d]=tg(p,t)):S<=t&&(e.expiredLanes|=p),c&=~p}if(t=Ue,a=pe,a=Ou(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&yr(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||di(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&yr(n),vr(a)){case 2:case 8:a=qf;break;case 32:a=Ru;break;case 268435456:a=Lf;break;default:a=Ru}return n=Zm.bind(null,e),a=mr(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&yr(n),e.callbackPriority=2,e.callbackNode=null,2}function Zm(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ss()&&e.callbackNode!==a)return null;var n=pe;return n=Ou(e,e===Ue?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(wm(e,n,t),Vm(e,wt()),e.callbackNode!=null&&e.callbackNode===a?Zm.bind(null,e):null)}function Jm(e,t){if(Ss())return null;wm(e,t,!0)}function jv(){Gv(function(){(Te&6)!==0?mr(Uf,wv):Xm()})}function lo(){if(rn===0){var e=Al;e===0&&(e=Tu,Tu<<=1,(Tu&261888)===0&&(Tu=256)),rn=e}return rn}function Fm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_u(""+e)}function $m(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Cv(e,t,a,n,s){if(t==="submit"&&a&&a.stateNode===s){var c=Fm((s[gt]||null).action),d=n.submitter;d&&(t=(t=d[gt]||null)?Fm(t.formAction):d.getAttribute("formAction"),t!==null&&(c=t,d=null));var p=new Uu("action","action",null,n,s);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(rn!==0){var S=d?$m(s,d):new FormData(s);Tc(a,{pending:!0,data:S,method:s.method,action:c},null,S)}}else typeof c=="function"&&(p.preventDefault(),S=d?$m(s,d):new FormData(s),Tc(a,{pending:!0,data:S,method:s.method,action:c},c,S))},currentTarget:s}]})}}for(var io=0;io<Gr.length;io++){var uo=Gr[io],_v=uo.toLowerCase(),Dv=uo[0].toUpperCase()+uo.slice(1);It(_v,"on"+Dv)}It(Od,"onAnimationEnd"),It(wd,"onAnimationIteration"),It(jd,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(Jg,"onTransitionRun"),It(Fg,"onTransitionStart"),It($g,"onTransitionCancel"),It(Cd,"onTransitionEnd"),dl("onMouseEnter",["mouseout","mouseover"]),dl("onMouseLeave",["mouseout","mouseover"]),dl("onPointerEnter",["pointerout","pointerover"]),dl("onPointerLeave",["pointerout","pointerover"]),jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),zv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ji));function Wm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],s=n.event;n=n.listeners;e:{var c=void 0;if(t)for(var d=n.length-1;0<=d;d--){var p=n[d],S=p.instance,_=p.currentTarget;if(p=p.listener,S!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=_;try{c(s)}catch(L){Hu(L)}s.currentTarget=null,c=S}else for(d=0;d<n.length;d++){if(p=n[d],S=p.instance,_=p.currentTarget,p=p.listener,S!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=_;try{c(s)}catch(L){Hu(L)}s.currentTarget=null,c=S}}}}function ye(e,t){var a=t[br];a===void 0&&(a=t[br]=new Set);var n=e+"__bubble";a.has(n)||(Pm(t,e,2,!1),a.add(n))}function so(e,t,a){var n=0;t&&(n|=4),Pm(a,e,n,t)}var Ts="_reactListening"+Math.random().toString(36).slice(2);function ro(e){if(!e[Ts]){e[Ts]=!0,Xf.forEach(function(a){a!=="selectionchange"&&(zv.has(a)||so(a,!1,e),so(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ts]||(t[Ts]=!0,so("selectionchange",!1,t))}}function Pm(e,t,a,n){switch(Oy(t)){case 2:var s=sb;break;case 8:s=rb;break;default:s=To}a=s.bind(null,t,a,e),s=void 0,!wr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function co(e,t,a,n,s){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var p=n.stateNode.containerInfo;if(p===s)break;if(d===4)for(d=n.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;p!==null;){if(d=cl(p),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){n=c=d;continue e}p=p.parentNode}}n=n.return}nd(function(){var _=c,L=Ar(a),Y=[];e:{var z=_d.get(e);if(z!==void 0){var U=Uu,P=e;switch(e){case"keypress":if(zu(a)===0)break e;case"keydown":case"keyup":U=Ag;break;case"focusin":P="focus",U=Dr;break;case"focusout":P="blur",U=Dr;break;case"beforeblur":case"afterblur":U=Dr;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=mg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=jg;break;case Od:case wd:case jd:U=gg;break;case Cd:U=_g;break;case"scroll":case"scrollend":U=dg;break;case"wheel":U=zg;break;case"copy":case"cut":case"paste":U=bg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=rd;break;case"toggle":case"beforetoggle":U=Ug}var ie=(t&4)!==0,Me=!ie&&(e==="scroll"||e==="scrollend"),A=ie?z!==null?z+"Capture":null:z;ie=[];for(var T=_,C;T!==null;){var B=T;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||A===null||(B=pi(T,A),B!=null&&ie.push(Fi(T,B,C))),Me)break;T=T.return}0<ie.length&&(z=new U(z,P,null,a,L),Y.push({event:z,listeners:ie}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",z&&a!==Nr&&(P=a.relatedTarget||a.fromElement)&&(cl(P)||P[rl]))break e;if((U||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,U?(P=a.relatedTarget||a.toElement,U=_,P=P?cl(P):null,P!==null&&(Me=f(P),ie=P.tag,P!==Me||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(U=null,P=_),U!==P)){if(ie=ud,B="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ie=rd,B="onPointerLeave",A="onPointerEnter",T="pointer"),Me=U==null?z:yi(U),C=P==null?z:yi(P),z=new ie(B,T+"leave",U,a,L),z.target=Me,z.relatedTarget=C,B=null,cl(L)===_&&(ie=new ie(A,T+"enter",P,a,L),ie.target=C,ie.relatedTarget=Me,B=ie),Me=B,U&&P)t:{for(ie=Mv,A=U,T=P,C=0,B=A;B;B=ie(B))C++;B=0;for(var ne=T;ne;ne=ie(ne))B++;for(;0<C-B;)A=ie(A),C--;for(;0<B-C;)T=ie(T),B--;for(;C--;){if(A===T||T!==null&&A===T.alternate){ie=A;break t}A=ie(A),T=ie(T)}ie=null}else ie=null;U!==null&&Im(Y,z,U,ie,!1),P!==null&&Me!==null&&Im(Y,Me,P,ie,!0)}}e:{if(z=_?yi(_):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var Se=pd;else if(md(z))if(gd)Se=Xg;else{Se=Kg;var I=Yg}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?_&&Tr(_.elementType)&&(Se=pd):Se=kg;if(Se&&(Se=Se(e,_))){yd(Y,Se,a,L);break e}I&&I(e,z,_),e==="focusout"&&_&&z.type==="number"&&_.memoizedProps.value!=null&&Rr(z,"number",z.value)}switch(I=_?yi(_):window,e){case"focusin":(md(I)||I.contentEditable==="true")&&(vl=I,Hr=_,Ti=null);break;case"focusout":Ti=Hr=vl=null;break;case"mousedown":Br=!0;break;case"contextmenu":case"mouseup":case"dragend":Br=!1,Nd(Y,a,L);break;case"selectionchange":if(Zg)break;case"keydown":case"keyup":Nd(Y,a,L)}var oe;if(Mr)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else gl?dd(e,a)&&(ge="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ge="onCompositionStart");ge&&(cd&&a.locale!=="ko"&&(gl||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&gl&&(oe=ld()):(Xa=L,jr="value"in Xa?Xa.value:Xa.textContent,gl=!0)),I=Ns(_,ge),0<I.length&&(ge=new sd(ge,e,null,a,L),Y.push({event:ge,listeners:I}),oe?ge.data=oe:(oe=hd(a),oe!==null&&(ge.data=oe)))),(oe=Lg?Hg(e,a):Bg(e,a))&&(ge=Ns(_,"onBeforeInput"),0<ge.length&&(I=new sd("onBeforeInput","beforeinput",null,a,L),Y.push({event:I,listeners:ge}),I.data=oe)),Cv(Y,e,_,a,L)}Wm(Y,t)})}function Fi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ns(e,t){for(var a=t+"Capture",n=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=pi(e,a),s!=null&&n.unshift(Fi(e,s,c)),s=pi(e,t),s!=null&&n.push(Fi(e,s,c))),e.tag===3)return n;e=e.return}return[]}function Mv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Im(e,t,a,n,s){for(var c=t._reactName,d=[];a!==null&&a!==n;){var p=a,S=p.alternate,_=p.stateNode;if(p=p.tag,S!==null&&S===n)break;p!==5&&p!==26&&p!==27||_===null||(S=_,s?(_=pi(a,c),_!=null&&d.unshift(Fi(a,_,S))):s||(_=pi(a,c),_!=null&&d.push(Fi(a,_,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Uv=/\r\n?/g,qv=/\u0000|\uFFFD/g;function ey(e){return(typeof e=="string"?e:""+e).replace(Uv,`
|
|
`).replace(qv,"")}function ty(e,t){return t=ey(t),ey(e)===t}function ze(e,t,a,n,s,c){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ml(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ml(e,""+n);break;case"className":ju(e,"class",n);break;case"tabIndex":ju(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ju(e,a,n);break;case"style":td(e,n,c);break;case"data":if(t!=="object"){ju(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_u(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"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 c=="function"&&(a==="formAction"?(t!=="input"&&ze(e,t,"name",s.name,s,null),ze(e,t,"formEncType",s.formEncType,s,null),ze(e,t,"formMethod",s.formMethod,s,null),ze(e,t,"formTarget",s.formTarget,s,null)):(ze(e,t,"encType",s.encType,s,null),ze(e,t,"method",s.method,s,null),ze(e,t,"target",s.target,s,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_u(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=va);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=_u(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ye("beforetoggle",e),ye("toggle",e),wu(e,"popover",n);break;case"xlinkActuate":ga(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ga(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ga(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ga(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ga(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ga(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ga(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ga(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ga(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":wu(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=og.get(a)||a,wu(e,a,n))}}function oo(e,t,a,n,s,c){switch(a){case"style":td(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof n=="string"?ml(e,n):(typeof n=="number"||typeof n=="bigint")&&ml(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=va);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[gt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof n=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,s);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):wu(e,a,n)}}}function ct(e,t,a){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 n=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(d!=null)switch(c){case"src":n=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,c,d,a,null)}}s&&ze(e,t,"srcSet",a.srcSet,a,null),n&&ze(e,t,"src",a.src,a,null);return;case"input":ye("invalid",e);var p=c=d=s=null,S=null,_=null;for(n in a)if(a.hasOwnProperty(n)){var L=a[n];if(L!=null)switch(n){case"name":s=L;break;case"type":d=L;break;case"checked":S=L;break;case"defaultChecked":_=L;break;case"value":c=L;break;case"defaultValue":p=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:ze(e,t,n,L,a,null)}}Wf(e,c,p,S,_,d,s,!1);return;case"select":ye("invalid",e),n=d=c=null;for(s in a)if(a.hasOwnProperty(s)&&(p=a[s],p!=null))switch(s){case"value":c=p;break;case"defaultValue":d=p;break;case"multiple":n=p;default:ze(e,t,s,p,a,null)}t=c,a=d,e.multiple=!!n,t!=null?hl(e,!!n,t,!1):a!=null&&hl(e,!!n,a,!0);return;case"textarea":ye("invalid",e),c=s=n=null;for(d in a)if(a.hasOwnProperty(d)&&(p=a[d],p!=null))switch(d){case"value":n=p;break;case"defaultValue":s=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:ze(e,t,d,p,a,null)}If(e,n,s,c);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ze(e,t,S,n,a,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(n=0;n<Ji.length;n++)ye(Ji[n],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(_ in a)if(a.hasOwnProperty(_)&&(n=a[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,_,n,a,null)}return;default:if(Tr(t)){for(L in a)a.hasOwnProperty(L)&&(n=a[L],n!==void 0&&oo(e,t,L,n,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null&&ze(e,t,p,n,a,null))}function Lv(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,d=null,p=null,S=null,_=null,L=null;for(U in a){var Y=a[U];if(a.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=Y;default:n.hasOwnProperty(U)||ze(e,t,U,null,n,Y)}}for(var z in n){var U=n[z];if(Y=a[z],n.hasOwnProperty(z)&&(U!=null||Y!=null))switch(z){case"type":c=U;break;case"name":s=U;break;case"checked":_=U;break;case"defaultChecked":L=U;break;case"value":d=U;break;case"defaultValue":p=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==Y&&ze(e,t,z,U,n,Y)}}Er(e,d,p,S,_,L,c,s);return;case"select":U=d=p=z=null;for(c in a)if(S=a[c],a.hasOwnProperty(c)&&S!=null)switch(c){case"value":break;case"multiple":U=S;default:n.hasOwnProperty(c)||ze(e,t,c,null,n,S)}for(s in n)if(c=n[s],S=a[s],n.hasOwnProperty(s)&&(c!=null||S!=null))switch(s){case"value":z=c;break;case"defaultValue":p=c;break;case"multiple":d=c;default:c!==S&&ze(e,t,s,c,n,S)}t=p,a=d,n=U,z!=null?hl(e,!!a,z,!1):!!n!=!!a&&(t!=null?hl(e,!!a,t,!0):hl(e,!!a,a?[]:"",!1));return;case"textarea":U=z=null;for(p in a)if(s=a[p],a.hasOwnProperty(p)&&s!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:ze(e,t,p,null,n,s)}for(d in n)if(s=n[d],c=a[d],n.hasOwnProperty(d)&&(s!=null||c!=null))switch(d){case"value":z=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&ze(e,t,d,s,n,c)}Pf(e,z,U);return;case"option":for(var P in a)if(z=a[P],a.hasOwnProperty(P)&&z!=null&&!n.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:ze(e,t,P,null,n,z)}for(S in n)if(z=n[S],U=a[S],n.hasOwnProperty(S)&&z!==U&&(z!=null||U!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:ze(e,t,S,z,n,U)}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 ie in a)z=a[ie],a.hasOwnProperty(ie)&&z!=null&&!n.hasOwnProperty(ie)&&ze(e,t,ie,null,n,z);for(_ in n)if(z=n[_],U=a[_],n.hasOwnProperty(_)&&z!==U&&(z!=null||U!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:ze(e,t,_,z,n,U)}return;default:if(Tr(t)){for(var Me in a)z=a[Me],a.hasOwnProperty(Me)&&z!==void 0&&!n.hasOwnProperty(Me)&&oo(e,t,Me,void 0,n,z);for(L in n)z=n[L],U=a[L],!n.hasOwnProperty(L)||z===U||z===void 0&&U===void 0||oo(e,t,L,z,n,U);return}}for(var A in a)z=a[A],a.hasOwnProperty(A)&&z!=null&&!n.hasOwnProperty(A)&&ze(e,t,A,null,n,z);for(Y in n)z=n[Y],U=a[Y],!n.hasOwnProperty(Y)||z===U||z==null&&U==null||ze(e,t,Y,z,n,U)}function ay(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var s=a[n],c=s.transferSize,d=s.initiatorType,p=s.duration;if(c&&p&&ay(d)){for(d=0,p=s.responseEnd,n+=1;n<a.length;n++){var S=a[n],_=S.startTime;if(_>p)break;var L=S.transferSize,Y=S.initiatorType;L&&ay(Y)&&(S=S.responseEnd,d+=L*(S<p?1:(p-_)/(S-_)))}if(--n,t+=8*(c+d)/(s.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 fo=null,ho=null;function As(e){return e.nodeType===9?e:e.ownerDocument}function ny(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 ly(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 mo(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 yo=null;function Bv(){var e=window.event;return e&&e.type==="popstate"?e===yo?!1:(yo=e,!0):(yo=null,!1)}var iy=typeof setTimeout=="function"?setTimeout:void 0,Qv=typeof clearTimeout=="function"?clearTimeout:void 0,uy=typeof Promise=="function"?Promise:void 0,Gv=typeof queueMicrotask=="function"?queueMicrotask:typeof uy<"u"?function(e){return uy.resolve(null).then(e).catch(Yv)}:iy;function Yv(e){setTimeout(function(){throw e})}function cn(e){return e==="head"}function sy(e,t){var a=t,n=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(s),Xl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")$i(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$i(a);for(var c=a.firstChild;c;){var d=c.nextSibling,p=c.nodeName;c[mi]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=d}}else a==="body"&&$i(e.ownerDocument.body);a=s}while(a);Xl(t)}function ry(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function po(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":po(a),xr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Kv(e,t,a,n){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[mi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function kv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Zt(e.nextSibling),e===null))return null;return e}function cy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function go(e){return e.data==="$?"||e.data==="$~"}function vo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Xv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Zt(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 bo=null;function oy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Zt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function fy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function dy(e,t,a){switch(t=As(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function $i(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xr(e)}var Jt=new Map,hy=new Set;function Os(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ma=V.d;V.d={f:Vv,r:Zv,D:Jv,C:Fv,L:$v,m:Wv,X:Iv,S:Pv,M:eb};function Vv(){var e=Ma.f(),t=vs();return e||t}function Zv(e){var t=ol(e);t!==null&&t.tag===5&&t.type==="form"?Ch(t):Ma.r(e)}var Yl=typeof document>"u"?null:document;function my(e,t,a){var n=Yl;if(n&&typeof t=="string"&&t){var s=Qt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),hy.has(s)||(hy.add(s),e={rel:e,crossOrigin:a,href:t},n.querySelector(s)===null&&(t=n.createElement("link"),ct(t,"link",e),at(t),n.head.appendChild(t)))}}function Jv(e){Ma.D(e),my("dns-prefetch",e,null)}function Fv(e,t){Ma.C(e,t),my("preconnect",e,t)}function $v(e,t,a){Ma.L(e,t,a);var n=Yl;if(n&&e&&t){var s='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Qt(a.imageSizes)+'"]')):s+='[href="'+Qt(e)+'"]';var c=s;switch(t){case"style":c=Kl(e);break;case"script":c=kl(e)}Jt.has(c)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Jt.set(c,e),n.querySelector(s)!==null||t==="style"&&n.querySelector(Wi(c))||t==="script"&&n.querySelector(Pi(c))||(t=n.createElement("link"),ct(t,"link",e),at(t),n.head.appendChild(t)))}}function Wv(e,t){Ma.m(e,t);var a=Yl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Qt(n)+'"][href="'+Qt(e)+'"]',c=s;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=kl(e)}if(!Jt.has(c)&&(e=x({rel:"modulepreload",href:e},t),Jt.set(c,e),a.querySelector(s)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pi(c)))return}n=a.createElement("link"),ct(n,"link",e),at(n),a.head.appendChild(n)}}}function Pv(e,t,a){Ma.S(e,t,a);var n=Yl;if(n&&e){var s=fl(n).hoistableStyles,c=Kl(e);t=t||"default";var d=s.get(c);if(!d){var p={loading:0,preload:null};if(d=n.querySelector(Wi(c)))p.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Jt.get(c))&&xo(e,a);var S=d=n.createElement("link");at(S),ct(S,"link",e),S._p=new Promise(function(_,L){S.onload=_,S.onerror=L}),S.addEventListener("load",function(){p.loading|=1}),S.addEventListener("error",function(){p.loading|=2}),p.loading|=4,ws(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:p},s.set(c,d)}}}function Iv(e,t){Ma.X(e,t);var a=Yl;if(a&&e){var n=fl(a).hoistableScripts,s=kl(e),c=n.get(s);c||(c=a.querySelector(Pi(s)),c||(e=x({src:e,async:!0},t),(t=Jt.get(s))&&So(e,t),c=a.createElement("script"),at(c),ct(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(s,c))}}function eb(e,t){Ma.M(e,t);var a=Yl;if(a&&e){var n=fl(a).hoistableScripts,s=kl(e),c=n.get(s);c||(c=a.querySelector(Pi(s)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Jt.get(s))&&So(e,t),c=a.createElement("script"),at(c),ct(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(s,c))}}function yy(e,t,a,n){var s=(s=he.current)?Os(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Kl(a.href),a=fl(s).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Kl(a.href);var c=fl(s).hoistableStyles,d=c.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=s.querySelector(Wi(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Jt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Jt.set(e,a),c||tb(s,e,a,d.state))),t&&n===null)throw Error(r(528,""));return d}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=kl(a),a=fl(s).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Kl(e){return'href="'+Qt(e)+'"'}function Wi(e){return'link[rel="stylesheet"]['+e+"]"}function py(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function tb(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ct(t,"link",a),at(t),e.head.appendChild(t))}function kl(e){return'[src="'+Qt(e)+'"]'}function Pi(e){return"script[async]"+e}function gy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Qt(a.href)+'"]');if(n)return t.instance=n,at(n),n;var s=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),at(n),ct(n,"style",s),ws(n,a.precedence,e),t.instance=n;case"stylesheet":s=Kl(a.href);var c=e.querySelector(Wi(s));if(c)return t.state.loading|=4,t.instance=c,at(c),c;n=py(a),(s=Jt.get(s))&&xo(n,s),c=(e.ownerDocument||e).createElement("link"),at(c);var d=c;return d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),ct(c,"link",n),t.state.loading|=4,ws(c,a.precedence,e),t.instance=c;case"script":return c=kl(a.src),(s=e.querySelector(Pi(c)))?(t.instance=s,at(s),s):(n=a,(s=Jt.get(c))&&(n=x({},a),So(n,s)),e=e.ownerDocument||e,s=e.createElement("script"),at(s),ct(s,"link",n),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,ws(n,a.precedence,e));return t.instance}function ws(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=n.length?n[n.length-1]:null,c=s,d=0;d<n.length;d++){var p=n[d];if(p.dataset.precedence===t)c=p;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function So(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var js=null;function vy(e,t,a){if(js===null){var n=new Map,s=js=new Map;s.set(a,n)}else s=js,n=s.get(a),n||(n=new Map,s.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[mi]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(t)||"";d=e+d;var p=n.get(d);p?p.push(c):n.set(d,[c])}}return n}function by(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ab(e,t,a){if(a===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 xy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function nb(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Kl(n.href),c=t.querySelector(Wi(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,at(c);return}c=t.ownerDocument||t,n=py(n),(s=Jt.get(s))&&xo(n,s),c=c.createElement("link"),at(c);var d=c;d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),ct(c,"link",n),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Cs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Eo=0;function lb(e,t){return e.stylesheets&&e.count===0&&Ds(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Ds(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Eo===0&&(Eo=62500*Hv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ds(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Eo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(s)}}:null}function Cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ds(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _s=null;function Ds(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_s=new Map,t.forEach(ib,e),_s=null,Cs.call(e))}function ib(e,t){if(!(t.state.loading&4)){var a=_s.get(e);if(a)var n=a.get(null);else{a=new Map,_s.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var d=s[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}s=t.instance,d=s.getAttribute("data-precedence"),c=a.get(d)||n,c===n&&a.set(null,s),a.set(d,s),this.count++,n=Cs.bind(this),s.addEventListener("load",n),s.addEventListener("error",n),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ii={$$typeof:K,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function ub(e,t,a,n,s,c,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=pr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pr(0),this.hiddenUpdates=pr(null),this.identifierPrefix=n,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Sy(e,t,a,n,s,c,d,p,S,_,L,Y){return e=new ub(e,t,a,d,S,_,L,Y,p),t=1,c===!0&&(t|=24),c=Dt(3,null,null,t),e.current=c,c.stateNode=e,t=ec(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:a,cache:t},lc(c),e}function Ey(e){return e?(e=Sl,e):Sl}function Ry(e,t,a,n,s,c){s=Ey(s),n.context===null?n.context=s:n.pendingContext=s,n=Wa(t),n.payload={element:a},c=c===void 0?null:c,c!==null&&(n.callback=c),a=Pa(e,n,t),a!==null&&(Rt(a,e,t),_i(a,e,t))}function Ty(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ro(e,t){Ty(e,t),(e=e.alternate)&&Ty(e,t)}function Ny(e){if(e.tag===13||e.tag===31){var t=zn(e,67108864);t!==null&&Rt(t,e,67108864),Ro(e,67108864)}}function Ay(e){if(e.tag===13||e.tag===31){var t=Lt();t=gr(t);var a=zn(e,t);a!==null&&Rt(a,e,t),Ro(e,t)}}var zs=!0;function sb(e,t,a,n){var s=q.T;q.T=null;var c=V.p;try{V.p=2,To(e,t,a,n)}finally{V.p=c,q.T=s}}function rb(e,t,a,n){var s=q.T;q.T=null;var c=V.p;try{V.p=8,To(e,t,a,n)}finally{V.p=c,q.T=s}}function To(e,t,a,n){if(zs){var s=No(n);if(s===null)co(e,t,n,Ms,a),wy(e,n);else if(ob(s,e,t,a,n))n.stopPropagation();else if(wy(e,n),t&4&&-1<cb.indexOf(e)){for(;s!==null;){var c=ol(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=wn(c.pendingLanes);if(d!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var S=1<<31-Ct(d);p.entanglements[1]|=S,d&=~S}oa(c),(Te&6)===0&&(ps=wt()+500,Zi(0))}}break;case 31:case 13:p=zn(c,2),p!==null&&Rt(p,c,2),vs(),Ro(c,2)}if(c=No(n),c===null&&co(e,t,n,Ms,a),c===s)break;s=c}s!==null&&n.stopPropagation()}else co(e,t,n,null,a)}}function No(e){return e=Ar(e),Ao(e)}var Ms=null;function Ao(e){if(Ms=null,e=cl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ms=e,null}function Oy(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(J0()){case Uf:return 2;case qf:return 8;case Ru:case F0:return 32;case Lf:return 268435456;default:return 32}default:return 32}}var Oo=!1,on=null,fn=null,dn=null,eu=new Map,tu=new Map,hn=[],cb="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 wy(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":dn=null;break;case"pointerover":case"pointerout":eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tu.delete(t.pointerId)}}function au(e,t,a,n,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:c,targetContainers:[s]},t!==null&&(t=ol(t),t!==null&&Ny(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function ob(e,t,a,n,s){switch(t){case"focusin":return on=au(on,e,t,a,n,s),!0;case"dragenter":return fn=au(fn,e,t,a,n,s),!0;case"mouseover":return dn=au(dn,e,t,a,n,s),!0;case"pointerover":var c=s.pointerId;return eu.set(c,au(eu.get(c)||null,e,t,a,n,s)),!0;case"gotpointercapture":return c=s.pointerId,tu.set(c,au(tu.get(c)||null,e,t,a,n,s)),!0}return!1}function jy(e){var t=cl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Kf(e.priority,function(){Ay(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Kf(e.priority,function(){Ay(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=No(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Nr=n,a.target.dispatchEvent(n),Nr=null}else return t=ol(a),t!==null&&Ny(t),e.blockedOn=a,!1;t.shift()}return!0}function Cy(e,t,a){Us(e)&&a.delete(t)}function fb(){Oo=!1,on!==null&&Us(on)&&(on=null),fn!==null&&Us(fn)&&(fn=null),dn!==null&&Us(dn)&&(dn=null),eu.forEach(Cy),tu.forEach(Cy)}function qs(e,t){e.blockedOn===t&&(e.blockedOn=null,Oo||(Oo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,fb)))}var Ls=null;function _y(e){Ls!==e&&(Ls=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ls===e&&(Ls=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],s=e[t+2];if(typeof n!="function"){if(Ao(n||a)===null)continue;break}var c=ol(a);c!==null&&(e.splice(t,3),t-=3,Tc(c,{pending:!0,data:s,method:a.method,action:n},n,s))}}))}function Xl(e){function t(S){return qs(S,e)}on!==null&&qs(on,e),fn!==null&&qs(fn,e),dn!==null&&qs(dn,e),eu.forEach(t),tu.forEach(t);for(var a=0;a<hn.length;a++){var n=hn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<hn.length&&(a=hn[0],a.blockedOn===null);)jy(a),a.blockedOn===null&&hn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var s=a[n],c=a[n+1],d=s[gt]||null;if(typeof c=="function")d||_y(a);else if(d){var p=null;if(c&&c.hasAttribute("formAction")){if(s=c,d=c[gt]||null)p=d.formAction;else if(Ao(s)!==null)continue}else p=d.action;typeof p=="function"?a[n+1]=p:(a.splice(n,3),n-=3),_y(a)}}}function Dy(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function wo(e){this._internalRoot=e}Hs.prototype.render=wo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,n=Lt();Ry(a,n,e,t,null,null)},Hs.prototype.unmount=wo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ry(e.current,2,null,e,null,null),vs(),t[rl]=null}};function Hs(e){this._internalRoot=e}Hs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<hn.length&&t!==0&&t<hn[a].priority;a++);hn.splice(a,0,e),a===0&&jy(e)}};var zy=i.version;if(zy!=="19.2.4")throw Error(r(527,zy,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var db={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bs.isDisabled&&Bs.supportsFiber)try{fi=Bs.inject(db),jt=Bs}catch{}}return lu.createRoot=function(e,t){if(!o(e))throw Error(r(299));var a=!1,n="",s=Qh,c=Gh,d=Yh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Sy(e,1,!1,null,null,a,n,null,s,c,d,Dy),e[rl]=t.current,ro(e),new wo(t)},lu.hydrateRoot=function(e,t,a){if(!o(e))throw Error(r(299));var n=!1,s="",c=Qh,d=Gh,p=Yh,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Sy(e,1,!0,t,a??null,n,s,S,c,d,p,Dy),t.context=Ey(null),a=t.current,n=Lt(),n=gr(n),s=Wa(n),s.callback=null,Pa(a,s,n),a=n,t.current.lanes=a,hi(t,a),oa(t),e[rl]=t.current,ro(e),new Hs(t)},lu.version="19.2.4",lu}var ky;function Rb(){if(ky)return Do.exports;ky=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Do.exports=Eb(),Do.exports}var Tb=Rb();const Nb=Qp(Tb);/**
|
|
* react-router v7.13.1
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/var Xy="popstate";function Vy(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Ab(l={}){function i(r,o){var y;let f=(y=o.state)==null?void 0:y.masked,{pathname:h,search:g,hash:v}=f||r.location;return ko("",{pathname:h,search:g,hash:v},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function u(r,o){return typeof o=="string"?o:ru(o)}return wb(i,u,null,l)}function Ye(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function la(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Ob(){return Math.random().toString(36).substring(2,10)}function Zy(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function ko(l,i,u=null,r,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?ii(i):i,state:u,key:i&&i.key||r||Ob(),unstable_mask:o}}function ru({pathname:l="/",search:i="",hash:u=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function ii(l){let i={};if(l){let u=l.indexOf("#");u>=0&&(i.hash=l.substring(u),l=l.substring(0,u));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function wb(l,i,u,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.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 O=b(),H=O==null?null:O-y;y=O,v&&v({action:g,location:D.location,delta:H})}function j(O,H){g="PUSH";let X=Vy(O)?O:ko(D.location,O,H);y=b()+1;let K=Zy(X,y),k=D.createHref(X.unstable_mask||X);try{h.pushState(K,"",k)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;o.location.assign(k)}f&&v&&v({action:g,location:D.location,delta:1})}function G(O,H){g="REPLACE";let X=Vy(O)?O:ko(D.location,O,H);y=b();let K=Zy(X,y),k=D.createHref(X.unstable_mask||X);h.replaceState(K,"",k),f&&v&&v({action:g,location:D.location,delta:0})}function N(O){return jb(O)}let D={get action(){return g},get location(){return l(o,h)},listen(O){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Xy,x),v=O,()=>{o.removeEventListener(Xy,x),v=null}},createHref(O){return i(o,O)},createURL:N,encodeLocation(O){let H=N(O);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:j,replace:G,go(O){return h.go(O)}};return D}function jb(l,i=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(u,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:ru(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=u+r),new URL(r,u)}function Gp(l,i,u="/"){return Cb(l,i,u,!1)}function Cb(l,i,u,r){let o=typeof i=="string"?ii(i):i,f=Ga(o.pathname||"/",u);if(f==null)return null;let h=Yp(l);_b(h);let g=null;for(let v=0;g==null&&v<h.length;++v){let y=Yb(f);g=Qb(h[v],y,r)}return g}function Yp(l,i=[],u=[],r="",o=!1){let f=(h,g,v=o,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(r)&&v)return;Ye(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let x=ya([r,b.relativePath]),j=u.concat(b);h.children&&h.children.length>0&&(Ye(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Yp(h.children,i,j,x,v)),!(h.path==null&&!h.index)&&i.push({path:x,score:Hb(x,h.index),routesMeta:j})};return l.forEach((h,g)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))f(h,g);else for(let y of Kp(h.path))f(h,g,!0,y)}),i}function Kp(l){let i=l.split("/");if(i.length===0)return[];let[u,...r]=i,o=u.endsWith("?"),f=u.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=Kp(r.join("/")),g=[];return g.push(...h.map(v=>v===""?f:[f,v].join("/"))),o&&g.push(...h),g.map(v=>l.startsWith("/")&&v===""?"/":v)}function _b(l){l.sort((i,u)=>i.score!==u.score?u.score-i.score:Bb(i.routesMeta.map(r=>r.childrenIndex),u.routesMeta.map(r=>r.childrenIndex)))}var Db=/^:[\w-]+$/,zb=3,Mb=2,Ub=1,qb=10,Lb=-2,Jy=l=>l==="*";function Hb(l,i){let u=l.split("/"),r=u.length;return u.some(Jy)&&(r+=Lb),i&&(r+=Mb),u.filter(o=>!Jy(o)).reduce((o,f)=>o+(Db.test(f)?zb:f===""?Ub:qb),r)}function Bb(l,i){return l.length===i.length&&l.slice(0,-1).every((r,o)=>r===i[o])?l[l.length-1]-i[i.length-1]:0}function Qb(l,i,u=!1){let{routesMeta:r}=l,o={},f="/",h=[];for(let g=0;g<r.length;++g){let v=r[g],y=g===r.length-1,b=f==="/"?i:i.slice(f.length)||"/",x=Ps({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},b),j=v.route;if(!x&&y&&u&&!r[r.length-1].route.index&&(x=Ps({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!x)return null;Object.assign(o,x.params),h.push({params:o,pathname:ya([f,x.pathname]),pathnameBase:Vb(ya([f,x.pathnameBase])),route:j}),x.pathnameBase!=="/"&&(f=ya([f,x.pathnameBase]))}return h}function Ps(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,r]=Gb(l.path,l.caseSensitive,l.end),o=i.match(u);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),g=o.slice(1);return{params:r.reduce((y,{paramName:b,isOptional:x},j)=>{if(b==="*"){let N=g[j]||"";h=f.slice(0,f.length-N.length).replace(/(.)\/+$/,"$1")}const G=g[j];return x&&!G?y[b]=void 0:y[b]=(G||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:h,pattern:l}}function Gb(l,i=!1,u=!0){la(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,v,y,b)=>{if(r.push({paramName:g,isOptional:v!=null}),v){let x=b.charAt(y+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function Yb(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return la(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function Ga(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,r=l.charAt(u);return r&&r!=="/"?null:l.slice(u)||"/"}var Kb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function kb(l,i="/"){let{pathname:u,search:r="",hash:o=""}=typeof l=="string"?ii(l):l,f;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?f=Fy(u.substring(1),"/"):f=Fy(u,i)):f=i,{pathname:f,search:Zb(r),hash:Jb(o)}}function Fy(l,i){let u=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?u.length>1&&u.pop():o!=="."&&u.push(o)}),u.length>1?u.join("/"):"/"}function qo(l,i,u,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Xb(l){return l.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function mf(l){let i=Xb(l);return i.map((u,r)=>r===i.length-1?u.pathname:u.pathnameBase)}function ar(l,i,u,r=!1){let o;typeof l=="string"?o=ii(l):(o={...l},Ye(!o.pathname||!o.pathname.includes("?"),qo("?","pathname","search",o)),Ye(!o.pathname||!o.pathname.includes("#"),qo("#","pathname","hash",o)),Ye(!o.search||!o.search.includes("#"),qo("#","search","hash",o)));let f=l===""||o.pathname==="",h=f?"/":o.pathname,g;if(h==null)g=u;else{let x=i.length-1;if(!r&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),x-=1;o.pathname=j.join("/")}g=x>=0?i[x]:"/"}let v=kb(o,g),y=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(y||b)&&(v.pathname+="/"),v}var ya=l=>l.join("/").replace(/\/\/+/g,"/"),Vb=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Zb=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Jb=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Fb=class{constructor(l,i,u,r=!1){this.status=l,this.statusText=i||"",this.internal=r,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function $b(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function Wb(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var kp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xp(l,i){let u=l;if(typeof u!="string"||!Kb.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let r=u,o=!1;if(kp)try{let f=new URL(window.location.href),h=u.startsWith("//")?new URL(f.protocol+u):new URL(u),g=Ga(h.pathname,i);h.origin===f.origin&&g!=null?u=g+h.search+h.hash:o=!0}catch{la(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Vp=["POST","PUT","PATCH","DELETE"];new Set(Vp);var Pb=["GET",...Vp];new Set(Pb);var ui=w.createContext(null);ui.displayName="DataRouter";var nr=w.createContext(null);nr.displayName="DataRouterState";var Ib=w.createContext(!1),Zp=w.createContext({isTransitioning:!1});Zp.displayName="ViewTransition";var ex=w.createContext(new Map);ex.displayName="Fetchers";var tx=w.createContext(null);tx.displayName="Await";var Ht=w.createContext(null);Ht.displayName="Navigation";var yu=w.createContext(null);yu.displayName="Location";var Pt=w.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var yf=w.createContext(null);yf.displayName="RouteError";var Jp="REACT_ROUTER_ERROR",ax="REDIRECT",nx="ROUTE_ERROR_RESPONSE";function lx(l){if(l.startsWith(`${Jp}:${ax}:{`))try{let i=JSON.parse(l.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 ix(l){if(l.startsWith(`${Jp}:${nx}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Fb(i.status,i.statusText,i.data)}catch{}}function ux(l,{relative:i}={}){Ye(si(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:r}=w.useContext(Ht),{hash:o,pathname:f,search:h}=pu(l,{relative:i}),g=f;return u!=="/"&&(g=f==="/"?u:ya([u,f])),r.createHref({pathname:g,search:h,hash:o})}function si(){return w.useContext(yu)!=null}function ia(){return Ye(si(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(yu).location}var Fp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $p(l){w.useContext(Ht).static||w.useLayoutEffect(l)}function pf(){let{isDataRoute:l}=w.useContext(Pt);return l?Ex():sx()}function sx(){Ye(si(),"useNavigate() may be used only in the context of a <Router> component.");let l=w.useContext(ui),{basename:i,navigator:u}=w.useContext(Ht),{matches:r}=w.useContext(Pt),{pathname:o}=ia(),f=JSON.stringify(mf(r)),h=w.useRef(!1);return $p(()=>{h.current=!0}),w.useCallback((v,y={})=>{if(la(h.current,Fp),!h.current)return;if(typeof v=="number"){u.go(v);return}let b=ar(v,JSON.parse(f),o,y.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:ya([i,b.pathname])),(y.replace?u.replace:u.push)(b,y.state,y)},[i,u,f,o,l])}var rx=w.createContext(null);function cx(l){let i=w.useContext(Pt).outlet;return w.useMemo(()=>i&&w.createElement(rx.Provider,{value:l},i),[i,l])}function ox(){let{matches:l}=w.useContext(Pt),i=l[l.length-1];return i?i.params:{}}function pu(l,{relative:i}={}){let{matches:u}=w.useContext(Pt),{pathname:r}=ia(),o=JSON.stringify(mf(u));return w.useMemo(()=>ar(l,JSON.parse(o),r,i==="path"),[l,o,r,i])}function fx(l,i){return Wp(l,i)}function Wp(l,i,u){var O;Ye(si(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=w.useContext(Ht),{matches:o}=w.useContext(Pt),f=o[o.length-1],h=f?f.params:{},g=f?f.pathname:"/",v=f?f.pathnameBase:"/",y=f&&f.route;{let H=y&&y.path||"";Ip(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.
|
|
|
|
Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let b=ia(),x;if(i){let H=typeof i=="string"?ii(i):i;Ye(v==="/"||((O=H.pathname)==null?void 0:O.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 j=x.pathname||"/",G=j;if(v!=="/"){let H=v.replace(/^\//,"").split("/");G="/"+j.replace(/^\//,"").split("/").slice(H.length).join("/")}let N=Gp(l,{pathname:G});la(y||N!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),la(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.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=px(N&&N.map(H=>Object.assign({},H,{params:Object.assign({},h,H.params),pathname:ya([v,r.encodeLocation?r.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?v:ya([v,r.encodeLocation?r.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),o,u);return i&&D?w.createElement(yu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},D):D}function dx(){let l=Sx(),i=$b(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:f},"ErrorBoundary")," or"," ",w.createElement("code",{style:f},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},i),u?w.createElement("pre",{style:o},u):null,h)}var hx=w.createElement(dx,null),Pp=class extends w.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=ix(l.digest);u&&(l=u)}let i=l!==void 0?w.createElement(Pt.Provider,{value:this.props.routeContext},w.createElement(yf.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?w.createElement(mx,{error:l},i):i}};Pp.contextType=Ib;var Lo=new WeakMap;function mx({children:l,error:i}){let{basename:u}=w.useContext(Ht);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=lx(i.digest);if(r){let o=Lo.get(i);if(o)throw o;let f=Xp(r.location,u);if(kp&&!Lo.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Lo.set(i,h),h}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function yx({routeContext:l,match:i,children:u}){let r=w.useContext(ui);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),w.createElement(Pt.Provider,{value:l},u)}function px(l,i=[],u){let r=u==null?void 0:u.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let o=l,f=r==null?void 0:r.errors;if(f!=null){let b=o.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);Ye(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let h=!1,g=-1;if(u&&r){h=r.renderFallback;for(let b=0;b<o.length;b++){let x=o[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=b),x.route.id){let{loaderData:j,errors:G}=r,N=x.route.loader&&!j.hasOwnProperty(x.route.id)&&(!G||G[x.route.id]===void 0);if(x.route.lazy||N){u.isStatic&&(h=!0),g>=0?o=o.slice(0,g+1):o=[o[0]];break}}}}let v=u==null?void 0:u.onError,y=r&&v?(b,x)=>{var j,G;v(b,{location:r.location,params:((G=(j=r.matches)==null?void 0:j[0])==null?void 0:G.params)??{},unstable_pattern:Wb(r.matches),errorInfo:x})}:void 0;return o.reduceRight((b,x,j)=>{let G,N=!1,D=null,O=null;r&&(G=f&&x.route.id?f[x.route.id]:void 0,D=x.route.errorElement||hx,h&&(g<0&&j===0?(Ip("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,O=null):g===j&&(N=!0,O=x.route.hydrateFallbackElement||null)));let H=i.concat(o.slice(0,j+1)),X=()=>{let K;return G?K=D:N?K=O:x.route.Component?K=w.createElement(x.route.Component,null):x.route.element?K=x.route.element:K=b,w.createElement(yx,{match:x,routeContext:{outlet:b,matches:H,isDataRoute:r!=null},children:K})};return r&&(x.route.ErrorBoundary||x.route.errorElement||j===0)?w.createElement(Pp,{location:r.location,revalidation:r.revalidation,component:D,error:G,children:X(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:y}):X()},null)}function gf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gx(l){let i=w.useContext(ui);return Ye(i,gf(l)),i}function vx(l){let i=w.useContext(nr);return Ye(i,gf(l)),i}function bx(l){let i=w.useContext(Pt);return Ye(i,gf(l)),i}function vf(l){let i=bx(l),u=i.matches[i.matches.length-1];return Ye(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function xx(){return vf("useRouteId")}function Sx(){var r;let l=w.useContext(yf),i=vx("useRouteError"),u=vf("useRouteError");return l!==void 0?l:(r=i.errors)==null?void 0:r[u]}function Ex(){let{router:l}=gx("useNavigate"),i=vf("useNavigate"),u=w.useRef(!1);return $p(()=>{u.current=!0}),w.useCallback(async(o,f={})=>{la(u.current,Fp),u.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:i,...f}))},[l,i])}var $y={};function Ip(l,i,u){!i&&!$y[l]&&($y[l]=!0,la(!1,u))}w.memo(Rx);function Rx({routes:l,future:i,state:u,isStatic:r,onError:o}){return Wp(l,void 0,{state:u,isStatic:r,onError:o})}function e0({to:l,replace:i,state:u,relative:r}){Ye(si(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=w.useContext(Ht);la(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=w.useContext(Pt),{pathname:h}=ia(),g=pf(),v=ar(l,mf(f),h,r==="path"),y=JSON.stringify(v);return w.useEffect(()=>{g(JSON.parse(y),{replace:i,state:u,relative:r})},[g,y,r,i,u]),null}function Tx(l){return cx(l.context)}function fa(l){Ye(!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 Nx({basename:l="/",children:i=null,location:u,navigationType:r="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){Ye(!si(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=l.replace(/^\/*/,"/"),v=w.useMemo(()=>({basename:g,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[g,o,f,h]);typeof u=="string"&&(u=ii(u));let{pathname:y="/",search:b="",hash:x="",state:j=null,key:G="default",unstable_mask:N}=u,D=w.useMemo(()=>{let O=Ga(y,g);return O==null?null:{location:{pathname:O,search:b,hash:x,state:j,key:G,unstable_mask:N},navigationType:r}},[g,y,b,x,j,G,r,N]);return la(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:w.createElement(Ht.Provider,{value:v},w.createElement(yu.Provider,{children:i,value:D}))}function Ax({children:l,location:i}){return fx(Xo(l),i)}function Xo(l,i=[]){let u=[];return w.Children.forEach(l,(r,o)=>{if(!w.isValidElement(r))return;let f=[...i,o];if(r.type===w.Fragment){u.push.apply(u,Xo(r.props.children,f));return}Ye(r.type===fa,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=Xo(r.props.children,f)),u.push(h)}),u}var Vs="get",Zs="application/x-www-form-urlencoded";function lr(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Ox(l){return lr(l)&&l.tagName.toLowerCase()==="button"}function wx(l){return lr(l)&&l.tagName.toLowerCase()==="form"}function jx(l){return lr(l)&&l.tagName.toLowerCase()==="input"}function Cx(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function _x(l,i){return l.button===0&&(!i||i==="_self")&&!Cx(l)}var Gs=null;function Dx(){if(Gs===null)try{new FormData(document.createElement("form"),0),Gs=!1}catch{Gs=!0}return Gs}var zx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ho(l){return l!=null&&!zx.has(l)?(la(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zs}"`),null):l}function Mx(l,i){let u,r,o,f,h;if(wx(l)){let g=l.getAttribute("action");r=g?Ga(g,i):null,u=l.getAttribute("method")||Vs,o=Ho(l.getAttribute("enctype"))||Zs,f=new FormData(l)}else if(Ox(l)||jx(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||g.getAttribute("action");if(r=v?Ga(v,i):null,u=l.getAttribute("formmethod")||g.getAttribute("method")||Vs,o=Ho(l.getAttribute("formenctype"))||Ho(g.getAttribute("enctype"))||Zs,f=new FormData(g,l),!Dx()){let{name:y,type:b,value:x}=l;if(b==="image"){let j=y?`${y}.`:"";f.append(`${j}x`,"0"),f.append(`${j}y`,"0")}else y&&f.append(y,x)}}else{if(lr(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Vs,r=null,o=Zs,h=l}return f&&o==="text/plain"&&(h=f,f=void 0),{action:r,method:u.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bf(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Ux(l,i,u,r){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&Ga(o.pathname,i)==="/"?o.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function qx(l,i){if(l.id in i)return i[l.id];try{let u=await import(l.module);return i[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Lx(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Hx(l,i,u){let r=await Promise.all(l.map(async o=>{let f=i.routes[o.route.id];if(f){let h=await qx(f,u);return h.links?h.links():[]}return[]}));return Yx(r.flat(1).filter(Lx).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Wy(l,i,u,r,o,f){let h=(v,y)=>u[y]?v.route.id!==u[y].route.id:!0,g=(v,y)=>{var b;return u[y].pathname!==v.pathname||((b=u[y].route.path)==null?void 0:b.endsWith("*"))&&u[y].params["*"]!==v.params["*"]};return f==="assets"?i.filter((v,y)=>h(v,y)||g(v,y)):f==="data"?i.filter((v,y)=>{var x;let b=r.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(h(v,y)||g(v,y))return!0;if(v.route.shouldRevalidate){let j=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((x=u[0])==null?void 0:x.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof j=="boolean")return j}return!0}):[]}function Bx(l,i,{includeHydrateFallback:u}={}){return Qx(l.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),u&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function Qx(l){return[...new Set(l)]}function Gx(l){let i={},u=Object.keys(l).sort();for(let r of u)i[r]=l[r];return i}function Yx(l,i){let u=new Set;return new Set(i),l.reduce((r,o)=>{let f=JSON.stringify(Gx(o));return u.has(f)||(u.add(f),r.push({key:f,link:o})),r},[])}function t0(){let l=w.useContext(ui);return bf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Kx(){let l=w.useContext(nr);return bf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var xf=w.createContext(void 0);xf.displayName="FrameworkContext";function a0(){let l=w.useContext(xf);return bf(l,"You must render this element inside a <HydratedRouter> element"),l}function kx(l,i){let u=w.useContext(xf),[r,o]=w.useState(!1),[f,h]=w.useState(!1),{onFocus:g,onBlur:v,onMouseEnter:y,onMouseLeave:b,onTouchStart:x}=i,j=w.useRef(null);w.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let D=H=>{H.forEach(X=>{h(X.isIntersecting)})},O=new IntersectionObserver(D,{threshold:.5});return j.current&&O.observe(j.current),()=>{O.disconnect()}}},[l]),w.useEffect(()=>{if(r){let D=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(D)}}},[r]);let G=()=>{o(!0)},N=()=>{o(!1),h(!1)};return u?l!=="intent"?[f,j,{}]:[f,j,{onFocus:iu(g,G),onBlur:iu(v,N),onMouseEnter:iu(y,G),onMouseLeave:iu(b,N),onTouchStart:iu(x,G)}]:[!1,j,{}]}function iu(l,i){return u=>{l&&l(u),u.defaultPrevented||i(u)}}function Xx({page:l,...i}){let{router:u}=t0(),r=w.useMemo(()=>Gp(u.routes,l,u.basename),[u.routes,l,u.basename]);return r?w.createElement(Zx,{page:l,matches:r,...i}):null}function Vx(l){let{manifest:i,routeModules:u}=a0(),[r,o]=w.useState([]);return w.useEffect(()=>{let f=!1;return Hx(l,i,u).then(h=>{f||o(h)}),()=>{f=!0}},[l,i,u]),r}function Zx({page:l,matches:i,...u}){let r=ia(),{future:o,manifest:f,routeModules:h}=a0(),{basename:g}=t0(),{loaderData:v,matches:y}=Kx(),b=w.useMemo(()=>Wy(l,i,y,f,r,"data"),[l,i,y,f,r]),x=w.useMemo(()=>Wy(l,i,y,f,r,"assets"),[l,i,y,f,r]),j=w.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let D=new Set,O=!1;if(i.forEach(X=>{var k;let K=f.routes[X.route.id];!K||!K.hasLoader||(!b.some(F=>F.route.id===X.route.id)&&X.route.id in v&&((k=h[X.route.id])!=null&&k.shouldRevalidate)||K.hasClientLoader?O=!0:D.add(X.route.id))}),D.size===0)return[];let H=Ux(l,g,o.unstable_trailingSlashAwareDataRequests,"data");return O&&D.size>0&&H.searchParams.set("_routes",i.filter(X=>D.has(X.route.id)).map(X=>X.route.id).join(",")),[H.pathname+H.search]},[g,o.unstable_trailingSlashAwareDataRequests,v,r,f,b,i,l,h]),G=w.useMemo(()=>Bx(x,f),[x,f]),N=Vx(x);return w.createElement(w.Fragment,null,j.map(D=>w.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...u})),G.map(D=>w.createElement("link",{key:D,rel:"modulepreload",href:D,...u})),N.map(({key:D,link:O})=>w.createElement("link",{key:D,nonce:u.nonce,...O,crossOrigin:O.crossOrigin??u.crossOrigin})))}function Jx(...l){return i=>{l.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var Fx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fx&&(window.__reactRouterVersion="7.13.1")}catch{}function $x({basename:l,children:i,unstable_useTransitions:u,window:r}){let o=w.useRef();o.current==null&&(o.current=Ab({window:r,v5Compat:!0}));let f=o.current,[h,g]=w.useState({action:f.action,location:f.location}),v=w.useCallback(y=>{u===!1?g(y):w.startTransition(()=>g(y))},[u]);return w.useLayoutEffect(()=>f.listen(v),[f,v]),w.createElement(Nx,{basename:l,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:u})}var n0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pa=w.forwardRef(function({onClick:i,discover:u="render",prefetch:r="none",relative:o,reloadDocument:f,replace:h,unstable_mask:g,state:v,target:y,to:b,preventScrollReset:x,viewTransition:j,unstable_defaultShouldRevalidate:G,...N},D){let{basename:O,navigator:H,unstable_useTransitions:X}=w.useContext(Ht),K=typeof b=="string"&&n0.test(b),k=Xp(b,O);b=k.to;let F=ux(b,{relative:o}),ae=ia(),$=null;if(g){let _e=ar(g,[],ae.unstable_mask?ae.unstable_mask.pathname:"/",!0);O!=="/"&&(_e.pathname=_e.pathname==="/"?O:ya([O,_e.pathname])),$=H.createHref(_e)}let[le,fe,Oe]=kx(r,N),Qe=e1(b,{replace:h,unstable_mask:g,state:v,target:y,preventScrollReset:x,relative:o,viewTransition:j,unstable_defaultShouldRevalidate:G,unstable_useTransitions:X});function qe(_e){i&&i(_e),_e.defaultPrevented||Qe(_e)}let Ie=!(k.isExternal||f),Le=w.createElement("a",{...N,...Oe,href:(Ie?$:void 0)||k.absoluteURL||F,onClick:Ie?qe:i,ref:Jx(D,fe),target:y,"data-discover":!K&&u==="render"?"true":void 0});return le&&!K?w.createElement(w.Fragment,null,Le,w.createElement(Xx,{page:F})):Le});pa.displayName="Link";var Wx=w.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:r="",end:o=!1,style:f,to:h,viewTransition:g,children:v,...y},b){let x=pu(h,{relative:y.relative}),j=ia(),G=w.useContext(nr),{navigator:N,basename:D}=w.useContext(Ht),O=G!=null&&i1(x)&&g===!0,H=N.encodeLocation?N.encodeLocation(x).pathname:x.pathname,X=j.pathname,K=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;u||(X=X.toLowerCase(),K=K?K.toLowerCase():null,H=H.toLowerCase()),K&&D&&(K=Ga(K,D)||K);const k=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let F=X===H||!o&&X.startsWith(H)&&X.charAt(k)==="/",ae=K!=null&&(K===H||!o&&K.startsWith(H)&&K.charAt(H.length)==="/"),$={isActive:F,isPending:ae,isTransitioning:O},le=F?i:void 0,fe;typeof r=="function"?fe=r($):fe=[r,F?"active":null,ae?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let Oe=typeof f=="function"?f($):f;return w.createElement(pa,{...y,"aria-current":le,className:fe,ref:b,style:Oe,to:h,viewTransition:g},typeof v=="function"?v($):v)});Wx.displayName="NavLink";var Px=w.forwardRef(({discover:l="render",fetcherKey:i,navigate:u,reloadDocument:r,replace:o,state:f,method:h=Vs,action:g,onSubmit:v,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:j,...G},N)=>{let{unstable_useTransitions:D}=w.useContext(Ht),O=n1(),H=l1(g,{relative:y}),X=h.toLowerCase()==="get"?"get":"post",K=typeof g=="string"&&n0.test(g),k=F=>{if(v&&v(F),F.defaultPrevented)return;F.preventDefault();let ae=F.nativeEvent.submitter,$=(ae==null?void 0:ae.getAttribute("formmethod"))||h,le=()=>O(ae||F.currentTarget,{fetcherKey:i,method:$,navigate:u,replace:o,state:f,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:j});D&&u!==!1?w.startTransition(()=>le()):le()};return w.createElement("form",{ref:N,method:X,action:H,onSubmit:r?v:k,...G,"data-discover":!K&&l==="render"?"true":void 0})});Px.displayName="Form";function Ix(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l0(l){let i=w.useContext(ui);return Ye(i,Ix(l)),i}function e1(l,{target:i,replace:u,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:y}={}){let b=pf(),x=ia(),j=pu(l,{relative:h});return w.useCallback(G=>{if(_x(G,i)){G.preventDefault();let N=u!==void 0?u:ru(x)===ru(j),D=()=>b(l,{replace:N,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v});y?w.startTransition(()=>D()):D()}},[x,b,j,u,r,o,i,l,f,h,g,v,y])}var t1=0,a1=()=>`__${String(++t1)}__`;function n1(){let{router:l}=l0("useSubmit"),{basename:i}=w.useContext(Ht),u=xx(),r=l.fetch,o=l.navigate;return w.useCallback(async(f,h={})=>{let{action:g,method:v,encType:y,formData:b,body:x}=Mx(f,i);if(h.navigate===!1){let j=h.fetcherKey||a1();await r(j,u,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:x,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await o(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:x,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:u,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,i,u])}function l1(l,{relative:i}={}){let{basename:u}=w.useContext(Ht),r=w.useContext(Pt);Ye(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),f={...pu(l||".",{relative:i})},h=ia();if(l==null){f.search=h.search;let g=new URLSearchParams(f.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();f.search=b?`?${b}`:""}}return(!l||l===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:ya([u,f.pathname])),ru(f)}function i1(l,{relative:i}={}){let u=w.useContext(Zp);Ye(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=l0("useViewTransitionState"),o=pu(l,{relative:i});if(!u.isTransitioning)return!1;let f=Ga(u.currentLocation.pathname,r)||u.currentLocation.pathname,h=Ga(u.nextLocation.pathname,r)||u.nextLocation.pathname;return Ps(o.pathname,h)!=null||Ps(o.pathname,f)!=null}var ri=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},u1={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},pn,df,jp,s1=(jp=class{constructor(){te(this,pn,u1);te(this,df,!1)}setTimeoutProvider(l){J(this,pn,l)}setTimeout(l,i){return E(this,pn).setTimeout(l,i)}clearTimeout(l){E(this,pn).clearTimeout(l)}setInterval(l,i){return E(this,pn).setInterval(l,i)}clearInterval(l){E(this,pn).clearInterval(l)}},pn=new WeakMap,df=new WeakMap,jp),Zn=new s1;function r1(l){setTimeout(l,0)}var il=typeof window>"u"||"Deno"in globalThis;function pt(){}function c1(l,i){return typeof l=="function"?l(i):l}function Vo(l){return typeof l=="number"&&l>=0&&l!==1/0}function i0(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Nn(l,i){return typeof l=="function"?l(i):l}function Wt(l,i){return typeof l=="function"?l(i):l}function Py(l,i){const{type:u="all",exact:r,fetchStatus:o,predicate:f,queryKey:h,stale:g}=l;if(h){if(r){if(i.queryHash!==Sf(h,i.options))return!1}else if(!cu(i.queryKey,h))return!1}if(u!=="all"){const v=i.isActive();if(u==="active"&&!v||u==="inactive"&&v)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||o&&o!==i.state.fetchStatus||f&&!f(i))}function Iy(l,i){const{exact:u,status:r,predicate:o,mutationKey:f}=l;if(f){if(!i.options.mutationKey)return!1;if(u){if(ul(i.options.mutationKey)!==ul(f))return!1}else if(!cu(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||o&&!o(i))}function Sf(l,i){return((i==null?void 0:i.queryKeyHashFn)||ul)(l)}function ul(l){return JSON.stringify(l,(i,u)=>Zo(u)?Object.keys(u).sort().reduce((r,o)=>(r[o]=u[o],r),{}):u)}function cu(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(u=>cu(l[u],i[u])):!1}var o1=Object.prototype.hasOwnProperty;function u0(l,i,u=0){if(l===i)return l;if(u>500)return i;const r=ep(l)&&ep(i);if(!r&&!(Zo(l)&&Zo(i)))return i;const f=(r?l:Object.keys(l)).length,h=r?i:Object.keys(i),g=h.length,v=r?new Array(g):{};let y=0;for(let b=0;b<g;b++){const x=r?b:h[b],j=l[x],G=i[x];if(j===G){v[x]=j,(r?b<f:o1.call(l,x))&&y++;continue}if(j===null||G===null||typeof j!="object"||typeof G!="object"){v[x]=G;continue}const N=u0(j,G,u+1);v[x]=N,N===j&&y++}return f===g&&y===f?l:v}function Is(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const u in l)if(l[u]!==i[u])return!1;return!0}function ep(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Zo(l){if(!tp(l))return!1;const i=l.constructor;if(i===void 0)return!0;const u=i.prototype;return!(!tp(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function tp(l){return Object.prototype.toString.call(l)==="[object Object]"}function f1(l){return new Promise(i=>{Zn.setTimeout(i,l)})}function Jo(l,i,u){return typeof u.structuralSharing=="function"?u.structuralSharing(l,i):u.structuralSharing!==!1?u0(l,i):i}function d1(l,i,u=0){const r=[...l,i];return u&&r.length>u?r.slice(1):r}function h1(l,i,u=0){const r=[i,...l];return u&&r.length>u?r.slice(0,-1):r}var Ef=Symbol();function s0(l,i){return!l.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!l.queryFn||l.queryFn===Ef?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function Rf(l,i){return typeof l=="function"?l(...i):!!l}function m1(l,i,u){let r=!1,o;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??(o=i()),r||(r=!0,o.aborted?u():o.addEventListener("abort",u,{once:!0})),o)}),l}var Fn,gn,Vl,Cp,y1=(Cp=class extends ri{constructor(){super();te(this,Fn);te(this,gn);te(this,Vl);J(this,Vl,i=>{if(!il&&window.addEventListener){const u=()=>i();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}})}onSubscribe(){E(this,gn)||this.setEventListener(E(this,Vl))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,gn))==null||i.call(this),J(this,gn,void 0))}setEventListener(i){var u;J(this,Vl,i),(u=E(this,gn))==null||u.call(this),J(this,gn,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){E(this,Fn)!==i&&(J(this,Fn,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(u=>{u(i)})}isFocused(){var i;return typeof E(this,Fn)=="boolean"?E(this,Fn):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Fn=new WeakMap,gn=new WeakMap,Vl=new WeakMap,Cp),Tf=new y1;function Fo(){let l,i;const u=new Promise((o,f)=>{l=o,i=f});u.status="pending",u.catch(()=>{});function r(o){Object.assign(u,o),delete u.resolve,delete u.reject}return u.resolve=o=>{r({status:"fulfilled",value:o}),l(o)},u.reject=o=>{r({status:"rejected",reason:o}),i(o)},u}var p1=r1;function g1(){let l=[],i=0,u=g=>{g()},r=g=>{g()},o=p1;const f=g=>{i?l.push(g):o(()=>{u(g)})},h=()=>{const g=l;l=[],g.length&&o(()=>{r(()=>{g.forEach(v=>{u(v)})})})};return{batch:g=>{let v;i++;try{v=g()}finally{i--,i||h()}return v},batchCalls:g=>(...v)=>{f(()=>{g(...v)})},schedule:f,setNotifyFunction:g=>{u=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{o=g}}}var tt=g1(),Zl,vn,Jl,_p,v1=(_p=class extends ri{constructor(){super();te(this,Zl,!0);te(this,vn);te(this,Jl);J(this,Jl,i=>{if(!il&&window.addEventListener){const u=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,vn)||this.setEventListener(E(this,Jl))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,vn))==null||i.call(this),J(this,vn,void 0))}setEventListener(i){var u;J(this,Jl,i),(u=E(this,vn))==null||u.call(this),J(this,vn,i(this.setOnline.bind(this)))}setOnline(i){E(this,Zl)!==i&&(J(this,Zl,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return E(this,Zl)}},Zl=new WeakMap,vn=new WeakMap,Jl=new WeakMap,_p),er=new v1;function b1(l){return Math.min(1e3*2**l,3e4)}function r0(l){return(l??"online")==="online"?er.isOnline():!0}var $o=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function c0(l){let i=!1,u=0,r;const o=Fo(),f=()=>o.status!=="pending",h=D=>{var O;if(!f()){const H=new $o(D);j(H),(O=l.onCancel)==null||O.call(l,H)}},g=()=>{i=!0},v=()=>{i=!1},y=()=>Tf.isFocused()&&(l.networkMode==="always"||er.isOnline())&&l.canRun(),b=()=>r0(l.networkMode)&&l.canRun(),x=D=>{f()||(r==null||r(),o.resolve(D))},j=D=>{f()||(r==null||r(),o.reject(D))},G=()=>new Promise(D=>{var O;r=H=>{(f()||y())&&D(H)},(O=l.onPause)==null||O.call(l)}).then(()=>{var D;r=void 0,f()||(D=l.onContinue)==null||D.call(l)}),N=()=>{if(f())return;let D;const O=u===0?l.initialPromise:void 0;try{D=O??l.fn()}catch(H){D=Promise.reject(H)}Promise.resolve(D).then(x).catch(H=>{var ae;if(f())return;const X=l.retry??(il?0:3),K=l.retryDelay??b1,k=typeof K=="function"?K(u,H):K,F=X===!0||typeof X=="number"&&u<X||typeof X=="function"&&X(u,H);if(i||!F){j(H);return}u++,(ae=l.onFail)==null||ae.call(l,u,H),f1(k).then(()=>y()?void 0:G()).then(()=>{i?j(H):N()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:g,continueRetry:v,canStart:b,start:()=>(b()?N():G().then(N),o)}}var $n,Dp,o0=(Dp=class{constructor(){te(this,$n)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vo(this.gcTime)&&J(this,$n,Zn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(il?1/0:300*1e3))}clearGcTimeout(){E(this,$n)&&(Zn.clearTimeout(E(this,$n)),J(this,$n,void 0))}},$n=new WeakMap,Dp),Wn,Fl,$t,Pn,lt,ou,In,aa,Ua,zp,x1=(zp=class extends o0{constructor(i){super();te(this,aa);te(this,Wn);te(this,Fl);te(this,$t);te(this,Pn);te(this,lt);te(this,ou);te(this,In);J(this,In,!1),J(this,ou,i.defaultOptions),this.setOptions(i.options),this.observers=[],J(this,Pn,i.client),J(this,$t,E(this,Pn).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,J(this,Wn,np(this.options)),this.state=i.state??E(this,Wn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=E(this,lt))==null?void 0:i.promise}setOptions(i){if(this.options={...E(this,ou),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=np(this.options);u.data!==void 0&&(this.setState(ap(u.data,u.dataUpdatedAt)),J(this,Wn,u))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,$t).remove(this)}setData(i,u){const r=Jo(this.state.data,i,this.options);return de(this,aa,Ua).call(this,{data:r,type:"success",dataUpdatedAt:u==null?void 0:u.updatedAt,manual:u==null?void 0:u.manual}),r}setState(i,u){de(this,aa,Ua).call(this,{type:"setState",state:i,setStateOptions:u})}cancel(i){var r,o;const u=(r=E(this,lt))==null?void 0:r.promise;return(o=E(this,lt))==null||o.cancel(i),u?u.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,Wn))}isActive(){return this.observers.some(i=>Wt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ef||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Nn(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:!i0(this.state.dataUpdatedAt,i)}onFocus(){var u;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(u=E(this,lt))==null||u.continue()}onOnline(){var u;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(u=E(this,lt))==null||u.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),E(this,$t).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(u=>u!==i),this.observers.length||(E(this,lt)&&(E(this,In)?E(this,lt).cancel({revert:!0}):E(this,lt).cancelRetry()),this.scheduleGc()),E(this,$t).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,aa,Ua).call(this,{type:"invalidate"})}async fetch(i,u){var v,y,b,x,j,G,N,D,O,H,X,K;if(this.state.fetchStatus!=="idle"&&((v=E(this,lt))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(u!=null&&u.cancelRefetch))this.cancel({silent:!0});else if(E(this,lt))return E(this,lt).continueRetry(),E(this,lt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const k=this.observers.find(F=>F.options.queryFn);k&&this.setOptions(k.options)}const r=new AbortController,o=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(J(this,In,!0),r.signal)})},f=()=>{const k=s0(this.options,u),ae=(()=>{const $={client:E(this,Pn),queryKey:this.queryKey,meta:this.meta};return o($),$})();return J(this,In,!1),this.options.persister?this.options.persister(k,ae,this):k(ae)},g=(()=>{const k={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:E(this,Pn),state:this.state,fetchFn:f};return o(k),k})();(y=this.options.behavior)==null||y.onFetch(g,this),J(this,Fl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=g.fetchOptions)==null?void 0:b.meta))&&de(this,aa,Ua).call(this,{type:"fetch",meta:(x=g.fetchOptions)==null?void 0:x.meta}),J(this,lt,c0({initialPromise:u==null?void 0:u.initialPromise,fn:g.fetchFn,onCancel:k=>{k instanceof $o&&k.revert&&this.setState({...E(this,Fl),fetchStatus:"idle"}),r.abort()},onFail:(k,F)=>{de(this,aa,Ua).call(this,{type:"failed",failureCount:k,error:F})},onPause:()=>{de(this,aa,Ua).call(this,{type:"pause"})},onContinue:()=>{de(this,aa,Ua).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const k=await E(this,lt).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(G=(j=E(this,$t).config).onSuccess)==null||G.call(j,k,this),(D=(N=E(this,$t).config).onSettled)==null||D.call(N,k,this.state.error,this),k}catch(k){if(k instanceof $o){if(k.silent)return E(this,lt).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw de(this,aa,Ua).call(this,{type:"error",error:k}),(H=(O=E(this,$t).config).onError)==null||H.call(O,k,this),(K=(X=E(this,$t).config).onSettled)==null||K.call(X,this.state.data,k,this),k}finally{this.scheduleGc()}}},Wn=new WeakMap,Fl=new WeakMap,$t=new WeakMap,Pn=new WeakMap,lt=new WeakMap,ou=new WeakMap,In=new WeakMap,aa=new WeakSet,Ua=function(i){const u=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...f0(r.data,this.options),fetchMeta:i.meta??null};case"success":const o={...r,...ap(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,Fl,i.manual?o:void 0),o;case"error":const f=i.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=u(this.state),tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,$t).notify({query:this,type:"updated",action:i})})},zp);function f0(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:r0(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function ap(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function np(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,u=i!==void 0,r=u?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:u?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var Tt,be,fu,yt,el,$l,qa,bn,du,Wl,Pl,tl,al,xn,Il,Ae,su,Wo,Po,Io,ef,tf,af,nf,d0,Mp,S1=(Mp=class extends ri{constructor(i,u){super();te(this,Ae);te(this,Tt);te(this,be);te(this,fu);te(this,yt);te(this,el);te(this,$l);te(this,qa);te(this,bn);te(this,du);te(this,Wl);te(this,Pl);te(this,tl);te(this,al);te(this,xn);te(this,Il,new Set);this.options=u,J(this,Tt,i),J(this,bn,null),J(this,qa,Fo()),this.bindMethods(),this.setOptions(u)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,be).addObserver(this),lp(E(this,be),this.options)?de(this,Ae,su).call(this):this.updateResult(),de(this,Ae,ef).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lf(E(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lf(E(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,Ae,tf).call(this),de(this,Ae,af).call(this),E(this,be).removeObserver(this)}setOptions(i){const u=this.options,r=E(this,be);if(this.options=E(this,Tt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wt(this.options.enabled,E(this,be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,Ae,nf).call(this),E(this,be).setOptions(this.options),u._defaulted&&!Is(this.options,u)&&E(this,Tt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,be),observer:this});const o=this.hasListeners();o&&ip(E(this,be),r,this.options,u)&&de(this,Ae,su).call(this),this.updateResult(),o&&(E(this,be)!==r||Wt(this.options.enabled,E(this,be))!==Wt(u.enabled,E(this,be))||Nn(this.options.staleTime,E(this,be))!==Nn(u.staleTime,E(this,be)))&&de(this,Ae,Wo).call(this);const f=de(this,Ae,Po).call(this);o&&(E(this,be)!==r||Wt(this.options.enabled,E(this,be))!==Wt(u.enabled,E(this,be))||f!==E(this,xn))&&de(this,Ae,Io).call(this,f)}getOptimisticResult(i){const u=E(this,Tt).getQueryCache().build(E(this,Tt),i),r=this.createResult(u,i);return R1(this,r)&&(J(this,yt,r),J(this,$l,this.options),J(this,el,E(this,be).state)),r}getCurrentResult(){return E(this,yt)}trackResult(i,u){return new Proxy(i,{get:(r,o)=>(this.trackProp(o),u==null||u(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,qa).status==="pending"&&E(this,qa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(i){E(this,Il).add(i)}getCurrentQuery(){return E(this,be)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const u=E(this,Tt).defaultQueryOptions(i),r=E(this,Tt).getQueryCache().build(E(this,Tt),u);return r.fetch().then(()=>this.createResult(r,u))}fetch(i){return de(this,Ae,su).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,yt)))}createResult(i,u){var fe;const r=E(this,be),o=this.options,f=E(this,yt),h=E(this,el),g=E(this,$l),y=i!==r?i.state:E(this,fu),{state:b}=i;let x={...b},j=!1,G;if(u._optimisticResults){const Oe=this.hasListeners(),Qe=!Oe&&lp(i,u),qe=Oe&&ip(i,r,u,o);(Qe||qe)&&(x={...x,...f0(b.data,i.options)}),u._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:N,errorUpdatedAt:D,status:O}=x;G=x.data;let H=!1;if(u.placeholderData!==void 0&&G===void 0&&O==="pending"){let Oe;f!=null&&f.isPlaceholderData&&u.placeholderData===(g==null?void 0:g.placeholderData)?(Oe=f.data,H=!0):Oe=typeof u.placeholderData=="function"?u.placeholderData((fe=E(this,Pl))==null?void 0:fe.state.data,E(this,Pl)):u.placeholderData,Oe!==void 0&&(O="success",G=Jo(f==null?void 0:f.data,Oe,u),j=!0)}if(u.select&&G!==void 0&&!H)if(f&&G===(h==null?void 0:h.data)&&u.select===E(this,du))G=E(this,Wl);else try{J(this,du,u.select),G=u.select(G),G=Jo(f==null?void 0:f.data,G,u),J(this,Wl,G),J(this,bn,null)}catch(Oe){J(this,bn,Oe)}E(this,bn)&&(N=E(this,bn),G=E(this,Wl),D=Date.now(),O="error");const X=x.fetchStatus==="fetching",K=O==="pending",k=O==="error",F=K&&X,ae=G!==void 0,le={status:O,fetchStatus:x.fetchStatus,isPending:K,isSuccess:O==="success",isError:k,isInitialLoading:F,isLoading:F,data:G,dataUpdatedAt:x.dataUpdatedAt,error:N,errorUpdatedAt:D,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>y.dataUpdateCount||x.errorUpdateCount>y.errorUpdateCount,isFetching:X,isRefetching:X&&!K,isLoadingError:k&&!ae,isPaused:x.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:k&&ae,isStale:Nf(i,u),refetch:this.refetch,promise:E(this,qa),isEnabled:Wt(u.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Oe=le.data!==void 0,Qe=le.status==="error"&&!Oe,qe=_e=>{Qe?_e.reject(le.error):Oe&&_e.resolve(le.data)},Ie=()=>{const _e=J(this,qa,le.promise=Fo());qe(_e)},Le=E(this,qa);switch(Le.status){case"pending":i.queryHash===r.queryHash&&qe(Le);break;case"fulfilled":(Qe||le.data!==Le.value)&&Ie();break;case"rejected":(!Qe||le.error!==Le.reason)&&Ie();break}}return le}updateResult(){const i=E(this,yt),u=this.createResult(E(this,be),this.options);if(J(this,el,E(this,be).state),J(this,$l,this.options),E(this,el).data!==void 0&&J(this,Pl,E(this,be)),Is(u,i))return;J(this,yt,u);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!E(this,Il).size)return!0;const h=new Set(f??E(this,Il));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,yt)).some(g=>{const v=g;return E(this,yt)[v]!==i[v]&&h.has(v)})};de(this,Ae,d0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,Ae,ef).call(this)}},Tt=new WeakMap,be=new WeakMap,fu=new WeakMap,yt=new WeakMap,el=new WeakMap,$l=new WeakMap,qa=new WeakMap,bn=new WeakMap,du=new WeakMap,Wl=new WeakMap,Pl=new WeakMap,tl=new WeakMap,al=new WeakMap,xn=new WeakMap,Il=new WeakMap,Ae=new WeakSet,su=function(i){de(this,Ae,nf).call(this);let u=E(this,be).fetch(this.options,i);return i!=null&&i.throwOnError||(u=u.catch(pt)),u},Wo=function(){de(this,Ae,tf).call(this);const i=Nn(this.options.staleTime,E(this,be));if(il||E(this,yt).isStale||!Vo(i))return;const r=i0(E(this,yt).dataUpdatedAt,i)+1;J(this,tl,Zn.setTimeout(()=>{E(this,yt).isStale||this.updateResult()},r))},Po=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,be)):this.options.refetchInterval)??!1},Io=function(i){de(this,Ae,af).call(this),J(this,xn,i),!(il||Wt(this.options.enabled,E(this,be))===!1||!Vo(E(this,xn))||E(this,xn)===0)&&J(this,al,Zn.setInterval(()=>{(this.options.refetchIntervalInBackground||Tf.isFocused())&&de(this,Ae,su).call(this)},E(this,xn)))},ef=function(){de(this,Ae,Wo).call(this),de(this,Ae,Io).call(this,de(this,Ae,Po).call(this))},tf=function(){E(this,tl)&&(Zn.clearTimeout(E(this,tl)),J(this,tl,void 0))},af=function(){E(this,al)&&(Zn.clearInterval(E(this,al)),J(this,al,void 0))},nf=function(){const i=E(this,Tt).getQueryCache().build(E(this,Tt),this.options);if(i===E(this,be))return;const u=E(this,be);J(this,be,i),J(this,fu,i.state),this.hasListeners()&&(u==null||u.removeObserver(this),i.addObserver(this))},d0=function(i){tt.batch(()=>{i.listeners&&this.listeners.forEach(u=>{u(E(this,yt))}),E(this,Tt).getQueryCache().notify({query:E(this,be),type:"observerResultsUpdated"})})},Mp);function E1(l,i){return Wt(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&i.retryOnMount===!1)}function lp(l,i){return E1(l,i)||l.state.data!==void 0&&lf(l,i,i.refetchOnMount)}function lf(l,i,u){if(Wt(i.enabled,l)!==!1&&Nn(i.staleTime,l)!=="static"){const r=typeof u=="function"?u(l):u;return r==="always"||r!==!1&&Nf(l,i)}return!1}function ip(l,i,u,r){return(l!==i||Wt(r.enabled,l)===!1)&&(!u.suspense||l.state.status!=="error")&&Nf(l,u)}function Nf(l,i){return Wt(i.enabled,l)!==!1&&l.isStaleByTime(Nn(i.staleTime,l))}function R1(l,i){return!Is(l.getCurrentResult(),i)}function up(l){return{onFetch:(i,u)=>{var b,x,j,G,N;const r=i.options,o=(j=(x=(b=i.fetchOptions)==null?void 0:b.meta)==null?void 0:x.fetchMore)==null?void 0:j.direction,f=((G=i.state.data)==null?void 0:G.pages)||[],h=((N=i.state.data)==null?void 0:N.pageParams)||[];let g={pages:[],pageParams:[]},v=0;const y=async()=>{let D=!1;const O=K=>{m1(K,()=>i.signal,()=>D=!0)},H=s0(i.options,i.fetchOptions),X=async(K,k,F)=>{if(D)return Promise.reject();if(k==null&&K.pages.length)return Promise.resolve(K);const $=(()=>{const Qe={client:i.client,queryKey:i.queryKey,pageParam:k,direction:F?"backward":"forward",meta:i.options.meta};return O(Qe),Qe})(),le=await H($),{maxPages:fe}=i.options,Oe=F?h1:d1;return{pages:Oe(K.pages,le,fe),pageParams:Oe(K.pageParams,k,fe)}};if(o&&f.length){const K=o==="backward",k=K?T1:sp,F={pages:f,pageParams:h},ae=k(r,F);g=await X(F,ae,K)}else{const K=l??f.length;do{const k=v===0?h[0]??r.initialPageParam:sp(r,g);if(v>0&&k==null)break;g=await X(g,k),v++}while(v<K)}return g};i.options.persister?i.fetchFn=()=>{var D,O;return(O=(D=i.options).persister)==null?void 0:O.call(D,y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},u)}:i.fetchFn=y}}}function sp(l,{pages:i,pageParams:u}){const r=i.length-1;return i.length>0?l.getNextPageParam(i[r],i,u[r],u):void 0}function T1(l,{pages:i,pageParams:u}){var r;return i.length>0?(r=l.getPreviousPageParam)==null?void 0:r.call(l,i[0],i,u[0],u):void 0}var hu,da,ft,nl,ha,yn,Up,N1=(Up=class extends o0{constructor(i){super();te(this,ha);te(this,hu);te(this,da);te(this,ft);te(this,nl);J(this,hu,i.client),this.mutationId=i.mutationId,J(this,ft,i.mutationCache),J(this,da,[]),this.state=i.state||h0(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){E(this,da).includes(i)||(E(this,da).push(i),this.clearGcTimeout(),E(this,ft).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){J(this,da,E(this,da).filter(u=>u!==i)),this.scheduleGc(),E(this,ft).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){E(this,da).length||(this.state.status==="pending"?this.scheduleGc():E(this,ft).remove(this))}continue(){var i;return((i=E(this,nl))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var h,g,v,y,b,x,j,G,N,D,O,H,X,K,k,F,ae,$;const u=()=>{de(this,ha,yn).call(this,{type:"continue"})},r={client:E(this,hu),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,nl,c0({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(le,fe)=>{de(this,ha,yn).call(this,{type:"failed",failureCount:le,error:fe})},onPause:()=>{de(this,ha,yn).call(this,{type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,ft).canRun(this)}));const o=this.state.status==="pending",f=!E(this,nl).canStart();try{if(o)u();else{de(this,ha,yn).call(this,{type:"pending",variables:i,isPaused:f}),E(this,ft).config.onMutate&&await E(this,ft).config.onMutate(i,this,r);const fe=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,i,r));fe!==this.state.context&&de(this,ha,yn).call(this,{type:"pending",context:fe,variables:i,isPaused:f})}const le=await E(this,nl).start();return await((y=(v=E(this,ft).config).onSuccess)==null?void 0:y.call(v,le,i,this.state.context,this,r)),await((x=(b=this.options).onSuccess)==null?void 0:x.call(b,le,i,this.state.context,r)),await((G=(j=E(this,ft).config).onSettled)==null?void 0:G.call(j,le,null,this.state.variables,this.state.context,this,r)),await((D=(N=this.options).onSettled)==null?void 0:D.call(N,le,null,i,this.state.context,r)),de(this,ha,yn).call(this,{type:"success",data:le}),le}catch(le){try{await((H=(O=E(this,ft).config).onError)==null?void 0:H.call(O,le,i,this.state.context,this,r))}catch(fe){Promise.reject(fe)}try{await((K=(X=this.options).onError)==null?void 0:K.call(X,le,i,this.state.context,r))}catch(fe){Promise.reject(fe)}try{await((F=(k=E(this,ft).config).onSettled)==null?void 0:F.call(k,void 0,le,this.state.variables,this.state.context,this,r))}catch(fe){Promise.reject(fe)}try{await(($=(ae=this.options).onSettled)==null?void 0:$.call(ae,void 0,le,i,this.state.context,r))}catch(fe){Promise.reject(fe)}throw de(this,ha,yn).call(this,{type:"error",error:le}),le}finally{E(this,ft).runNext(this)}}},hu=new WeakMap,da=new WeakMap,ft=new WeakMap,nl=new WeakMap,ha=new WeakSet,yn=function(i){const u=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=u(this.state),tt.batch(()=>{E(this,da).forEach(r=>{r.onMutationUpdate(i)}),E(this,ft).notify({mutation:this,type:"updated",action:i})})},Up);function h0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var La,na,mu,qp,A1=(qp=class extends ri{constructor(i={}){super();te(this,La);te(this,na);te(this,mu);this.config=i,J(this,La,new Set),J(this,na,new Map),J(this,mu,0)}build(i,u,r){const o=new N1({client:i,mutationCache:this,mutationId:++Qs(this,mu)._,options:i.defaultMutationOptions(u),state:r});return this.add(o),o}add(i){E(this,La).add(i);const u=Ys(i);if(typeof u=="string"){const r=E(this,na).get(u);r?r.push(i):E(this,na).set(u,[i])}this.notify({type:"added",mutation:i})}remove(i){if(E(this,La).delete(i)){const u=Ys(i);if(typeof u=="string"){const r=E(this,na).get(u);if(r)if(r.length>1){const o=r.indexOf(i);o!==-1&&r.splice(o,1)}else r[0]===i&&E(this,na).delete(u)}}this.notify({type:"removed",mutation:i})}canRun(i){const u=Ys(i);if(typeof u=="string"){const r=E(this,na).get(u),o=r==null?void 0:r.find(f=>f.state.status==="pending");return!o||o===i}else return!0}runNext(i){var r;const u=Ys(i);if(typeof u=="string"){const o=(r=E(this,na).get(u))==null?void 0:r.find(f=>f!==i&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{E(this,La).forEach(i=>{this.notify({type:"removed",mutation:i})}),E(this,La).clear(),E(this,na).clear()})}getAll(){return Array.from(E(this,La))}find(i){const u={exact:!0,...i};return this.getAll().find(r=>Iy(u,r))}findAll(i={}){return this.getAll().filter(u=>Iy(i,u))}notify(i){tt.batch(()=>{this.listeners.forEach(u=>{u(i)})})}resumePausedMutations(){const i=this.getAll().filter(u=>u.state.isPaused);return tt.batch(()=>Promise.all(i.map(u=>u.continue().catch(pt))))}},La=new WeakMap,na=new WeakMap,mu=new WeakMap,qp);function Ys(l){var i;return(i=l.options.scope)==null?void 0:i.id}var Ha,Sn,Nt,Ba,Qa,Js,uf,Lp,O1=(Lp=class extends ri{constructor(u,r){super();te(this,Qa);te(this,Ha);te(this,Sn);te(this,Nt);te(this,Ba);J(this,Ha,u),this.setOptions(r),this.bindMethods(),de(this,Qa,Js).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(u){var o;const r=this.options;this.options=E(this,Ha).defaultMutationOptions(u),Is(this.options,r)||E(this,Ha).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Nt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ul(r.mutationKey)!==ul(this.options.mutationKey)?this.reset():((o=E(this,Nt))==null?void 0:o.state.status)==="pending"&&E(this,Nt).setOptions(this.options)}onUnsubscribe(){var u;this.hasListeners()||(u=E(this,Nt))==null||u.removeObserver(this)}onMutationUpdate(u){de(this,Qa,Js).call(this),de(this,Qa,uf).call(this,u)}getCurrentResult(){return E(this,Sn)}reset(){var u;(u=E(this,Nt))==null||u.removeObserver(this),J(this,Nt,void 0),de(this,Qa,Js).call(this),de(this,Qa,uf).call(this)}mutate(u,r){var o;return J(this,Ba,r),(o=E(this,Nt))==null||o.removeObserver(this),J(this,Nt,E(this,Ha).getMutationCache().build(E(this,Ha),this.options)),E(this,Nt).addObserver(this),E(this,Nt).execute(u)}},Ha=new WeakMap,Sn=new WeakMap,Nt=new WeakMap,Ba=new WeakMap,Qa=new WeakSet,Js=function(){var r;const u=((r=E(this,Nt))==null?void 0:r.state)??h0();J(this,Sn,{...u,isPending:u.status==="pending",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset})},uf=function(u){tt.batch(()=>{var r,o,f,h,g,v,y,b;if(E(this,Ba)&&this.hasListeners()){const x=E(this,Sn).variables,j=E(this,Sn).context,G={client:E(this,Ha),meta:this.options.meta,mutationKey:this.options.mutationKey};if((u==null?void 0:u.type)==="success"){try{(o=(r=E(this,Ba)).onSuccess)==null||o.call(r,u.data,x,j,G)}catch(N){Promise.reject(N)}try{(h=(f=E(this,Ba)).onSettled)==null||h.call(f,u.data,null,x,j,G)}catch(N){Promise.reject(N)}}else if((u==null?void 0:u.type)==="error"){try{(v=(g=E(this,Ba)).onError)==null||v.call(g,u.error,x,j,G)}catch(N){Promise.reject(N)}try{(b=(y=E(this,Ba)).onSettled)==null||b.call(y,void 0,u.error,x,j,G)}catch(N){Promise.reject(N)}}}this.listeners.forEach(x=>{x(E(this,Sn))})})},Lp),ma,Hp,w1=(Hp=class extends ri{constructor(i={}){super();te(this,ma);this.config=i,J(this,ma,new Map)}build(i,u,r){const o=u.queryKey,f=u.queryHash??Sf(o,u);let h=this.get(f);return h||(h=new x1({client:i,queryKey:o,queryHash:f,options:i.defaultQueryOptions(u),state:r,defaultOptions:i.getQueryDefaults(o)}),this.add(h)),h}add(i){E(this,ma).has(i.queryHash)||(E(this,ma).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const u=E(this,ma).get(i.queryHash);u&&(i.destroy(),u===i&&E(this,ma).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){tt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return E(this,ma).get(i)}getAll(){return[...E(this,ma).values()]}find(i){const u={exact:!0,...i};return this.getAll().find(r=>Py(u,r))}findAll(i={}){const u=this.getAll();return Object.keys(i).length>0?u.filter(r=>Py(i,r)):u}notify(i){tt.batch(()=>{this.listeners.forEach(u=>{u(i)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},ma=new WeakMap,Hp),Xe,En,Rn,ei,ti,Tn,ai,ni,Bp,j1=(Bp=class{constructor(l={}){te(this,Xe);te(this,En);te(this,Rn);te(this,ei);te(this,ti);te(this,Tn);te(this,ai);te(this,ni);J(this,Xe,l.queryCache||new w1),J(this,En,l.mutationCache||new A1),J(this,Rn,l.defaultOptions||{}),J(this,ei,new Map),J(this,ti,new Map),J(this,Tn,0)}mount(){Qs(this,Tn)._++,E(this,Tn)===1&&(J(this,ai,Tf.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,Xe).onFocus())})),J(this,ni,er.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,Xe).onOnline())})))}unmount(){var l,i;Qs(this,Tn)._--,E(this,Tn)===0&&((l=E(this,ai))==null||l.call(this),J(this,ai,void 0),(i=E(this,ni))==null||i.call(this),J(this,ni,void 0))}isFetching(l){return E(this,Xe).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return E(this,En).findAll({...l,status:"pending"}).length}getQueryData(l){var u;const i=this.defaultQueryOptions({queryKey:l});return(u=E(this,Xe).get(i.queryHash))==null?void 0:u.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),u=E(this,Xe).build(this,i),r=u.state.data;return r===void 0?this.fetchQuery(l):(l.revalidateIfStale&&u.isStaleByTime(Nn(i.staleTime,u))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(l){return E(this,Xe).findAll(l).map(({queryKey:i,state:u})=>{const r=u.data;return[i,r]})}setQueryData(l,i,u){const r=this.defaultQueryOptions({queryKey:l}),o=E(this,Xe).get(r.queryHash),f=o==null?void 0:o.state.data,h=c1(i,f);if(h!==void 0)return E(this,Xe).build(this,r).setData(h,{...u,manual:!0})}setQueriesData(l,i,u){return tt.batch(()=>E(this,Xe).findAll(l).map(({queryKey:r})=>[r,this.setQueryData(r,i,u)]))}getQueryState(l){var u;const i=this.defaultQueryOptions({queryKey:l});return(u=E(this,Xe).get(i.queryHash))==null?void 0:u.state}removeQueries(l){const i=E(this,Xe);tt.batch(()=>{i.findAll(l).forEach(u=>{i.remove(u)})})}resetQueries(l,i){const u=E(this,Xe);return tt.batch(()=>(u.findAll(l).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const u={revert:!0,...i},r=tt.batch(()=>E(this,Xe).findAll(l).map(o=>o.cancel(u)));return Promise.all(r).then(pt).catch(pt)}invalidateQueries(l,i={}){return tt.batch(()=>(E(this,Xe).findAll(l).forEach(u=>{u.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},i)))}refetchQueries(l,i={}){const u={...i,cancelRefetch:i.cancelRefetch??!0},r=tt.batch(()=>E(this,Xe).findAll(l).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,u);return u.throwOnError||(f=f.catch(pt)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(pt)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const u=E(this,Xe).build(this,i);return u.isStaleByTime(Nn(i.staleTime,u))?u.fetch(i):Promise.resolve(u.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(pt).catch(pt)}fetchInfiniteQuery(l){return l.behavior=up(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(pt).catch(pt)}ensureInfiniteQueryData(l){return l.behavior=up(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return er.isOnline()?E(this,En).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Xe)}getMutationCache(){return E(this,En)}getDefaultOptions(){return E(this,Rn)}setDefaultOptions(l){J(this,Rn,l)}setQueryDefaults(l,i){E(this,ei).set(ul(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...E(this,ei).values()],u={};return i.forEach(r=>{cu(l,r.queryKey)&&Object.assign(u,r.defaultOptions)}),u}setMutationDefaults(l,i){E(this,ti).set(ul(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...E(this,ti).values()],u={};return i.forEach(r=>{cu(l,r.mutationKey)&&Object.assign(u,r.defaultOptions)}),u}defaultQueryOptions(l){if(l._defaulted)return l;const i={...E(this,Rn).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=Sf(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===Ef&&(i.enabled=!1),i}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...E(this,Rn).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){E(this,Xe).clear(),E(this,En).clear()}},Xe=new WeakMap,En=new WeakMap,Rn=new WeakMap,ei=new WeakMap,ti=new WeakMap,Tn=new WeakMap,ai=new WeakMap,ni=new WeakMap,Bp),m0=w.createContext(void 0),y0=l=>{const i=w.useContext(m0);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},C1=({client:l,children:i})=>(w.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),m.jsx(m0.Provider,{value:l,children:i})),p0=w.createContext(!1),_1=()=>w.useContext(p0);p0.Provider;function D1(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var z1=w.createContext(D1()),M1=()=>w.useContext(z1),U1=(l,i,u)=>{const r=u!=null&&u.state.error&&typeof l.throwOnError=="function"?Rf(l.throwOnError,[u.state.error,u]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||r)&&(i.isReset()||(l.retryOnMount=!1))},q1=l=>{w.useEffect(()=>{l.clearReset()},[l])},L1=({result:l,errorResetBoundary:i,throwOnError:u,query:r,suspense:o})=>l.isError&&!i.isReset()&&!l.isFetching&&r&&(o&&l.data===void 0||Rf(u,[l.error,r])),H1=l=>{if(l.suspense){const u=o=>o==="static"?o:Math.max(o??1e3,1e3),r=l.staleTime;l.staleTime=typeof r=="function"?(...o)=>u(r(...o)):u(r),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},B1=(l,i)=>l.isLoading&&l.isFetching&&!i,Q1=(l,i)=>(l==null?void 0:l.suspense)&&i.isPending,rp=(l,i,u)=>i.fetchOptimistic(l).catch(()=>{u.clearReset()});function G1(l,i,u){var j,G,N,D;const r=_1(),o=M1(),f=y0(),h=f.defaultQueryOptions(l);(G=(j=f.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||G.call(j,h);const g=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",H1(h),U1(h,o,g),q1(o);const v=!f.getQueryCache().get(h.queryHash),[y]=w.useState(()=>new i(f,h)),b=y.getOptimisticResult(h),x=!r&&l.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(O=>{const H=x?y.subscribe(tt.batchCalls(O)):pt;return y.updateResult(),H},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),w.useEffect(()=>{y.setOptions(h)},[h,y]),Q1(h,b))throw rp(h,y,o);if(L1({result:b,errorResetBoundary:o,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw b.error;if((D=(N=f.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||D.call(N,h,b),h.experimental_prefetchInRender&&!il&&B1(b,r)){const O=v?rp(h,y,o):g==null?void 0:g.promise;O==null||O.catch(pt).finally(()=>{y.updateResult()})}return h.notifyOnChangeProps?b:y.trackResult(b)}function Ya(l,i){return G1(l,S1)}function Af(l,i){const u=y0(),[r]=w.useState(()=>new O1(u,l));w.useEffect(()=>{r.setOptions(l)},[r,l]);const o=w.useSyncExternalStore(w.useCallback(h=>r.subscribe(tt.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=w.useCallback((h,g)=>{r.mutate(h,g).catch(pt)},[r]);if(o.error&&Rf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}function g0(l,i){return function(){return l.apply(i,arguments)}}const{toString:Y1}=Object.prototype,{getPrototypeOf:Of}=Object,{iterator:ir,toStringTag:v0}=Symbol,ur=(l=>i=>{const u=Y1.call(i);return l[u]||(l[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),ua=l=>(l=l.toLowerCase(),i=>ur(i)===l),sr=l=>i=>typeof i===l,{isArray:ci}=Array,li=sr("undefined");function gu(l){return l!==null&&!li(l)&&l.constructor!==null&&!li(l.constructor)&&At(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const b0=ua("ArrayBuffer");function K1(l){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(l):i=l&&l.buffer&&b0(l.buffer),i}const k1=sr("string"),At=sr("function"),x0=sr("number"),vu=l=>l!==null&&typeof l=="object",X1=l=>l===!0||l===!1,Fs=l=>{if(ur(l)!=="object")return!1;const i=Of(l);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(v0 in l)&&!(ir in l)},V1=l=>{if(!vu(l)||gu(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},Z1=ua("Date"),J1=ua("File"),F1=l=>!!(l&&typeof l.uri<"u"),$1=l=>l&&typeof l.getParts<"u",W1=ua("Blob"),P1=ua("FileList"),I1=l=>vu(l)&&At(l.pipe);function eS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const cp=eS(),op=typeof cp.FormData<"u"?cp.FormData:void 0,tS=l=>{let i;return l&&(op&&l instanceof op||At(l.append)&&((i=ur(l))==="formdata"||i==="object"&&At(l.toString)&&l.toString()==="[object FormData]"))},aS=ua("URLSearchParams"),[nS,lS,iS,uS]=["ReadableStream","Request","Response","Headers"].map(ua),sS=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function bu(l,i,{allOwnKeys:u=!1}={}){if(l===null||typeof l>"u")return;let r,o;if(typeof l!="object"&&(l=[l]),ci(l))for(r=0,o=l.length;r<o;r++)i.call(null,l[r],r,l);else{if(gu(l))return;const f=u?Object.getOwnPropertyNames(l):Object.keys(l),h=f.length;let g;for(r=0;r<h;r++)g=f[r],i.call(null,l[g],g,l)}}function S0(l,i){if(gu(l))return null;i=i.toLowerCase();const u=Object.keys(l);let r=u.length,o;for(;r-- >0;)if(o=u[r],i===o.toLowerCase())return o;return null}const Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,E0=l=>!li(l)&&l!==Jn;function sf(){const{caseless:l,skipUndefined:i}=E0(this)&&this||{},u={},r=(o,f)=>{if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=l&&S0(u,f)||f;Fs(u[h])&&Fs(o)?u[h]=sf(u[h],o):Fs(o)?u[h]=sf({},o):ci(o)?u[h]=o.slice():(!i||!li(o))&&(u[h]=o)};for(let o=0,f=arguments.length;o<f;o++)arguments[o]&&bu(arguments[o],r);return u}const rS=(l,i,u,{allOwnKeys:r}={})=>(bu(i,(o,f)=>{u&&At(o)?Object.defineProperty(l,f,{value:g0(o,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(l,f,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),l),cS=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),oS=(l,i,u,r)=>{l.prototype=Object.create(i.prototype,r),Object.defineProperty(l.prototype,"constructor",{value:l,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(l,"super",{value:i.prototype}),u&&Object.assign(l.prototype,u)},fS=(l,i,u,r)=>{let o,f,h;const g={};if(i=i||{},l==null)return i;do{for(o=Object.getOwnPropertyNames(l),f=o.length;f-- >0;)h=o[f],(!r||r(h,l,i))&&!g[h]&&(i[h]=l[h],g[h]=!0);l=u!==!1&&Of(l)}while(l&&(!u||u(l,i))&&l!==Object.prototype);return i},dS=(l,i,u)=>{l=String(l),(u===void 0||u>l.length)&&(u=l.length),u-=i.length;const r=l.indexOf(i,u);return r!==-1&&r===u},hS=l=>{if(!l)return null;if(ci(l))return l;let i=l.length;if(!x0(i))return null;const u=new Array(i);for(;i-- >0;)u[i]=l[i];return u},mS=(l=>i=>l&&i instanceof l)(typeof Uint8Array<"u"&&Of(Uint8Array)),yS=(l,i)=>{const r=(l&&l[ir]).call(l);let o;for(;(o=r.next())&&!o.done;){const f=o.value;i.call(l,f[0],f[1])}},pS=(l,i)=>{let u;const r=[];for(;(u=l.exec(i))!==null;)r.push(u);return r},gS=ua("HTMLFormElement"),vS=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,r,o){return r.toUpperCase()+o}),fp=(({hasOwnProperty:l})=>(i,u)=>l.call(i,u))(Object.prototype),bS=ua("RegExp"),R0=(l,i)=>{const u=Object.getOwnPropertyDescriptors(l),r={};bu(u,(o,f)=>{let h;(h=i(o,f,l))!==!1&&(r[f]=h||o)}),Object.defineProperties(l,r)},xS=l=>{R0(l,(i,u)=>{if(At(l)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;const r=l[u];if(At(r)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},SS=(l,i)=>{const u={},r=o=>{o.forEach(f=>{u[f]=!0})};return ci(l)?r(l):r(String(l).split(i)),u},ES=()=>{},RS=(l,i)=>l!=null&&Number.isFinite(l=+l)?l:i;function TS(l){return!!(l&&At(l.append)&&l[v0]==="FormData"&&l[ir])}const NS=l=>{const i=new Array(10),u=(r,o)=>{if(vu(r)){if(i.indexOf(r)>=0)return;if(gu(r))return r;if(!("toJSON"in r)){i[o]=r;const f=ci(r)?[]:{};return bu(r,(h,g)=>{const v=u(h,o+1);!li(v)&&(f[g]=v)}),i[o]=void 0,f}}return r};return u(l,0)},AS=ua("AsyncFunction"),OS=l=>l&&(vu(l)||At(l))&&At(l.then)&&At(l.catch),T0=((l,i)=>l?setImmediate:i?((u,r)=>(Jn.addEventListener("message",({source:o,data:f})=>{o===Jn&&f===u&&r.length&&r.shift()()},!1),o=>{r.push(o),Jn.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",At(Jn.postMessage)),wS=typeof queueMicrotask<"u"?queueMicrotask.bind(Jn):typeof process<"u"&&process.nextTick||T0,jS=l=>l!=null&&At(l[ir]),M={isArray:ci,isArrayBuffer:b0,isBuffer:gu,isFormData:tS,isArrayBufferView:K1,isString:k1,isNumber:x0,isBoolean:X1,isObject:vu,isPlainObject:Fs,isEmptyObject:V1,isReadableStream:nS,isRequest:lS,isResponse:iS,isHeaders:uS,isUndefined:li,isDate:Z1,isFile:J1,isReactNativeBlob:F1,isReactNative:$1,isBlob:W1,isRegExp:bS,isFunction:At,isStream:I1,isURLSearchParams:aS,isTypedArray:mS,isFileList:P1,forEach:bu,merge:sf,extend:rS,trim:sS,stripBOM:cS,inherits:oS,toFlatObject:fS,kindOf:ur,kindOfTest:ua,endsWith:dS,toArray:hS,forEachEntry:yS,matchAll:pS,isHTMLForm:gS,hasOwnProperty:fp,hasOwnProp:fp,reduceDescriptors:R0,freezeMethods:xS,toObjectSet:SS,toCamelCase:vS,noop:ES,toFiniteNumber:RS,findKey:S0,global:Jn,isContextDefined:E0,isSpecCompliantForm:TS,toJSONObject:NS,isAsyncFn:AS,isThenable:OS,setImmediate:T0,asap:wS,isIterable:jS};let ue=class N0 extends Error{static from(i,u,r,o,f,h){const g=new N0(i.message,u||i.code,r,o,f);return g.cause=i,g.name=i.name,i.status!=null&&g.status==null&&(g.status=i.status),h&&Object.assign(g,h),g}constructor(i,u,r,o,f){super(i),Object.defineProperty(this,"message",{value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),r&&(this.config=r),o&&(this.request=o),f&&(this.response=f,this.status=f.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ue.ERR_BAD_OPTION="ERR_BAD_OPTION";ue.ECONNABORTED="ECONNABORTED";ue.ETIMEDOUT="ETIMEDOUT";ue.ERR_NETWORK="ERR_NETWORK";ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ue.ERR_DEPRECATED="ERR_DEPRECATED";ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ue.ERR_CANCELED="ERR_CANCELED";ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ue.ERR_INVALID_URL="ERR_INVALID_URL";const CS=null;function rf(l){return M.isPlainObject(l)||M.isArray(l)}function A0(l){return M.endsWith(l,"[]")?l.slice(0,-2):l}function Bo(l,i,u){return l?l.concat(i).map(function(o,f){return o=A0(o),!u&&f?"["+o+"]":o}).join(u?".":""):i}function _S(l){return M.isArray(l)&&!l.some(rf)}const DS=M.toFlatObject(M,{},null,function(i){return/^is[A-Z]/.test(i)});function rr(l,i,u){if(!M.isObject(l))throw new TypeError("target must be an object");i=i||new FormData,u=M.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(D,O){return!M.isUndefined(O[D])});const r=u.metaTokens,o=u.visitor||b,f=u.dots,h=u.indexes,v=(u.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(i);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function y(N){if(N===null)return"";if(M.isDate(N))return N.toISOString();if(M.isBoolean(N))return N.toString();if(!v&&M.isBlob(N))throw new ue("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(N)||M.isTypedArray(N)?v&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function b(N,D,O){let H=N;if(M.isReactNative(i)&&M.isReactNativeBlob(N))return i.append(Bo(O,D,f),y(N)),!1;if(N&&!O&&typeof N=="object"){if(M.endsWith(D,"{}"))D=r?D:D.slice(0,-2),N=JSON.stringify(N);else if(M.isArray(N)&&_S(N)||(M.isFileList(N)||M.endsWith(D,"[]"))&&(H=M.toArray(N)))return D=A0(D),H.forEach(function(K,k){!(M.isUndefined(K)||K===null)&&i.append(h===!0?Bo([D],k,f):h===null?D:D+"[]",y(K))}),!1}return rf(N)?!0:(i.append(Bo(O,D,f),y(N)),!1)}const x=[],j=Object.assign(DS,{defaultVisitor:b,convertValue:y,isVisitable:rf});function G(N,D){if(!M.isUndefined(N)){if(x.indexOf(N)!==-1)throw Error("Circular reference detected in "+D.join("."));x.push(N),M.forEach(N,function(H,X){(!(M.isUndefined(H)||H===null)&&o.call(i,H,M.isString(X)?X.trim():X,D,j))===!0&&G(H,D?D.concat(X):[X])}),x.pop()}}if(!M.isObject(l))throw new TypeError("data must be an object");return G(l),i}function dp(l){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(r){return i[r]})}function wf(l,i){this._pairs=[],l&&rr(l,this,i)}const O0=wf.prototype;O0.append=function(i,u){this._pairs.push([i,u])};O0.toString=function(i){const u=i?function(r){return i.call(this,r,dp)}:dp;return this._pairs.map(function(o){return u(o[0])+"="+u(o[1])},"").join("&")};function zS(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function w0(l,i,u){if(!i)return l;const r=u&&u.encode||zS,o=M.isFunction(u)?{serialize:u}:u,f=o&&o.serialize;let h;if(f?h=f(i,o):h=M.isURLSearchParams(i)?i.toString():new wf(i,o).toString(r),h){const g=l.indexOf("#");g!==-1&&(l=l.slice(0,g)),l+=(l.indexOf("?")===-1?"?":"&")+h}return l}class hp{constructor(){this.handlers=[]}use(i,u,r){return this.handlers.push({fulfilled:i,rejected:u,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){M.forEach(this.handlers,function(r){r!==null&&i(r)})}}const jf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},MS=typeof URLSearchParams<"u"?URLSearchParams:wf,US=typeof FormData<"u"?FormData:null,qS=typeof Blob<"u"?Blob:null,LS={isBrowser:!0,classes:{URLSearchParams:MS,FormData:US,Blob:qS},protocols:["http","https","file","blob","url","data"]},Cf=typeof window<"u"&&typeof document<"u",cf=typeof navigator=="object"&&navigator||void 0,HS=Cf&&(!cf||["ReactNative","NativeScript","NS"].indexOf(cf.product)<0),BS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QS=Cf&&window.location.href||"http://localhost",GS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cf,hasStandardBrowserEnv:HS,hasStandardBrowserWebWorkerEnv:BS,navigator:cf,origin:QS},Symbol.toStringTag,{value:"Module"})),dt={...GS,...LS};function YS(l,i){return rr(l,new dt.classes.URLSearchParams,{visitor:function(u,r,o,f){return dt.isNode&&M.isBuffer(u)?(this.append(r,u.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...i})}function KS(l){return M.matchAll(/\w+|\[(\w*)]/g,l).map(i=>i[0]==="[]"?"":i[1]||i[0])}function kS(l){const i={},u=Object.keys(l);let r;const o=u.length;let f;for(r=0;r<o;r++)f=u[r],i[f]=l[f];return i}function j0(l){function i(u,r,o,f){let h=u[f++];if(h==="__proto__")return!0;const g=Number.isFinite(+h),v=f>=u.length;return h=!h&&M.isArray(o)?o.length:h,v?(M.hasOwnProp(o,h)?o[h]=[o[h],r]:o[h]=r,!g):((!o[h]||!M.isObject(o[h]))&&(o[h]=[]),i(u,r,o[h],f)&&M.isArray(o[h])&&(o[h]=kS(o[h])),!g)}if(M.isFormData(l)&&M.isFunction(l.entries)){const u={};return M.forEachEntry(l,(r,o)=>{i(KS(r),o,u,0)}),u}return null}function XS(l,i,u){if(M.isString(l))try{return(i||JSON.parse)(l),M.trim(l)}catch(r){if(r.name!=="SyntaxError")throw r}return(u||JSON.stringify)(l)}const xu={transitional:jf,adapter:["xhr","http","fetch"],transformRequest:[function(i,u){const r=u.getContentType()||"",o=r.indexOf("application/json")>-1,f=M.isObject(i);if(f&&M.isHTMLForm(i)&&(i=new FormData(i)),M.isFormData(i))return o?JSON.stringify(j0(i)):i;if(M.isArrayBuffer(i)||M.isBuffer(i)||M.isStream(i)||M.isFile(i)||M.isBlob(i)||M.isReadableStream(i))return i;if(M.isArrayBufferView(i))return i.buffer;if(M.isURLSearchParams(i))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let g;if(f){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YS(i,this.formSerializer).toString();if((g=M.isFileList(i))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return rr(g?{"files[]":i}:i,v&&new v,this.formSerializer)}}return f||o?(u.setContentType("application/json",!1),XS(i)):i}],transformResponse:[function(i){const u=this.transitional||xu.transitional,r=u&&u.forcedJSONParsing,o=this.responseType==="json";if(M.isResponse(i)||M.isReadableStream(i))return i;if(i&&M.isString(i)&&(r&&!this.responseType||o)){const h=!(u&&u.silentJSONParsing)&&o;try{return JSON.parse(i,this.parseReviver)}catch(g){if(h)throw g.name==="SyntaxError"?ue.from(g,ue.ERR_BAD_RESPONSE,this,null,this.response):g}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],l=>{xu.headers[l]={}});const VS=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZS=l=>{const i={};let u,r,o;return l&&l.split(`
|
|
`).forEach(function(h){o=h.indexOf(":"),u=h.substring(0,o).trim().toLowerCase(),r=h.substring(o+1).trim(),!(!u||i[u]&&VS[u])&&(u==="set-cookie"?i[u]?i[u].push(r):i[u]=[r]:i[u]=i[u]?i[u]+", "+r:r)}),i},mp=Symbol("internals");function uu(l){return l&&String(l).trim().toLowerCase()}function $s(l){return l===!1||l==null?l:M.isArray(l)?l.map($s):String(l)}function JS(l){const i=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=u.exec(l);)i[r[1]]=r[2];return i}const FS=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function Qo(l,i,u,r,o){if(M.isFunction(r))return r.call(this,i,u);if(o&&(i=u),!!M.isString(i)){if(M.isString(r))return i.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(i)}}function $S(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,u,r)=>u.toUpperCase()+r)}function WS(l,i){const u=M.toCamelCase(" "+i);["get","set","has"].forEach(r=>{Object.defineProperty(l,r+u,{value:function(o,f,h){return this[r].call(this,i,o,f,h)},configurable:!0})})}let Ot=class{constructor(i){i&&this.set(i)}set(i,u,r){const o=this;function f(g,v,y){const b=uu(v);if(!b)throw new Error("header name must be a non-empty string");const x=M.findKey(o,b);(!x||o[x]===void 0||y===!0||y===void 0&&o[x]!==!1)&&(o[x||v]=$s(g))}const h=(g,v)=>M.forEach(g,(y,b)=>f(y,b,v));if(M.isPlainObject(i)||i instanceof this.constructor)h(i,u);else if(M.isString(i)&&(i=i.trim())&&!FS(i))h(ZS(i),u);else if(M.isObject(i)&&M.isIterable(i)){let g={},v,y;for(const b of i){if(!M.isArray(b))throw TypeError("Object iterator must return a key-value pair");g[y=b[0]]=(v=g[y])?M.isArray(v)?[...v,b[1]]:[v,b[1]]:b[1]}h(g,u)}else i!=null&&f(u,i,r);return this}get(i,u){if(i=uu(i),i){const r=M.findKey(this,i);if(r){const o=this[r];if(!u)return o;if(u===!0)return JS(o);if(M.isFunction(u))return u.call(this,o,r);if(M.isRegExp(u))return u.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,u){if(i=uu(i),i){const r=M.findKey(this,i);return!!(r&&this[r]!==void 0&&(!u||Qo(this,this[r],r,u)))}return!1}delete(i,u){const r=this;let o=!1;function f(h){if(h=uu(h),h){const g=M.findKey(r,h);g&&(!u||Qo(r,r[g],g,u))&&(delete r[g],o=!0)}}return M.isArray(i)?i.forEach(f):f(i),o}clear(i){const u=Object.keys(this);let r=u.length,o=!1;for(;r--;){const f=u[r];(!i||Qo(this,this[f],f,i,!0))&&(delete this[f],o=!0)}return o}normalize(i){const u=this,r={};return M.forEach(this,(o,f)=>{const h=M.findKey(r,f);if(h){u[h]=$s(o),delete u[f];return}const g=i?$S(f):String(f).trim();g!==f&&delete u[f],u[g]=$s(o),r[g]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const u=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(u[o]=i&&M.isArray(r)?r.join(", "):r)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,u])=>i+": "+u).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...u){const r=new this(i);return u.forEach(o=>r.set(o)),r}static accessor(i){const r=(this[mp]=this[mp]={accessors:{}}).accessors,o=this.prototype;function f(h){const g=uu(h);r[g]||(WS(o,h),r[g]=!0)}return M.isArray(i)?i.forEach(f):f(i),this}};Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Ot.prototype,({value:l},i)=>{let u=i[0].toUpperCase()+i.slice(1);return{get:()=>l,set(r){this[u]=r}}});M.freezeMethods(Ot);function Go(l,i){const u=this||xu,r=i||u,o=Ot.from(r.headers);let f=r.data;return M.forEach(l,function(g){f=g.call(u,f,o.normalize(),i?i.status:void 0)}),o.normalize(),f}function C0(l){return!!(l&&l.__CANCEL__)}let Su=class extends ue{constructor(i,u,r){super(i??"canceled",ue.ERR_CANCELED,u,r),this.name="CanceledError",this.__CANCEL__=!0}};function _0(l,i,u){const r=u.config.validateStatus;!u.status||!r||r(u.status)?l(u):i(new ue("Request failed with status code "+u.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function PS(l){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return i&&i[1]||""}function IS(l,i){l=l||10;const u=new Array(l),r=new Array(l);let o=0,f=0,h;return i=i!==void 0?i:1e3,function(v){const y=Date.now(),b=r[f];h||(h=y),u[o]=v,r[o]=y;let x=f,j=0;for(;x!==o;)j+=u[x++],x=x%l;if(o=(o+1)%l,o===f&&(f=(f+1)%l),y-h<i)return;const G=b&&y-b;return G?Math.round(j*1e3/G):void 0}}function eE(l,i){let u=0,r=1e3/i,o,f;const h=(y,b=Date.now())=>{u=b,o=null,f&&(clearTimeout(f),f=null),l(...y)};return[(...y)=>{const b=Date.now(),x=b-u;x>=r?h(y,b):(o=y,f||(f=setTimeout(()=>{f=null,h(o)},r-x)))},()=>o&&h(o)]}const tr=(l,i,u=3)=>{let r=0;const o=IS(50,250);return eE(f=>{const h=f.loaded,g=f.lengthComputable?f.total:void 0,v=h-r,y=o(v),b=h<=g;r=h;const x={loaded:h,total:g,progress:g?h/g:void 0,bytes:v,rate:y||void 0,estimated:y&&g&&b?(g-h)/y:void 0,event:f,lengthComputable:g!=null,[i?"download":"upload"]:!0};l(x)},u)},yp=(l,i)=>{const u=l!=null;return[r=>i[0]({lengthComputable:u,total:l,loaded:r}),i[1]]},pp=l=>(...i)=>M.asap(()=>l(...i)),tE=dt.hasStandardBrowserEnv?((l,i)=>u=>(u=new URL(u,dt.origin),l.protocol===u.protocol&&l.host===u.host&&(i||l.port===u.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,aE=dt.hasStandardBrowserEnv?{write(l,i,u,r,o,f,h){if(typeof document>"u")return;const g=[`${l}=${encodeURIComponent(i)}`];M.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),M.isString(r)&&g.push(`path=${r}`),M.isString(o)&&g.push(`domain=${o}`),f===!0&&g.push("secure"),M.isString(h)&&g.push(`SameSite=${h}`),document.cookie=g.join("; ")},read(l){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+l+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function nE(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function lE(l,i){return i?l.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):l}function D0(l,i,u){let r=!nE(i);return l&&(r||u==!1)?lE(l,i):i}const gp=l=>l instanceof Ot?{...l}:l;function sl(l,i){i=i||{};const u={};function r(y,b,x,j){return M.isPlainObject(y)&&M.isPlainObject(b)?M.merge.call({caseless:j},y,b):M.isPlainObject(b)?M.merge({},b):M.isArray(b)?b.slice():b}function o(y,b,x,j){if(M.isUndefined(b)){if(!M.isUndefined(y))return r(void 0,y,x,j)}else return r(y,b,x,j)}function f(y,b){if(!M.isUndefined(b))return r(void 0,b)}function h(y,b){if(M.isUndefined(b)){if(!M.isUndefined(y))return r(void 0,y)}else return r(void 0,b)}function g(y,b,x){if(x in i)return r(y,b);if(x in l)return r(void 0,y)}const v={url:f,method:f,data:f,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(y,b,x)=>o(gp(y),gp(b),x,!0)};return M.forEach(Object.keys({...l,...i}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const x=M.hasOwnProp(v,b)?v[b]:o,j=x(l[b],i[b],b);M.isUndefined(j)&&x!==g||(u[b]=j)}),u}const z0=l=>{const i=sl({},l);let{data:u,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:f,headers:h,auth:g}=i;if(i.headers=h=Ot.from(h),i.url=w0(D0(i.baseURL,i.url,i.allowAbsoluteUrls),l.params,l.paramsSerializer),g&&h.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),M.isFormData(u)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(M.isFunction(u.getHeaders)){const v=u.getHeaders(),y=["content-type","content-length"];Object.entries(v).forEach(([b,x])=>{y.includes(b.toLowerCase())&&h.set(b,x)})}}if(dt.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(i)),r||r!==!1&&tE(i.url))){const v=o&&f&&aE.read(f);v&&h.set(o,v)}return i},iE=typeof XMLHttpRequest<"u",uE=iE&&function(l){return new Promise(function(u,r){const o=z0(l);let f=o.data;const h=Ot.from(o.headers).normalize();let{responseType:g,onUploadProgress:v,onDownloadProgress:y}=o,b,x,j,G,N;function D(){G&&G(),N&&N(),o.cancelToken&&o.cancelToken.unsubscribe(b),o.signal&&o.signal.removeEventListener("abort",b)}let O=new XMLHttpRequest;O.open(o.method.toUpperCase(),o.url,!0),O.timeout=o.timeout;function H(){if(!O)return;const K=Ot.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),F={data:!g||g==="text"||g==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:K,config:l,request:O};_0(function($){u($),D()},function($){r($),D()},F),O=null}"onloadend"in O?O.onloadend=H:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(H)},O.onabort=function(){O&&(r(new ue("Request aborted",ue.ECONNABORTED,l,O)),O=null)},O.onerror=function(k){const F=k&&k.message?k.message:"Network Error",ae=new ue(F,ue.ERR_NETWORK,l,O);ae.event=k||null,r(ae),O=null},O.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||jf;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new ue(k,F.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,l,O)),O=null},f===void 0&&h.setContentType(null),"setRequestHeader"in O&&M.forEach(h.toJSON(),function(k,F){O.setRequestHeader(F,k)}),M.isUndefined(o.withCredentials)||(O.withCredentials=!!o.withCredentials),g&&g!=="json"&&(O.responseType=o.responseType),y&&([j,N]=tr(y,!0),O.addEventListener("progress",j)),v&&O.upload&&([x,G]=tr(v),O.upload.addEventListener("progress",x),O.upload.addEventListener("loadend",G)),(o.cancelToken||o.signal)&&(b=K=>{O&&(r(!K||K.type?new Su(null,l,O):K),O.abort(),O=null)},o.cancelToken&&o.cancelToken.subscribe(b),o.signal&&(o.signal.aborted?b():o.signal.addEventListener("abort",b)));const X=PS(o.url);if(X&&dt.protocols.indexOf(X)===-1){r(new ue("Unsupported protocol "+X+":",ue.ERR_BAD_REQUEST,l));return}O.send(f||null)})},sE=(l,i)=>{const{length:u}=l=l?l.filter(Boolean):[];if(i||u){let r=new AbortController,o;const f=function(y){if(!o){o=!0,g();const b=y instanceof Error?y:this.reason;r.abort(b instanceof ue?b:new Su(b instanceof Error?b.message:b))}};let h=i&&setTimeout(()=>{h=null,f(new ue(`timeout of ${i}ms exceeded`,ue.ETIMEDOUT))},i);const g=()=>{l&&(h&&clearTimeout(h),h=null,l.forEach(y=>{y.unsubscribe?y.unsubscribe(f):y.removeEventListener("abort",f)}),l=null)};l.forEach(y=>y.addEventListener("abort",f));const{signal:v}=r;return v.unsubscribe=()=>M.asap(g),v}},rE=function*(l,i){let u=l.byteLength;if(u<i){yield l;return}let r=0,o;for(;r<u;)o=r+i,yield l.slice(r,o),r=o},cE=async function*(l,i){for await(const u of oE(l))yield*rE(u,i)},oE=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const i=l.getReader();try{for(;;){const{done:u,value:r}=await i.read();if(u)break;yield r}}finally{await i.cancel()}},vp=(l,i,u,r)=>{const o=cE(l,i);let f=0,h,g=v=>{h||(h=!0,r&&r(v))};return new ReadableStream({async pull(v){try{const{done:y,value:b}=await o.next();if(y){g(),v.close();return}let x=b.byteLength;if(u){let j=f+=x;u(j)}v.enqueue(new Uint8Array(b))}catch(y){throw g(y),y}},cancel(v){return g(v),o.return()}},{highWaterMark:2})},bp=64*1024,{isFunction:Ks}=M,fE=(({Request:l,Response:i})=>({Request:l,Response:i}))(M.global),{ReadableStream:xp,TextEncoder:Sp}=M.global,Ep=(l,...i)=>{try{return!!l(...i)}catch{return!1}},dE=l=>{l=M.merge.call({skipUndefined:!0},fE,l);const{fetch:i,Request:u,Response:r}=l,o=i?Ks(i):typeof fetch=="function",f=Ks(u),h=Ks(r);if(!o)return!1;const g=o&&Ks(xp),v=o&&(typeof Sp=="function"?(N=>D=>N.encode(D))(new Sp):async N=>new Uint8Array(await new u(N).arrayBuffer())),y=f&&g&&Ep(()=>{let N=!1;const D=new u(dt.origin,{body:new xp,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!D}),b=h&&g&&Ep(()=>M.isReadableStream(new r("").body)),x={stream:b&&(N=>N.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{!x[N]&&(x[N]=(D,O)=>{let H=D&&D[N];if(H)return H.call(D);throw new ue(`Response type '${N}' is not supported`,ue.ERR_NOT_SUPPORT,O)})});const j=async N=>{if(N==null)return 0;if(M.isBlob(N))return N.size;if(M.isSpecCompliantForm(N))return(await new u(dt.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(M.isArrayBufferView(N)||M.isArrayBuffer(N))return N.byteLength;if(M.isURLSearchParams(N)&&(N=N+""),M.isString(N))return(await v(N)).byteLength},G=async(N,D)=>{const O=M.toFiniteNumber(N.getContentLength());return O??j(D)};return async N=>{let{url:D,method:O,data:H,signal:X,cancelToken:K,timeout:k,onDownloadProgress:F,onUploadProgress:ae,responseType:$,headers:le,withCredentials:fe="same-origin",fetchOptions:Oe}=z0(N),Qe=i||fetch;$=$?($+"").toLowerCase():"text";let qe=sE([X,K&&K.toAbortSignal()],k),Ie=null;const Le=qe&&qe.unsubscribe&&(()=>{qe.unsubscribe()});let _e;try{if(ae&&y&&O!=="get"&&O!=="head"&&(_e=await G(le,H))!==0){let R=new u(D,{method:"POST",body:H,duplex:"half"}),Q;if(M.isFormData(H)&&(Q=R.headers.get("content-type"))&&le.setContentType(Q),R.body){const[Z,W]=yp(_e,tr(pp(ae)));H=vp(R.body,bp,Z,W)}}M.isString(fe)||(fe=fe?"include":"omit");const q=f&&"credentials"in u.prototype,V={...Oe,signal:qe,method:O.toUpperCase(),headers:le.normalize().toJSON(),body:H,duplex:"half",credentials:q?fe:void 0};Ie=f&&new u(D,V);let ee=await(f?Qe(Ie,Oe):Qe(D,V));const Re=b&&($==="stream"||$==="response");if(b&&(F||Re&&Le)){const R={};["status","statusText","headers"].forEach(se=>{R[se]=ee[se]});const Q=M.toFiniteNumber(ee.headers.get("content-length")),[Z,W]=F&&yp(Q,tr(pp(F),!0))||[];ee=new r(vp(ee.body,bp,Z,()=>{W&&W(),Le&&Le()}),R)}$=$||"text";let we=await x[M.findKey(x,$)||"text"](ee,N);return!Re&&Le&&Le(),await new Promise((R,Q)=>{_0(R,Q,{data:we,headers:Ot.from(ee.headers),status:ee.status,statusText:ee.statusText,config:N,request:Ie})})}catch(q){throw Le&&Le(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,N,Ie,q&&q.response),{cause:q.cause||q}):ue.from(q,q&&q.code,N,Ie,q&&q.response)}}},hE=new Map,M0=l=>{let i=l&&l.env||{};const{fetch:u,Request:r,Response:o}=i,f=[r,o,u];let h=f.length,g=h,v,y,b=hE;for(;g--;)v=f[g],y=b.get(v),y===void 0&&b.set(v,y=g?new Map:dE(i)),b=y;return y};M0();const _f={http:CS,xhr:uE,fetch:{get:M0}};M.forEach(_f,(l,i)=>{if(l){try{Object.defineProperty(l,"name",{value:i})}catch{}Object.defineProperty(l,"adapterName",{value:i})}});const Rp=l=>`- ${l}`,mE=l=>M.isFunction(l)||l===null||l===!1;function yE(l,i){l=M.isArray(l)?l:[l];const{length:u}=l;let r,o;const f={};for(let h=0;h<u;h++){r=l[h];let g;if(o=r,!mE(r)&&(o=_f[(g=String(r)).toLowerCase()],o===void 0))throw new ue(`Unknown adapter '${g}'`);if(o&&(M.isFunction(o)||(o=o.get(i))))break;f[g||"#"+h]=o}if(!o){const h=Object.entries(f).map(([v,y])=>`adapter ${v} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=u?h.length>1?`since :
|
|
`+h.map(Rp).join(`
|
|
`):" "+Rp(h[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return o}const U0={getAdapter:yE,adapters:_f};function Yo(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new Su(null,l)}function Tp(l){return Yo(l),l.headers=Ot.from(l.headers),l.data=Go.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),U0.getAdapter(l.adapter||xu.adapter,l)(l).then(function(r){return Yo(l),r.data=Go.call(l,l.transformResponse,r),r.headers=Ot.from(r.headers),r},function(r){return C0(r)||(Yo(l),r&&r.response&&(r.response.data=Go.call(l,l.transformResponse,r.response),r.response.headers=Ot.from(r.response.headers))),Promise.reject(r)})}const q0="1.13.6",cr={};["object","boolean","number","function","string","symbol"].forEach((l,i)=>{cr[l]=function(r){return typeof r===l||"a"+(i<1?"n ":" ")+l}});const Np={};cr.transitional=function(i,u,r){function o(f,h){return"[Axios v"+q0+"] Transitional option '"+f+"'"+h+(r?". "+r:"")}return(f,h,g)=>{if(i===!1)throw new ue(o(h," has been removed"+(u?" in "+u:"")),ue.ERR_DEPRECATED);return u&&!Np[h]&&(Np[h]=!0,console.warn(o(h," has been deprecated since v"+u+" and will be removed in the near future"))),i?i(f,h,g):!0}};cr.spelling=function(i){return(u,r)=>(console.warn(`${r} is likely a misspelling of ${i}`),!0)};function pE(l,i,u){if(typeof l!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(l);let o=r.length;for(;o-- >0;){const f=r[o],h=i[f];if(h){const g=l[f],v=g===void 0||h(g,f,l);if(v!==!0)throw new ue("option "+f+" must be "+v,ue.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new ue("Unknown option "+f,ue.ERR_BAD_OPTION)}}const Ws={assertOptions:pE,validators:cr},Ft=Ws.validators;let ll=class{constructor(i){this.defaults=i||{},this.interceptors={request:new hp,response:new hp}}async request(i,u){try{return await this._request(i,u)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const f=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?f&&!String(r.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
`+f):r.stack=f}catch{}}throw r}}_request(i,u){typeof i=="string"?(u=u||{},u.url=i):u=i||{},u=sl(this.defaults,u);const{transitional:r,paramsSerializer:o,headers:f}=u;r!==void 0&&Ws.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean),legacyInterceptorReqResOrdering:Ft.transitional(Ft.boolean)},!1),o!=null&&(M.isFunction(o)?u.paramsSerializer={serialize:o}:Ws.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),Ws.assertOptions(u,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let h=f&&M.merge(f.common,f[u.method]);f&&M.forEach(["delete","get","head","post","put","patch","common"],N=>{delete f[N]}),u.headers=Ot.concat(h,f);const g=[];let v=!0;this.interceptors.request.forEach(function(D){if(typeof D.runWhen=="function"&&D.runWhen(u)===!1)return;v=v&&D.synchronous;const O=u.transitional||jf;O&&O.legacyInterceptorReqResOrdering?g.unshift(D.fulfilled,D.rejected):g.push(D.fulfilled,D.rejected)});const y=[];this.interceptors.response.forEach(function(D){y.push(D.fulfilled,D.rejected)});let b,x=0,j;if(!v){const N=[Tp.bind(this),void 0];for(N.unshift(...g),N.push(...y),j=N.length,b=Promise.resolve(u);x<j;)b=b.then(N[x++],N[x++]);return b}j=g.length;let G=u;for(;x<j;){const N=g[x++],D=g[x++];try{G=N(G)}catch(O){D.call(this,O);break}}try{b=Tp.call(this,G)}catch(N){return Promise.reject(N)}for(x=0,j=y.length;x<j;)b=b.then(y[x++],y[x++]);return b}getUri(i){i=sl(this.defaults,i);const u=D0(i.baseURL,i.url,i.allowAbsoluteUrls);return w0(u,i.params,i.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(i){ll.prototype[i]=function(u,r){return this.request(sl(r||{},{method:i,url:u,data:(r||{}).data}))}});M.forEach(["post","put","patch"],function(i){function u(r){return function(f,h,g){return this.request(sl(g||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:f,data:h}))}}ll.prototype[i]=u(),ll.prototype[i+"Form"]=u(!0)});let gE=class L0{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(f){u=f});const r=this;this.promise.then(o=>{if(!r._listeners)return;let f=r._listeners.length;for(;f-- >0;)r._listeners[f](o);r._listeners=null}),this.promise.then=o=>{let f;const h=new Promise(g=>{r.subscribe(g),f=g}).then(o);return h.cancel=function(){r.unsubscribe(f)},h},i(function(f,h,g){r.reason||(r.reason=new Su(f,h,g),u(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const u=this._listeners.indexOf(i);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const i=new AbortController,u=r=>{i.abort(r)};return this.subscribe(u),i.signal.unsubscribe=()=>this.unsubscribe(u),i.signal}static source(){let i;return{token:new L0(function(o){i=o}),cancel:i}}};function vE(l){return function(u){return l.apply(null,u)}}function bE(l){return M.isObject(l)&&l.isAxiosError===!0}const of={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(of).forEach(([l,i])=>{of[i]=l});function H0(l){const i=new ll(l),u=g0(ll.prototype.request,i);return M.extend(u,ll.prototype,i,{allOwnKeys:!0}),M.extend(u,i,null,{allOwnKeys:!0}),u.create=function(o){return H0(sl(l,o))},u}const xe=H0(xu);xe.Axios=ll;xe.CanceledError=Su;xe.CancelToken=gE;xe.isCancel=C0;xe.VERSION=q0;xe.toFormData=rr;xe.AxiosError=ue;xe.Cancel=xe.CanceledError;xe.all=function(i){return Promise.all(i)};xe.spread=vE;xe.isAxiosError=bE;xe.mergeConfig=sl;xe.AxiosHeaders=Ot;xe.formToJSON=l=>j0(M.isHTMLForm(l)?new FormData(l):l);xe.getAdapter=U0.getAdapter;xe.HttpStatusCode=of;xe.default=xe;const{Axios:F2,AxiosError:$2,CanceledError:W2,isCancel:P2,CancelToken:I2,VERSION:eR,all:tR,Cancel:aR,isAxiosError:nR,spread:lR,toFormData:iR,AxiosHeaders:uR,HttpStatusCode:sR,formToJSON:rR,getAdapter:cR,mergeConfig:oR}=xe,B0="antholume_token";xe.interceptors.request.use(l=>{const i=localStorage.getItem(B0);return i&&l.headers&&(l.headers.Authorization=`Bearer ${i}`),l},l=>Promise.reject(l));xe.interceptors.response.use(l=>l,l=>{var i;return((i=l.response)==null?void 0:i.status)===401&&localStorage.removeItem(B0),Promise.reject(l)});const xE=(l,i)=>xe.get("/api/v1/documents",{...i,params:{...l,...i==null?void 0:i.params}}),SE=l=>["/api/v1/documents",...l?[l]:[]],EE=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??SE(l),queryFn:({signal:h})=>xE(l,{signal:h,...r}),...u}};function Q0(l,i,u){const r=EE(l),o=Ya(r);return o.queryKey=r.queryKey,o}const RE=(l,i)=>{const u=new FormData;return u.append("document_file",l.document_file),xe.post("/api/v1/documents",u,i)},TE=l=>{const i=["createDocument"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:f=>{const{data:h}=f??{};return RE(h,r)},...u}},NE=(l,i)=>{const u=TE();return Af(u)},AE=(l,i)=>xe.get(`/api/v1/documents/${l}`,i),OE=l=>[`/api/v1/documents/${l}`],wE=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??OE(l),queryFn:({signal:h})=>AE(l,{signal:h,...r}),enabled:!!l,...u}};function jE(l,i,u){const r=wE(l),o=Ya(r);return o.queryKey=r.queryKey,o}const CE=(l,i)=>xe.get("/api/v1/progress",{...i,params:{...l,...i==null?void 0:i.params}}),_E=l=>["/api/v1/progress",...l?[l]:[]],DE=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??_E(l),queryFn:({signal:h})=>CE(l,{signal:h,...r}),...u}};function zE(l,i,u){const r=DE(l),o=Ya(r);return o.queryKey=r.queryKey,o}const ME=(l,i)=>xe.get(`/api/v1/progress/${l}`,i),UE=l=>[`/api/v1/progress/${l}`],qE=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??UE(l),queryFn:({signal:h})=>ME(l,{signal:h,...r}),enabled:!!l,...u}};function LE(l,i,u){const r=qE(l),o=Ya(r);return o.queryKey=r.queryKey,o}const HE=(l,i)=>xe.get("/api/v1/activity",{...i,params:{...l,...i==null?void 0:i.params}}),BE=l=>["/api/v1/activity",...l?[l]:[]],QE=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??BE(l),queryFn:({signal:h})=>HE(l,{signal:h,...r}),...u}};function GE(l,i,u){const r=QE(l),o=Ya(r);return o.queryKey=r.queryKey,o}const YE=l=>xe.get("/api/v1/settings",l),KE=()=>["/api/v1/settings"],kE=l=>{const{query:i,axios:u}={};return{queryKey:(i==null?void 0:i.queryKey)??KE(),queryFn:({signal:f})=>YE({signal:f,...u}),...i}};function XE(l,i){const u=kE(),r=Ya(u);return r.queryKey=u.queryKey,r}const VE=(l,i)=>xe.post("/api/v1/auth/login",l,i),ZE=l=>{const i=["login"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:f=>{const{data:h}=f??{};return VE(h,r)},...u}},JE=(l,i)=>{const u=ZE();return Af(u)},FE=l=>xe.post("/api/v1/auth/logout",void 0,l),$E=l=>{const i=["logout"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:()=>FE(r),...u}},WE=(l,i)=>{const u=$E();return Af(u)},PE=l=>xe.get("/api/v1/auth/me",l),IE=()=>["/api/v1/auth/me"],e2=l=>{const{query:i,axios:u}=l??{};return{queryKey:(i==null?void 0:i.queryKey)??IE(),queryFn:({signal:f})=>PE({signal:f,...u}),...i}};function G0(l,i){const u=e2(l),r=Ya(u);return r.queryKey=u.queryKey,r}const t2=l=>xe.get("/api/v1/home",l),a2=()=>["/api/v1/home"],n2=l=>{const{query:i,axios:u}={};return{queryKey:(i==null?void 0:i.queryKey)??a2(),queryFn:({signal:f})=>t2({signal:f,...u}),...i}};function l2(l,i){const u=n2(),r=Ya(u);return r.queryKey=u.queryKey,r}const i2=(l,i)=>xe.get("/api/v1/search",{...i,params:{...l,...i==null?void 0:i.params}}),u2=l=>["/api/v1/search",...l?[l]:[]],s2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??u2(l),queryFn:({signal:h})=>i2(l,{signal:h,...r}),...u}};function r2(l,i,u){const r=s2(l),o=Ya(r);return o.queryKey=r.queryKey,o}const Y0=w.createContext(void 0),ks="antholume_token";function c2({children:l}){const[i,u]=w.useState({isAuthenticated:!1,user:null,token:null}),r=JE(),o=WE(),{data:f}=G0(i.isAuthenticated?{}:void 0),h=pf();w.useEffect(()=>{const y=localStorage.getItem(ks);y&&u(b=>({...b,token:y,isAuthenticated:!0}))},[]),w.useEffect(()=>{f!=null&&f.data&&i.isAuthenticated&&u(y=>({...y,user:f.data}))},[f,i.isAuthenticated]);const g=async(y,b)=>{try{r.mutate({data:{username:y,password:b}},{onSuccess:()=>{const x=localStorage.getItem(ks)||"authenticated";localStorage.setItem(ks,x),u({isAuthenticated:!0,user:null,token:x}),h("/")},onError:()=>{throw new Error("Login failed")}})}catch(x){throw x}},v=()=>{o.mutate(void 0,{onSuccess:()=>{localStorage.removeItem(ks),u({isAuthenticated:!1,user:null,token:null}),h("/login")}})};return m.jsx(Y0.Provider,{value:{...i,login:g,logout:v},children:l})}function Df(){const l=w.useContext(Y0);if(l===void 0)throw new Error("useAuth must be used within an AuthProvider");return l}const Ap=[{path:"/",label:"Home",icon:"home",title:"Home"},{path:"/documents",label:"Documents",icon:"documents",title:"Documents"},{path:"/progress",label:"Progress",icon:"activity",title:"Progress"},{path:"/activity",label:"Activity",icon:"activity",title:"Activity"},{path:"/search",label:"Search",icon:"search",title:"Search"},{path:"/settings",label:"Settings",icon:"settings",title:"Settings"}];function o2(){var v;const l=ia(),{isAuthenticated:i,user:u,logout:r}=Df(),{data:o}=G0(i?{}:void 0),f=(o==null?void 0:o.data)||u;if(!i)return m.jsx(e0,{to:"/login",replace:!0});const h=()=>{r()},g=((v=Ap.find(y=>l.pathname===y.path))==null?void 0:v.title)||"Documents";return m.jsxs("div",{className:"bg-gray-100 dark:bg-gray-800 min-h-screen",children:[m.jsxs("div",{className:"flex items-center justify-between w-full h-16",children:[m.jsxs("div",{className:"flex flex-col z-40 relative ml-6",children:[m.jsx("input",{type:"checkbox",className:"absolute lg:hidden z-50 -top-2 w-7 h-7 flex cursor-pointer opacity-0",id:"mobile-nav-button"}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-0.5 dark:bg-white"}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-1 dark:bg-white"}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-1 dark:bg-white"}),m.jsxs("div",{id:"menu",className:"fixed -ml-6 h-full w-56 lg:w-48 bg-white dark:bg-gray-700 shadow-lg",style:{top:0,paddingTop:"env(safe-area-inset-top)"},children:[m.jsx("div",{className:"h-16 flex justify-end lg:justify-around",children:m.jsx("p",{className:"text-xl font-bold dark:text-white text-right my-auto pr-8 lg:pr-0",children:"AnthoLume"})}),m.jsx("nav",{className:"flex flex-col",children:Ap.map(y=>m.jsx(pa,{to:y.path,className:`flex items-center justify-start w-full p-2 pl-6 my-2 transition-colors duration-200 border-l-4 ${l.pathname===y.path?"border-purple-500 dark:text-white":"border-transparent text-gray-400 hover:text-gray-800 dark:hover:text-gray-100"}`,children:m.jsx("span",{className:"mx-4 text-sm font-normal",children:y.label})},y.path))}),m.jsx("a",{className:"flex flex-col gap-2 justify-center items-center p-6 w-full absolute bottom-0 text-black dark:text-white",target:"_blank",href:"https://gitea.va.reichard.io/evan/AnthoLume",children:m.jsx("span",{className:"text-xs",children:"v1.0.0"})})]})]}),m.jsx("h1",{className:"text-xl font-bold dark:text-white px-6 lg:ml-44",children:g}),m.jsxs("div",{className:"relative flex items-center justify-end w-full p-4 space-x-4",children:[m.jsx("input",{type:"checkbox",id:"user-dropdown-button",className:"hidden"}),m.jsx("div",{id:"user-dropdown",className:"transition duration-200 z-20 absolute right-4 top-16 pt-4",children:m.jsx("div",{className:"w-40 origin-top-right bg-white rounded-md shadow-lg dark:shadow-gray-800 dark:bg-gray-700 ring-1 ring-black ring-opacity-5",children:m.jsxs("div",{className:"py-1",children:[m.jsx(pa,{to:"/settings",className:"block px-4 py-2 text-md text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600",children:"Settings"}),m.jsx("button",{onClick:h,className:"block px-4 py-2 text-md text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 w-full text-left",children:"Logout"})]})})}),m.jsx("label",{htmlFor:"user-dropdown-button",children:m.jsx("div",{className:"flex items-center gap-2 text-gray-500 dark:text-white text-md py-4 cursor-pointer",children:m.jsx("span",{children:(f==null?void 0:f.username)||"User"})})})]})]}),m.jsx("main",{className:"relative overflow-hidden",style:{height:"calc(100dvh - 4rem - env(safe-area-inset-top))"},children:m.jsx("div",{id:"container",className:"h-[100dvh] px-4 overflow-auto md:px-6 lg:ml-48",style:{paddingBottom:"calc(5em + env(safe-area-inset-bottom) * 2)"},children:m.jsx(Tx,{})})})]})}function Xs({title:l,size:i,link:u}){return u?m.jsx(pa,{to:u,className:"w-full",children:m.jsx("div",{className:"flex gap-4 w-full p-4 bg-white shadow-lg dark:bg-gray-700 rounded",children:m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("p",{className:"text-2xl font-bold text-black dark:text-white",children:i}),m.jsx("p",{className:"text-sm text-gray-400",children:l})]})})}):m.jsx("div",{className:"w-full",children:m.jsx("div",{className:"flex gap-4 w-full p-4 bg-white shadow-lg dark:bg-gray-700 rounded",children:m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("p",{className:"text-2xl font-bold text-black dark:text-white",children:i}),m.jsx("p",{className:"text-sm text-gray-400",children:l})]})})})}function f2({window:l,currentStreak:i,currentStreakStartDate:u,currentStreakEndDate:r,maxStreak:o,maxStreakStartDate:f,maxStreakEndDate:h}){return m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"relative w-full px-4 py-6 bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("p",{className:"text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:l==="WEEK"?"Weekly Read Streak":"Daily Read Streak"}),m.jsx("div",{className:"flex items-end my-6 space-x-2",children:m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:i})}),m.jsxs("div",{className:"dark:text-white",children:[m.jsxs("div",{className:"flex items-center justify-between pb-2 mb-2 text-sm border-b border-gray-200",children:[m.jsxs("div",{children:[m.jsx("p",{children:l==="WEEK"?"Current Weekly Streak":"Current Daily Streak"}),m.jsxs("div",{className:"flex items-end text-sm text-gray-400",children:[u," ➞ ",r]})]}),m.jsx("div",{className:"flex items-end font-bold",children:i})]}),m.jsxs("div",{className:"flex items-center justify-between pb-2 mb-2 text-sm",children:[m.jsxs("div",{children:[m.jsx("p",{children:l==="WEEK"?"Best Weekly Streak":"Best Daily Streak"}),m.jsxs("div",{className:"flex items-end text-sm text-gray-400",children:[f," ➞ ",h]})]}),m.jsx("div",{className:"flex items-end font-bold",children:o})]})]})]})})}function Ko({name:l,data:i}){var u;return m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"flex flex-col justify-between h-full w-full px-4 py-6 bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("div",{children:m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("p",{className:"text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:[l," Leaderboard"]}),m.jsxs("div",{className:"flex gap-2 text-xs text-gray-400 items-center",children:[m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"all"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"year"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"month"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"week"})]})]})}),m.jsx("div",{className:"flex items-end my-6 space-x-2",children:i.all.length===0?m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:"N/A"}):m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:((u=i.all[0])==null?void 0:u.user_id)||"N/A"})}),m.jsx("div",{className:"dark:text-white",children:i.all.slice(0,3).map((r,o)=>m.jsxs("div",{className:`flex items-center justify-between pt-2 pb-2 text-sm ${o>0?"border-t border-gray-200":""}`,children:[m.jsx("div",{children:m.jsx("p",{children:r.user_id})}),m.jsx("div",{className:"flex items-end font-bold",children:r.value})]},o))})]})})}function d2({data:l}){if(!l||l.length===0)return m.jsx("div",{className:"relative h-24 flex items-center justify-center bg-gray-100 dark:bg-gray-600",children:m.jsx("p",{className:"text-gray-400 dark:text-gray-300",children:"No data available"})});const i=Math.max(...l.map(u=>u.minutes_read),1);return m.jsx("div",{className:"relative h-24 flex items-end justify-between p-2 bg-gray-100 dark:bg-gray-600",children:l.map((u,r)=>m.jsx("div",{className:"flex-1 mx-0.5 bg-blue-500 hover:bg-blue-600 transition-colors relative group",style:{height:`${u.minutes_read/i*100}%`},children:m.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-full text-xs text-center text-gray-600 dark:text-gray-300 opacity-0 group-hover:opacity-100 pointer-events-none",children:[u.minutes_read," min"]})},r))})}function h2(){var y,b,x,j,G,N,D;const{data:l,isLoading:i}=l2(),{data:u,isLoading:r}=Q0({page:1,limit:9}),o=(y=u==null?void 0:u.data)==null?void 0:y.documents,f=(b=l==null?void 0:l.data)==null?void 0:b.database_info,h=(j=(x=l==null?void 0:l.data)==null?void 0:x.streaks)==null?void 0:j.streaks,g=(N=(G=l==null?void 0:l.data)==null?void 0:G.graph_data)==null?void 0:N.graph_data,v=(D=l==null?void 0:l.data)==null?void 0:D.user_statistics;return i||r?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"relative w-full bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("p",{className:"absolute top-3 left-5 text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:"Daily Read Totals"}),m.jsx(d2,{data:g||[]})]})}),m.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[m.jsx(Xs,{title:"Documents",size:(f==null?void 0:f.documents_size)||0,link:"./documents"}),m.jsx(Xs,{title:"Activity Records",size:(f==null?void 0:f.activity_size)||0,link:"./activity"}),m.jsx(Xs,{title:"Progress Records",size:(f==null?void 0:f.progress_size)||0,link:"./progress"}),m.jsx(Xs,{title:"Devices",size:(f==null?void 0:f.devices_size)||0})]}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:h==null?void 0:h.map((O,H)=>m.jsx(f2,{window:O.window,currentStreak:O.current_streak,currentStreakStartDate:O.current_streak_start_date,currentStreakEndDate:O.current_streak_end_date,maxStreak:O.max_streak,maxStreakStartDate:O.max_streak_start_date,maxStreakEndDate:O.max_streak_end_date},H))}),m.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:[m.jsx(Ko,{name:"WPM",data:(v==null?void 0:v.wpm)||{all:[],year:[],month:[],week:[]}}),m.jsx(Ko,{name:"Duration",data:(v==null?void 0:v.duration)||{all:[],year:[],month:[],week:[]}}),m.jsx(Ko,{name:"Words",data:(v==null?void 0:v.words)||{all:[],year:[],month:[],week:[]}})]}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:o==null?void 0:o.slice(0,6).map(O=>m.jsxs("div",{className:"flex flex-col gap-2 p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("h3",{className:"font-medium text-lg",children:O.title}),m.jsx("p",{className:"text-sm",children:O.author}),m.jsx(pa,{to:`/documents/${O.id}`,className:"text-white bg-blue-700 hover:bg-blue-800 font-medium rounded text-sm text-center py-1 dark:bg-blue-600 dark:hover:bg-blue-700",children:"View Document"})]},O.id))})]})}/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const K0=(...l)=>l.filter((i,u,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===u).join(" ").trim();/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const m2=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const y2=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,u,r)=>r?r.toUpperCase():u.toLowerCase());/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Op=l=>{const i=y2(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var p2={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"};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const g2=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const v2=w.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:u=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:h,...g},v)=>w.createElement("svg",{ref:v,...p2,width:i,height:i,stroke:l,strokeWidth:r?Number(u)*24/Number(i):u,className:K0("lucide",o),...!f&&!g2(g)&&{"aria-hidden":"true"},...g},[...h.map(([y,b])=>w.createElement(y,b)),...Array.isArray(f)?f:[f]]));/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const An=(l,i)=>{const u=w.forwardRef(({className:r,...o},f)=>w.createElement(v2,{ref:f,iconNode:i,className:K0(`lucide-${m2(Op(l))}`,`lucide-${l}`,r),...o}));return u.displayName=Op(l),u};/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const b2=[["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"}]],x2=An("activity",b2);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const S2=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],E2=An("book",S2);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const R2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],T2=An("clock",R2);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const N2=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ff=An("download",N2);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const A2=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],wp=An("lock",A2);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const O2=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],k0=An("search",O2);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const w2=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],j2=An("upload",w2);/**
|
|
* @license lucide-react v0.577.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const C2=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],_2=An("user",C2);function D2({doc:l}){const i=l.percentage||0,u=l.total_time_seconds||0,r=o=>{const f=Math.floor(o/3600),h=Math.floor(o%3600/60);return f>0?`${f}h ${h}m`:`${h}m`};return m.jsx("div",{className:"w-full relative",children:m.jsxs("div",{className:"flex gap-4 w-full h-full p-4 shadow-lg bg-white dark:bg-gray-700 rounded",children:[m.jsx("div",{className:"min-w-fit my-auto h-48 relative",children:m.jsx(pa,{to:`/documents/${l.id}`,children:m.jsx("img",{className:"rounded object-cover h-full",src:`/api/v1/documents/${l.id}/cover`,alt:l.title})})}),m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Title"}),m.jsx("p",{className:"font-medium",children:l.title||"Unknown"})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Author"}),m.jsx("p",{className:"font-medium",children:l.author||"Unknown"})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Progress"}),m.jsxs("p",{className:"font-medium",children:[i,"%"]})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Time Read"}),m.jsx("p",{className:"font-medium",children:r(u)})]})})]}),m.jsxs("div",{className:"absolute flex flex-col gap-2 right-4 bottom-4 text-gray-500 dark:text-gray-400",children:[m.jsx(pa,{to:`/activity?document=${l.id}`,children:m.jsx(x2,{className:"w-20 h-20"})}),l.filepath?m.jsx(pa,{to:`/documents/${l.id}/file`,children:m.jsx(ff,{className:"w-20 h-20"})}):m.jsx(ff,{className:"w-20 h-20 text-gray-400"})]})]})})}function z2(){var X,K,k;const[l,i]=w.useState(""),[u,r]=w.useState(1),[o]=w.useState(9),[f,h]=w.useState(!1),g=w.useRef(null),{data:v,isLoading:y,refetch:b}=Q0({page:u,limit:o,search:l}),x=NE(),j=(X=v==null?void 0:v.data)==null?void 0:X.documents,G=(K=v==null?void 0:v.data)==null?void 0:K.previous_page,N=(k=v==null?void 0:v.data)==null?void 0:k.next_page,D=F=>{F.preventDefault(),b()},O=async F=>{var $;const ae=($=F.target.files)==null?void 0:$[0];if(ae){if(!ae.name.endsWith(".epub")){alert("Please upload an EPUB file");return}try{await x.mutateAsync({data:{document_file:ae}}),alert("Document uploaded successfully!"),h(!1),b()}catch(le){console.error("Upload failed:",le),alert("Failed to upload document")}}},H=()=>{h(!1),g.current&&(g.current.value="")};return y?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("div",{className:"flex flex-col gap-2 grow p-4 mb-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:D,children:[m.jsx("div",{className:"flex flex-col w-full grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(k0,{className:"w-15 h-15"})}),m.jsx("input",{type:"text",value:l,onChange:F=>i(F.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-2 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Search Author / Title",name:"search"})]})}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Search"})})]})}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:j==null?void 0:j.map(F=>m.jsx(D2,{doc:F},F.id))}),m.jsxs("div",{className:"w-full flex gap-4 justify-center mt-4 text-black dark:text-white",children:[G&&G>0&&m.jsx("button",{onClick:()=>r(u-1),className:"bg-white shadow-lg dark:bg-gray-600 hover:bg-gray-400 font-medium rounded text-sm text-center p-2 w-24 dark:hover:bg-gray-700 focus:outline-none",children:"◄"}),N&&N>0&&m.jsx("button",{onClick:()=>r(u+1),className:"bg-white shadow-lg dark:bg-gray-600 hover:bg-gray-400 font-medium rounded text-sm text-center p-2 w-24 dark:hover:bg-gray-700 focus:outline-none",children:"►"})]}),m.jsxs("div",{className:"fixed bottom-6 right-6 rounded-full flex items-center justify-center",children:[m.jsx("input",{type:"checkbox",id:"upload-file-button",className:"hidden",checked:f,onChange:()=>h(!f)}),m.jsxs("div",{className:`absolute right-0 z-10 bottom-0 rounded p-4 bg-gray-800 dark:bg-gray-200 text-white dark:text-black w-72 text-sm flex flex-col gap-2 ${f?"display-block":"display-none"}`,children:[m.jsxs("form",{method:"POST",encType:"multipart/form-data",className:"flex flex-col gap-2",children:[m.jsx("input",{type:"file",accept:".epub",id:"document_file",name:"document_file",ref:g,onChange:O}),m.jsx("button",{className:"font-medium px-2 py-1 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800",type:"submit",onClick:F=>{var ae;F.preventDefault(),O({target:{files:(ae=g.current)==null?void 0:ae.files}})},children:"Upload File"})]}),m.jsx("label",{htmlFor:"upload-file-button",children:m.jsx("div",{className:"w-full text-center cursor-pointer font-medium mt-2 px-2 py-1 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800",onClick:H,children:"Cancel Upload"})})]}),m.jsx("label",{className:"w-16 h-16 bg-gray-800 dark:bg-gray-200 rounded-full flex items-center justify-center opacity-30 hover:opacity-100 transition-all duration-200 cursor-pointer",htmlFor:"upload-file-button",children:m.jsx(j2,{className:"w-34 h-34"})})]})]})}function M2(){var g,v,y;const{id:l}=ox(),{data:i,isLoading:u}=jE(l||""),{data:r,isLoading:o}=LE(l||"");if(u||o)return m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."});const f=(g=i==null?void 0:i.data)==null?void 0:g.document,h=r==null?void 0:r.data;return f?m.jsx("div",{className:"h-full w-full relative",children:m.jsxs("div",{className:"h-full w-full overflow-scroll bg-white shadow-lg dark:bg-gray-700 rounded dark:text-white p-4",children:[m.jsxs("div",{className:"flex flex-col gap-2 float-left w-44 md:w-60 lg:w-80 mr-4 mb-2 relative",children:[m.jsx("div",{className:"rounded object-fill w-full bg-gray-200 dark:bg-gray-600 h-60",children:m.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-400",children:"No Cover"})}),m.jsx("a",{href:`/reader#id=${f.id}&type=REMOTE`,className:"text-white bg-blue-700 hover:bg-blue-800 font-medium rounded text-sm text-center py-1 dark:bg-blue-600 dark:hover:bg-blue-700",children:"Read"}),m.jsx("div",{className:"flex flex-wrap-reverse justify-between gap-2",children:m.jsx("div",{className:"min-w-[50%] md:mr-2",children:m.jsxs("div",{className:"flex gap-1 text-sm",children:[m.jsx("p",{className:"text-gray-500",children:"Words:"}),m.jsx("p",{className:"font-medium",children:f.words||"N/A"})]})})})]}),m.jsxs("div",{className:"grid sm:grid-cols-2 justify-between gap-4 pb-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Title"}),m.jsx("p",{className:"font-medium text-lg",children:f.title})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Author"}),m.jsx("p",{className:"font-medium text-lg",children:f.author})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Time Read"}),m.jsx("p",{className:"font-medium text-lg",children:(v=h==null?void 0:h.progress)!=null&&v.percentage?`${Math.round(h.progress.percentage)}%`:"0%"})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Progress"}),m.jsx("p",{className:"font-medium text-lg",children:(y=h==null?void 0:h.progress)!=null&&y.percentage?`${Math.round(h.progress.percentage)}%`:"0%"})]})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"text-gray-500 inline-flex gap-2 relative",children:m.jsx("p",{children:"Description"})}),m.jsx("div",{className:"relative font-medium text-justify hyphens-auto",children:m.jsx("p",{children:"N/A"})})]}),m.jsxs("div",{className:"mt-4 grid sm:grid-cols-3 gap-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Words"}),m.jsx("p",{className:"font-medium",children:f.words||"N/A"})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Created"}),m.jsx("p",{className:"font-medium",children:new Date(f.created_at).toLocaleDateString()})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Updated"}),m.jsx("p",{className:"font-medium",children:new Date(f.updated_at).toLocaleDateString()})]})]})]})}):m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Document not found"})}function U2(){var r;const{data:l,isLoading:i}=zE({page:1,limit:15}),u=(r=l==null?void 0:l.data)==null?void 0:r.progress;return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Document"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Device Name"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Percentage"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Created At"})]})}),m.jsx("tbody",{children:u==null?void 0:u.map(o=>m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("td",{className:"p-3",children:m.jsxs(pa,{to:`/documents/${o.document_id}`,className:"text-blue-600 dark:text-blue-400 hover:underline",children:[o.author||"Unknown"," - ",o.title||"Unknown"]})}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.device_name||"Unknown"}),m.jsxs("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:[o.percentage?Math.round(o.percentage):0,"%"]}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.created_at?new Date(o.created_at).toLocaleDateString():"N/A"})]},o.document_id))})]})})})}function q2(){var r;const{data:l,isLoading:i}=GE({offset:0,limit:100}),u=(r=l==null?void 0:l.data)==null?void 0:r.activities;return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Activity Type"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Document"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Timestamp"})]})}),m.jsx("tbody",{children:u==null?void 0:u.map(o=>m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.activity_type}),m.jsx("td",{className:"p-3",children:m.jsx("a",{href:`/documents/${o.document_id}`,className:"text-blue-600 dark:text-blue-400",children:o.document_id})}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:new Date(o.timestamp).toLocaleString()})]},o.id))})]})})})}const L2={LibGen:"LibGen"};function H2(){var v;const[l,i]=w.useState(""),[u,r]=w.useState(L2.LibGen),{data:o,isLoading:f}=r2({query:l,source:u}),h=(v=o==null?void 0:o.data)==null?void 0:v.results,g=y=>{y.preventDefault()};return m.jsx("div",{className:"w-full flex flex-col md:flex-row gap-4",children:m.jsxs("div",{className:"flex flex-col gap-4 grow",children:[m.jsx("div",{className:"flex flex-col gap-2 grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:g,children:[m.jsx("div",{className:"flex flex-col w-full grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(k0,{className:"w-15 h-15"})}),m.jsx("input",{type:"text",value:l,onChange:y=>i(y.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Query"})]})}),m.jsxs("div",{className:"flex relative min-w-[12em]",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(E2,{className:"w-15 h-15"})}),m.jsxs("select",{value:u,onChange:y=>r(y.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",children:[m.jsx("option",{value:"LibGen",children:"Library Genesis"}),m.jsx("option",{value:"Annas Archive",children:"Annas Archive"})]})]}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Search"})})]})}),m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full leading-normal bg-white dark:bg-gray-700 text-sm md:text-sm",children:[m.jsx("thead",{className:"text-gray-800 dark:text-gray-400",children:m.jsxs("tr",{children:[m.jsx("th",{className:"w-12 p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Document"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Series"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Type"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Size"}),m.jsx("th",{className:"p-3 hidden md:block font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Date"})]})}),m.jsxs("tbody",{className:"text-black dark:text-white",children:[f&&m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:6,children:"Loading..."})}),!f&&!h&&m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:6,children:"No Results"})}),!f&&h&&h.map(y=>m.jsxs("tr",{children:[m.jsx("td",{className:"p-3 border-b border-gray-200 text-gray-500 dark:text-gray-500",children:m.jsx("button",{className:"hover:text-purple-600",title:"Download",children:m.jsx(ff,{className:"w-15 h-15"})})}),m.jsxs("td",{className:"p-3 border-b border-gray-200",children:[y.author||"N/A"," - ",y.title||"N/A"]}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:y.series||"N/A"})}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:y.file_type||"N/A"})}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:y.file_size||"N/A"})}),m.jsx("td",{className:"hidden md:table-cell p-3 border-b border-gray-200",children:m.jsx("p",{children:y.upload_date||"N/A"})})]},y.id))]})]})})]})})}function B2(){var x;const{data:l,isLoading:i}=XE(),u=l==null?void 0:l.data,[r,o]=w.useState(""),[f,h]=w.useState(""),[g,v]=w.useState((u==null?void 0:u.timezone)||""),y=j=>{j.preventDefault()},b=j=>{j.preventDefault()};return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"w-full flex flex-col md:flex-row gap-4",children:[m.jsx("div",{children:m.jsxs("div",{className:"flex flex-col p-4 items-center rounded shadow-lg md:w-60 lg:w-80 bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx(_2,{className:"w-60 h-60"}),m.jsx("p",{className:"text-lg",children:(x=u==null?void 0:u.user)==null?void 0:x.username})]})}),m.jsxs("div",{className:"flex flex-col gap-4 grow",children:[m.jsxs("div",{className:"flex flex-col gap-2 grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold mb-2",children:"Change Password"}),m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:y,children:[m.jsx("div",{className:"flex flex-col grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(wp,{className:"w-15 h-15"})}),m.jsx("input",{type:"password",value:r,onChange:j=>o(j.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Password"})]})}),m.jsx("div",{className:"flex flex-col grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(wp,{className:"w-15 h-15"})}),m.jsx("input",{type:"password",value:f,onChange:j=>h(j.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"New Password"})]})}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Submit"})})]})]}),m.jsxs("div",{className:"flex flex-col grow gap-2 p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold mb-2",children:"Change Timezone"}),m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:b,children:[m.jsxs("div",{className:"flex relative grow",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(T2,{className:"w-15 h-15"})}),m.jsxs("select",{value:g,onChange:j=>v(j.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",children:[m.jsx("option",{value:"UTC",children:"UTC"}),m.jsx("option",{value:"America/New_York",children:"America/New_York"}),m.jsx("option",{value:"America/Chicago",children:"America/Chicago"}),m.jsx("option",{value:"America/Denver",children:"America/Denver"}),m.jsx("option",{value:"America/Los_Angeles",children:"America/Los_Angeles"}),m.jsx("option",{value:"Europe/London",children:"Europe/London"}),m.jsx("option",{value:"Europe/Paris",children:"Europe/Paris"}),m.jsx("option",{value:"Asia/Tokyo",children:"Asia/Tokyo"}),m.jsx("option",{value:"Asia/Shanghai",children:"Asia/Shanghai"}),m.jsx("option",{value:"Australia/Sydney",children:"Australia/Sydney"})]})]}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Submit"})})]})]}),m.jsxs("div",{className:"flex flex-col grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold",children:"Devices"}),m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700 text-sm",children:[m.jsx("thead",{className:"text-gray-800 dark:text-gray-400",children:m.jsxs("tr",{children:[m.jsx("th",{className:"p-3 pl-0 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Name"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Last Sync"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Created"})]})}),m.jsx("tbody",{className:"text-black dark:text-white",children:!(u!=null&&u.devices)||u.devices.length===0?m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:3,children:"No Results"})}):u.devices.map(j=>m.jsxs("tr",{children:[m.jsx("td",{className:"p-3 pl-0",children:m.jsx("p",{children:j.device_name||"Unknown"})}),m.jsx("td",{className:"p-3",children:m.jsx("p",{children:j.last_synced?new Date(j.last_synced).toLocaleString():"N/A"})}),m.jsx("td",{className:"p-3",children:m.jsx("p",{children:j.created_at?new Date(j.created_at).toLocaleString():"N/A"})})]},j.id))})]})]})]})]})}function Q2(){const[l,i]=w.useState(""),[u,r]=w.useState(""),[o,f]=w.useState(""),[h,g]=w.useState(!1),{login:v}=Df(),y=async b=>{b.preventDefault(),g(!0),f("");try{await v(l,u)}catch{f("Invalid credentials")}finally{g(!1)}};return m.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 dark:text-white min-h-screen",children:m.jsxs("div",{className:"flex flex-wrap w-full",children:[m.jsx("div",{className:"flex flex-col w-full md:w-1/2",children:m.jsxs("div",{className:"flex flex-col justify-center px-8 pt-8 my-auto md:justify-start md:pt-0 md:px-24 lg:px-32",children:[m.jsx("p",{className:"text-3xl text-center",children:"Welcome."}),m.jsxs("form",{className:"flex flex-col pt-3 md:pt-8",onSubmit:y,children:[m.jsx("div",{className:"flex flex-col pt-4",children:m.jsx("div",{className:"flex relative",children:m.jsx("input",{type:"text",value:l,onChange:b=>i(b.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Username",required:!0,disabled:h})})}),m.jsx("div",{className:"flex flex-col pt-4 mb-12",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("input",{type:"password",value:u,onChange:b=>r(b.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Password",required:!0,disabled:h}),m.jsx("span",{className:"absolute -bottom-5 text-red-400 text-xs",children:o})]})}),m.jsx("button",{type:"submit",disabled:h,className:"w-full px-4 py-2 text-base font-semibold text-center text-white transition duration-200 ease-in bg-black shadow-md hover:text-black hover:bg-white focus:outline-none focus:ring-2 disabled:opacity-50",children:h?"Logging in...":"Login"})]}),m.jsx("div",{className:"pt-12 pb-12 text-center",children:m.jsx("p",{className:"mt-4",children:m.jsx("a",{href:"/local",className:"font-semibold underline",children:"Offline / Local Mode"})})})]})}),m.jsx("div",{className:"hidden image-fader w-1/2 shadow-2xl h-screen relative md:block",children:m.jsx("div",{className:"w-full h-screen object-cover ease-in-out top-0 left-0 bg-gray-300 flex items-center justify-center",children:m.jsx("span",{className:"text-gray-500",children:"AnthoLume"})})})]})})}function Vn({children:l}){const{isAuthenticated:i}=Df(),u=ia();return i?l:m.jsx(e0,{to:"/login",state:{from:u},replace:!0})}function G2(){return m.jsxs(Ax,{children:[m.jsxs(fa,{path:"/",element:m.jsx(o2,{}),children:[m.jsx(fa,{index:!0,element:m.jsx(Vn,{children:m.jsx(h2,{})})}),m.jsx(fa,{path:"documents",element:m.jsx(Vn,{children:m.jsx(z2,{})})}),m.jsx(fa,{path:"documents/:id",element:m.jsx(Vn,{children:m.jsx(M2,{})})}),m.jsx(fa,{path:"progress",element:m.jsx(Vn,{children:m.jsx(U2,{})})}),m.jsx(fa,{path:"activity",element:m.jsx(Vn,{children:m.jsx(q2,{})})}),m.jsx(fa,{path:"search",element:m.jsx(Vn,{children:m.jsx(H2,{})})}),m.jsx(fa,{path:"settings",element:m.jsx(Vn,{children:m.jsx(B2,{})})})]}),m.jsx(fa,{path:"/login",element:m.jsx(Q2,{})})]})}function Y2(){return m.jsx(c2,{children:m.jsx(G2,{})})}const K2=new j1({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1},mutations:{retry:0}}});Nb.createRoot(document.getElementById("root")).render(m.jsx(gb.StrictMode,{children:m.jsx(C1,{client:K2,children:m.jsx($x,{children:m.jsx(Y2,{})})})}));
|