312 lines
405 KiB
JavaScript
312 lines
405 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-Dv6k8rrZ.js","assets/card-DvRCiB1a.js","assets/useChart-BCLvza0E.js","assets/echarts-BIWefrIc.js","assets/GradesPage-CWm5gsW9.js","assets/TypesPage-DtmU1Vij.js","assets/TaxonomyPage--zwAHhtt.js","assets/AdminPage-CrUVnwRu.js"])))=>i.map(i=>d[i]);
|
||
var T0=n=>{throw TypeError(n)};var Yf=(n,r,s)=>r.has(n)||T0("Cannot "+s);var E=(n,r,s)=>(Yf(n,r,"read from private field"),s?s.call(n):r.get(n)),fe=(n,r,s)=>r.has(n)?T0("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,s),I=(n,r,s,c)=>(Yf(n,r,"write to private field"),c?c.call(n,s):r.set(n,s),s),Ee=(n,r,s)=>(Yf(n,r,"access private method"),s);var Ys=(n,r,s,c)=>({set _(f){I(n,r,f,s)},get _(){return E(n,r,c)}});(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&c(d)}).observe(document,{childList:!0,subtree:!0});function s(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(f){if(f.ep)return;f.ep=!0;const h=s(f);fetch(f.href,h)}})();function wg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vf={exports:{}},Wu={};/**
|
||
* @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 N0;function Zx(){if(N0)return Wu;N0=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(c,f,h){var d=null;if(h!==void 0&&(d=""+h),f.key!==void 0&&(d=""+f.key),"key"in f){h={};for(var v in f)v!=="key"&&(h[v]=f[v])}else h=f;return f=h.ref,{$$typeof:n,type:c,key:d,ref:f!==void 0?f:null,props:h}}return Wu.Fragment=r,Wu.jsx=s,Wu.jsxs=s,Wu}var C0;function Jx(){return C0||(C0=1,Vf.exports=Zx()),Vf.exports}var m=Jx(),Xf={exports:{}},pe={};/**
|
||
* @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 z0;function Fx(){if(z0)return pe;z0=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),C=Symbol.for("react.view_transition"),L=Symbol.iterator;function K(N){return N===null||typeof N!="object"?null:(N=L&&N[L]||N["@@iterator"],typeof N=="function"?N:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,k={};function Y(N,Q,te){this.props=N,this.context=Q,this.refs=k,this.updater=te||B}Y.prototype.isReactComponent={},Y.prototype.setState=function(N,Q){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,Q,"setState")},Y.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function Z(){}Z.prototype=Y.prototype;function J(N,Q,te){this.props=N,this.context=Q,this.refs=k,this.updater=te||B}var X=J.prototype=new Z;X.constructor=J,U(X,Y.prototype),X.isPureReactComponent=!0;var ce=Array.isArray;function V(){}var D={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function ge(N,Q,te){var se=te.ref;return{$$typeof:n,type:N,key:Q,ref:se!==void 0?se:null,props:te}}function $(N,Q){return ge(N.type,Q,N.props)}function ye(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function _e(N){var Q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(te){return Q[te]})}var M=/\/+/g;function ee(N,Q){return typeof N=="object"&&N!==null&&N.key!=null?_e(""+N.key):Q.toString(36)}function G(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(V,V):(N.status="pending",N.then(function(Q){N.status==="pending"&&(N.status="fulfilled",N.value=Q)},function(Q){N.status==="pending"&&(N.status="rejected",N.reason=Q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function P(N,Q,te,se,we){var he=typeof N;(he==="undefined"||he==="boolean")&&(N=null);var Me=!1;if(N===null)Me=!0;else switch(he){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(N.$$typeof){case n:case r:Me=!0;break;case x:return Me=N._init,P(Me(N._payload),Q,te,se,we)}}if(Me)return we=we(N),Me=se===""?"."+ee(N,0):se,ce(we)?(te="",Me!=null&&(te=Me.replace(M,"$&/")+"/"),P(we,Q,te,"",function(Gt){return Gt})):we!=null&&(ye(we)&&(we=$(we,te+(we.key==null||N&&N.key===we.key?"":(""+we.key).replace(M,"$&/")+"/")+Me)),Q.push(we)),1;Me=0;var ue=se===""?".":se+":";if(ce(N))for(var me=0;me<N.length;me++)se=N[me],he=ue+ee(se,me),Me+=P(se,Q,te,he,we);else if(me=K(N),typeof me=="function")for(N=me.call(N),me=0;!(se=N.next()).done;)se=se.value,he=ue+ee(se,me++),Me+=P(se,Q,te,he,we);else if(he==="object"){if(typeof N.then=="function")return P(G(N),Q,te,se,we);throw Q=String(N),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Me}function de(N,Q,te){if(N==null)return N;var se=[],we=0;return P(N,se,"","",function(he){return Q.call(te,he,we++)}),se}function He(N){if(N._status===-1){var Q=N._result,te=Q();te.then(function(se){(N._status===0||N._status===-1)&&(N._status=1,N._result=se,te.status===void 0&&(te.status="fulfilled",te.value=se))},function(se){(N._status===0||N._status===-1)&&(N._status=2,N._result=se,te.status===void 0&&(te.status="rejected",te.reason=se))}),N._status===-1&&(N._status=0,N._result=te)}if(N._status===1)return N._result.default;throw N._result}var F=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function Dt(N){var Q=D.T,te={};te.types=Q!==null?Q.types:null,D.T=te;try{var se=N(),we=D.S;we!==null&&we(te,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(V,F)}catch(he){F(he)}finally{Q!==null&&te.types!==null&&(Q.types=te.types),D.T=Q}}function ll(N){var Q=D.T;if(Q!==null){var te=Q.types;te===null?Q.types=[N]:te.indexOf(N)===-1&&te.push(N)}else Dt(ll.bind(null,N))}var wl={map:de,forEach:function(N,Q,te){de(N,function(){Q.apply(this,arguments)},te)},count:function(N){var Q=0;return de(N,function(){Q++}),Q},toArray:function(N){return de(N,function(Q){return Q})||[]},only:function(N){if(!ye(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return pe.Activity=p,pe.Children=wl,pe.Component=Y,pe.Fragment=s,pe.Profiler=f,pe.PureComponent=J,pe.StrictMode=c,pe.Suspense=b,pe.ViewTransition=C,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,pe.__COMPILER_RUNTIME={__proto__:null,c:function(N){return D.H.useMemoCache(N)}},pe.addTransitionType=ll,pe.cache=function(N){return function(){return N.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(N,Q,te){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var se=U({},N.props),we=N.key;if(Q!=null)for(he in Q.key!==void 0&&(we=""+Q.key),Q)!ae.call(Q,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Q.ref===void 0||(se[he]=Q[he]);var he=arguments.length-2;if(he===1)se.children=te;else if(1<he){for(var Me=Array(he),ue=0;ue<he;ue++)Me[ue]=arguments[ue+2];se.children=Me}return ge(N.type,we,se)},pe.createContext=function(N){return N={$$typeof:d,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},pe.createElement=function(N,Q,te){var se,we={},he=null;if(Q!=null)for(se in Q.key!==void 0&&(he=""+Q.key),Q)ae.call(Q,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(we[se]=Q[se]);var Me=arguments.length-2;if(Me===1)we.children=te;else if(1<Me){for(var ue=Array(Me),me=0;me<Me;me++)ue[me]=arguments[me+2];we.children=ue}if(N&&N.defaultProps)for(se in Me=N.defaultProps,Me)we[se]===void 0&&(we[se]=Me[se]);return ge(N,he,we)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(N){return{$$typeof:v,render:N}},pe.isValidElement=ye,pe.lazy=function(N){return{$$typeof:x,_payload:{_status:-1,_result:N},_init:He}},pe.memo=function(N,Q){return{$$typeof:g,type:N,compare:Q===void 0?null:Q}},pe.startTransition=Dt,pe.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},pe.use=function(N){return D.H.use(N)},pe.useActionState=function(N,Q,te){return D.H.useActionState(N,Q,te)},pe.useCallback=function(N,Q){return D.H.useCallback(N,Q)},pe.useContext=function(N){return D.H.useContext(N)},pe.useDebugValue=function(){},pe.useDeferredValue=function(N,Q){return D.H.useDeferredValue(N,Q)},pe.useEffect=function(N,Q){return D.H.useEffect(N,Q)},pe.useEffectEvent=function(N){return D.H.useEffectEvent(N)},pe.useId=function(){return D.H.useId()},pe.useImperativeHandle=function(N,Q,te){return D.H.useImperativeHandle(N,Q,te)},pe.useInsertionEffect=function(N,Q){return D.H.useInsertionEffect(N,Q)},pe.useLayoutEffect=function(N,Q){return D.H.useLayoutEffect(N,Q)},pe.useMemo=function(N,Q){return D.H.useMemo(N,Q)},pe.useOptimistic=function(N,Q){return D.H.useOptimistic(N,Q)},pe.useReducer=function(N,Q,te){return D.H.useReducer(N,Q,te)},pe.useRef=function(N){return D.H.useRef(N)},pe.useState=function(N){return D.H.useState(N)},pe.useSyncExternalStore=function(N,Q,te){return D.H.useSyncExternalStore(N,Q,te)},pe.useTransition=function(){return D.H.useTransition()},pe.version="19.3.1",pe}var w0;function Nd(){return w0||(w0=1,Xf.exports=Fx()),Xf.exports}var _=Nd();const $x=wg(_);var Kf={exports:{}},Pu={},Zf={exports:{}},Jf={};/**
|
||
* @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 O0;function Wx(){return O0||(O0=1,(function(n){function r(G,P){var de=G.length;G.push(P);e:for(;0<de;){var He=de-1>>>1,F=G[He];if(0<f(F,P))G[He]=P,G[de]=F,de=He;else break e}}function s(G){return G.length===0?null:G[0]}function c(G){if(G.length===0)return null;var P=G[0],de=G.pop();if(de!==P){G[0]=de;e:for(var He=0,F=G.length,Dt=F>>>1;He<Dt;){var ll=2*(He+1)-1,wl=G[ll],N=ll+1,Q=G[N];if(0>f(wl,de))N<F&&0>f(Q,wl)?(G[He]=Q,G[N]=de,He=N):(G[He]=wl,G[ll]=de,He=ll);else if(N<F&&0>f(Q,de))G[He]=Q,G[N]=de,He=N;else break e}}return P}function f(G,P){var de=G.sortIndex-P.sortIndex;return de!==0?de:G.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var d=Date,v=d.now();n.unstable_now=function(){return d.now()-v}}var b=[],g=[],x=1,p=null,C=3,L=!1,K=!1,B=!1,U=!1,k=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function J(G){for(var P=s(g);P!==null;){if(P.callback===null)c(g);else if(P.startTime<=G)c(g),P.sortIndex=P.expirationTime,r(b,P);else break;P=s(g)}}function X(G){if(B=!1,J(G),!K)if(s(b)!==null)K=!0,ce||(ce=!0,ye());else{var P=s(g);P!==null&&ee(X,P.startTime-G)}}var ce=!1,V=-1,D=5,ae=-1;function ge(){return U?!0:!(n.unstable_now()-ae<D)}function $(){if(U=!1,ce){var G=n.unstable_now();ae=G;var P=!0;try{e:{K=!1,B&&(B=!1,Y(V),V=-1),L=!0;var de=C;try{t:{for(J(G),p=s(b);p!==null&&!(p.expirationTime>G&&ge());){var He=p.callback;if(typeof He=="function"){p.callback=null,C=p.priorityLevel;var F=He(p.expirationTime<=G);if(G=n.unstable_now(),typeof F=="function"){p.callback=F,J(G),P=!0;break t}p===s(b)&&c(b),J(G)}else c(b);p=s(b)}if(p!==null)P=!0;else{var Dt=s(g);Dt!==null&&ee(X,Dt.startTime-G),P=!1}}break e}finally{p=null,C=de,L=!1}P=void 0}}finally{P?ye():ce=!1}}}var ye;if(typeof Z=="function")ye=function(){Z($)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,M=_e.port2;_e.port1.onmessage=$,ye=function(){M.postMessage(null)}}else ye=function(){k($,0)};function ee(G,P){V=k(function(){G(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(G){switch(C){case 1:case 2:case 3:var P=3;break;default:P=C}var de=C;C=P;try{return G()}finally{C=de}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(G,P){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var de=C;C=G;try{return P()}finally{C=de}},n.unstable_scheduleCallback=function(G,P,de){var He=n.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?He+de:He):de=He,G){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=de+F,G={id:x++,callback:P,priorityLevel:G,startTime:de,expirationTime:F,sortIndex:-1},de>He?(G.sortIndex=de,r(g,G),s(b)===null&&G===s(g)&&(B?(Y(V),V=-1):B=!0,ee(X,de-He))):(G.sortIndex=F,r(b,G),K||L||(K=!0,ce||(ce=!0,ye()))),G},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(G){var P=C;return function(){var de=C;C=P;try{return G.apply(this,arguments)}finally{C=de}}}})(Jf)),Jf}var R0;function Px(){return R0||(R0=1,Zf.exports=Wx()),Zf.exports}var Ff={exports:{}},_t={};/**
|
||
* @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 j0;function Ix(){if(j0)return _t;j0=1;var n=Nd();function r(x){var p="https://react.dev/errors/"+x;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)p+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+x+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal"),h=Symbol.for("react.recoverable"),d=Symbol.for("react.optimistic_key");function v(x,p,C){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:L==null?null:L===d?d:""+L,children:x,containerInfo:p,implementation:C}}var b=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(x,p){if(x==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,_t.browser=function(x){return{$$typeof:h,_reason:x}},_t.createPortal=function(x,p){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return v(x,p,null,C)},_t.flushSync=function(x){var p=b.T,C=c.p;try{if(b.T=null,c.p=2,x)return x()}finally{b.T=p,c.p=C,c.d.f()}},_t.preconnect=function(x,p){typeof x=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(x,p))},_t.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},_t.preinit=function(x,p){if(typeof x=="string"&&p&&typeof p.as=="string"){var C=p.as,L=g(C,p.crossOrigin),K=typeof p.integrity=="string"?p.integrity:void 0,B=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;C==="style"?c.d.S(x,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:L,integrity:K,fetchPriority:B}):C==="script"&&c.d.X(x,{crossOrigin:L,integrity:K,fetchPriority:B,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},_t.preinitModule=function(x,p){if(typeof x=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var C=g(p.as,p.crossOrigin);c.d.M(x,{crossOrigin:C,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&c.d.M(x)},_t.preload=function(x,p){if(typeof x=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var C=p.as,L=g(C,p.crossOrigin);c.d.L(x,C,{crossOrigin:L,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},_t.preloadModule=function(x,p){if(typeof x=="string")if(p){var C=g(p.as,p.crossOrigin);c.d.m(x,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:C,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else c.d.m(x)},_t.requestFormReset=function(x){c.d.r(x)},_t.unstable_batchedUpdates=function(x,p){return x(p)},_t.useFormState=function(x,p,C){return b.H.useFormState(x,p,C)},_t.useFormStatus=function(){return b.H.useHostTransitionStatus()},_t.version="19.3.1",_t}var A0;function Og(){if(A0)return Ff.exports;A0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Ff.exports=Ix(),Ff.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 M0;function e2(){if(M0)return Pu;M0=1;var n=Px(),r=Nd(),s=Og();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(c(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var u=i.alternate;if(u===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===l)return b(i),e;if(u===a)return b(i),t;u=u.sibling}throw Error(c(188))}if(l.return!==a.return)l=i,a=u;else{for(var o=!1,y=i.child;y;){if(y===l){o=!0,l=i,a=u;break}if(y===a){o=!0,a=i,l=u;break}y=y.sibling}if(!o){for(y=u.child;y;){if(y===l){o=!0,l=u,a=i;break}if(y===a){o=!0,a=u,l=i;break}y=y.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}function p(e,t,l,a,i,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,a,i,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,l,a,i,u))return!0;e=e.sibling}return!1}function C(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function L(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function K(e){var t=[null,null],l=C(e);return l===null||B(t,e,l.child,{foundSelf:!1}),t}function B(e,t,l,a){for(;l!==null;){if(l===t)a.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(a.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&B(e,t,l.child,a))return!0;l=l.sibling}return!1}function U(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(c(559))}}var k=null,Y=null;function Z(e,t,l){return e===l?!0:e===t?(k=e,!0):!1}function J(e,t,l){return e===l?(Y=e,!1):e===t?(Y!==null&&(k=e),!0):!1}function X(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ce(e,t,l){for(var a=0,i=e;i;i=l(i))a++;i=0;for(var u=t;u;u=l(u))i++;for(;0<a-i;)e=l(e),a--;for(;0<i-a;)t=l(t),i--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var V=Object.assign,D=Symbol.for("react.element"),ae=Symbol.for("react.transitional.element"),ge=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),_e=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),He=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Dt=Symbol.for("react.activity"),ll=Symbol.for("react.legacy_hidden"),wl=Symbol.for("react.memo_cache_sentinel"),N=Symbol.for("react.view_transition"),Q=Symbol.for("react.recoverable"),te=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case _e:return"Profiler";case ye:return"StrictMode";case P:return"Suspense";case de:return"SuspenseList";case Dt:return"Activity";case N:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ge:return"Portal";case ee:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case He:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var Me=Array.isArray,ue=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gt={pending:!1,data:null,method:null,action:null},ya=[],Vn=-1;function Ol(e){return{current:e}}function vt(e){0>Vn||(e.current=ya[Vn],ya[Vn]=null,Vn--)}function Ke(e,t){Vn++,ya[Vn]=e.current,e.current=t}var Rl=Ol(null),au=Ol(null),va=Ol(null),hr=Ol(null);function mr(e,t){switch(Ke(va,t),Ke(au,e),Ke(Rl,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mv(t),e=Dv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}vt(Rl),Ke(Rl,e)}function Xn(){vt(Rl),vt(au),vt(va)}function rc(e){var t=e.memoizedState;t!==null&&(Ai._currentValue=t.memoizedState,Ke(hr,e)),t=Rl.current;var l=Dv(t,e.type);t!==l&&(Ke(au,e),Ke(Rl,l))}function yr(e){au.current===e&&(vt(Rl),vt(au)),hr.current===e&&(vt(hr),Ai._currentValue=Gt)}var sc,eh;function ga(e){if(sc===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);sc=t&&t[1]||"",eh=-1<l.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+sc+e+eh}var cc=!1;function oc(e,t){if(!e||cc)return"";cc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(W){var z=W}Reflect.construct(e,[],q)}else{try{q.call()}catch(W){z=W}q=!1;try{var j=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),q=!0,new e}finally{q&&(j!==void 0?Object.defineProperty(e.prototype,"props",j):delete e.prototype.props)}}}else{try{throw Error()}catch(W){z=W}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(W){if(W&&z&&typeof W.stack=="string")return[W.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),o=u[0],y=u[1];if(o&&y){var S=o.split(`
|
||
`),O=y.split(`
|
||
`);for(i=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(a===S.length||i===O.length)for(a=S.length-1,i=O.length-1;1<=a&&0<=i&&S[a]!==O[i];)i--;for(;1<=a&&0<=i;a--,i--)if(S[a]!==O[i]){if(a!==1||i!==1)do if(a--,i--,0>i||S[a]!==O[i]){var A=`
|
||
`+S[a].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=a&&0<=i);break}}}finally{cc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ga(l):""}function Wp(e,t){switch(e.tag){case 26:case 27:case 5:return ga(e.type);case 16:return ga("Lazy");case 13:return e.child!==t&&t!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return oc(e.type,!1);case 11:return oc(e.type.render,!1);case 1:return oc(e.type,!0);case 31:return ga("Activity");case 30:return ga("ViewTransition");default:return""}}function th(e){try{var t="",l=null;do t+=Wp(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
||
Error generating stack: `+a.message+`
|
||
`+a.stack}}var fc=Object.prototype.hasOwnProperty,dc=n.unstable_scheduleCallback,hc=n.unstable_cancelCallback,Pp=n.unstable_shouldYield,Ip=n.unstable_requestPaint,Yt=n.unstable_now,e1=n.unstable_getCurrentPriorityLevel,lh=n.unstable_ImmediatePriority,ah=n.unstable_UserBlockingPriority,vr=n.unstable_NormalPriority,t1=n.unstable_LowPriority,nh=n.unstable_IdlePriority,l1=n.log,a1=n.unstable_setDisableYieldValue,nu=null,Vt=null;function pa(e){if(typeof l1=="function"&&a1(e),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(nu,e)}catch{}}var Xt=Math.clz32?Math.clz32:u1,n1=Math.log,i1=Math.LN2;function u1(e){return e>>>=0,e===0?32:31-(n1(e)/i1|0)|0}var gr=256,pr=262144,br=4194304;function an(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xr(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~u,a!==0?i=an(a):(o&=y,o!==0?i=an(o):l||(l=y&~e,l!==0&&(i=an(l))))):(y=a&~u,y!==0?i=an(y):o!==0?i=an(o):l||(l=a&~e,l!==0&&(i=an(l)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:i}function iu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ih(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-Xt(l),i=1<<a;t|=e[a],l&=~i}return t}function r1(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 uh(){var e=br;return br<<=1,(br&62914560)===0&&(br=4194304),e}function mc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function uu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function s1(e,t,l,a,i,u){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(l=o&~l;0<l;){var A=31-Xt(l),q=1<<A;y[A]=0,S[A]=-1;var z=O[A];if(z!==null)for(O[A]=null,A=0;A<z.length;A++){var j=z[A];j!==null&&(j.lane&=-536870913)}l&=~q}a!==0&&rh(e,a,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function rh(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Xt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function sh(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Xt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function ch(e,t){var l=t&-t;return l=(l&42)!==0?1:yc(l),(l&(e.suspendedLanes|t))!==0?0:l}function yc(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 vc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function oh(){var e=me.p;return e!==0?e:(e=window.event,e===void 0?32:g0(e.type))}function fh(e,t){var l=me.p;try{return me.p=e,t()}finally{me.p=l}}var Zl=Math.random().toString(36).slice(2),gt="__reactFiber$"+Zl,Ut="__reactProps$"+Zl,Kn="__reactContainer$"+Zl,dh="__reactEvents$"+Zl,c1="__reactListeners$"+Zl,o1="__reactHandles$"+Zl,hh="__reactResources$"+Zl,ru="__reactMarker$"+Zl,Sr="__reactLoad$"+Zl;function Er(e){delete e[gt],delete e[Ut],delete e[c1],delete e[o1]}function nn(e){var t;if(t=e[gt])return t;for(var l=e.parentNode;l;){if(t=l[Kn]||l[gt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Wv(e);e!==null;){if(l=e[gt])return l;e=Wv(e)}return t}e=l,l=e.parentNode}return null}function Zn(e){if(e=e[gt]||e[Kn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function su(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Jn(e){var t=e[hh];return t||(t=e[hh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[ru]=!0}function mh(e){e[Sr]=void 0}var yh=new Set,vh={};function un(e,t){Fn(e,t),Fn(e+"Capture",t)}function Fn(e,t){for(vh[e]=t,e=0;e<t.length;e++)yh.add(t[e])}var f1=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]*$"),gh={},ph={};function d1(e){return fc.call(ph,e)?!0:fc.call(gh,e)?!1:f1.test(e)?ph[e]=!0:(gh[e]=!0,!1)}var ke=!1;function bh(){var e=ke;return ke=!1,e}function _r(e,t,l){if(d1(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,l)}}function Tr(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,l)}}function Jl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,a)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){l=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gc(e){if(!e._valueTracker){var t=xh(e)?"checked":"value";e._valueTracker=h1(e,t,""+e[t])}}function Sh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=xh(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var m1=/[\n"\\]/g;function al(e){return e.replace(m1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function pc(e,t,l,a,i,u,o,y){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?bc(e,Kt(e.value)):bc(e,Kt(t)):l!=null?bc(e,Kt(l)):a!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Kt(y):e.removeAttribute("name")}function Eh(e,t,l,a,i,u,o,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){gc(e);return}l=l!=null?""+Kt(l):"",t=t!=null?""+Kt(t):l,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),gc(e)}function bc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function $n(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Kt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _h(e,t,l){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Kt(l):""}function Th(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(Me(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Kt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),gc(e)}function Wn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var y1=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 Nh(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||y1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ch(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",ke=!0);for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&(Nh(e,i,a),ke=!0)}else for(var u in t)t.hasOwnProperty(u)&&Nh(e,u,t[u])}function xc(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 v1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),g1=/^[\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 Nr(e){return g1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jl(){}var Sc=null;function Ec(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pn=null,In=null;function zh(e){var t=Zn(e);if(t&&(e=t.stateNode)){var l=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(pc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+al(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[Ut]||null;if(!i)throw Error(c(90));pc(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Sh(a)}break e;case"textarea":_h(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$n(e,!!l.multiple,t,!1)}}}var _c=!1;function wh(e,t,l){if(_c)return e(t,l);_c=!0;try{var a=e(t);return a}finally{if(_c=!1,(Pn!==null||In!==null)&&(Ns(),Pn&&(t=Pn,e=In,In=Pn=null,zh(t),e)))for(t=0;t<e.length;t++)zh(e[t])}}function cu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ut]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var Fl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tc=!1;if(Fl)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){Tc=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{Tc=!1}var ba=null,Nc=null,Cr=null;function Oh(){if(Cr)return Cr;var e,t=Nc,l=t.length,a,i="value"in ba?ba.value:ba.textContent,u=i.length;for(e=0;e<l&&t[e]===i[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===i[u-a];a++);return Cr=i.slice(e,1<a?1-a:void 0)}function zr(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 wr(){return!0}function Rh(){return!1}function zt(e){function t(l,a,i,u,o){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(l=e[y],this[y]=l?l(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?wr:Rh,this.isPropagationStopped=Rh,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=wr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wr)},persist:function(){},isPersistent:wr}),t}var xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Or=zt(xa),fu=V({},xa,{view:0,detail:0}),p1=zt(fu),Cc,zc,du,Rr=V({},fu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,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!==du&&(du&&e.type==="mousemove"?(Cc=e.screenX-du.screenX,zc=e.screenY-du.screenY):zc=Cc=0,du=e),Cc)},movementY:function(e){return"movementY"in e?e.movementY:zc}}),jh=zt(Rr),b1=V({},Rr,{dataTransfer:0}),x1=zt(b1),S1=V({},fu,{relatedTarget:0}),wc=zt(S1),E1=V({},xa,{animationName:0,elapsedTime:0,pseudoElement:0}),_1=zt(E1),T1=V({},xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N1=zt(T1),C1=V({},xa,{data:0}),Ah=zt(C1),z1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w1={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"},O1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=O1[e])?!!t[e]:!1}function Oc(){return R1}var j1=V({},fu,{key:function(e){if(e.key){var t=z1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?zr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),A1=zt(j1),M1=V({},Rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mh=zt(M1),D1=V({},xa,{submitter:0}),U1=zt(D1),k1=V({},fu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),H1=zt(k1),q1=V({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),L1=zt(q1),B1=V({},Rr,{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}),Q1=zt(B1),G1=V({},xa,{newState:0,oldState:0,source:0}),Y1=zt(G1),V1=[9,13,27,32],Rc=Fl&&"CompositionEvent"in window,hu=null;Fl&&"documentMode"in document&&(hu=document.documentMode);var X1=Fl&&"TextEvent"in window&&!hu,Dh=Fl&&(!Rc||hu&&8<hu&&11>=hu),Uh=" ",kh=!1;function Hh(e,t){switch(e){case"keyup":return V1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ei=!1;function K1(e,t){switch(e){case"compositionend":return qh(t);case"keypress":return t.which!==32?null:(kh=!0,Uh);case"textInput":return e=t.data,e===Uh&&kh?null:e;default:return null}}function Z1(e,t){if(ei)return e==="compositionend"||!Rc&&Hh(e,t)?(e=Oh(),Cr=Nc=ba=null,ei=!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 Dh&&t.locale!=="ko"?null:t.data;default:return null}}var J1={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 Lh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!J1[e.type]:t==="textarea"}function Bh(e,t,l,a){Pn?In?In.push(a):In=[a]:Pn=a,t=js(t,"onChange"),0<t.length&&(l=new Or("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var mu=null,yu=null;function F1(e){zv(e,0)}function jr(e){var t=su(e);if(Sh(t))return e}function Qh(e,t){if(e==="change")return t}var Gh=!1;if(Fl){var jc;if(Fl){var Ac="oninput"in document;if(!Ac){var Yh=document.createElement("div");Yh.setAttribute("oninput","return;"),Ac=typeof Yh.oninput=="function"}jc=Ac}else jc=!1;Gh=jc&&(!document.documentMode||9<document.documentMode)}function Vh(){mu&&(mu.detachEvent("onpropertychange",Xh),yu=mu=null)}function Xh(e){if(e.propertyName==="value"&&jr(yu)){var t=[];Bh(t,yu,e,Ec(e)),wh(F1,t)}}function $1(e,t,l){e==="focusin"?(Vh(),mu=t,yu=l,mu.attachEvent("onpropertychange",Xh)):e==="focusout"&&Vh()}function W1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jr(yu)}function P1(e,t){if(e==="click")return jr(t)}function I1(e,t){if(e==="input"||e==="change")return jr(t)}function eb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:eb;function vu(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!fc.call(t,i)||!Zt(e[i],t[i]))return!1}return!0}function Mc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zh(e,t){var l=Kh(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Kh(l)}}function Jh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mc(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Mc(e.document)}return t}function Dc(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 tb=Fl&&"documentMode"in document&&11>=document.documentMode,ti=null,Uc=null,gu=null,kc=!1;function $h(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;kc||ti==null||ti!==Mc(a)||(a=ti,"selectionStart"in a&&Dc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),gu&&vu(gu,a)||(gu=a,a=js(Uc,"onSelect"),0<a.length&&(t=new Or("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ti)))}function rn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var li={animationend:rn("Animation","AnimationEnd"),animationiteration:rn("Animation","AnimationIteration"),animationstart:rn("Animation","AnimationStart"),transitionrun:rn("Transition","TransitionRun"),transitionstart:rn("Transition","TransitionStart"),transitioncancel:rn("Transition","TransitionCancel"),transitionend:rn("Transition","TransitionEnd")},Hc={},Wh={};Fl&&(Wh=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function sn(e){if(Hc[e])return Hc[e];if(!li[e])return e;var t=li[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Wh)return Hc[e]=t[l];return e}var Ph=sn("animationend"),Ih=sn("animationiteration"),em=sn("animationstart"),lb=sn("transitionrun"),ab=sn("transitionstart"),nb=sn("transitioncancel"),tm=sn("transitionend"),lm=new Map,qc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qc.push("scrollEnd");function gl(e,t){lm.set(e,t),un(t,[e])}var ib=0;function $l(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Sl.identifierPrefix;var l=ib++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function am(e){if(e==null||typeof e=="string")return e;var t=null,l=Ei;if(l!==null)for(var a=0;a<l.length;a++){var i=e[l[a]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function Wl(e,t){return e=am(e),t=am(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Ar=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)},nl=[],ai=0,Lc=0;function Mr(){for(var e=ai,t=Lc=ai=0;t<e;){var l=nl[t];nl[t++]=null;var a=nl[t];nl[t++]=null;var i=nl[t];nl[t++]=null;var u=nl[t];if(nl[t++]=null,a!==null&&i!==null){var o=a.pending;o===null?i.next=i:(i.next=o.next,o.next=i),a.pending=i}u!==0&&nm(l,i,u)}}function Dr(e,t,l,a){nl[ai++]=e,nl[ai++]=t,nl[ai++]=l,nl[ai++]=a,Lc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Bc(e,t,l,a){return Dr(e,t,l,a),Ur(e)}function cn(e,t){return Dr(e,null,null,t),Ur(e)}function nm(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Xt(l),e=u.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),u):null}function Ur(e){if(50<Lu)throw Lu=0,Ts=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function ub(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,l,a){return new ub(e,t,l,a)}function Qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pl(e,t){var l=e.alternate;return l===null?(l=kt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function im(e,t){e.flags&=1206910978;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function kr(e,t,l,a,i,u){var o=0;if(a=e,typeof a=="function")Qc(a)&&(o=1);else if(typeof a=="string")o=Dx(e,l,Rl.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Dt:return e=kt(31,l,t,i),e.elementType=Dt,e.lanes=u,e;case $:return on(l.children,i,u,t);case ye:o=8,i|=24;break;case _e:return e=kt(12,l,t,i|2),e.elementType=_e,e.lanes=u,e;case P:return e=kt(13,l,t,i),e.elementType=P,e.lanes=u,e;case de:return e=kt(19,l,t,i),e.elementType=de,e.lanes=u,e;case ll:case N:return e=i|32,e=kt(30,l,t,e),e.elementType=N,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ee:o=10;break e;case M:o=9;break e;case G:o=11;break e;case He:o=14;break e;case F:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=kt(o,l,t,i),t.elementType=e,t.type=a,t.lanes=u,t}function on(e,t,l,a){return e=kt(7,e,a,t),e.lanes=l,e}function Gc(e,t,l){return e=kt(6,e,null,t),e.lanes=l,e}function um(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function Yc(e,t,l){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rm=new WeakMap;function il(e,t){if(typeof e=="object"&&e!==null){var l=rm.get(e);return l!==void 0?l:(t={value:e,source:t,stack:th(t)},rm.set(e,t),t)}return{value:e,source:t,stack:th(t)}}var ii=[],ui=0,Hr=null,pu=0,ul=[],rl=0,Sa=null,Al=1,Ml="";function Il(e,t){ii[ui++]=pu,ii[ui++]=Hr,Hr=e,pu=t}function sm(e,t,l){ul[rl++]=Al,ul[rl++]=Ml,ul[rl++]=Sa,Sa=e;var a=Al;e=Ml;var i=32-Xt(a)-1;a&=~(1<<i),l+=1;var u=32-Xt(t)+i;if(30<u){var o=i-i%5;u=(a&(1<<o)-1).toString(32),a>>=o,i-=o,Al=1<<32-Xt(t)+i|l<<i|a,Ml=u+e}else Al=1<<u|l<<i|a,Ml=e}function qr(e){e.return!==null&&(Il(e,1),sm(e,1,0))}function Vc(e){for(;e===Hr;)Hr=ii[--ui],ii[ui]=null,pu=ii[--ui],ii[ui]=null;for(;e===Sa;)Sa=ul[--rl],ul[rl]=null,Ml=ul[--rl],ul[rl]=null,Al=ul[--rl],ul[rl]=null}function cm(e,t){ul[rl++]=Al,ul[rl++]=Ml,ul[rl++]=Sa,Al=t.id,Ml=t.overflow,Sa=e}var ht=null,Ze=null,Te=!1,Ea=null,sl=!1,Xc=Error(c(519));function _a(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bu(il(t,e)),Xc}function om(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[gt]=e,t[Ut]=a,l){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(l=0;l<Qu.length;l++)ze(Qu[l],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),Eh(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),Th(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||jv(t.textContent,l)?(a.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),a.onScroll!=null&&ze("scroll",t),a.onScrollEnd!=null&&ze("scrollend",t),a.onClick!=null&&(t.onclick=jl),t=!0):t=!1,t||_a(e,!0)}function Lr(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:sl=!1;return;case 27:case 3:sl=!0;return;default:ht=ht.return}}function ri(e){if(e!==ht)return!1;if(!Te)return Lr(e),Te=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||_f(e.type,e.memoizedProps)),l=!l),l&&Ze&&_a(e),Lr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ze=$v(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ze=$v(e)}else t===27?(t=Ze,La(e.type)?(e=Af,Af=null,Ze=e):Ze=t):Ze=ht?ol(e.stateNode.nextSibling):null;return!0}function fn(){Ze=ht=null,Te=!1}function Kc(){var e=Ea;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),Ea=null),e}function bu(e){Ea===null?Ea=[e]:Ea.push(e)}var Zc=Ol(null),dn=null,ea=null;function Ta(e,t,l){Ke(Zc,t._currentValue),t._currentValue=l}function ta(e){e._currentValue=Zc.current,vt(Zc)}function Br(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Jc(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var o=i.child;u=u.firstContext;e:for(;u!==null;){var y=u;u=i;for(var S=0;S<t.length;S++)if(y.context===t[S]){u.lanes|=l,y=u.alternate,y!==null&&(y.lanes|=l),Br(u.return,l,e),a||(o=null);break e}u=y.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(c(341));o.lanes|=l,u=o.alternate,u!==null&&(u.lanes|=l),Br(o,l,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=l,o=i.alternate,o!==null&&(o.lanes|=l),Br(i.return,l,e),o=i.child,o=o!==null?o.sibling:null):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function hn(e,t,l,a){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var y=i.type;Zt(i.pendingProps.value,o.value)||(e!==null?e.push(y):e=[y])}}else if(i===hr.current){if(o=i.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ai):e=[Ai])}i=i.return}return e!==null&&Jc(t,e,l,a),t.flags|=262144,e!==null}function Qr(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function mn(e){dn=e,ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return fm(dn,e)}function Gr(e,t){return dn===null&&mn(e),fm(e,t)}function fm(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ea===null){if(e===null)throw Error(c(308));ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ea=ea.next=t;return l}var rb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},sb=n.unstable_scheduleCallback,cb=n.unstable_NormalPriority,at={$$typeof:ee,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fc(){return{controller:new rb,data:new Map,refCount:0}}function xu(e){e.refCount--,e.refCount===0&&sb(cb,function(){e.controller.abort()})}function dm(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];l.indexOf(a)===-1&&l.push(a)}}}var Su=null;function ob(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Eu=null,$c=0,yn=0,si=null;function fb(e,t){if(Eu===null){var l=Eu=[];$c=0,yn=mf(),si={status:"pending",value:void 0,then:function(a){l.push(a)}}}return $c++,t.then(hm,hm),t}function hm(){if(--$c===0&&(Su=null,Eu!==null)){si!==null&&(si.status="fulfilled");var e=Eu;Eu=null,yn=0,si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function db(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var mm=ue.S;ue.S=function(e,t){if(uv=Yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fb(e,t),Su!==null)for(var l=Ci;l!==null;)dm(l,Su),l=l.next;if(l=e.types,l!==null){for(var a=Ci;a!==null;)dm(a,l),a=a.next;if(yn!==0){a=Su,a===null&&(a=Su=[]);for(var i=0;i<l.length;i++){var u=l[i];a.indexOf(u)===-1&&a.push(u)}}}mm!==null&&mm(e,t)};var vn=Ol(null);function Wc(){var e=vn.current;return e!==null?e:Xe.pooledCache}function Yr(e,t){t===null?Ke(vn,vn.current):Ke(vn,t.pool)}function ym(){var e=Wc();return e===null?null:{parent:at._currentValue,pool:e}}var ci=Error(c(460)),Pc=Error(c(474)),Vr=Error(c(542)),Xr={then:function(){}};function vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gm(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(jl,jl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bm(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then(jl,jl);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bm(e),e}throw pn=t,ci}}function gn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(pn=l,ci):l}}var pn=null;function pm(){if(pn===null)throw Error(c(459));var e=pn;return pn=null,e}function bm(e){if(e===ci||e===Vr)throw Error(c(483))}var oi=null,_u=0;function Kr(e){var t=_u;return _u+=1,oi===null&&(oi=[]),gm(oi,e,t)}function Na(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zr(e,t){throw t.$$typeof===D?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xm(e){function t(w,T){if(e){var R=w.deletions;R===null?(w.deletions=[T],w.flags|=16):R.push(T)}}function l(w,T){if(!e)return null;for(;T!==null;)t(w,T),T=T.sibling;return null}function a(w){for(var T=new Map;w!==null;)w.key===null?T.set(w.index,w):T.set(w.key,w),w=w.sibling;return T}function i(w,T){return w=Pl(w,T),w.index=0,w.sibling=null,w}function u(w,T,R){return w.index=R,e?(R=w.alternate,R!==null?(R=R.index,R<T?(w.flags|=2,T):R):(w.flags|=134217730,T)):(w.flags|=1048576,T)}function o(w){return e&&w.alternate===null&&(w.flags|=134217730),w}function y(w,T,R,H){return T===null||T.tag!==6?(T=Gc(R,w.mode,H),T.return=w,T):(T=i(T,R),T.return=w,T)}function S(w,T,R,H){var le=R.type;return le===$?(w=A(w,T,R.props.children,H,R.key),Na(w,R),w):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&gn(le)===T.type)?(T=i(T,R.props),Na(T,R),T.return=w,T):(T=kr(R.type,R.key,R.props,null,w.mode,H),Na(T,R),T.return=w,T)}function O(w,T,R,H){return T===null||T.tag!==4||T.stateNode.containerInfo!==R.containerInfo||T.stateNode.implementation!==R.implementation?(T=Yc(R,w.mode,H),T.return=w,T):(T=i(T,R.children||[]),T.return=w,T)}function A(w,T,R,H,le){return T===null||T.tag!==7?(T=on(R,w.mode,H,le),T.return=w,T):(T=i(T,R),T.return=w,T)}function q(w,T,R){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Gc(""+T,w.mode,R),T.return=w,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ae:return R=kr(T.type,T.key,T.props,null,w.mode,R),Na(R,T),R.return=w,R;case ge:return T=Yc(T,w.mode,R),T.return=w,T;case F:return T=gn(T),q(w,T,R)}if(Me(T)||se(T))return T=on(T,w.mode,R,null),T.return=w,T;if(typeof T.then=="function")return q(w,Kr(T),R);if(T.$$typeof===ee)return q(w,Gr(w,T),R);Zr(w,T)}return null}function z(w,T,R,H){var le=T!==null?T.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return le!==null?null:y(w,T,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case ae:return R.key===le?S(w,T,R,H):null;case ge:return R.key===le?O(w,T,R,H):null;case F:return R=gn(R),z(w,T,R,H)}if(Me(R)||se(R))return le!==null?null:A(w,T,R,H,null);if(typeof R.then=="function")return z(w,T,Kr(R),H);if(R.$$typeof===ee)return z(w,T,Gr(w,R),H);Zr(w,R)}return null}function j(w,T,R,H,le){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return w=w.get(R)||null,y(T,w,""+H,le);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case ae:return w=w.get(H.key===null?R:H.key)||null,S(T,w,H,le);case ge:return w=w.get(H.key===null?R:H.key)||null,O(T,w,H,le);case F:return H=gn(H),j(w,T,R,H,le)}if(Me(H)||se(H))return w=w.get(R)||null,A(T,w,H,le,null);if(typeof H.then=="function")return j(w,T,R,Kr(H),le);if(H.$$typeof===ee)return j(w,T,R,Gr(T,H),le);Zr(T,H)}return null}function W(w,T,R,H){for(var le=null,Re=null,oe=T,ve=T=0,ut=null;oe!==null&&ve<R.length;ve++){oe.index>ve?(ut=oe,oe=null):ut=oe.sibling;var De=z(w,oe,R[ve],H);if(De===null){oe===null&&(oe=ut);break}e&&oe&&De.alternate===null&&t(w,oe),T=u(De,T,ve),Re===null?le=De:Re.sibling=De,Re=De,oe=ut}if(ve===R.length)return l(w,oe),Te&&Il(w,ve),le;if(oe===null){for(;ve<R.length;ve++)oe=q(w,R[ve],H),oe!==null&&(T=u(oe,T,ve),Re===null?le=oe:Re.sibling=oe,Re=oe);return Te&&Il(w,ve),le}for(oe=a(oe);ve<R.length;ve++)ut=j(oe,w,ve,R[ve],H),ut!==null&&(e&&(De=ut.alternate,De!==null&&oe.delete(De.key===null?ve:De.key)),T=u(ut,T,ve),Re===null?le=ut:Re.sibling=ut,Re=ut);return e&&oe.forEach(function(Va){return t(w,Va)}),Te&&Il(w,ve),le}function re(w,T,R,H){if(R==null)throw Error(c(151));for(var le=null,Re=null,oe=T,ve=T=0,ut=null,De=R.next();oe!==null&&!De.done;ve++,De=R.next()){oe.index>ve?(ut=oe,oe=null):ut=oe.sibling;var Va=z(w,oe,De.value,H);if(Va===null){oe===null&&(oe=ut);break}e&&oe&&Va.alternate===null&&t(w,oe),T=u(Va,T,ve),Re===null?le=Va:Re.sibling=Va,Re=Va,oe=ut}if(De.done)return l(w,oe),Te&&Il(w,ve),le;if(oe===null){for(;!De.done;ve++,De=R.next())De=q(w,De.value,H),De!==null&&(T=u(De,T,ve),Re===null?le=De:Re.sibling=De,Re=De);return Te&&Il(w,ve),le}for(oe=a(oe);!De.done;ve++,De=R.next())De=j(oe,w,ve,De.value,H),De!==null&&(e&&(ut=De.alternate,ut!==null&&oe.delete(ut.key===null?ve:ut.key)),T=u(De,T,ve),Re===null?le=De:Re.sibling=De,Re=De);return e&&oe.forEach(function(Kx){return t(w,Kx)}),Te&&Il(w,ve),le}function Se(w,T,R,H){if(typeof R=="object"&&R!==null&&R.type===$&&R.key===null&&R.props.ref===void 0&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case ae:e:{for(var le=R.key;T!==null;){if(T.key===le){if(le=R.type,le===$){if(T.tag===7){l(w,T.sibling),H=i(T,R.props.children),Na(H,R),H.return=w,w=H;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&gn(le)===T.type){l(w,T.sibling),H=i(T,R.props),Na(H,R),H.return=w,w=H;break e}l(w,T);break}else t(w,T);T=T.sibling}R.type===$?(H=on(R.props.children,w.mode,H,R.key),Na(H,R),H.return=w,w=H):(H=kr(R.type,R.key,R.props,null,w.mode,H),Na(H,R),H.return=w,w=H)}return o(w);case ge:e:{for(le=R.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===R.containerInfo&&T.stateNode.implementation===R.implementation){l(w,T.sibling),H=i(T,R.children||[]),H.return=w,w=H;break e}else{l(w,T);break}else t(w,T);T=T.sibling}H=Yc(R,w.mode,H),H.return=w,w=H}return o(w);case F:return R=gn(R),Se(w,T,R,H)}if(Me(R))return W(w,T,R,H);if(se(R)){if(le=se(R),typeof le!="function")throw Error(c(150));return R=le.call(R),re(w,T,R,H)}if(typeof R.then=="function")return Se(w,T,Kr(R),H);if(R.$$typeof===ee)return Se(w,T,Gr(w,R),H);Zr(w,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,T!==null&&T.tag===6?(l(w,T.sibling),H=i(T,R),H.return=w,w=H):(l(w,T),H=Gc(R,w.mode,H),H.return=w,w=H),o(w)):l(w,T)}return function(w,T,R,H){try{_u=0;var le=Se(w,T,R,H);return oi=null,le}catch(oe){if(oe===ci||oe===Vr)throw oe;var Re=kt(29,oe,null,w.mode);return Re.lanes=H,Re.return=w,Re}finally{}}}var bn=xm(!0),Sm=xm(!1),Ca=!1;function Ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eo(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wa(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(qe&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Ur(e),nm(e,null,l),t}return Dr(e,a,t,l),Ur(e)}function Tu(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,sh(e,l)}}function to(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?i=u=o:u=u.next=o,l=l.next}while(l!==null);u===null?i=u=t:u=u.next=t}else i=u=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var lo=!1;function Nu(){if(lo){var e=si;if(e!==null)throw e}}function Cu(e,t,l,a){lo=!1;var i=e.updateQueue;Ca=!1;var u=i.firstBaseUpdate,o=i.lastBaseUpdate,y=i.shared.pending;if(y!==null){i.shared.pending=null;var S=y,O=S.next;S.next=null,o===null?u=O:o.next=O,o=S;var A=e.alternate;A!==null&&(A=A.updateQueue,y=A.lastBaseUpdate,y!==o&&(y===null?A.firstBaseUpdate=O:y.next=O,A.lastBaseUpdate=S))}if(u!==null){var q=i.baseState;o=0,A=O=S=null,y=u;do{var z=y.lane&-536870913,j=z!==y.lane;if(j?(Oe&z)===z:(a&z)===z){z!==0&&z===yn&&(lo=!0),A!==null&&(A=A.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var W=e,re=y;z=t;var Se=l;switch(re.tag){case 1:if(W=re.payload,typeof W=="function"){q=W.call(Se,q,z);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=re.payload,z=typeof W=="function"?W.call(Se,q,z):W,z==null)break e;q=V({},q,z);break e;case 2:Ca=!0}}z=y.callback,z!==null&&(e.flags|=64,j&&(e.flags|=8192),j=i.callbacks,j===null?i.callbacks=[z]:j.push(z))}else j={lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},A===null?(O=A=j,S=q):A=A.next=j,o|=z;if(y=y.next,y===null){if(y=i.shared.pending,y===null)break;j=y,y=j.next,j.next=null,i.lastBaseUpdate=j,i.shared.pending=null}}while(!0);A===null&&(S=q),i.baseState=S,i.firstBaseUpdate=O,i.lastBaseUpdate=A,u===null&&(i.shared.lanes=0),Ua|=o,e.lanes=o,e.memoizedState=q}}function Em(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function _m(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Em(l[e],t)}var Oa=Ol(null),Jr=Ol(0);function Tm(e,t){e=ua,Ke(Jr,e),Ke(Oa,t),ua=e|t.baseLanes}function ao(){Ke(Jr,ua),Ke(Oa,Oa.current)}function no(){ua=Jr.current,vt(Oa),vt(Jr)}var bt=Ol(null),Tt=null;function Ra(e){var t=e.alternate;Ke(xt,xt.current&1),Ke(bt,e),Tt===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(Tt=e)}function io(e){Ke(xt,xt.current),Ke(bt,e),Tt===null&&(Tt=e)}function Nm(e){e.tag===22?(Ke(xt,xt.current),Ke(bt,e),Tt===null&&(Tt=e)):ja()}function ja(){Ke(xt,xt.current),Ke(bt,bt.current)}function Jt(e){vt(bt),Tt===e&&(Tt=null),vt(xt)}var xt=Ol(0);function zu(e,t){Ke(bt,bt.current),Ke(xt,t)}function uo(e){vt(xt),vt(bt),Tt===e&&(Tt=null)}function Fr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Rf(l)||jf(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var la=0,xe=null,Ve=null,nt=null,$r=!1,fi=!1,xn=!1,Wr=0,wu=0,di=null,hb=0;function et(){throw Error(c(321))}function ro(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Zt(e[l],t[l]))return!1;return!0}function so(e,t,l,a,i,u){return la=u,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ue.H=e===null||e.memoizedState===null?sy:cy,xn=!1,u=l(a,i),xn=!1,fi&&(u=zm(t,l,a,i)),Cm(e),u}function Cm(e){ue.H=ns;var t=Ve!==null&&Ve.next!==null;if(la=0,nt=Ve=xe=null,$r=!1,wu=0,di=null,t)throw Error(c(300));e===null||it||(e=e.dependencies,e!==null&&Qr(e)&&(it=!0))}function zm(e,t,l,a){xe=e;var i=0;do{if(fi&&(di=null),wu=0,fi=!1,25<=i)throw Error(c(301));if(i+=1,nt=Ve=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}ue.H=Sb,u=t(l,a)}while(fi);return u}function mb(){var e=ue.H,t=e.useState()[0];return t=typeof t.then=="function"?Ou(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(xe.flags|=1024),t}function co(){var e=Wr!==0;return Wr=0,e}function oo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function fo(e){if($r){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$r=!1}la=0,nt=Ve=xe=null,fi=!1,wu=Wr=0,di=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?xe.memoizedState=nt=e:nt=nt.next=e,nt}function lt(){if(Ve===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=nt===null?xe.memoizedState:nt.next;if(t!==null)nt=t,Ve=e;else{if(e===null)throw xe.alternate===null?Error(c(467)):Error(c(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},nt===null?xe.memoizedState=nt=e:nt=nt.next=e}return nt}function Pr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ou(e){var t=wu;return wu+=1,di===null&&(di=[]),e=gm(di,e,t),t=xe,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,ue.H=t===null||t.memoizedState===null?sy:cy),e}function Ir(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ou(e);if(e.$$typeof===Q)return;if(e.$$typeof===ee)return pt(e)}throw Error(c(438,String(e)))}function ho(e){var t=null,l=xe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=xe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Pr(),xe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=wl;return t.index++,l}function aa(e,t){return typeof t=="function"?t(e):t}function es(e){var t=lt();return mo(t,Ve,e)}function mo(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var i=e.baseQueue,u=a.pending;if(u!==null){if(i!==null){var o=i.next;i.next=u.next,u.next=o}t.baseQueue=i=u,a.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var y=o=null,S=null,O=t,A=!1;do{var q=O.lane&-536870913;if(q!==O.lane?(Oe&q)===q:(la&q)===q){var z=O.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),q===yn&&(A=!0);else if((la&z)===z){O=O.next,z===yn&&(A=!0);continue}else q={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(y=S=q,o=u):S=S.next=q,xe.lanes|=z,Ua|=z;q=O.action,xn&&l(u,q),u=O.hasEagerState?O.eagerState:l(u,q)}else z={lane:q,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(y=S=z,o=u):S=S.next=z,xe.lanes|=q,Ua|=q;O=O.next}while(O!==null&&O!==t);if(S===null?o=u:S.next=y,!Zt(u,e.memoizedState)&&(it=!0,A&&(l=si,l!==null)))throw l;e.memoizedState=u,e.baseState=o,e.baseQueue=S,a.lastRenderedState=u}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function yo(e){var t=lt(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,u=t.memoizedState;if(i!==null){l.pending=null;var o=i=i.next;do u=e(u,o.action),o=o.next;while(o!==i);Zt(u,t.memoizedState)||(it=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function wm(e,t,l){var a=xe,i=lt(),u=Te;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Zt((Ve||i).memoizedState,l);if(o&&(i.memoizedState=l,it=!0),i=i.queue,po(jm.bind(null,a,i,e),[e]),e=i.getSnapshot!==t||o||nt!==null&&(nt.memoizedState.tag&1)!==0,hi(e?9:8,{destroy:void 0},Rm.bind(null,a,i,l,t),null),e){if(a.flags|=2048,Xe===null)throw Error(c(349));u||(la&127)!==0||Om(a,t,l)}return l}function Om(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=Pr(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Rm(e,t,l,a){t.value=l,t.getSnapshot=a,Am(t)&&Mm(e)}function jm(e,t,l){return l(function(){Am(t)&&Mm(e)})}function Am(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Zt(e,l)}catch{return!0}}function Mm(e){var t=cn(e,2);t!==null&&Bt(t,e,2)}function vo(e){var t=wt();if(typeof e=="function"){var l=e;if(e=l(),xn){pa(!0);try{l()}finally{pa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function Dm(e,t,l,a){return e.baseState=l,mo(e,Ve,typeof a=="function"?a:aa)}function yb(e,t,l,a,i){if(as(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};ue.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Um(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Um(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var u=ue.T,o={};o.types=u!==null?u.types:null,ue.T=o;try{var y=l(i,a),S=ue.S;S!==null&&S(o,y),km(e,t,y)}catch(O){go(e,t,O)}finally{u!==null&&o.types!==null&&(u.types=o.types),ue.T=u}}else try{u=l(i,a),km(e,t,u)}catch(O){go(e,t,O)}}function km(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Hm(e,t,a)},function(a){return go(e,t,a)}):Hm(e,t,l)}function Hm(e,t,l){t.status="fulfilled",t.value=l,qm(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Um(e,l)))}function go(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,qm(t),t=t.next;while(t!==a)}e.action=null}function qm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lm(e,t){return t}function Bm(e,t){if(Te){var l=Xe.formState;if(l!==null){e:{var a=xe;if(Te){if(Ze){t:{for(var i=Ze,u=sl;i.nodeType!==8;){if(!u){i=null;break t}if(i=ol(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Ze=ol(i.nextSibling),a=i.data==="F!";break e}}_a(a)}a=!1}a&&(t=l[0])}}return l=wt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lm,lastRenderedState:t},l.queue=a,l=iy.bind(null,xe,a),a.dispatch=l,a=vo(!1),u=_o.bind(null,xe,!1,a.queue),a=wt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=yb.bind(null,xe,i,u,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Qm(e){var t=lt();return Gm(t,Ve,e)}function Gm(e,t,l){if(t=mo(e,t,Lm)[0],e=es(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ou(t)}catch(o){throw o===ci?Vr:o}else a=t;t=lt();var i=t.queue,u=i.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,hi(9,{destroy:void 0},vb.bind(null,i,l),null)),[a,u,e]}function vb(e,t){e.action=t}function Ym(e){var t=lt(),l=Ve;if(l!==null)return Gm(t,l,e);lt(),t=t.memoizedState,l=lt();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function hi(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Pr(),xe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Vm(){return lt().memoizedState}function ts(e,t,l,a){var i=wt();xe.flags|=e,i.memoizedState=hi(1|t,{destroy:void 0},l,a===void 0?null:a)}function ls(e,t,l,a){var i=lt();a=a===void 0?null:a;var u=i.memoizedState.inst;Ve!==null&&a!==null&&ro(a,Ve.memoizedState.deps)?i.memoizedState=hi(t,u,l,a):(xe.flags|=e,i.memoizedState=hi(1|t,u,l,a))}function Xm(e,t){ts(8390656,8,e,t)}function po(e,t){ls(2048,8,e,t)}function gb(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Pr(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Km(e){var t=lt().memoizedState;return gb({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Zm(e,t){return ls(4,2,e,t)}function Jm(e,t){return ls(4,4,e,t)}function Fm(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $m(e,t,l){l=l!=null?l.concat([e]):null,ls(4,4,Fm.bind(null,t,e),l)}function bo(){}function Wm(e,t){var l=lt();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ro(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Pm(e,t){var l=lt();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ro(t,a[1]))return a[0];if(a=e(),xn){pa(!0);try{e()}finally{pa(!1)}}return l.memoizedState=[a,t],a}function xo(e,t,l){return l===void 0||(la&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=sv(),xe.lanes|=e,Ua|=e,l)}function Im(e,t,l,a){return Zt(l,t)?l:Oa.current!==null?(e=xo(e,l,a),Zt(e,t)||(it=!0),e):(la&106)===0||(la&1073741824)!==0&&(Oe&261930)===0?(it=!0,e.memoizedState=l):(e=sv(),xe.lanes|=e,Ua|=e,t)}function ey(e,t,l,a,i){var u=me.p;me.p=u!==0&&8>u?u:8;var o=ue.T,y={};y.types=o!==null?o.types:null,ue.T=y,_o(e,!1,t,l);try{var S=i(),O=ue.S;if(O!==null&&O(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var A=db(S,a);Ru(e,t,A,Pt(e))}else Ru(e,t,a,Pt(e))}catch(q){Ru(e,t,{then:function(){},status:"rejected",reason:q},Pt())}finally{me.p=u,o!==null&&y.types!==null&&(o.types=y.types),ue.T=o}}function pb(){}function So(e,t,l,a){if(e.tag!==5)throw Error(c(476));var i=ty(e).queue;ey(e,i,t,Gt,l===null?pb:function(){return ly(e),l(a)})}function ty(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gt,baseState:Gt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:Gt},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ly(e){var t=ty(e);t.next===null&&(t=e.alternate.memoizedState),Ru(e,t.next.queue,{},Pt())}function Eo(){return pt(Ai)}function ay(){return lt().memoizedState}function ny(){return lt().memoizedState}function bb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Pt();e=za(l);var a=wa(t,e,l);a!==null&&(Bt(a,t,l),Tu(a,t,l)),t={cache:Fc()},e.payload=t;return}t=t.return}}function xb(e,t,l){var a=Pt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},as(e)?uy(t,l):(l=Bc(e,t,l,a),l!==null&&(Bt(l,e,a),ry(l,t,a)))}function iy(e,t,l){var a=Pt();Ru(e,t,l,a)}function Ru(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(as(e))uy(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,y=u(o,l);if(i.hasEagerState=!0,i.eagerState=y,Zt(y,o))return Dr(e,t,i,0),Xe===null&&Mr(),!1}catch{}finally{}if(l=Bc(e,t,i,a),l!==null)return Bt(l,e,a),ry(l,t,a),!0}return!1}function _o(e,t,l,a){if(a={lane:2,revertLane:mf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},as(e)){if(t)throw Error(c(479))}else t=Bc(e,l,a,2),t!==null&&Bt(t,e,2)}function as(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function uy(e,t){fi=$r=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function ry(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,sh(e,l)}}var ns={readContext:pt,use:Ir,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et,useEffectEvent:et},sy={readContext:pt,use:Ir,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Xm,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ts(4194308,4,Fm.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var l=wt();t=t===void 0?null:t;var a=e();if(xn){pa(!0);try{e()}finally{pa(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=wt();if(l!==void 0){var i=l(t);if(xn){pa(!0);try{l(t)}finally{pa(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=xb.bind(null,xe,e),[a.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=vo(e);var t=e.queue,l=iy.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:bo,useDeferredValue:function(e,t){var l=wt();return xo(l,e,t)},useTransition:function(){var e=vo(!1);return e=ey.bind(null,xe,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=xe,i=wt();if(Te){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Xe===null)throw Error(c(349));(Oe&127)!==0||Om(a,t,l)}i.memoizedState=l;var u={value:l,getSnapshot:t};return i.queue=u,Xm(jm.bind(null,a,u,e),[e]),a.flags|=2048,hi(9,{destroy:void 0},Rm.bind(null,a,u,l,t),null),l},useId:function(){var e=wt(),t=Xe.identifierPrefix;if(Te){var l=Ml,a=Al;l=(a&~(1<<32-Xt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Wr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=hb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Eo,useFormState:Bm,useActionState:Bm,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=_o.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:ho,useCacheRefresh:function(){return wt().memoizedState=bb.bind(null,xe)},useEffectEvent:function(e){var t=wt(),l={impl:e};return t.memoizedState=l,function(){if((qe&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},cy={readContext:pt,use:Ir,useCallback:Wm,useContext:pt,useEffect:po,useImperativeHandle:$m,useInsertionEffect:Zm,useLayoutEffect:Jm,useMemo:Pm,useReducer:es,useRef:Vm,useState:function(){return es(aa)},useDebugValue:bo,useDeferredValue:function(e,t){var l=lt();return Im(l,Ve.memoizedState,e,t)},useTransition:function(){var e=es(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ou(e),t]},useSyncExternalStore:wm,useId:ay,useHostTransitionStatus:Eo,useFormState:Qm,useActionState:Qm,useOptimistic:function(e,t){var l=lt();return Dm(l,Ve,e,t)},useMemoCache:ho,useCacheRefresh:ny,useEffectEvent:Km},Sb={readContext:pt,use:Ir,useCallback:Wm,useContext:pt,useEffect:po,useImperativeHandle:$m,useInsertionEffect:Zm,useLayoutEffect:Jm,useMemo:Pm,useReducer:yo,useRef:Vm,useState:function(){return yo(aa)},useDebugValue:bo,useDeferredValue:function(e,t){var l=lt();return Ve===null?xo(l,e,t):Im(l,Ve.memoizedState,e,t)},useTransition:function(){var e=yo(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ou(e),t]},useSyncExternalStore:wm,useId:ay,useHostTransitionStatus:Eo,useFormState:Ym,useActionState:Ym,useOptimistic:function(e,t){var l=lt();return Ve!==null?Dm(l,Ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ho,useCacheRefresh:ny,useEffectEvent:Km};function To(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:V({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var No={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Pt(),i=za(a);i.payload=t,l!=null&&(i.callback=l),t=wa(e,i,a),t!==null&&(Bt(t,e,a),Tu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Pt(),i=za(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=wa(e,i,a),t!==null&&(Bt(t,e,a),Tu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Pt(),a=za(l);a.tag=2,t!=null&&(a.callback=t),t=wa(e,a,l),t!==null&&(Bt(t,e,l),Tu(t,e,l))}};function oy(e,t,l,a,i,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,o):t.prototype&&t.prototype.isPureReactComponent?!vu(l,a)||!vu(i,u):!0}function fy(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&No.enqueueReplaceState(t,t.state,null)}function Sn(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=V({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function dy(e){Ar(e)}function hy(e){console.error(e)}function my(e){Ar(e)}function is(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function yy(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Co(e,t,l){return l=za(l),l.tag=3,l.payload={element:null},l.callback=function(){is(e,t)},l}function vy(e){return e=za(e),e.tag=3,e}function gy(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var u=a.value;e.payload=function(){return i(u)},e.callback=function(){yy(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){yy(t,l,a),typeof i!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Eb(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&hn(t,l,i,!0),l=bt.current,l!==null){switch(l.tag){case 31:case 13:case 19:return Tt===null?Cs():l.alternate===null&&tt===0&&(tt=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Xr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ff(e,a,i)),!1;case 22:return l.flags|=65536,a===Xr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ff(e,a,i)),!1}throw Error(c(435,l.tag))}return ff(e,a,i),Cs(),!1}if(Te)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Xc&&(e=Error(c(422),{cause:a}),bu(il(e,l)))):(a!==Xc&&(t=Error(c(423),{cause:a}),bu(il(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=il(a,l),i=Co(e.stateNode,a,i),to(e,i),tt!==4&&(tt=2)),!1;var u=Error(c(520),{cause:a});if(u=il(u,l),qu===null?qu=[u]:qu.push(u),tt!==4&&(tt=2),t===null)return!0;a=il(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Co(l.stateNode,a,e),to(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ka===null||!ka.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=vy(i),gy(i,e,l,a),to(l,i),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var zo=Error(c(461)),it=!1;function st(e,t,l,a){t.child=e===null?Sm(t,null,l,a):bn(t,e.child,l,a)}function py(e,t,l,a,i){l=l.render;var u=t.ref;if("ref"in a){var o={};for(var y in a)y!=="ref"&&(o[y]=a[y])}else o=a;return mn(t),a=so(e,t,l,o,u,i),y=co(),e!==null&&!it?(oo(e,t,i),na(e,t,i)):(Te&&y&&qr(t),t.flags|=1,st(e,t,a,i),t.child)}function by(e,t,l,a,i){if(e===null){var u=l.type;return typeof u=="function"&&!Qc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,xy(e,t,u,a,i)):(e=kr(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Uo(e,i)){var o=u.memoizedProps;if(l=l.compare,l=l!==null?l:vu,l(o,a)&&e.ref===t.ref)return na(e,t,i)}return t.flags|=1,e=Pl(u,a),e.ref=t.ref,e.return=t,t.child=e}function xy(e,t,l,a,i){if(e!==null){var u=e.memoizedProps;if(vu(u,a)&&e.ref===t.ref)if(it=!1,t.pendingProps=a=u,Uo(e,i))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,na(e,t,i)}return wo(e,t,l,a,i)}function Sy(e,t,l,a){var i=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~u}else a=0,t.child=null;return Ey(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,u!==null?u.cachePool:null),u!==null?Tm(t,u):ao(),Nm(t);else return a=t.lanes=536870912,Ey(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Yr(t,u.cachePool),Tm(t,u),ja(),t.memoizedState=null):(e!==null&&Yr(t,null),ao(),ja());return st(e,t,i,l),t.child}function ju(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ey(e,t,l,a,i){var u=Wc();return u=u===null?null:{parent:at._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Yr(t,null),ao(),Nm(t),e!==null&&hn(e,t,a,!0),t.childLanes=i,null}function us(e,t){return t=rs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _y(e,t,l){return bn(t,e.child,null,l),e=us(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function _b(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(a.mode==="hidden")return e=us(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},ju(null,e);if(io(t),(e=Ze)?(e=Fv(e,sl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Sa!==null?{id:Al,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=um(e),l.return=t,t.child=l,ht=t,Ze=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return us(t,a)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(io(t),i)if(t.flags&256)t.flags&=-257,t=_y(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(it||hn(e,t,l,!1),i=(l&e.childLanes)!==0,it||i){if(Oa.current===null){if(a=Xe,a!==null&&(o=ch(a,l),o!==0&&o!==u.retryLane))throw u.retryLane=o,cn(e,o),Bt(a,e,o),zo;Cs()}t=_y(e,t,l)}else e=u.treeContext,Ze=ol(o.nextSibling),ht=t,Te=!0,Ea=null,sl=!1,e!==null&&cm(t,e),t=us(t,a),t.flags|=134221824;return t}return e=Pl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function wo(e,t,l,a,i){return mn(t),l=so(e,t,l,a,void 0,i),a=co(),e!==null&&!it?(oo(e,t,i),na(e,t,i)):(Te&&a&&qr(t),t.flags|=1,st(e,t,l,i),t.child)}function Ty(e,t,l,a,i,u){return mn(t),t.updateQueue=null,l=zm(t,a,l,i),Cm(e),a=co(),e!==null&&!it?(oo(e,t,u),na(e,t,u)):(Te&&a&&qr(t),t.flags|=1,st(e,t,l,u),t.child)}function Ny(e,t,l,a,i){if(mn(t),t.stateNode===null){var u=ni,o=l.contextType;typeof o=="object"&&o!==null&&(u=pt(o)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=No,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Ic(t),o=l.contextType,u.context=typeof o=="object"&&o!==null?pt(o):ni,u.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(To(t,l,o,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&No.enqueueReplaceState(u,u.state,null),Cu(t,a,u,i),Nu(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var y=t.memoizedProps,S=Sn(l,y);u.props=S;var O=u.context,A=l.contextType;o=ni,typeof A=="object"&&A!==null&&(o=pt(A));var q=l.getDerivedStateFromProps;A=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,A||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||O!==o)&&fy(t,u,a,o),Ca=!1;var z=t.memoizedState;u.state=z,Cu(t,a,u,i),Nu(),O=t.memoizedState,y||z!==O||Ca?(typeof q=="function"&&(To(t,l,q,a),O=t.memoizedState),(S=Ca||oy(t,l,S,a,z,O,o))?(A||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=O),u.props=a,u.state=O,u.context=o,a=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,eo(e,t),o=t.memoizedProps,A=Sn(l,o),u.props=A,q=t.pendingProps,z=u.context,O=l.contextType,S=ni,typeof O=="object"&&O!==null&&(S=pt(O)),y=l.getDerivedStateFromProps,(O=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==q||z!==S)&&fy(t,u,a,S),Ca=!1,z=t.memoizedState,u.state=z,Cu(t,a,u,i),Nu();var j=t.memoizedState;o!==q||z!==j||Ca||e!==null&&e.dependencies!==null&&Qr(e.dependencies)?(typeof y=="function"&&(To(t,l,y,a),j=t.memoizedState),(A=Ca||oy(t,l,A,a,z,j,S)||e!==null&&e.dependencies!==null&&Qr(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,j,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,j,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),u.props=a,u.state=j,u.context=S,a=A):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,mi(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=bn(t,e.child,null,i),t.child=bn(t,null,l,i)):st(e,t,l,i),t.memoizedState=u.state,e=t.child):e=na(e,t,i),e}function Cy(e,t,l,a){return fn(),t.flags|=256,st(e,t,l,a),t.child}var Oo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(e){return{baseLanes:e,cachePool:ym()}}function jo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Wt),e}function zy(e,t,l){var a=t.pendingProps,i=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(i?Ra(t):ja(),(e=Ze)?(e=Fv(e,sl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Sa!==null?{id:Al,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=um(e),l.return=t,t.child=l,ht=t,Ze=null)):e=null,e===null)throw _a(t);return jf(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,i?(ja(),i=t.mode,u=rs({mode:"hidden",children:u},i),a=on(a,i,l,null),u.return=t,a.return=t,u.sibling=a,t.child=u,a=t.child,a.memoizedState=Ro(l),a.childLanes=jo(e,o,l),t.memoizedState=Oo,ju(null,a)):(Ra(t),Ao(t,u))}var y=e.memoizedState;if(y!==null){var S=y.dehydrated;if(S!==null)return Tb(e,t,u,o,a,S,y,l)}return i?(ja(),i=a.fallback,u=t.mode,y=e.child,S=y.sibling,a=Pl(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&1206910976,S!==null?i=Pl(S,i):(i=on(i,u,l,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,ju(null,a),a=t.child,i=e.child.memoizedState,i===null?i=Ro(l):(u=i.cachePool,u!==null?(y=at._currentValue,u=u.parent!==y?{parent:y,pool:y}:u):u=ym(),i={baseLanes:i.baseLanes|l,cachePool:u}),a.memoizedState=i,a.childLanes=jo(e,o,l),t.memoizedState=Oo,ju(e.child,a)):(Ra(t),l=e.child,e=l.sibling,l=Pl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function Ao(e,t){return t=rs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rs(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function ss(e,t,l){return bn(t,e.child,null,l),e=Ao(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tb(e,t,l,a,i,u,o,y){if(l)return t.flags&256?(Ra(t),t.flags&=-257,ss(e,t,y)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,null):(ja(),u=i.fallback,o=t.mode,i=rs({mode:"visible",children:i.children},o),u=on(u,o,y,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,bn(t,e.child,null,y),i=t.child,i.memoizedState=Ro(y),i.childLanes=jo(e,a,y),t.memoizedState=Oo,ju(null,i));if(Ra(t),jf(u)){if(a=u.nextSibling&&u.nextSibling.dataset,a)var S=a.dgst;return a=S,a!==""&&(i=Error(c(419)),i.stack="",i.digest=a,bu({value:i,source:null,stack:null})),ss(e,t,y)}if(it||hn(e,t,y,!1),a=(y&e.childLanes)!==0,it||a){if(Oa.current!==null)return ss(e,t,y);if(a=Xe,a!==null&&(i=ch(a,y),i!==0&&i!==o.retryLane))throw o.retryLane=i,cn(e,i),Bt(a,e,i),zo;return Rf(u)||Cs(),ss(e,t,y)}return Rf(u)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,Ze=ol(u.nextSibling),ht=t,Te=!0,Ea=null,sl=!1,e!==null&&cm(t,e),t=Ao(t,i.children),t.flags|=134221824,t)}function wy(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Br(e.return,t,l)}function Oy(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&Fr(l)===null&&(t=e),e=e.sibling}return t}function cs(e,t,l,a,i,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=i,o.treeForkCount=u)}function Mo(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function Do(e,t,l){var a=t.pendingProps,i=a.revealOrder,u=a.tail;a=a.children;var o=xt.current;if(t.flags&128)return zu(t,o),null;var y=(o&2)!==0;if(y?(o=o&1|2,t.flags|=128):o&=1,zu(t,o),i==="backwards"&&e!==null?(Mo(e),st(e,t,a,l),Mo(e)):st(e,t,a,l),a=Te?pu:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wy(e,l,t);else if(e.tag===19)wy(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":l=Oy(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null,Mo(t)),cs(t,!0,i,null,u,a);break;case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fr(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}cs(t,!0,l,null,u,a);break;case"together":cs(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:l=Oy(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),cs(t,!1,i,l,u,a)}return t.child}function Ry(e,t,l){var a=t.pendingProps;return Ta(t,t.type,a.value),st(e,t,a.children,l),t.child}function na(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ua|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(hn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=Pl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Pl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Uo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qr(e)))}function Nb(e,t,l){switch(t.tag){case 3:mr(t,t.stateNode.containerInfo),Ta(t,at,e.memoizedState.cache),fn();break;case 27:case 5:rc(t);break;case 4:mr(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,io(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Ra(t),t.flags|=128,null;a=hn(e,t,l,!1);var i=t.child.childLanes;return a||(l&i)!==0?zy(e,t,l):(Ra(t),e=na(e,t,l),e!==null?e.sibling:null)}Ra(t);break;case 19:if(t.flags&128)return Do(e,t,l);if(i=(e.flags&128)!==0,a=(l&t.childLanes)!==0,a||(hn(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return Do(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),zu(t,xt.current),a)break;return null;case 22:return t.lanes=0,Sy(e,t,l,t.pendingProps);case 24:Ta(t,at,e.memoizedState.cache)}return na(e,t,l)}function jy(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!Uo(e,l)&&(t.flags&128)===0)return it=!1,Nb(e,t,l);it=(e.flags&131072)!==0}else it=!1,Te&&(t.flags&1048576)!==0&&sm(t,pu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=gn(t.elementType),t.type=e,typeof e=="function")Qc(e)?(a=Sn(e,a),t.tag=1,t=Ny(null,t,e,a,l)):(t.tag=0,t=wo(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===G){t.tag=11,t=py(null,t,e,a,l);break e}else if(i===He){t.tag=14,t=by(null,t,e,a,l);break e}else if(i===ee){t.tag=10,t.type=e,t=Ry(null,t,l);break e}}throw t=he(e)||e,Error(c(306,t,""))}}return t;case 0:return wo(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=Sn(a,t.pendingProps),Ny(e,t,a,i,l);case 3:e:{if(mr(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var u=t.memoizedState;i=u.element,eo(e,t),Cu(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Ta(t,at,a),a!==u.cache&&Jc(t,[at],l,!0),Nu(),a=o.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Cy(e,t,a,l);break e}else if(a!==i){i=il(Error(c(424)),t),bu(i),t=Cy(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=ol(e.firstChild),ht=t,Te=!0,Ea=null,sl=!0,l=Sm(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(fn(),a===i){t=na(e,t,l);break e}st(e,t,a,l)}t=t.child}return t;case 26:return mi(e,t),e===null?(l=l0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Te||(t.stateNode=Uv(t.type,t.pendingProps,va.current,t)):t.memoizedState=l0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rc(t),e===null&&Te&&(a=t.stateNode=Pv(t.type,t.pendingProps,va.current),ht=t,sl=!0,i=Ze,La(t.type)?(Af=i,Ze=ol(a.firstChild)):Ze=i),st(e,t,t.pendingProps.children,l),mi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((i=a=Ze)&&(a=bx(a,t.type,t.pendingProps,sl),a!==null?(t.stateNode=a,ht=t,Ze=ol(a.firstChild),sl=!1,i=!0):i=!1),i||_a(t)),rc(t),i=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,a=u.children,_f(i,u)?a=null:o!==null&&_f(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=so(e,t,mb,null,null,l),Ai._currentValue=i),mi(e,t),st(e,t,a,l),t.child;case 6:return e===null&&Te&&((e=l=Ze)&&(l=xx(l,t.pendingProps,sl),l!==null?(t.stateNode=l,ht=t,Ze=null,e=!0):e=!1),e||_a(t)),null;case 13:return zy(e,t,l);case 4:return mr(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=bn(t,null,a,l):st(e,t,a,l),t.child;case 11:return py(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,mi(e,t),st(e,t,a,l),t.child;case 8:return st(e,t,t.pendingProps.children,l),t.child;case 12:return st(e,t,t.pendingProps.children,l),t.child;case 10:return Ry(e,t,l);case 9:return i=t.type._context,a=t.pendingProps.children,mn(t),i=pt(i),a=a(i),t.flags|=1,st(e,t,a,l),t.child;case 14:return by(e,t,t.type,t.pendingProps,l);case 15:return xy(e,t,t.type,t.pendingProps,l);case 19:return Do(e,t,l);case 31:return _b(e,t,l);case 22:return Sy(e,t,l,t.pendingProps);case 24:return mn(t),a=pt(at),e===null?(i=Wc(),i===null&&(i=Xe,u=Fc(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),t.memoizedState={parent:a,cache:i},Ic(t),Ta(t,at,i)):((e.lanes&l)!==0&&(eo(e,t),Cu(t,null,null,l),Nu()),i=e.memoizedState,u=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ta(t,at,a)):(a=u.cache,Ta(t,at,a),a!==i.cache&&Jc(t,[at],l,!0))),st(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:Te&&qr(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:mi(e,t),st(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ia(e){e.flags|=4}function ko(e,t,l,a,i){var u;if((u=(e.mode&32)!==0)&&(u=l===null?u0(t,a):u0(t,a)&&(a.src!==l.src||a.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(dv())e.flags|=8192;else throw pn=Xr,Pc}else e.flags&=-16777217}function Ay(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!r0(t))if(dv())e.flags|=8192;else throw pn=Xr,Pc}function os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uh():536870912,e.lanes|=t,bi|=t)}function Au(e,t){if(!Te)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&1206910976,a|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Cb(e,t,l){var a=t.pendingProps;switch(Vc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ta(at),Xn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ri(t)?ia(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kc())),Je(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(ia(t),u!==null?(Je(t),Ay(t,u)):(Je(t),ko(t,i,null,a,l))):u?u!==e.memoizedState?(ia(t),Je(t),Ay(t,u)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ia(t),Je(t),ko(t,i,e,a,l)),null;case 27:if(yr(t),l=va.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Je(t),t.subtreeFlags&=-33554433,null}e=Rl.current,ri(t)?om(t):(e=Pv(i,a,l),t.stateNode=e,ia(t))}return Je(t),t.subtreeFlags&=-33554433,null;case 5:if(yr(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Je(t),t.subtreeFlags&=-33554433,null}if(u=Rl.current,ri(t))om(t);else{var o=Yu(va.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?o.createElement(i,{is:a.is}):o.createElement(i)}}u[gt]=t,u[Ut]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(Et(u,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ia(t)}}return Je(t),t.subtreeFlags&=-33554433,ko(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=va.current,ri(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ht,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[gt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jv(e.nodeValue,l)),e||_a(t,!0)}else e=Yu(e).createTextNode(a),e[gt]=t,t.stateNode=e}return Je(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ri(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[gt]=t}else fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else l=Kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ri(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[gt]=t}else fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),i=!1}else i=Kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),os(t,t.updateQueue),Je(t),null);case 4:return Xn(),e===null&&pf(t.stateNode.containerInfo),t.flags|=67108864,Je(t),null;case 10:return ta(t.type),Je(t),null;case 19:if(uo(t),a=t.memoizedState,a===null)return Je(t),null;if(i=(t.flags&128)!==0,u=a.rendering,u===null)if(i)Au(a,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Fr(e),u!==null){for(t.flags|=128,Au(a,!1),e=u.updateQueue,t.updateQueue=e,os(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)im(l,e),l=l.sibling;return zu(t,xt.current&1|2),Te&&Il(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Yt()>Es&&(t.flags|=128,i=!0,Au(a,!1),t.lanes=4194304)}else{if(!i)if(e=Fr(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,os(t,e),Au(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!Te)return Je(t),null}else 2*Yt()-a.renderingStartTime>Es&&l!==536870912&&(t.flags|=128,i=!0,Au(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}if(a.tail!==null){e=a.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Yt(),e.sibling=null,u=xt.current,u=i?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||Te?zu(t,u):(l=u,Ke(bt,t),Ke(xt,l),Tt===null&&(Tt=t)),Te&&Il(t,a.treeForkCount),e}return Je(t),null;case 22:case 23:return Jt(t),no(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),l=t.updateQueue,l!==null&&os(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&vt(vn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ta(at),Je(t),null;case 25:return null;case 30:return t.flags|=33554432,Je(t),null}throw Error(c(156,t.tag))}function zb(e,t){switch(Vc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(at),Xn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yr(t),null;case 31:if(t.memoizedState!==null){if(Jt(t),t.alternate===null)throw Error(c(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return uo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Xn(),null;case 10:return ta(t.type),null;case 22:case 23:return Jt(t),no(),e!==null&&vt(vn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(at),null;case 25:return null;default:return null}}function My(e,t){switch(Vc(t),t.tag){case 3:ta(at),Xn();break;case 26:case 27:case 5:yr(t);break;case 4:Xn();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:uo(t);break;case 10:ta(t.type);break;case 22:case 23:Jt(t),no(),e!==null&&vt(vn);break;case 24:ta(at)}}function Mu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var u=l.create,o=l.inst;a=u(),o.destroy=a}l=l.next}while(l!==i)}}catch(y){Ge(t,t.return,y)}}function Aa(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){var o=a.inst,y=o.destroy;if(y!==void 0){o.destroy=void 0,i=t;var S=l,O=y;try{O()}catch(A){Ge(i,S,A)}}}a=a.next}while(a!==u)}}catch(A){Ge(t,t.return,A)}}function Dy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{_m(t,l)}catch(a){Ge(e,e.return,a)}}}function Uy(e,t,l){l.props=Sn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ge(e,t,a)}}function Dl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var i=e.stateNode,u=$l(e.memoizedProps,i);(i.ref===null||i.ref.name!==u)&&(i.ref=Gv(u)),a=i.ref;break;case 7:if(e.stateNode===null){var o=new It(e);p(e.child,!1,gx,o,void 0,void 0),e.stateNode=o}a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(y){Ge(e,t,y)}}function St(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Ge(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Ge(e,t,i)}else l.current=null}function fs(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)Jv(e.stateNode,t[l])}function ky(e){for(var t=e.return;t!==null&&(qo(t)&&Jv(e.stateNode,t.stateNode),!Ho(t));)t=t.return}function Du(e){for(var t=e.return;t!==null&&(qo(t)&&px(e.stateNode,t.stateNode),!Ho(t));)t=t.return}function Ho(e){return e.tag===5||e.tag===3||e.tag===27}function qo(e){return e&&e.tag===7&&e.stateNode!==null}function Lo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Ge(e,e.return,i)}}function Bo(e,t,l){try{var a=e.stateNode;Ib(a,e.type,l,t),a[Ut]=t}catch(i){Ge(e,e.return,i)}}function Hy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&La(e.type)||e.tag===4}function Qo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hy(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&&La(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 Go(e,t,l,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(i,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(i),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=jl)),fs(e,a),ke=!0;else if(i!==4&&(i===27&&(fs(e,a),a=null,La(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Go(e,t,l,a),e=e.sibling;e!==null;)Go(e,t,l,a),e=e.sibling}function ds(e,t,l,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?l.insertBefore(i,t):l.appendChild(i),fs(e,a),ke=!0;else if(i!==4&&(i===27&&(fs(e,a),a=null,La(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(ds(e,t,l,a),e=e.sibling;e!==null;)ds(e,t,l,a),e=e.sibling}function qy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Et(t,a,l),t[gt]=e,t[Ut]=l}catch(u){Ge(e,e.return,u)}}var hs=!1,Ft=null;function Ly(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(hs=!0)}var Ul=null;function By(){var e=Ul;return Ul=null,e}var Ht=0;function yi(e,t,l,a,i){return Ht=0,Qy(e.child,t,l,a,i)}function Qy(e,t,l,a,i){for(var u=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(a!==null){var y=Cf(o);a.push(y),y.view&&(u=!0)}else u||Cf(o).view&&(u=!0);hs=!0,Bv(o,Ht===0?t:t+"_"+Ht,l),Ht++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Qy(e.child,t,l,a,i)&&(u=!0));e=e.sibling}return u}function kl(e,t){for(;e!==null;)e.tag===5?Qv(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||kl(e.child,t)),e=e.sibling}function ms(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(ms(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(c(544));var l=t.name;t=Wl(t.default,t.share),t!=="none"&&(yi(e,l,t,null,!1)||kl(e.child,!1))}e=e.sibling}}function Yo(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,i=$l(a,l),u=Wl(a.default,l.paired?a.share:a.enter);u!=="none"?yi(e,i,u,null,!1)?(ms(e),l.paired||t||_i(e,a.onEnter)):kl(e.child,!1):ms(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Yo(e,t),e=e.sibling;else ms(e)}function Vo(e){if(Ft!==null&&Ft.size!==0){var t=Ft;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var i=t.get(a);if(i!==void 0){var u=Wl(l.default,l.share);if(u!=="none"&&(yi(e,a,u,null,!1)?(u=e.stateNode,i.paired=u,u.paired=i,_i(e,l.onShare)):kl(e.child,!1)),t.delete(a),t.size===0)break}}}Vo(e)}e=e.sibling}}}function Xo(e){if(e.tag===30){var t=e.memoizedProps,l=$l(t,e.stateNode),a=Ft!==null?Ft.get(l):void 0,i=Wl(t.default,a!==void 0?t.share:t.exit);i!=="none"&&(yi(e,l,i,null,!1)?a!==void 0?(i=e.stateNode,a.paired=i,i.paired=a,Ft.delete(l),_i(e,t.onShare)):_i(e,t.onExit):kl(e.child,!1)),Ft!==null&&Vo(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Xo(e),e=e.sibling;else Ft!==null&&Vo(e)}function Gy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=$l(t,e.stateNode);t=Wl(t.default,t.update),e.flags&=-5,t!=="none"&&yi(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Gy(e);e=e.sibling}}function Ko(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,kl(e.child,!1))}Ko(e)}e=e.sibling}}function ys(e){if(e.tag===30)e.stateNode.paired=null,kl(e.child,!1),Ko(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ys(e),e=e.sibling;else Ko(e)}function Yy(e){for(e=e.child;e!==null;)e.tag===30?kl(e.child,!1):(e.subtreeFlags&33554432)!==0&&Yy(e),e=e.sibling}function Zo(e,t,l,a,i,u,o){for(var y=!1;t!==null;){if(t.tag===5){var S=t.stateNode;if(u!==null&&Ht<u.length){var O=u[Ht],A=Cf(S);(O.view||A.view)&&(y=!0);var q;if(q=(e.flags&4)===0)if(A.clip)q=!0;else{q=O.rect;var z=A.rect;q=q.y!==z.y||q.x!==z.x||q.height!==z.height||q.width!==z.width}q&&(e.flags|=4),A.abs?A=!O.abs:(O=O.rect,A=A.rect,A=O.height!==A.height||O.width!==A.width),A&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Bv(S,Ht===0?l:l+"_"+Ht,i),y&&(e.flags&4)!==0||(Ul===null&&(Ul=[]),Ul.push(S,Ht===0?a:a+"_"+Ht,t.memoizedProps)),Ht++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Zo(e,t.child,l,a,i,u,o)&&(y=!0));t=t.sibling}return y}function Vy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,i=$l(l,a),u=Wl(l.default,l.update),o;o=e.memoizedState,e.memoizedState=null,a=e;var y=e.child;Ht=0,i=Zo(a,y,i,i,u,o,!1),(e.flags&4)!==0&&i&&_i(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Vy(e);e=e.sibling}}var mt=!1,Be=!1,Hl=!1,Jo=!1,Xy=typeof WeakSet=="function"?WeakSet:Set,yt=null,ql=!1,Uu=!1,vs=!1,Fo=!1;function wb(e,t,l){if(e=e.containerInfo,Sf=Mi,e=Fh(e),Dc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var y=0,S=-1,O=-1,A=0,q=0,z=e,j=null;t:for(;;){for(var W;z!==a||u!==0&&z.nodeType!==3||(S=y+u),z!==o||i!==0&&z.nodeType!==3||(O=y+i),z.nodeType===3&&(y+=z.nodeValue.length),(W=z.firstChild)!==null;)j=z,z=W;for(;;){if(z===e)break t;if(j===a&&++A===u&&(S=y),j===o&&++q===i&&(O=y),(W=z.nextSibling)!==null)break;z=j,j=z.parentNode}z=W}a=S===-1||O===-1?null:{start:S,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ef={focusedElem:e,selectionRange:a},Mi=!1,l=(l&335544064)===l,yt=t,t=l?9270:1024;yt!==null;){if(e=yt,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&Xo(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&Ly(e),gs(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&Xo(a),gs(l);continue}else if(a!==null&&a.memoizedState!==null){l&&Ly(e),gs(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,yt=a):(l&&Gy(e),gs(l))}}Ft=null}function gs(e){for(;yt!==null;){var t=yt,l=e,a=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&a!==null){l=void 0,i=a.memoizedProps,a=a.memoizedState;var u=t.stateNode;try{var o=Sn(t.type,i);l=u.getSnapshotBeforeUpdate(o,a),u.__reactInternalSnapshotBeforeUpdate=l}catch(y){Ge(t,t.return,y)}}break;case 3:if((i&1024)!==0){if(a=t.stateNode.containerInfo,l=a.nodeType,l===9)Of(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Of(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=$l(a.memoizedProps,a.stateNode),i=t.memoizedProps,i=Wl(i.default,i.update),i!=="none"&&yi(a,l,i,a.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(c(163))}if(a=t.sibling,a!==null){a.return=t.return,yt=a;break}yt=t.return}}function Ky(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Ll(e,l),a&4&&Mu(5,l);break;case 1:if(Ll(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Ge(l,l.return,o)}else{var i=Sn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ge(l,l.return,o)}}a&64&&Dy(l),a&512&&Dl(l,l.return);break;case 3:if(Ll(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{_m(e,t)}catch(o){Ge(l,l.return,o)}}break;case 27:t===null&&a&4&&qy(l);case 26:case 5:Ll(e,l),t===null&&a&4&&Lo(l),a&512&&Dl(l,l.return);break;case 12:Ll(e,l);break;case 31:Ll(e,l),a&4&&$y(e,l);break;case 13:Ll(e,l),a&4&&Wy(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Bb.bind(null,l),Sx(e,l))));break;case 22:if(a=l.memoizedState!==null||mt,!a){var u=t!==null&&t.memoizedState!==null||Be;t=mt,i=Be,mt=a,(Be=u)&&!i?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),xl(e,l,a)):Ll(e,l),mt=t,Be=i}break;case 30:Ll(e,l),a&512&&Dl(l,l.return);break;case 7:a&512&&Dl(l,l.return);default:Ll(e,l)}}function $o(e,t){for(e=e.child;e!==null;)Zy(e,t),e=e.sibling}function Zy(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var a=l.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var i=e.stateNode,u=e.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null;i.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(S){Ge(e,e.return,S)}Wo(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ke=!0}catch(S){Ge(e,e.return,S)}break;case 18:try{var y=e.stateNode;t?Lv(y,!0):Lv(e.stateNode,!1)}catch(S){Ge(e,e.return,S)}break;case 22:case 23:e.memoizedState===null&&$o(e,t);break;default:$o(e,t)}}function Wo(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:Zy(l,a);break e;case 22:l.memoizedState===null&&Wo(l,a);break e;default:Wo(l,a)}}e=e.sibling}}function Jy(e){var t=e.alternate;t!==null&&(e.alternate=null,Jy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Er(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 Fe=null,qt=!1;function pl(e,t,l){for(l=l.child;l!==null;)Fy(e,t,l),l=l.sibling}function Fy(e,t,l){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(nu,l)}catch{}switch(l.tag){case 26:Be||St(l,t),pl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Be&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Be||St(l,t),Du(l);var a=Fe,i=qt;La(l.type)&&(Fe=l.stateNode,qt=!1),pl(e,t,l),Iv(l.stateNode,l.type,l.memoizedProps),Fe=a,qt=i;break;case 5:Be||St(l,t),Du(l);case 6:if(l.tag===6&&Du(l),a=Fe,i=qt,Fe=null,pl(e,t,l),Fe=a,qt=i,Fe!==null)if(qt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(l.stateNode),ke=!0}catch(u){Ge(l,t,u)}else try{Fe.removeChild(l.stateNode),ke=!0}catch(u){Ge(l,t,u)}break;case 18:Fe!==null&&(qt?(e=Fe,qv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Di(e)):qv(Fe,l.stateNode));break;case 4:a=Fe,i=qt,Fe=l.stateNode.containerInfo,qt=!0,pl(e,t,l),Fe=a,qt=i;break;case 0:case 11:case 14:case 15:Aa(2,l,t),Be||Aa(4,l,t),pl(e,t,l);break;case 1:Be||(St(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Uy(l,t,a)),pl(e,t,l);break;case 21:pl(e,t,l);break;case 22:Be=(a=Be)||l.memoizedState!==null,pl(e,t,l),Be=a;break;case 30:St(l,t),pl(e,t,l);break;case 7:Be||St(l,t),pl(e,t,l);break;default:pl(e,t,l)}}function $y(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Di(e)}catch(l){Ge(t,t.return,l)}}}function Wy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Di(e)}catch(l){Ge(t,t.return,l)}}function Ob(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xy),t;default:throw Error(c(435,e.tag))}}function ps(e,t){var l=Ob(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=Qb.bind(null,e,a);a.then(i,i)}})}function Ot(e,t,l){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],o=e,y=t,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(La(S.type)){Fe=S.stateNode,qt=!1;break e}break;case 5:Fe=S.stateNode,qt=!1;break e;case 3:case 4:Fe=S.stateNode.containerInfo,qt=!0;break e}S=S.return}if(Fe===null)throw Error(c(160));Fy(o,y,u),Fe=null,qt=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Py(t,e,l),t=t.sibling}var bl=null;function Py(e,t,l){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var u=0;u<a.length;u++){var o=a[u];o.ref.impl=o.nextImpl}Ot(t,e,l),Rt(e),i&4&&(Aa(3,e,e.return),Mu(3,e),Aa(5,e,e.return));break;case 1:Ot(t,e,l),Rt(e),i&512&&(Be||a===null||St(a,a.return)),i&64&&mt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=bl,Ot(t,e,l),Rt(e),i&512&&(Be||a===null||St(a,a.return)),i&4)if(i=a!==null?a.memoizedState:null,l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null)if(mt)e.stateNode=Uv(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,i=u.ownerDocument||u;t:switch(t){case"title":a=i.getElementsByTagName("title")[0],(!a||a[ru]||a[gt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(t),i.head.insertBefore(a,i.querySelector("head > title"))),Et(a,t,l),a[gt]=e,dt(a),t=a;break e;case"link":if(u=i0("link","href",i).get(t+(l.href||""))){for(o=0;o<u.length;o++)if(a=u[o],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(o,1);break t}}a=i.createElement(t),Et(a,t,l),i.head.appendChild(a);break;case"meta":if(u=i0("meta","content",i).get(t+(l.content||""))){for(o=0;o<u.length;o++)if(a=u[o],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(o,1);break t}}a=i.createElement(t),Et(a,t,l),i.head.appendChild(a);break;default:throw Error(c(468,t))}a[gt]=e,dt(a),t=a}e.stateNode=t}else mt||kf(u,e.type,e.stateNode);else e.stateNode=n0(u,l,e.memoizedProps);else i!==l?(i===null?(t=a.stateNode,t===null||Be||t.parentNode.removeChild(t)):i.count--,l===null?mt||kf(u,e.type,e.stateNode):n0(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Bo(e,e.memoizedProps,a.memoizedProps);break;case 27:Ot(t,e,l),Rt(e),i&512&&(Be||a===null||St(a,a.return)),a!==null&&i&4&&Bo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=Hl,Hl=!1,Ot(t,e,l),Hl=u,Rt(e),i&512&&(Be||a===null||St(a,a.return)),e.flags&32){t=e.stateNode;try{Wn(t,""),ke=!0}catch(A){Ge(e,e.return,A)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Bo(e,t,a!==null?a.memoizedProps:t)),i&1024&&(Jo=!0);break;case 6:if(Ot(t,e,l),Rt(e),i&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,ke=!0}catch(A){Ge(e,e.return,A)}}break;case 3:if(ke=!1,Ms=null,u=bl,bl=Vu(t.containerInfo),Ot(t,e,l),bl=u,Rt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(A){Ge(e,e.return,A)}Jo&&(Jo=!1,Iy(e)),ke=!1;break;case 4:i=Hl,Hl=mt,a=bh(),u=bl,bl=Vu(e.stateNode.containerInfo),Ot(t,e,l),Rt(e),bl=u,ke&&Uu&&(vs=!0),ke=a,Hl=i;break;case 12:Ot(t,e,l),Rt(e);break;case 31:Ot(t,e,l),Rt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 13:Ot(t,e,l),Rt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ss=Yt()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 22:u=e.memoizedState!==null,o=a!==null&&a.memoizedState!==null;var y=mt,S=Be,O=Hl;mt=y||u,Hl=O||u,Be=S||o,Ot(t,e,l),Be=S,Hl=O,mt=y,Rt(e),i&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||o||mt||Be||(t=o||Be,l=mt,a=Be,mt=u||mt,Be=t,Ma(e,2),mt=l,Be=a),!u&&Hl||$o(e,u)),i&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,ps(e,l))));break;case 19:Ot(t,e,l),Rt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 30:i&512&&(Be||a===null||St(a,a.return)),i=bh(),u=Uu,o=(l&335544064)===l,y=e.memoizedProps,Uu=o&&Wl(y.default,y.update)!=="none",Ot(t,e,l),Rt(e),o&&a!==null&&ke&&(e.flags|=4),Uu=u,ke=i;break;case 21:break;case 7:i&512&&(Be||a===null||St(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:Ot(t,e,l),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Hy(a)){l=a;break}a=a.return}a=null;for(var i=e.return;i!==null;){if(qo(i)){var u=i.stateNode;a===null?a=[u]:a.push(u)}if(Ho(i))break;i=i.return}var o=a;if(l==null)throw Error(c(160));switch(l.tag){case 27:var y=l.stateNode,S=Qo(e);ds(e,S,y,o);break;case 5:var O=l.stateNode;l.flags&32&&(Wn(O,""),l.flags&=-33);var A=Qo(e);ds(e,A,O,o);break;case 3:case 4:var q=l.stateNode.containerInfo,z=Qo(e);Go(e,z,q,o);break;default:throw Error(c(161))}}catch(j){Ge(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Iy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Mi=!0,t.reset(),Mi=!1),e=e.sibling}}function vi(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ev(t,e),t=t.sibling;else Vy(t)}function ev(e,t){var l=e.alternate;if(l===null)Yo(e,!1);else switch(e.tag){case 3:if(Fo=ql=!1,By(),vi(t,e),!ql&&!vs){if(e=Ul,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var i=e[a+1];Qv(l,e[a+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Fo=!0}Ul=null;break;case 5:vi(t,e);break;case 4:a=ql,ql=!1,vi(t,e),ql&&(vs=!0),ql=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Yo(e,!1):vi(t,e));break;case 30:a=ql,i=By(),ql=!1,vi(t,e),ql&&(e.flags|=4);var u=e.memoizedProps,o=e.stateNode;t=$l(u,o),o=$l(l.memoizedProps,o);var y=Wl(u.default,u.update);y==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,Ht=0,t=Zo(e,l,t,o,y,u,!0),Ht!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(_i(e,e.memoizedProps.onUpdate),Ul=i):i!==null&&(i.push.apply(i,Ul),Ul=i),ql=(e.flags&32)!==0?!0:a;break;default:vi(t,e)}}function Ll(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ky(e,t.alternate,t),t=t.sibling}function Ma(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:Aa(4,l,l.return),Ma(l,a);break;case 1:St(l,l.return);var i=l.stateNode;typeof i.componentWillUnmount=="function"&&Uy(l,l.return,i),Ma(l,a);break;case 27:(a&2)!==0&&Iv(l.stateNode,l.type,l.memoizedProps);case 5:St(l,l.return),l.tag!==5&&l.tag!==27||Du(l),Ma(l,a);break;case 6:Du(l);break;case 26:St(l,l.return),i=l.stateNode,l.memoizedState!==null||i===null||Be||i.parentNode.removeChild(i),Ma(l,a);break;case 22:l.memoizedState===null&&Ma(l,a);break;case 30:St(l,l.return),Ma(l,a);break;case 7:St(l,l.return);default:Ma(l,a)}e=e.sibling}}function xl(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var a=t.alternate,i=e,u=t,o=u.flags,y=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:xl(i,u,l),Mu(4,u);break;case 1:if(xl(i,u,l),a=u,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(A){Ge(a,a.return,A)}if(a=u,i=a.updateQueue,i!==null){var S=a.stateNode;try{var O=i.shared.hiddenCallbacks;if(O!==null)for(i.shared.hiddenCallbacks=null,i=0;i<O.length;i++)Em(O[i],S)}catch(A){Ge(a,a.return,A)}}y&&o&64&&Dy(u),Dl(u,u.return);break;case 27:(l&2)!==0&&qy(u);case 5:u.tag!==5&&u.tag!==27||ky(u),xl(i,u,l),y&&a===null&&o&4&&Lo(u),Dl(u,u.return);break;case 6:ky(u);break;case 26:S=u.stateNode,u.memoizedState!==null||S===null||mt||kf(Vu(S.ownerDocument),u.type,S),xl(i,u,l),y&&a===null&&o&4&&Lo(u),Dl(u,u.return);break;case 12:xl(i,u,l);break;case 31:xl(i,u,l),y&&o&4&&$y(i,u);break;case 13:xl(i,u,l),y&&o&4&&Wy(i,u);break;case 22:u.memoizedState===null&&xl(i,u,l),Dl(u,u.return);break;case 30:xl(i,u,l),Dl(u,u.return);break;case 7:Dl(u,u.return);default:xl(i,u,l)}t=t.sibling}}function Po(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&xu(l))}function Io(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xu(e))}function cl(e,t,l,a){var i=(l&335544064)===l;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)tv(e,t,l,a),t=t.sibling;else i&&Yy(t)}function tv(e,t,l,a){var i=(l&335544064)===l;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ys(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:cl(e,t,l,a),u&2048&&Mu(9,t);break;case 1:cl(e,t,l,a);break;case 3:cl(e,t,l,a),i&&Fo&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&xu(u)));break;case 12:if(u&2048){cl(e,t,l,a),u=t.stateNode;try{var o=t.memoizedProps,y=o.id,S=o.onPostCommit;typeof S=="function"&&S(y,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(O){Ge(t,t.return,O)}}else cl(e,t,l,a);break;case 31:cl(e,t,l,a);break;case 13:cl(e,t,l,a);break;case 23:break;case 22:o=t.stateNode,y=t.alternate,t.memoizedState!==null?(i&&y!==null&&y.memoizedState===null&&ys(y),o._visibility&2?cl(e,t,l,a):ku(e,t)):(i&&y!==null&&y.memoizedState!==null&&ys(t),o._visibility&2?cl(e,t,l,a):(o._visibility|=2,gi(e,t,l,a,(t.subtreeFlags&10256)!==0||!1))),u&2048&&Po(y,t);break;case 24:cl(e,t,l,a),u&2048&&Io(t.alternate,t);break;case 30:i&&(u=t.alternate,u!==null&&(kl(u.child,!0),kl(t.child,!0))),cl(e,t,l,a);break;default:cl(e,t,l,a)}}function gi(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,o=t,y=l,S=a,O=o.flags;switch(o.tag){case 0:case 11:case 15:gi(u,o,y,S,i),Mu(8,o);break;case 23:break;case 22:var A=o.stateNode;o.memoizedState!==null?A._visibility&2?gi(u,o,y,S,i):ku(u,o):(A._visibility|=2,gi(u,o,y,S,i)),i&&O&2048&&Po(o.alternate,o);break;case 24:gi(u,o,y,S,i),i&&O&2048&&Io(o.alternate,o);break;default:gi(u,o,y,S,i)}t=t.sibling}}function ku(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:ku(l,a),i&2048&&Po(a.alternate,a);break;case 24:ku(l,a),i&2048&&Io(a.alternate,a);break;default:ku(l,a)}t=t.sibling}}var En=8192;function _n(e,t,l){if(e.subtreeFlags&En)for(e=e.child;e!==null;)lv(e,t,l),e=e.sibling}function lv(e,t,l){switch(e.tag){case 26:_n(e,t,l),e.flags&En&&(e.memoizedState!==null?Ux(l,bl,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&c0(l,e)));break;case 5:_n(e,t,l),e.flags&En&&(e=e.stateNode,(t&335544128)===t&&c0(l,e));break;case 3:case 4:var a=bl;bl=Vu(e.stateNode.containerInfo),_n(e,t,l),bl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=En,En=16777216,_n(e,t,l),En=a):_n(e,t,l));break;case 30:if((e.flags&En)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var i=e.stateNode;i.paired=null,Ft===null&&(Ft=new Map),Ft.set(a,i)}_n(e,t,l);break;default:_n(e,t,l)}}function av(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 Hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];yt=a,iv(a,e)}av(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nv(e),e=e.sibling}function nv(e){switch(e.tag){case 0:case 11:case 15:Hu(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:Hu(e);break;case 12:Hu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,bs(e)):Hu(e);break;default:Hu(e)}}function bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];yt=a,iv(a,e)}av(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),bs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,bs(t));break;default:bs(t)}e=e.sibling}}function iv(e,t){for(;yt!==null;){var l=yt;switch(l.tag){case 0:case 11:case 15:Aa(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:xu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,yt=a;else e:for(l=e;yt!==null;){a=yt;var i=a.sibling,u=a.return;if(Jy(a),a===l){yt=null;break e}if(i!==null){i.return=u,yt=i;break e}yt=u}}}var Rb={getCacheForType:function(e){var t=pt(at),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return pt(at).controller.signal}},jb=typeof WeakMap=="function"?WeakMap:Map,qe=0,Xe=null,Ce=null,Oe=0,Qe=0,$t=null,Da=!1,pi=!1,ef=!1,ua=0,tt=0,Ua=0,Tn=0,xs=0,Wt=0,bi=0,qu=null,Lt=null,tf=!1,Ss=0,uv=0,Es=1/0,_s=null,ka=null,Pe=0,Sl=null,Nn=null,Bl=0,lf=0,af=null,rv=null,xi=null,Si=null,Ei=null,Lu=0,Ts=null;function Pt(){return(qe&2)!==0&&Oe!==0?Oe&-Oe:ue.T!==null?mf():oh()}function sv(){if(Wt===0)if((Oe&536870912)===0||Te){var e=pr;pr<<=1,(pr&3932160)===0&&(pr=262144),Wt=e}else Wt=536870912;return e=bt.current,e!==null&&(e.flags|=32),Wt}function _i(e,t){if(t!=null){var l=e.stateNode,a=l.ref;a===null&&(a=l.ref=Gv($l(e.memoizedProps,l))),Si===null&&(Si=[]),Si.push(t.bind(null,a))}}function Bt(e,t,l){(e===Xe&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(Ti(e,0),Ha(e,Oe,Wt,!1)),uu(e,l),((qe&2)===0||e!==Xe)&&(e===Xe&&((qe&2)===0&&(Tn|=l),tt===4&&Ha(e,Oe,Wt,!1)),Ql(e))}function cv(e,t,l){if((qe&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||iu(e,t),i=a?Db(e,t):uf(e,t,!0),u=a;do{if(i===0){pi&&!a&&Ha(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Ab(l)){i=uf(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var y=e;i=qu;var S=y.current.memoizedState.isDehydrated;if(S&&(Ti(y,o).flags|=256),o=uf(y,o,!1),o!==2&&o!==6){if(ef&&!S){y.errorRecoveryDisabledLanes|=u,Tn|=u,i=4;break e}u=Lt,Lt=i,u!==null&&(Lt===null?Lt=u:Lt.push.apply(Lt,u))}i=o}if(u=!1,i!==2)continue}}if(i===1){Ti(e,0),Ha(e,t,0,!0);break}e:{switch(a=e,u=i,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ha(a,t,Wt,!Da);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Ss+300-Yt(),10<i)){if(Ha(a,t,Wt,!Da),xr(a,0,!0)!==0)break e;Bl=t,a.timeoutHandle=Nf(ov.bind(null,a,l,Lt,_s,tf,t,Wt,Tn,bi,Da,u,"Throttled",-0,0),i);break e}ov(a,l,Lt,_s,tf,t,Wt,Tn,bi,Da,u,null,-0,0)}}break}while(!0);Ql(e)}function ov(e,t,l,a,i,u,o,y,S,O,A,q,z,j){e.timeoutHandle=-1;var W=t.subtreeFlags,re=(u&335544064)===u;if(q=null,(re||W&8192||(W&16785408)===16785408)&&(q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jl},Ft=null,lv(t,u,q),re&&(W=q,re=e.containerInfo,re=(re.nodeType===9?re:re.ownerDocument).__reactViewTransition,re!=null&&(W.count++,W.waitingForViewTransition=!0,W=Zu.bind(W),re.finished.then(W,W))),W=(u&62914560)===u?Ss-Yt():(u&4194048)===u?uv-Yt():0,W=kx(q,W),W!==null)){Bl=u,e.cancelPendingCommit=W(pv.bind(null,e,t,u,l,a,i,o,y,S,O,A,q,null,z,j)),Ha(e,u,o,!O);return}pv(e,t,u,l,a,i,o,y,S,O,A,q)}function Ab(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],u=i.getSnapshot;i=i.value;try{if(!Zt(u(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ha(e,t,l,a){t=ih(e,t),t&=~xs,t&=~Tn,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var u=31-Xt(i),o=1<<u;a[u]=-1,i&=~o}l!==0&&rh(e,l,t)}function Ns(){return(qe&6)===0?(Bu(0),!1):!0}function nf(){if(Ce!==null){if(Qe===0)var e=Ce.return;else e=Ce,ea=dn=null,fo(e),oi=null,_u=0,e=Ce;for(;e!==null;)My(e.alternate,e),e=e.return;Ce=null}}function Ti(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,lx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Bl=0,nf(),Xe=e,Ce=l=Pl(e.current,null),Oe=t,Qe=0,$t=null,Da=!1,pi=iu(e,t),ef=!1,bi=Wt=xs=Tn=Ua=tt=0,Lt=qu=null,tf=!1,ua=ih(e,t),Mr(),l}function fv(e,t){xe=null,ue.H=ns,t===ci||t===Vr?(t=pm(),Qe=3):t===Pc?(t=pm(),Qe=4):Qe=t===zo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$t=t,Ce===null&&(tt=1,is(e,il(t,e.current)))}function dv(){var e=bt.current;return e===null?!0:(Oe&4194048)===Oe?Tt===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===Tt:!1}function hv(){var e=ue.H;return ue.H=ns,e===null?ns:e}function mv(){var e=ue.A;return ue.A=Rb,e}function Cs(){tt=4,Da||(Oe&4194048)!==Oe&&bt.current!==null||(pi=!0),(Ua&134217727)===0&&(Tn&134217727)===0||Xe===null||Ha(Xe,Oe,Wt,!1)}function uf(e,t,l){var a=qe;qe|=2;var i=hv(),u=mv();(Xe!==e||Oe!==t)&&(_s=null,Ti(e,t)),t=!1;var o=tt;e:do try{if(Qe!==0&&Ce!==null){var y=Ce,S=$t;switch(Qe){case 8:nf(),o=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var O=Qe;if(Qe=0,$t=null,Ni(e,y,S,O),l&&pi){o=0;break e}break;default:O=Qe,Qe=0,$t=null,Ni(e,y,S,O)}}Mb(),o=tt;break}catch(A){fv(e,A)}while(!0);return t&&e.shellSuspendCounter++,ea=dn=null,qe=a,ue.H=i,ue.A=u,Ce===null&&(Xe=null,Oe=0,Mr()),o}function Mb(){for(;Ce!==null;)yv(Ce)}function Db(e,t){var l=qe;qe|=2;var a=hv(),i=mv();Xe!==e||Oe!==t?(_s=null,Es=Yt()+500,Ti(e,t)):pi=iu(e,t);e:do try{if(Qe!==0&&Ce!==null){t=Ce;var u=$t;t:switch(Qe){case 1:Qe=0,$t=null,Ni(e,t,u,1);break;case 2:case 9:if(vm(u)){Qe=0,$t=null,vv(t);break}t=function(){Qe!==2&&Qe!==9||Xe!==e||(Qe=7),Ql(e)},u.then(t,t);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:vm(u)?(Qe=0,$t=null,vv(t)):(Qe=0,$t=null,Ni(e,t,u,7));break;case 5:var o=null;switch(Ce.tag){case 26:o=Ce.memoizedState;case 5:case 27:var y=Ce;if(o?r0(o):y.stateNode.complete){Qe=0,$t=null;var S=y.sibling;if(S!==null)Ce=S;else{var O=y.return;O!==null?(Ce=O,zs(O)):Ce=null}break t}}Qe=0,$t=null,Ni(e,t,u,5);break;case 6:Qe=0,$t=null,Ni(e,t,u,6);break;case 8:nf(),tt=6;break e;default:throw Error(c(462))}}Ub();break}catch(A){fv(e,A)}while(!0);return ea=dn=null,ue.H=a,ue.A=i,qe=l,Ce!==null?0:(Xe=null,Oe=0,Mr(),tt)}function Ub(){for(;Ce!==null&&!Pp();)yv(Ce)}function yv(e){var t=jy(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?zs(e):Ce=t}function vv(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ty(l,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Ty(l,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:fo(t);var a=t;a===ht&&(Te?(Lr(a),a.tag===5&&a.stateNode!=null&&(Ze=a.stateNode)):(Lr(a),Te=!0));default:My(l,t),t=Ce=im(t,ua),t=jy(l,t,ua)}e.memoizedProps=e.pendingProps,t===null?zs(e):Ce=t}function Ni(e,t,l,a){ea=dn=null,fo(t),oi=null,_u=0;var i=t.return;try{if(Eb(e,i,t,l,Oe)){tt=1,is(e,il(l,e.current)),Ce=null;return}}catch(u){if(i!==null)throw Ce=i,u;tt=1,is(e,il(l,e.current)),Ce=null;return}t.flags&32768?(Te||a===1?e=!0:pi||(Oe&536870912)!==0?e=!1:(Da=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),gv(t,e)):zs(t)}function zs(e){var t=e;do{if((t.flags&32768)!==0){gv(t,Da);return}e=t.return;var l=Cb(t.alternate,t,ua);if(l!==null){Ce=l;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);tt===0&&(tt=5)}function gv(e,t){do{var l=zb(e.alternate,e);if(l!==null){l.flags&=32767,Ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=l}while(e!==null);tt=6,Ce=null}function pv(e,t,l,a,i,u,o,y,S,O,A,q){e.cancelPendingCommit=null;do ws();while(Pe!==0);if((qe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===Xe&&(Ce=Xe=null,Oe=0),Nn=t,Sl=e,Bl=l,af=i,rv=a,kb(e,t,l,o,y,S,q)}}function kb(e,t,l,a,i,u,o){var y=t.lanes|t.childLanes;if(lf=y,y|=Lc,s1(e,l,y,a,i,u),Si=null,(l&335544064)===l?(Ei=ob(e),a=10262):(Ei=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,Gb(vr,function(){return of(),null})):(e.callbackNode=null,e.callbackPriority=0),hs=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=ue.T,ue.T=null,i=me.p,me.p=2,u=qe,qe|=4;try{wb(e,t,l)}finally{qe=u,me.p=i,ue.T=a}}Pe=1,hs?xi=sx(o,e.containerInfo,Ei,rf,sf,qb,cf,of,Hb):(rf(),sf(),cf())}function Hb(e){if(Pe!==0){var t=Sl.onRecoverableError;t(e,{componentStack:null})}}function qb(){Pe===3&&(Pe=0,ev(Nn,Sl),Pe=4)}function rf(){if(Pe===1){Pe=0;var e=Sl,t=Nn,l=Bl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=ue.T,ue.T=null;var i=me.p;me.p=2;var u=qe;qe|=4;try{Uu=vs=!1,Py(t,e,l),l=Ef;var o=Fh(e.containerInfo),y=l.focusedElem,S=l.selectionRange;if(o!==y&&y&&y.ownerDocument&&Jh(y.ownerDocument.documentElement,y)){if(S!==null&&Dc(y)){var O=S.start,A=S.end;if(A===void 0&&(A=O),"selectionStart"in y)y.selectionStart=O,y.selectionEnd=Math.min(A,y.value.length);else{var q=y.ownerDocument||document,z=q&&q.defaultView||window;if(z.getSelection){var j=z.getSelection(),W=y.textContent.length,re=Math.min(S.start,W),Se=S.end===void 0?re:Math.min(S.end,W);!j.extend&&re>Se&&(o=Se,Se=re,re=o);var w=Zh(y,re),T=Zh(y,Se);if(w&&T&&(j.rangeCount!==1||j.anchorNode!==w.node||j.anchorOffset!==w.offset||j.focusNode!==T.node||j.focusOffset!==T.offset)){var R=q.createRange();R.setStart(w.node,w.offset),j.removeAllRanges(),re>Se?(j.addRange(R),j.extend(T.node,T.offset)):(R.setEnd(T.node,T.offset),j.addRange(R))}}}}for(q=[],j=y;j=j.parentNode;)j.nodeType===1&&q.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var H=q[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Mi=!!Sf,Ef=Sf=null}finally{qe=u,me.p=i,ue.T=a}}e.current=t,Pe=2}}function sf(){if(Pe===2){Pe=0;var e=Sl,t=Nn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=ue.T,ue.T=null;var a=me.p;me.p=2;var i=qe;qe|=4;try{Ky(e,t.alternate,t)}finally{qe=i,me.p=a,ue.T=l}}Pe=3}}function cf(){if(Pe===4||Pe===3){Pe=0;var e=xi;xi=null,Ip();var t=Sl,l=Nn,a=Bl,i=rv,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Pe=5:(Pe=0,Nn=Sl=null,bv(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(ka=null),vc(a),l=l.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(nu,l,void 0,(l.current.flags&128)===128)}catch{}if(i!==null){l=ue.T,u=me.p,me.p=2,ue.T=null;try{for(var o=t.onRecoverableError,y=0;y<i.length;y++){var S=i[y];o(S.value,{componentStack:S.stack})}}finally{ue.T=l,me.p=u}}if(i=Si,o=Ei,Ei=null,i!==null&&(Si=null,o===null&&(o=[]),e!==null))for(S=0;S<i.length;S++)l=(0,i[S])(o),l!==void 0&&e.finished.finally(l);(Bl&3)!==0&&ws(),Ql(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===Ts?Lu++:(Lu=0,Ts=t):(Lu=0,Ts=null),Bu(0)}}function bv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xu(t)))}function ws(){return xi!==null&&(xi.skipTransition(),xi=null),rf(),sf(),cf(),of()}function of(){if(Pe!==5)return!1;var e=Sl,t=lf;lf=0;var l=vc(Bl),a=ue.T,i=me.p;try{me.p=32>l?32:l,ue.T=null,l=af,af=null;var u=Sl,o=Bl;if(Pe=0,Nn=Sl=null,Bl=0,(qe&6)!==0)throw Error(c(331));var y=qe;if(qe|=4,nv(u.current),tv(u,u.current,o,l),qe=y,Bu(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(nu,u)}catch{}return!0}finally{me.p=i,ue.T=a,bv(e,t)}}function xv(e,t,l){t=il(l,t),t=Co(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(uu(e,2),Ql(e))}function Ge(e,t,l){if(e.tag===3)xv(e,e,l);else for(;t!==null;){if(t.tag===3){xv(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ka===null||!ka.has(a))){e=il(l,e),l=vy(2),a=wa(t,l,2),a!==null&&(gy(l,a,t,e),uu(a,2),Ql(a));break}}t=t.return}}function ff(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new jb;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(ef=!0,i.add(l),e=Lb.bind(null,e,t,l),t.then(e,e))}function Lb(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Xe===e&&(Oe&l)===l&&((tt===4||tt===3&&(Oe&62914560)===Oe&&300>Yt()-Ss)&&(qe&2)===0?Ti(e,0):xs|=l,bi===Oe&&(bi=0)),Ql(e)}function Sv(e,t){t===0&&(t=uh()),e=cn(e,t),e!==null&&(uu(e,t),Ql(e))}function Bb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Sv(e,l)}function Qb(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),Sv(e,l)}function Gb(e,t){return dc(e,t)}var Ci=null,zi=null,df=!1,Os=!1,hf=!1,qa=0;function Ql(e){e!==zi&&e.next===null&&(zi===null?Ci=zi=e:zi=zi.next=e),Os=!0,df||(df=!0,Vb())}function Bu(e,t){if(!hf&&Os){hf=!0;do for(var l=!1,a=Ci;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var u=0;else{var o=a.suspendedLanes,y=a.pingedLanes;u=(1<<31-Xt(42|e)+1)-1,u&=i&~(o&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Nv(a,u))}else u=Oe,u=xr(a,a===Xe?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||iu(a,u)||(l=!0,Nv(a,u));a=a.next}while(l);hf=!1}}function Yb(){Ev()}function Ev(){Os=df=!1;var e=0;qa!==0&&tx()&&(e=qa);for(var t=Yt(),l=null,a=Ci;a!==null;){var i=a.next,u=_v(a,t);u===0?(a.next=null,l===null?Ci=i:l.next=i,i===null&&(zi=l)):(l=a,(e!==0||(u&3)!==0)&&(Os=!0)),a=i}Pe!==0&&Pe!==5||Bu(e),qa!==0&&(qa=0)}function _v(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-Xt(u),y=1<<o,S=i[o];S===-1?((y&l)===0||(y&a)!==0)&&(i[o]=r1(y,t)):S<=t&&(e.expiredLanes|=y),u&=~y}if(t=Xe,l=Oe,l=xr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&hc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||iu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&hc(a),vc(l)){case 2:case 8:l=ah;break;case 32:l=vr;break;case 268435456:l=nh;break;default:l=vr}return a=Tv.bind(null,e),l=dc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&hc(a),e.callbackPriority=2,e.callbackNode=null,2}function Tv(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ws()&&e.callbackNode!==l)return null;var a=Oe;return a=xr(e,e===Xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(cv(e,a,t),_v(e,Yt()),e.callbackNode!=null&&e.callbackNode===l?Tv.bind(null,e):null)}function Nv(e,t){if(ws())return null;cv(e,t,!0)}function Vb(){ax(function(){(qe&6)!==0?dc(lh,Yb):Ev()})}function mf(){if(qa===0){var e=yn;e===0&&(e=gr,gr<<=1,(gr&261888)===0&&(gr=256)),qa=e}return qa}function Cv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nr(e)}function Xb(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var u=Cv((i[Ut]||null).action),o=a.submitter;o&&(t=(t=o[Ut]||null)?Cv(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var y=new Or("action","action",null,a,i);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(qa!==0){var S=new FormData(i,o);So(l,{pending:!0,data:S,method:i.method,action:u},null,S)}}else typeof u=="function"&&(y.preventDefault(),S=new FormData(i,o),So(l,{pending:!0,data:S,method:i.method,action:u},u,S))},currentTarget:i}]})}}for(var yf=0;yf<qc.length;yf++){var vf=qc[yf],Kb=vf.toLowerCase(),Zb=vf[0].toUpperCase()+vf.slice(1);gl(Kb,"on"+Zb)}gl(Ph,"onAnimationEnd"),gl(Ih,"onAnimationIteration"),gl(em,"onAnimationStart"),gl("dblclick","onDoubleClick"),gl("focusin","onFocus"),gl("focusout","onBlur"),gl(lb,"onTransitionRun"),gl(ab,"onTransitionStart"),gl(nb,"onTransitionCancel"),gl(tm,"onTransitionEnd"),Fn("onMouseEnter",["mouseout","mouseover"]),Fn("onMouseLeave",["mouseout","mouseover"]),Fn("onPointerEnter",["pointerout","pointerover"]),Fn("onPointerLeave",["pointerout","pointerover"]),un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),un("onBeforeInput",["compositionend","keypress","textInput","paste"]),un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),Jb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function zv(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var o=a.length-1;0<=o;o--){var y=a[o],S=y.instance,O=y.currentTarget;if(y=y.listener,S!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=O;try{u(i)}catch(A){Ar(A)}i.currentTarget=null,u=S}else for(o=0;o<a.length;o++){if(y=a[o],S=y.instance,O=y.currentTarget,y=y.listener,S!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=O;try{u(i)}catch(A){Ar(A)}i.currentTarget=null,u=S}}}}function ze(e,t){var l=t[dh];l===void 0&&(l=t[dh]=new Set);var a=e+"__bubble";l.has(a)||(wv(t,e,2,!1),l.add(a))}function gf(e,t,l){var a=0;t&&(a|=4),wv(l,e,a,t)}var Rs="_reactListening"+Math.random().toString(36).slice(2);function pf(e){if(!e[Rs]){e[Rs]=!0,yh.forEach(function(l){l!=="selectionchange"&&(Jb.has(l)||gf(l,!1,e),gf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Rs]||(t[Rs]=!0,gf("selectionchange",!1,t))}}function wv(e,t,l,a){switch(g0(t)){case 2:var i=Bx;break;case 8:i=Qx;break;default:i=qf}l=i.bind(null,t,l,e),i=void 0,!Tc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function bf(e,t,l,a,i){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var y=a.stateNode.containerInfo;if(y===i)break;if(o===4)for(o=a.return;o!==null;){var S=o.tag;if((S===3||S===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;y!==null;){if(o=nn(y),o===null)return;if(S=o.tag,S===5||S===6||S===26||S===27){a=u=o;continue e}y=y.parentNode}}a=a.return}wh(function(){var O=u,A=Ec(l),q=[];e:{var z=lm.get(e);if(z!==void 0){var j=Or,W=e;switch(e){case"keypress":if(zr(l)===0)break e;case"keydown":case"keyup":j=A1;break;case"focusin":W="focus",j=wc;break;case"focusout":W="blur",j=wc;break;case"beforeblur":case"afterblur":j=wc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=x1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=H1;break;case Ph:case Ih:case em:j=_1;break;case tm:j=L1;break;case"scroll":case"scrollend":j=p1;break;case"wheel":j=Q1;break;case"copy":case"cut":case"paste":j=N1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Mh;break;case"submit":j=U1;break;case"toggle":case"beforetoggle":j=Y1}var re=(t&4)!==0,Se=!re&&(e==="scroll"||e==="scrollend"),w=re?z!==null?z+"Capture":null:z;re=[];for(var T=O,R;T!==null;){var H=T;if(R=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||R===null||w===null||(H=cu(T,w),H!=null&&re.push(Gu(T,H,R))),Se)break;T=T.return}0<re.length&&(z=new j(z,W,null,l,A),q.push({event:z,listeners:re}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",j&&l!==Sc&&(W=l.relatedTarget||l.fromElement)&&(nn(W)||W[Kn]))break e;(z||j)&&(W=A.window===A?A:(j=A.ownerDocument)?j.defaultView||j.parentWindow:window,z?(j=l.relatedTarget||l.toElement,z=O,j=j?nn(j):null,j!==null&&(Se=h(j),re=j.tag,j!==Se||re!==5&&re!==27&&re!==6)&&(j=null)):(z=null,j=O),z!==j&&(re=jh,H="onMouseLeave",w="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(re=Mh,H="onPointerLeave",w="onPointerEnter",T="pointer"),Se=z==null?W:su(z),R=j==null?W:su(j),W=new re(H,T+"leave",z,l,A),W.target=Se,W.relatedTarget=R,H=null,nn(A)===O&&(re=new re(w,T+"enter",j,l,A),re.target=R,re.relatedTarget=Se,H=re),Se=H,re=z&&j?ce(z,j,Fb):null,z!==null&&Ov(q,W,z,re,!1),j!==null&&Se!==null&&Ov(q,Se,j,re,!0)))}e:{if(z=O?su(O):window,j=z.nodeName&&z.nodeName.toLowerCase(),j==="select"||j==="input"&&z.type==="file")var le=Qh;else if(Lh(z))if(Gh)le=I1;else{le=W1;var Re=$1}else j=z.nodeName,!j||j.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?O&&xc(O.elementType)&&(le=Qh):le=P1;if(le&&(le=le(e,O))){Bh(q,le,l,A);break e}Re&&Re(e,z,O)}switch(Re=O?su(O):window,e){case"focusin":(Lh(Re)||Re.contentEditable==="true")&&(ti=Re,Uc=O,gu=null);break;case"focusout":gu=Uc=ti=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,$h(q,l,A);break;case"selectionchange":if(tb)break;case"keydown":case"keyup":$h(q,l,A)}var oe;if(Rc)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else ei?Hh(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(Dh&&l.locale!=="ko"&&(ei||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ei&&(oe=Oh()):(ba=A,Nc="value"in ba?ba.value:ba.textContent,ei=!0)),Re=js(O,ve),0<Re.length&&(ve=new Ah(ve,e,null,l,A),q.push({event:ve,listeners:Re}),oe?ve.data=oe:(oe=qh(l),oe!==null&&(ve.data=oe)))),(oe=X1?K1(e,l):Z1(e,l))&&(ve=js(O,"onBeforeInput"),0<ve.length&&(Re=new Ah("onBeforeInput","beforeinput",null,l,A),q.push({event:Re,listeners:ve}),Re.data=oe)),Xb(q,e,O,l,A)}zv(q,t)})}function Gu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function js(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=cu(e,l),i!=null&&a.unshift(Gu(e,i,u)),i=cu(e,t),i!=null&&a.push(Gu(e,i,u))),e.tag===3)return a;e=e.return}return[]}function Fb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ov(e,t,l,a,i){for(var u=t._reactName,o=[];l!==null&&l!==a;){var y=l,S=y.alternate,O=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||O===null||(S=O,i?(O=cu(l,u),O!=null&&o.unshift(Gu(l,O,S))):i||(O=cu(l,u),O!=null&&o.push(Gu(l,O,S)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var $b=/\r\n?/g,Wb=/\u0000|\uFFFD/g;function Rv(e){return(typeof e=="string"?e:""+e).replace($b,`
|
||
`).replace(Wb,"")}function jv(e,t){return t=Rv(t),Rv(e)===t}function Ye(e,t,l,a,i,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Wn(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Wn(e,""+a);else return;break;case"className":Tr(e,"class",a);break;case"tabIndex":Tr(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Tr(e,l,a);break;case"style":Ch(e,a,u);return;case"data":if(t!=="object"){Tr(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Nr(a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&Ye(e,t,"name",i.name,i,null),Ye(e,t,"formEncType",i.formEncType,i,null),Ye(e,t,"formMethod",i.formMethod,i,null),Ye(e,t,"formTarget",i.formTarget,i,null)):(Ye(e,t,"encType",i.encType,i,null),Ye(e,t,"method",i.method,i,null),Ye(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Nr(a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=jl);return;case"onScroll":a!=null&&ze("scroll",e);return;case"onScrollEnd":a!=null&&ze("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(c(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Nr(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ze("beforetoggle",e),ze("toggle",e),_r(e,"popover",a);break;case"xlinkActuate":Jl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":_r(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=v1.get(l)||l,_r(e,l,a);else return}ke=!0}function xf(e,t,l,a,i,u){switch(l){case"style":Ch(e,a,u);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(c(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof a=="string")Wn(e,a);else if(typeof a=="number"||typeof a=="bigint")Wn(e,""+a);else return;break;case"onScroll":a!=null&&ze("scroll",e);return;case"onScrollEnd":a!=null&&ze("scrollend",e);return;case"onClick":a!=null&&(e.onclick=jl);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!vh.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),u=l.slice(2,i?l.length-7:void 0),t=e[Ut]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,i),typeof a=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,a,i);break e}ke=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):_r(e,l,a)}return}ke=!0}function Et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var a=!1,i=!1,u;for(u in l)if(l.hasOwnProperty(u)){var o=l[u];if(o!=null)switch(u){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ye(e,t,u,o,l,null)}}i&&Ye(e,t,"srcSet",l.srcSet,l,null),a&&Ye(e,t,"src",l.src,l,null);return;case"input":ze("invalid",e);var y=u=o=i=null,S=null,O=null;for(a in l)if(l.hasOwnProperty(a)){var A=l[a];if(A!=null)switch(a){case"name":i=A;break;case"type":o=A;break;case"checked":S=A;break;case"defaultChecked":O=A;break;case"value":u=A;break;case"defaultValue":y=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:Ye(e,t,a,A,l,null)}}Eh(e,u,y,S,O,o,i,!1);return;case"select":ze("invalid",e),a=o=u=null;for(i in l)if(l.hasOwnProperty(i)&&(y=l[i],y!=null))switch(i){case"value":u=y;break;case"defaultValue":o=y;break;case"multiple":a=y;default:Ye(e,t,i,y,l,null)}t=u,l=o,e.multiple=!!a,t!=null?$n(e,!!a,t,!1):l!=null&&$n(e,!!a,l,!0);return;case"textarea":ze("invalid",e),u=i=a=null;for(o in l)if(l.hasOwnProperty(o)&&(y=l[o],y!=null))switch(o){case"value":a=y;break;case"defaultValue":i=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:Ye(e,t,o,y,l,null)}Th(e,a,i,u);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ye(e,t,S,a,l,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(a=0;a<Qu.length;a++)ze(Qu[a],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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(O in l)if(l.hasOwnProperty(O)&&(a=l[O],a!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ye(e,t,O,a,l,null)}return;default:if(xc(t)){for(A in l)l.hasOwnProperty(A)&&(a=l[A],a!==void 0&&xf(e,t,A,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&Ye(e,t,y,a,l,null))}var Pb={};function Ib(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,o=null,y=null,S=null,O=null,A=null;for(j in l){var q=l[j];if(l.hasOwnProperty(j)&&q!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":S=q;default:a.hasOwnProperty(j)||Ye(e,t,j,null,a,q)}}for(var z in a){var j=a[z];if(q=l[z],a.hasOwnProperty(z)&&(j!=null||q!=null))switch(z){case"type":j!==q&&(ke=!0),u=j;break;case"name":j!==q&&(ke=!0),i=j;break;case"checked":j!==q&&(ke=!0),O=j;break;case"defaultChecked":j!==q&&(ke=!0),A=j;break;case"value":j!==q&&(ke=!0),o=j;break;case"defaultValue":j!==q&&(ke=!0),y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(c(137,t));break;default:j!==q&&Ye(e,t,z,j,a,q)}}pc(e,o,y,S,O,A,u,i);return;case"select":j=o=y=z=null;for(u in l)if(S=l[u],l.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":j=S;default:a.hasOwnProperty(u)||Ye(e,t,u,null,a,S)}for(i in a)if(u=a[i],S=l[i],a.hasOwnProperty(i)&&(u!=null||S!=null))switch(i){case"value":u!==S&&(ke=!0),z=u;break;case"defaultValue":u!==S&&(ke=!0),y=u;break;case"multiple":u!==S&&(ke=!0),o=u;default:u!==S&&Ye(e,t,i,u,a,S)}t=y,l=o,a=j,z!=null?$n(e,!!l,z,!1):!!a!=!!l&&(t!=null?$n(e,!!l,t,!0):$n(e,!!l,l?[]:"",!1));return;case"textarea":j=z=null;for(y in l)if(i=l[y],l.hasOwnProperty(y)&&i!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ye(e,t,y,null,a,i)}for(o in a)if(i=a[o],u=l[o],a.hasOwnProperty(o)&&(i!=null||u!=null))switch(o){case"value":i!==u&&(ke=!0),z=i;break;case"defaultValue":i!==u&&(ke=!0),j=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&Ye(e,t,o,i,a,u)}_h(e,z,j);return;case"option":for(var W in l)if(z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Ye(e,t,W,null,a,z)}for(S in a)if(z=a[S],j=l[S],a.hasOwnProperty(S)&&z!==j&&(z!=null||j!=null))switch(S){case"selected":z!==j&&(ke=!0),e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ye(e,t,S,z,a,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var re in l)z=l[re],l.hasOwnProperty(re)&&z!=null&&!a.hasOwnProperty(re)&&Ye(e,t,re,null,a,z);for(O in a)if(z=a[O],j=l[O],a.hasOwnProperty(O)&&z!==j&&(z!=null||j!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Ye(e,t,O,z,a,j)}return;default:if(xc(t)){for(var Se in l)z=l[Se],l.hasOwnProperty(Se)&&z!==void 0&&!a.hasOwnProperty(Se)&&xf(e,t,Se,void 0,a,z);for(A in a)z=a[A],j=l[A],!a.hasOwnProperty(A)||z===j||z===void 0&&j===void 0||xf(e,t,A,z,a,j);return}}for(var w in l)z=l[w],l.hasOwnProperty(w)&&z!=null&&!a.hasOwnProperty(w)&&Ye(e,t,w,null,a,z);for(q in a)z=a[q],j=l[q],!a.hasOwnProperty(q)||z===j||z==null&&j==null||Ye(e,t,q,z,a,j)}function Av(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ex(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],u=i.transferSize,o=i.initiatorType,y=i.duration;if(u&&y&&Av(o)){for(o=0,y=i.responseEnd,a+=1;a<l.length;a++){var S=l[a],O=S.startTime;if(O>y)break;var A=S.transferSize,q=S.initiatorType;A&&Av(q)&&(S=S.responseEnd,o+=A*(S<y?1:(y-O)/(S-O)))}if(--a,t+=8*(u+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Sf=null,Ef=null;function Yu(e){return e.nodeType===9?e:e.ownerDocument}function Mv(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 Dv(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 Uv(e,t,l,a){return l=Yu(l).createElement(e),l[gt]=a,l[Ut]=t,Et(l,e,t),dt(l),l}function _f(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 Tf=null;function tx(){var e=window.event;return e&&e.type==="popstate"?e===Tf?!1:(Tf=e,!0):(Tf=null,!1)}var Nf=typeof setTimeout=="function"?setTimeout:void 0,lx=typeof clearTimeout=="function"?clearTimeout:void 0,kv=typeof Promise=="function"?Promise:void 0,Hv=typeof requestAnimationFrame=="function"?requestAnimationFrame:Nf,ax=typeof queueMicrotask=="function"?queueMicrotask:typeof kv<"u"?function(e){return kv.resolve(null).then(e).catch(nx)}:Nf;function nx(e){setTimeout(function(){throw e})}function La(e){return e==="head"}function qv(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),Di(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Mf(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Mf(l);for(var u=l.firstChild;u;){var o=u.nextSibling,y=u.nodeName;u[ru]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=o}}else l==="body"&&Mf(e.ownerDocument.body);l=i}while(l);Di(t)}function Lv(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Bv(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var i=a=0;i<t.length;i++){var u=t[i];0<u.width&&0<u.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function Qv(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function ix(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function Cf(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return ix(t,l,e)}function ux(e){return e.documentElement.clientHeight}function rx(e){this.addEventListener("load",e),this.addEventListener("error",e)}function sx(e,t,l,a,i,u,o,y,S){var O=t.nodeType===9?t:t.ownerDocument;try{var A=O.startViewTransition({update:function(){var z=O.defaultView,j=z.navigation&&z.navigation.transition,W=O.fonts.status;a();var re=[];if(W==="loaded"&&(ux(O),O.fonts.status==="loading"&&re.push(O.fonts.ready)),W=re.length,e!==null)for(var Se=e.suspenseyImages,w=0,T=0;T<Se.length;T++){var R=Se[T];if(!R.complete){var H=R.getBoundingClientRect();if(0<H.bottom&&0<H.right&&H.top<z.innerHeight&&H.left<z.innerWidth){if(w+=s0(R),w>Ds){re.length=W;break}R=new Promise(rx.bind(R)),re.push(R)}}}if(0<re.length)return z=Promise.race([Promise.all(re),new Promise(function(le){return setTimeout(le,500)})]).then(i,i),(j?Promise.allSettled([j.finished,z]):z).then(u,u);if(i(),j)return j.finished.then(u,u);u()},types:l});O.__reactViewTransition=A;var q=[];return A.ready.then(function(){for(var z=O.documentElement.getAnimations({subtree:!0}),j=0;j<z.length;j++){var W=z[j],re=W.effect,Se=re.pseudoElement;if(Se!=null&&Se.startsWith("::view-transition")){q.push(W),W=re.getKeyframes();for(var w=Se=void 0,T=!0,R=0;R<W.length;R++){var H=W[R],le=H.width;if(Se===void 0)Se=le;else if(Se!==le){T=!1;break}if(le=H.height,w===void 0)w=le;else if(w!==le){T=!1;break}delete H.width,delete H.height,H.transform==="none"&&delete H.transform}T&&Se!==void 0&&w!==void 0&&(re.setKeyframes(W),T=getComputedStyle(re.target,re.pseudoElement),T.width!==Se||T.height!==w)&&(T=W[0],T.width=Se,T.height=w,T=W[W.length-1],T.width=Se,T.height=w,re.setKeyframes(W))}}o()},function(z){O.__reactViewTransition===A&&(O.__reactViewTransition=null);try{if(typeof z=="object"&&z!==null)switch(z.name){case"InvalidStateError":(z.message==="View transition was skipped because document visibility state is hidden."||z.message==="Skipping view transition because document visibility state has become hidden."||z.message==="Skipping view transition because viewport size changed."||z.message==="Transition was aborted because of invalid state")&&(z=null)}z!==null&&S(z)}finally{a(),i(),o()}}),A.finished.finally(function(){for(var z=0;z<q.length;z++)q[z].cancel();O.__reactViewTransition===A&&(O.__reactViewTransition=null),y()}),A}catch{return a(),i(),o(),null}}function Cn(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Cn.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:V({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Cn.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),a=[],i=0;i<l.length;i++){var u=l[i].effect;u!==null&&u.target===e&&u.pseudoElement===t&&a.push(l[i])}return a},Cn.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Gv(e){return{name:e,group:new Cn("group",e),imagePair:new Cn("image-pair",e),old:new Cn("old",e),new:new Cn("new",e)}}function It(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}It.prototype.addEventListener=function(e,t,l){var a=null,i=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(Vv(u,e,t,l)===-1){var o=this,y=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(y=function(S){o.removeEventListener(e,t,l),typeof t=="function"?t.call(this,S):t.handleEvent(S)}),a!==null&&(i=o.removeEventListener.bind(o,e,t,l),a.addEventListener("abort",i,{once:!0}),i=a.removeEventListener.bind(a,"abort",i)),a=wi(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:y,cleanup:i}),p(this._fragmentFiber.child,!1,cx,e,y,a)}this._eventListeners=u}};function cx(e,t,l,a){return U(e).addEventListener(t,l,a),!1}It.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=Vv(a,e,t,l),t!==-1)){var i=a[t];l=i.attachedListener;var u=i.cleanup;i=wi(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,ox,e,l,i),a.splice(t,1),u!==null&&u()}};function ox(e,t,l,a){return U(e).removeEventListener(t,l,a),!1}function wi(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Yv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Vv(e,t,l,a){if(e.length===0)return-1;a=Yv(a);for(var i=0;i<e.length;i++){var u=e[i];if(u.type===t&&u.listener===l&&Yv(u.optionsOrUseCapture)===a)return i}return-1}It.prototype.dispatchEvent=function(e){var t=C(this._fragmentFiber);if(t===null)return!0;t=U(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var i=0;i<l.length;i++){var u=l[i];a.addEventListener(u.type,u.attachedListener,wi(u.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),l)for(i=0;i<l.length;i++)u=l[i],a.removeEventListener(u.type,u.attachedListener,wi(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},It.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Xv,e,void 0,void 0)};function Xv(e,t){return e.tag===6?!1:(e=U(e),Ex(e,t))}It.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,zf,t,void 0,void 0);for(var l=t.length-1;0<=l&&!Xv(t[l],e);l--);};function zf(e,t){return t.push(e),!1}It.prototype.blur=function(){var e=C(this._fragmentFiber);e!==null&&(e=U(e),e=Yu(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,fx,e,void 0,void 0))};function fx(e,t){return e.tag===6?!1:(e=U(e),e===t||e.contains(t)?(t.blur(),!0):!1)}It.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,dx,e,void 0,void 0)};function dx(e,t){return e.tag===6||(e=U(e),t.observe(e)),!1}It.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,hx,e,void 0,void 0);for(var l=t=0;l<El.length;l++){var a=El[l];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):El[t++]=a}El.length=t}};function hx(e,t){return e.tag===6||(e=U(e),t.unobserve(e)),!1}var El=[],wf=!1;function mx(e,t,l){El.push({fragmentInstance:e,observer:t,instance:l}),wf||(wf=!0,_x(function(){wf=!1;var a=El;El=[];for(var i=0;i<a.length;i++){var u=a[i];u.observer.unobserve(u.instance)}}))}It.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,yx,e,void 0,void 0),e};function yx(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=U(e),t.push.apply(t,e.getClientRects());return!1}It.prototype.getRootNode=function(e){var t=C(this._fragmentFiber);return t===null?this:U(t).getRootNode(e)},It.prototype.compareDocumentPosition=function(e){var t=C(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];p(this._fragmentFiber.child,!1,zf,l,void 0,void 0);var a=U(t);if(l.length===0){if(l=a,L(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var i=a=l.compareDocumentPosition(e);return l===e?i=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=K(t)[1],l===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=U(l).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=U(l[0]),i=U(l[l.length-1]);var u=L(this._fragmentFiber)?t.parentElement:a;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),y=i.compareDocumentPosition(e),S=o&Node.DOCUMENT_POSITION_CONTAINED_BY||y&Node.DOCUMENT_POSITION_CONTAINED_BY;return y=a&&u&&o&Node.DOCUMENT_POSITION_FOLLOWING&&y&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||u&&i===e||S||y?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!u&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||vx(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function vx(e,t,l,a,i){var u=nn(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=i.ownerDocument,i===u||i===u.documentElement||i===u.body;e:{for(u=t,t=C(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=ce(l,u,X),t===null?t=!1:(p(t,!0,Z,u,l),u=k,k=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=ce(a,u,X),t===null?t=!1:(p(t,!0,J,u,a),u=k,Y=k=null,t=u!==null)),t):!1}function Kv(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}It.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];p(this._fragmentFiber.child,!1,zf,t,void 0,void 0);var l=e!==!1;if(t.length===0){var a=K(this._fragmentFiber);if(a=l?a[1]||a[0]||C(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=U(a),Kv(e,l);return}if(a=U(a),a.nodeType!==9){if(a.nodeType===11){l="host"in a?a.host:null,l!==null&&l.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=l?t.length-1:0;a!==(l?-1:t.length);){var i=t[a];i.tag===6?(i=U(i),Kv(i,l)):U(i).scrollIntoView(e),a+=l?-1:1}};function gx(e,t){return e=U(e),Zv(e,t),!1}function Zv(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Jv(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a];e.addEventListener(i.type,i.attachedListener,wi(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var o=0,y=0;y<El.length;y++){var S=El[y];(S.fragmentInstance!==t||S.observer!==u||S.instance!==e)&&(El[o++]=S)}El.length=o,u.observe(e)}),Zv(e,t))}function px(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a];e.removeEventListener(i.type,i.attachedListener,wi(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?mx(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Of(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Of(l),Er(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function bx(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ru])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=ol(e.nextSibling),e===null)break}return null}function xx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=ol(e.nextSibling),e===null))return null;return e}function Fv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ol(e.nextSibling),e===null))return null;return e}function Rf(e){return e.data==="$?"||e.data==="$~"}function jf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Sx(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ol(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 Af=null;function $v(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return ol(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Wv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Ex(e,t){function l(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return a}function _x(e){Hv(function(){Hv(function(t){return e(t)})})}function Pv(e,t,l){switch(t=Yu(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Iv(e,t,l){for(var a in l){var i=l[a];l.hasOwnProperty(a)&&i!=null&&Ye(e,t,a,null,Pb,i)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===jl&&(e.onclick=null),Er(e)}function Mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Er(e)}var fl=new Map,e0=new Set;function Vu(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var ra=me.d;me.d={f:Tx,r:Nx,D:Cx,C:zx,L:wx,m:Ox,X:jx,S:Rx,M:Ax};function Tx(){var e=ra.f(),t=Ns();return e||t}function Nx(e){var t=Zn(e);t!==null&&t.tag===5&&t.type==="form"?ly(t):ra.r(e)}var Oi=typeof document>"u"?null:document;function t0(e,t,l){var a=Oi;if(a&&typeof t=="string"&&t){var i=al(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),e0.has(i)||(e0.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),Et(t,"link",e),dt(t),a.head.appendChild(t)))}}function Cx(e){ra.D(e),t0("dns-prefetch",e,null)}function zx(e,t){ra.C(e,t),t0("preconnect",e,t)}function wx(e,t,l){ra.L(e,t,l);var a=Oi;if(a&&e&&t){var i='link[rel="preload"][as="'+al(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+al(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+al(l.imageSizes)+'"]')):i+='[href="'+al(e)+'"]';var u=i;switch(t){case"style":u=Ri(e);break;case"script":u=ji(e)}if(!(fl.has(u)||(e=V({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),fl.set(u,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Xu(u))||t==="script"&&a.querySelector(Ku(u))))){var o=a.createElement("link");Et(o,"link",e),t==="style"&&(o[Sr]=!0,o.onload=o.onerror=function(){mh(o)}),dt(o),a.head.appendChild(o)}}}function Ox(e,t){ra.m(e,t);var l=Oi;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+al(a)+'"][href="'+al(e)+'"]',u=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ji(e)}if(!fl.has(u)&&(e=V({rel:"modulepreload",href:e},t),fl.set(u,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ku(u)))return}a=l.createElement("link"),Et(a,"link",e),dt(a),l.head.appendChild(a)}}}function Rx(e,t,l){ra.S(e,t,l);var a=Oi;if(a&&e){var i=Jn(a).hoistableStyles,u=Ri(e);t=t||"default";var o=i.get(u);if(!o){var y={loading:0,preload:null};if(o=a.querySelector(Xu(u)))y.loading=5;else{e=V({rel:"stylesheet",href:e,"data-precedence":t},l),(l=fl.get(u))&&Df(e,l);var S=o=a.createElement("link");dt(S),Et(S,"link",e),S._p=new Promise(function(O,A){S.onload=O,S.onerror=A}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,As(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:y},i.set(u,o)}}}function jx(e,t){ra.X(e,t);var l=Oi;if(l&&e){var a=Jn(l).hoistableScripts,i=ji(e),u=a.get(i);u||(u=l.querySelector(Ku(i)),u||(e=V({src:e,async:!0},t),(t=fl.get(i))&&Uf(e,t),u=l.createElement("script"),dt(u),Et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function Ax(e,t){ra.M(e,t);var l=Oi;if(l&&e){var a=Jn(l).hoistableScripts,i=ji(e),u=a.get(i);u||(u=l.querySelector(Ku(i)),u||(e=V({src:e,async:!0,type:"module"},t),(t=fl.get(i))&&Uf(e,t),u=l.createElement("script"),dt(u),Et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function l0(e,t,l,a){var i=(i=va.current)?Vu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Ri(l.href),t=Jn(i).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ri(l.href);var u=Jn(i).hoistableStyles,o=u.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=i.querySelector(Xu(e)))?u._p||(o.instance=u,o.state.loading=5):(u=fl.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},fl.set(e,u)),Mx(i,e,u,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=ji(l),t=Jn(i).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Ri(e){return'href="'+al(e)+'"'}function Xu(e){return'link[rel="stylesheet"]['+e+"]"}function a0(e){return V({},e,{"data-precedence":e.precedence,precedence:null})}function Mx(e,t,l,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Sr]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[Sr]=!0,t.onload=t.onerror=mh.bind(null,t),Et(t,"link",l),dt(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function ji(e){return'[src="'+al(e)+'"]'}function Ku(e){return"script[async]"+e}function n0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+al(l.href)+'"]');if(a)return t.instance=a,dt(a),a;var i=V({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),dt(a),Et(a,"style",i),As(a,l.precedence,e),t.instance=a;case"stylesheet":i=Ri(l.href);var u=e.querySelector(Xu(i));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;a=a0(l),(i=fl.get(i))&&Df(a,i),u=(e.ownerDocument||e).createElement("link"),dt(u);var o=u;return o._p=new Promise(function(y,S){o.onload=y,o.onerror=S}),Et(u,"link",a),t.state.loading|=4,As(u,l.precedence,e),t.instance=u;case"script":return u=ji(l.src),(i=e.querySelector(Ku(u)))?(t.instance=i,dt(i),i):(a=l,(i=fl.get(u))&&(a=V({},l),Uf(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),dt(i),Et(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,As(a,l.precedence,e));return t.instance}function As(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,u=i,o=0;o<a.length;o++){var y=a[o];if(y.dataset.precedence===t)u=y;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Df(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ms=null;function i0(e,t,l){if(Ms===null){var a=new Map,i=Ms=new Map;i.set(l,a)}else i=Ms,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var u=l[i];if(!(u[ru]||u[gt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(t)||"";o=e+o;var y=a.get(o);y?y.push(u):a.set(o,[u])}}return a}function kf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Dx(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function u0(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function r0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function s0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function c0(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=s0(t),e.suspenseyImages.push(t)),e=Hx.bind(e),t.decode().then(e,e))}function Ux(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Ri(a.href),u=t.querySelector(Xu(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Zu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,dt(u);return}u=t.ownerDocument||t,a=a0(a),(i=fl.get(i))&&Df(a,i),u=u.createElement("link"),dt(u);var o=u;o._p=new Promise(function(y,S){o.onload=y,o.onerror=S}),Et(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Zu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ds=0;function kx(e,t){return e.stylesheets&&e.count===0&&ks(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ks(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Ds===0&&(Ds=62500*ex());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ks(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Ds?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function o0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ks(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Zu(){this.count--,o0(this)}function Hx(){this.imgCount--,o0(this)}var Us=null;function ks(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Us=new Map,t.forEach(qx,e),Us=null,Zu.call(e))}function qx(e,t){if(!(t.state.loading&4)){var l=Us.get(e);if(l)var a=l.get(null);else{l=new Map,Us.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var o=i[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}i=t.instance,o=i.getAttribute("data-precedence"),u=l.get(o)||a,u===a&&l.set(null,i),l.set(o,i),this.count++,a=Zu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:ee,Provider:null,Consumer:null,_currentValue:Gt,_currentValue2:Gt,_threadCount:0};function Lx(e,t,l,a,i,u,o,y,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=mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.hiddenUpdates=mc(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.transitionTypes=null,this.incompleteTransitions=new Map}function f0(e,t,l,a,i,u,o,y,S,O,A,q){return e=new Lx(e,t,l,o,S,O,A,q,y),t=1,u===!0&&(t|=24),u=kt(3,null,null,t),e.current=u,u.stateNode=e,t=Fc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Ic(u),e}function d0(e){return e?(e=ni,e):ni}function h0(e,t,l,a,i,u){i=d0(i),a.context===null?a.context=i:a.pendingContext=i,a=za(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=wa(e,a,t),l!==null&&(Bt(l,e,t),Tu(l,e,t))}function m0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Hf(e,t){m0(e,t),(e=e.alternate)&&m0(e,t)}function y0(e){if(e.tag===13||e.tag===31){var t=cn(e,67108864);t!==null&&Bt(t,e,67108864),Hf(e,67108864)}}function v0(e){if(e.tag===13||e.tag===31){var t=Pt();t=yc(t);var l=cn(e,t);l!==null&&Bt(l,e,t),Hf(e,t)}}var Mi=!0;function Bx(e,t,l,a){var i=ue.T;ue.T=null;var u=me.p;try{me.p=2,qf(e,t,l,a)}finally{me.p=u,ue.T=i}}function Qx(e,t,l,a){var i=ue.T;ue.T=null;var u=me.p;try{me.p=8,qf(e,t,l,a)}finally{me.p=u,ue.T=i}}function qf(e,t,l,a){if(Mi){var i=Lf(a);if(i===null)bf(e,t,a,Hs,l),p0(e,a);else if(Yx(i,e,t,l,a))a.stopPropagation();else if(p0(e,a),t&4&&-1<Gx.indexOf(e)){for(;i!==null;){var u=Zn(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=an(u.pendingLanes);if(o!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;o;){var S=1<<31-Xt(o);y.entanglements[1]|=S,o&=~S}Ql(u),(qe&6)===0&&(Es=Yt()+500,Bu(0))}}break;case 31:case 13:y=cn(u,2),y!==null&&Bt(y,u,2),Ns(),Hf(u,2)}if(u=Lf(a),u===null&&bf(e,t,a,Hs,l),u===i)break;i=u}i!==null&&a.stopPropagation()}else bf(e,t,a,null,l)}}function Lf(e){return e=Ec(e),Bf(e)}var Hs=null;function Bf(e){if(Hs=null,e=nn(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=v(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hs=e,null}function g0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(e1()){case lh:return 2;case ah:return 8;case vr:case t1:return 32;case nh:return 268435456;default:return 32}default:return 32}}var Qf=!1,Ba=null,Qa=null,Ga=null,Ju=new Map,Fu=new Map,Ya=[],Gx="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 p0(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":Ju.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fu.delete(t.pointerId)}}function $u(e,t,l,a,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Zn(t),t!==null&&y0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yx(e,t,l,a,i){switch(t){case"focusin":return Ba=$u(Ba,e,t,l,a,i),!0;case"dragenter":return Qa=$u(Qa,e,t,l,a,i),!0;case"mouseover":return Ga=$u(Ga,e,t,l,a,i),!0;case"pointerover":var u=i.pointerId;return Ju.set(u,$u(Ju.get(u)||null,e,t,l,a,i)),!0;case"gotpointercapture":return u=i.pointerId,Fu.set(u,$u(Fu.get(u)||null,e,t,l,a,i)),!0}return!1}function b0(e){var t=nn(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,fh(e.priority,function(){v0(l)});return}}else if(t===31){if(t=v(l),t!==null){e.blockedOn=t,fh(e.priority,function(){v0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Lf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Sc=a,l.target.dispatchEvent(a),Sc=null}else return t=Zn(l),t!==null&&y0(t),e.blockedOn=l,!1;t.shift()}return!0}function x0(e,t,l){qs(e)&&l.delete(t)}function Vx(){Qf=!1,Ba!==null&&qs(Ba)&&(Ba=null),Qa!==null&&qs(Qa)&&(Qa=null),Ga!==null&&qs(Ga)&&(Ga=null),Ju.forEach(x0),Fu.forEach(x0)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Qf||(Qf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Vx)))}var Bs=null;function S0(e){Bs!==e&&(Bs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Bf(a||l)===null)continue;break}var u=Zn(l);u!==null&&(e.splice(t,3),t-=3,So(u,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function Di(e){function t(S){return Ls(S,e)}Ba!==null&&Ls(Ba,e),Qa!==null&&Ls(Qa,e),Ga!==null&&Ls(Ga,e),Ju.forEach(t),Fu.forEach(t);for(var l=0;l<Ya.length;l++){var a=Ya[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ya.length&&(l=Ya[0],l.blockedOn===null);)b0(l),l.blockedOn===null&&Ya.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],u=l[a+1],o=i[Ut]||null;if(typeof u=="function")o||S0(l);else if(o){var y=null;if(u&&u.hasAttribute("formAction")){if(i=u,o=u[Ut]||null)y=o.formAction;else if(Bf(i)!==null)continue}else y=o.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),S0(l)}}}function E0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Gf(e){this._internalRoot=e}Qs.prototype.render=Gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Pt();h0(l,a,e,t,null,null)},Qs.prototype.unmount=Gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;h0(e.current,2,null,e,null,null),Ns(),t[Kn]=null}};function Qs(e){this._internalRoot=e}Qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=oh();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ya.length&&t!==0&&t<Ya[l].priority;l++);Ya.splice(l,0,e),l===0&&b0(e)}};var _0=r.version;if(_0!=="19.3.1")throw Error(c(527,_0,"19.3.1"));me.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Xx={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:ue,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{nu=Gs.inject(Xx),Vt=Gs}catch{}}return Pu.createRoot=function(e,t){if(!f(e))throw Error(c(299));var l=!1,a="",i=dy,u=hy,o=my;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=f0(e,1,!1,null,null,l,a,null,i,u,o,E0),e[Kn]=t.current,pf(e),new Gf(t)},Pu.hydrateRoot=function(e,t,l){if(!f(e))throw Error(c(299));var a=!1,i="",u=dy,o=hy,y=my,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=f0(e,1,!0,t,l??null,a,i,S,u,o,y,E0),t.context=d0(null),l=t.current,a=Pt(),a=yc(a),i=za(a),i.callback=null,wa(l,i,a),l=a,t.current.lanes=l,uu(t,l),Ql(t),e[Kn]=t.current,pf(e),new Qs(t)},Pu.version="19.3.1",Pu}var D0;function t2(){if(D0)return Kf.exports;D0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Kf.exports=e2(),Kf.exports}var l2=t2();const a2=wg(l2);/**
|
||
* react-router v7.18.4
|
||
*
|
||
* 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 Cd=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Rg=/^[\\/]{2}/;function n2(n,r){return r+n.replace(/\\/g,"/")}var U0="popstate";function k0(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function i2(n={}){function r(f,h){let{pathname:d="/",search:v="",hash:b=""}=Qn(f.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),td("",{pathname:d,search:v,hash:b},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function s(f,h){let d=f.document.querySelector("base"),v="";if(d&&d.getAttribute("href")){let b=f.location.href,g=b.indexOf("#");v=g===-1?b:b.slice(0,g)}return v+"#"+(typeof h=="string"?h:Ln(h))}function c(f,h){el(f.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return r2(r,s,c,n)}function We(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function el(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function u2(){return Math.random().toString(36).substring(2,10)}function H0(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function td(n,r,s=null,c,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Qn(r):r,state:s,key:r&&r.key||c||u2(),mask:f}}function Ln({pathname:n="/",search:r="",hash:s=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Qn(n){let r={};if(n){let s=n.indexOf("#");s>=0&&(r.hash=n.substring(s),n=n.substring(0,s));let c=n.indexOf("?");c>=0&&(r.search=n.substring(c),n=n.substring(0,c)),n&&(r.pathname=n)}return r}function r2(n,r,s,c={}){let{window:f=document.defaultView,v5Compat:h=!1}=c,d=f.history,v="POP",b=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function p(){v="POP";let U=x(),k=U==null?null:U-g;g=U,b&&b({action:v,location:B.location,delta:k})}function C(U,k){v="PUSH";let Y=k0(U)?U:td(B.location,U,k);s&&s(Y,U),g=x()+1;let Z=H0(Y,g),J=B.createHref(Y.mask||Y);try{d.pushState(Z,"",J)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;f.location.assign(J)}h&&b&&b({action:v,location:B.location,delta:1})}function L(U,k){v="REPLACE";let Y=k0(U)?U:td(B.location,U,k);s&&s(Y,U),g=x();let Z=H0(Y,g),J=B.createHref(Y.mask||Y);d.replaceState(Z,"",J),h&&b&&b({action:v,location:B.location,delta:0})}function K(U){return s2(f,U)}let B={get action(){return v},get location(){return n(f,d)},listen(U){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(U0,p),b=U,()=>{f.removeEventListener(U0,p),b=null}},createHref(U){return r(f,U)},createURL:K,encodeLocation(U){let k=K(U);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:C,replace:L,go(U){return d.go(U)}};return B}function s2(n,r,s=!1){let c="http://localhost";n&&(c=n.location.origin!=="null"?n.location.origin:n.location.href),We(c,"No window.location.(origin|href) available to create URL");let f=typeof r=="string"?r:Ln(r);return f=f.replace(/ $/,"%20"),!s&&Rg.test(f)&&(f=c+f),new URL(f,c)}function jg(n,r,s="/"){return c2(n,r,s,!1)}function c2(n,r,s,c,f){let h=typeof r=="string"?Qn(r):r,d=ma(h.pathname||"/",s);if(d==null)return null;let v=o2(n),b=null,g=S2(d);for(let x=0;b==null&&x<v.length;++x)b=x2(v[x],g,c);return b}function o2(n){let r=Ag(n);return f2(r),r}function Ag(n,r=[],s=[],c="",f=!1){let h=(d,v,b=f,g)=>{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:v,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(c)&&b)return;We(x.relativePath.startsWith(c),`Absolute route path "${x.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(c.length)}let p=Cl([c,x.relativePath]),C=s.concat(x);d.children&&d.children.length>0&&(We(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Ag(d.children,r,C,p,b)),!(d.path==null&&!d.index)&&r.push({path:p,score:p2(p,d.index),routesMeta:C.map((L,K)=>{let[B,U]=Ug(L.relativePath,L.caseSensitive,K===C.length-1);return{...L,matcher:B,compiledParams:U}})})};return n.forEach((d,v)=>{var b;if(d.path===""||!((b=d.path)!=null&&b.includes("?")))h(d,v);else for(let g of Mg(d.path))h(d,v,!0,g)}),r}function Mg(n){let r=n.split("/");if(r.length===0)return[];let[s,...c]=r,f=s.endsWith("?"),h=s.replace(/\?$/,"");if(c.length===0)return f?[h,""]:[h];let d=Mg(c.join("/")),v=[];return v.push(...d.map(b=>b===""?h:[h,b].join("/"))),f&&v.push(...d),v.map(b=>n.startsWith("/")&&b===""?"/":b)}function f2(n){n.sort((r,s)=>r.score!==s.score?s.score-r.score:b2(r.routesMeta.map(c=>c.childrenIndex),s.routesMeta.map(c=>c.childrenIndex)))}var d2=/^:[\w-]+$/,h2=3,m2=2,y2=1,v2=10,g2=-2,q0=n=>n==="*";function p2(n,r){let s=n.split("/"),c=s.length;return s.some(q0)&&(c+=g2),r&&(c+=m2),s.filter(f=>!q0(f)).reduce((f,h)=>f+(d2.test(h)?h2:h===""?y2:v2),c)}function b2(n,r){return n.length===r.length&&n.slice(0,-1).every((c,f)=>c===r[f])?n[n.length-1]-r[r.length-1]:0}function x2(n,r,s=!1){let{routesMeta:c}=n,f={},h="/",d=[];for(let v=0;v<c.length;++v){let b=c[v],g=v===c.length-1,x=h==="/"?r:r.slice(h.length)||"/",p={path:b.relativePath,caseSensitive:b.caseSensitive,end:g},C=b.matcher&&b.compiledParams?Dg(p,x,b.matcher,b.compiledParams):Ws(p,x),L=b.route;if(!C&&g&&s&&!c[c.length-1].route.index&&(C=Ws({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},x)),!C)return null;Object.assign(f,C.params),d.push({params:f,pathname:Cl([h,C.pathname]),pathnameBase:T2(Cl([h,C.pathnameBase])),route:L}),C.pathnameBase!=="/"&&(h=Cl([h,C.pathnameBase]))}return d}function Ws(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,c]=Ug(n.path,n.caseSensitive,n.end);return Dg(n,r,s,c)}function Dg(n,r,s,c){let f=r.match(s);if(!f)return null;let h=f[0],d=$i(h,1),v=f.slice(1);return{params:c.reduce((g,{paramName:x,isOptional:p},C)=>{if(x==="*"){let K=v[C]||"";d=$i(h.slice(0,h.length-K.length),1)}const L=v[C];return p&&!L?g[x]=void 0:g[x]=(L||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:d,pattern:n}}function Ug(n,r=!1,s=!0){el(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,v,b,g,x)=>{if(c.push({paramName:v,isOptional:b!=null}),b){let p=x.charAt(g+d.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,r?void 0:"i"),c]}function S2(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return el(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function ma(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,c=n.charAt(s);return c&&c!=="/"?null:n.slice(s)||"/"}function E2(n,r="/"){let{pathname:s,search:c="",hash:f=""}=typeof n=="string"?Qn(n):n,h;return s?(s=kg(s),s.startsWith("/")||s.startsWith("\\")?h=L0(s.substring(1),"/"):h=L0(s,r)):h=r,{pathname:h,search:N2(c),hash:C2(f)}}function L0(n,r){let s=$i(r).split("/");return n.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function $f(n,r,s,c){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _2(n){return n.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function zd(n){let r=_2(n);return r.map((s,c)=>c===r.length-1?s.pathname:s.pathnameBase)}function ec(n,r,s,c=!1){let f;typeof n=="string"?f=Qn(n):(f={...n},We(!f.pathname||!f.pathname.includes("?"),$f("?","pathname","search",f)),We(!f.pathname||!f.pathname.includes("#"),$f("#","pathname","hash",f)),We(!f.search||!f.search.includes("#"),$f("#","search","hash",f)));let h=n===""||f.pathname==="",d=h?"/":f.pathname,v;if(d==null)v=s;else{let p=r.length-1;if(!c&&d.startsWith("..")){let C=d.split("/");for(;C[0]==="..";)C.shift(),p-=1;f.pathname=C.join("/")}v=p>=0?r[p]:"/"}let b=E2(f,v),g=d&&d!=="/"&&d.endsWith("/"),x=(h||d===".")&&s.endsWith("/");return!b.pathname.endsWith("/")&&(g||x)&&(b.pathname+="/"),b}var kg=n=>n.replace(/[\\/]{2,}/g,"/"),Cl=n=>kg(n.join("/"));function $i(n,r=0){let s=n.length;for(;s>r&&n.charCodeAt(s-1)===47;)s--;return s===n.length?n:n.slice(0,s)}var T2=n=>$i(n).replace(/^\/*/,"/"),N2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,C2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,z2=class{constructor(n,r,s,c=!1){this.status=n,this.statusText=r||"",this.internal=c,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function w2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function O2(n){let r=n.map(s=>s.route.path).filter(Boolean);return Cl(r)||"/"}var Hg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function qg(n,r){let s=n;if(typeof s!="string"||!Cd.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let c=s,f=!1;if(Hg)try{let h=new URL(window.location.href),d=Rg.test(s)?new URL(n2(s,h.protocol)):new URL(s),v=ma(d.pathname,r);d.origin===h.origin&&v!=null?s=v+d.search+d.hash:f=!0}catch{el(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var B0=new URL("http://localhost");function wd(n){if(n.createURL)return n.createURL("/");try{return new URL(n.createHref("/"),B0)}catch{return B0}}function Wf(n,r){return n.origin===r.origin&&(n.origin!=="null"||n.protocol===r.protocol&&n.host===r.host)}function R2(n,r){if(n.startsWith("//"))return!0;let s=r.protocol.toLowerCase();return n.toLowerCase().startsWith(s)?r.host===""||n.slice(s.length).startsWith("//"):!1}function Od(n,r,s,c){let f=null;try{f=n==null?null:new URL(n,s)}catch{}let h=new URL(r,s),d=f!=null&&!Wf(f,s),v=!Wf(h,s);if(c==="reject"){if(d||v)throw new Error("External navigation is not allowed")}else if(v&&(f==null||!R2(n,f)||!Wf(f,h)))throw new Error("External navigation is not allowed")}var Lg=["POST","PUT","PATCH","DELETE"];new Set(Lg);var j2=["GET",...Lg];new Set(j2);var A2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function M2(n){try{return A2.includes(new URL(n).protocol)}catch{return!1}}var Ii=_.createContext(null);Ii.displayName="DataRouter";var tc=_.createContext(null);tc.displayName="DataRouterState";var Bg=_.createContext(!1);function D2(){return _.useContext(Bg)}var Qg=_.createContext({isTransitioning:!1});Qg.displayName="ViewTransition";var U2=_.createContext(new Map);U2.displayName="Fetchers";var k2=_.createContext(null);k2.displayName="Await";var tl=_.createContext(null);tl.displayName="Navigation";var fr=_.createContext(null);fr.displayName="Location";var zl=_.createContext({outlet:null,matches:[],isDataRoute:!1});zl.displayName="Route";var Rd=_.createContext(null);Rd.displayName="RouteError";var Gg="REACT_ROUTER_ERROR",H2="REDIRECT",q2="ROUTE_ERROR_RESPONSE";function L2(n){if(n.startsWith(`${Gg}:${H2}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function B2(n){if(n.startsWith(`${Gg}:${q2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new z2(r.status,r.statusText,r.data)}catch{}}function Q2(n,{relative:r}={}){We(eu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:c}=_.useContext(tl),{hash:f,pathname:h,search:d}=dr(n,{relative:r}),v=h;return s!=="/"&&(v=h==="/"?s:Cl([s,h])),c.createHref({pathname:v,search:d,hash:f})}function eu(){return _.useContext(fr)!=null}function vl(){return We(eu(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(fr).location}var Yg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vg(n){_.useContext(tl).static||_.useLayoutEffect(n)}function lc(){let{isDataRoute:n}=_.useContext(zl);return n?lS():G2()}function G2(){We(eu(),"useNavigate() may be used only in the context of a <Router> component.");let n=_.useContext(Ii),{basename:r,navigator:s}=_.useContext(tl),{matches:c}=_.useContext(zl),{pathname:f}=vl(),h=JSON.stringify(zd(c)),d=_.useRef(!1);return Vg(()=>{d.current=!0}),_.useCallback((b,g={})=>{if(el(d.current,Yg),!d.current)return;if(typeof b=="number"){s.go(b);return}let x=ec(b,JSON.parse(h),f,g.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Cl([r,x.pathname])),Od(typeof b=="string"?b:Ln(b),s.createHref(x),wd(s),"reject"),(g.replace?s.replace:s.push)(x,g.state,g)},[r,s,h,f,n])}var Y2=_.createContext(null);function V2(n){let r=_.useContext(zl).outlet;return _.useMemo(()=>r&&_.createElement(Y2.Provider,{value:n},r),[r,n])}function dr(n,{relative:r}={}){let{matches:s}=_.useContext(zl),{pathname:c}=vl(),f=JSON.stringify(zd(s));return _.useMemo(()=>ec(n,JSON.parse(f),c,r==="path"),[n,f,c,r])}function X2(n,r){return Xg(n,r)}function Xg(n,r,s){var U;We(eu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=_.useContext(tl),{matches:f}=_.useContext(zl),h=f[f.length-1],d=h?h.params:{},v=h?h.pathname:"/",b=h?h.pathnameBase:"/",g=h&&h.route;{let k=g&&g.path||"";Zg(v,!g||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${k}">) 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="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let x=vl(),p;if(r){let k=typeof r=="string"?Qn(r):r;We(b==="/"||((U=k.pathname)==null?void 0:U.startsWith(b)),`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 "${b}" but pathname "${k.pathname}" was given in the \`location\` prop.`),p=k}else p=x;let C=p.pathname||"/",L=C;if(b!=="/"){let k=b.replace(/^\//,"").split("/");L="/"+C.replace(/^\//,"").split("/").slice(k.length).join("/")}let K=s&&s.state.matches.length?s.state.matches.map(k=>Object.assign(k,{route:s.manifest[k.route.id]||k.route})):jg(n,{pathname:L});el(g||K!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),el(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=$2(K&&K.map(k=>Object.assign({},k,{params:Object.assign({},d,k.params),pathname:Cl([b,c.encodeLocation?c.encodeLocation(k.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?b:Cl([b,c.encodeLocation?c.encodeLocation(k.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),f,s);return r&&B?_.createElement(fr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},B):B}function K2(){let n=tS(),r=w2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:h},"ErrorBoundary")," or"," ",_.createElement("code",{style:h},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},r),s?_.createElement("pre",{style:f},s):null,d)}var Z2=_.createElement(K2,null),Kg=class extends _.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const s=B2(n.digest);s&&(n=s)}let r=n!==void 0?_.createElement(zl.Provider,{value:this.props.routeContext},_.createElement(Rd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?_.createElement(J2,{error:n},r):r}};Kg.contextType=Bg;var Pf=new WeakMap;function J2({children:n,error:r}){let{basename:s,navigator:c}=_.useContext(tl);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let f=L2(r.digest);if(f){let h=Pf.get(r);if(h)throw h;let d=qg(f.location,s),v=d.absoluteURL||d.to;if(Od(f.location,v,wd(c),"allow-explicit"),M2(v))throw new Error("Invalid redirect location");if(Hg&&!Pf.get(r))if(d.isExternal||f.reloadDocument)window.location.href=v;else{const b=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:f.replace}));throw Pf.set(r,b),b}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v}`})}}return n}function F2({routeContext:n,match:r,children:s}){let c=_.useContext(Ii);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),_.createElement(zl.Provider,{value:n},s)}function $2(n,r=[],s){let c=s==null?void 0:s.state;if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(r.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let f=n,h=c==null?void 0:c.errors;if(h!=null){let x=f.findIndex(p=>p.route.id&&(h==null?void 0:h[p.route.id])!==void 0);We(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,x+1))}let d=!1,v=-1;if(s&&c){d=c.renderFallback;for(let x=0;x<f.length;x++){let p=f[x];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(v=x),p.route.id){let{loaderData:C,errors:L}=c,K=p.route.loader&&!C.hasOwnProperty(p.route.id)&&(!L||L[p.route.id]===void 0);if(p.route.lazy||K){s.isStatic&&(d=!0),v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}}let b=s==null?void 0:s.onError,g=c&&b?(x,p)=>{var C,L;b(x,{location:c.location,params:((L=(C=c.matches)==null?void 0:C[0])==null?void 0:L.params)??{},pattern:O2(c.matches),errorInfo:p})}:void 0;return f.reduceRight((x,p,C)=>{let L,K=!1,B=null,U=null;c&&(L=h&&p.route.id?h[p.route.id]:void 0,B=p.route.errorElement||Z2,d&&(v<0&&C===0?(Zg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,U=null):v===C&&(K=!0,U=p.route.hydrateFallbackElement||null)));let k=r.concat(f.slice(0,C+1)),Y=()=>{let Z;return L?Z=B:K?Z=U:p.route.Component?Z=_.createElement(p.route.Component,null):p.route.element?Z=p.route.element:Z=x,_.createElement(F2,{match:p,routeContext:{outlet:x,matches:k,isDataRoute:c!=null},children:Z})};return c&&(p.route.ErrorBoundary||p.route.errorElement||C===0)?_.createElement(Kg,{location:c.location,revalidation:c.revalidation,component:B,error:L,children:Y(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:g}):Y()},null)}function jd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function W2(n){let r=_.useContext(Ii);return We(r,jd(n)),r}function P2(n){let r=_.useContext(tc);return We(r,jd(n)),r}function I2(n){let r=_.useContext(zl);return We(r,jd(n)),r}function Ad(n){let r=I2(n),s=r.matches[r.matches.length-1];return We(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function eS(){return Ad("useRouteId")}function tS(){var c;let n=_.useContext(Rd),r=P2("useRouteError"),s=Ad("useRouteError");return n!==void 0?n:(c=r.errors)==null?void 0:c[s]}function lS(){let{router:n}=W2("useNavigate"),r=Ad("useNavigate"),s=_.useRef(!1);return Vg(()=>{s.current=!0}),_.useCallback(async(f,h={})=>{el(s.current,Yg),s.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:r,...h}))},[n,r])}var Q0={};function Zg(n,r,s){!r&&!Q0[n]&&(Q0[n]=!0,el(!1,s))}_.memo(aS);function aS({routes:n,manifest:r,future:s,state:c,isStatic:f,onError:h}){return Xg(n,void 0,{manifest:r,state:c,isStatic:f,onError:h})}function G0({to:n,replace:r,state:s,relative:c}){We(eu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f,navigator:h}=_.useContext(tl);el(!f,"<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:d}=_.useContext(zl),{pathname:v}=vl(),b=lc(),g=ec(n,zd(d),v,c==="path");Od(typeof n=="string"?n:Ln(n),h.createHref(g),wd(h),"reject");let x=JSON.stringify(g);return _.useEffect(()=>{b(JSON.parse(x),{replace:r,state:s,relative:c})},[b,x,c,r,s]),null}function nS(n){return V2(n.context)}function _l(n){We(!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 iS({basename:n="/",children:r=null,location:s,navigationType:c="POP",navigator:f,static:h=!1,useTransitions:d}){We(!eu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=n.replace(/^\/*/,"/"),b=_.useMemo(()=>({basename:v,navigator:f,static:h,useTransitions:d,future:{}}),[v,f,h,d]);typeof s=="string"&&(s=Qn(s));let{pathname:g="/",search:x="",hash:p="",state:C=null,key:L="default",mask:K}=s,B=_.useMemo(()=>{let U=ma(g,v);return U==null?null:{location:{pathname:U,search:x,hash:p,state:C,key:L,mask:K},navigationType:c}},[v,g,x,p,C,L,c,K]);return el(B!=null,`<Router basename="${v}"> is not able to match the URL "${g}${x}${p}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:_.createElement(tl.Provider,{value:b},_.createElement(fr.Provider,{children:r,value:B}))}function uS({children:n,location:r}){return X2(ld(n),r)}function ld(n,r=[]){let s=[];return _.Children.forEach(n,(c,f)=>{if(!_.isValidElement(c))return;let h=[...r,f];if(c.type===_.Fragment){s.push.apply(s,ld(c.props.children,h));return}We(c.type===_l,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),We(!c.props.index||!c.props.children,"An index route cannot have child routes.");let d={id:c.props.id||h.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(d.children=ld(c.props.children,h)),s.push(d)}),s}var Js="get",Fs="application/x-www-form-urlencoded";function ac(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function rS(n){return ac(n)&&n.tagName.toLowerCase()==="button"}function sS(n){return ac(n)&&n.tagName.toLowerCase()==="form"}function cS(n){return ac(n)&&n.tagName.toLowerCase()==="input"}function oS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function fS(n,r){return n.button===0&&(!r||r==="_self")&&!oS(n)}function ad(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((r,s)=>{let c=n[s];return r.concat(Array.isArray(c)?c.map(f=>[s,f]):[[s,c]])},[]))}function dS(n,r){let s=ad(n);return r&&r.forEach((c,f)=>{s.has(f)||r.getAll(f).forEach(h=>{s.append(f,h)})}),s}var Vs=null;function hS(){if(Vs===null)try{new FormData(document.createElement("form"),0),Vs=!1}catch{Vs=!0}return Vs}var mS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function If(n){return n!=null&&!mS.has(n)?(el(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fs}"`),null):n}function yS(n,r){let s,c,f,h,d;if(sS(n)){let v=n.getAttribute("action");c=v?ma(v,r):null,s=n.getAttribute("method")||Js,f=If(n.getAttribute("enctype"))||Fs,h=new FormData(n)}else if(rS(n)||cS(n)&&(n.type==="submit"||n.type==="image")){let v=n.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=n.getAttribute("formaction")||v.getAttribute("action");if(c=b?ma(b,r):null,s=n.getAttribute("formmethod")||v.getAttribute("method")||Js,f=If(n.getAttribute("formenctype"))||If(v.getAttribute("enctype"))||Fs,h=new FormData(v,n),!hS()){let{name:g,type:x,value:p}=n;if(x==="image"){let C=g?`${g}.`:"";h.append(`${C}x`,"0"),h.append(`${C}y`,"0")}else g&&h.append(g,p)}}else{if(ac(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Js,c=null,f=Fs,d=n}return h&&f==="text/plain"&&(d=h,h=void 0),{action:c,method:s.toLowerCase(),encType:f,formData:h,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Md(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Jg(n,r,s,c){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:r&&ma(f.pathname,r)==="/"?f.pathname=`${$i(r)}/_root.${c}`:f.pathname=`${$i(f.pathname)}.${c}`,f}async function vS(n,r){if(n.id in r)return r[n.id];try{let s=await import(n.module);return r[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function pS(n,r,s){let c=await Promise.all(n.map(async f=>{let h=r.routes[f.route.id];if(h){let d=await vS(h,s);return d.links?d.links():[]}return[]}));return ES(c.flat(1).filter(gS).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Y0(n,r,s,c,f,h){let d=(b,g)=>s[g]?b.route.id!==s[g].route.id:!0,v=(b,g)=>{var x;return s[g].pathname!==b.pathname||((x=s[g].route.path)==null?void 0:x.endsWith("*"))&&s[g].params["*"]!==b.params["*"]};return h==="assets"?r.filter((b,g)=>d(b,g)||v(b,g)):h==="data"?r.filter((b,g)=>{var p;let x=c.routes[b.route.id];if(!x||!x.hasLoader)return!1;if(d(b,g)||v(b,g))return!0;if(b.route.shouldRevalidate){let C=b.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((p=s[0])==null?void 0:p.params)||{},nextUrl:new URL(n,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function bS(n,r,{includeHydrateFallback:s}={}){return xS(n.map(c=>{let f=r.routes[c.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function xS(n){return[...new Set(n)]}function SS(n){let r={},s=Object.keys(n).sort();for(let c of s)r[c]=n[c];return r}function ES(n,r){let s=new Set;return new Set(r),n.reduce((c,f)=>{let h=JSON.stringify(SS(f));return s.has(h)||(s.add(h),c.push({key:h,link:f})),c},[])}function Dd(){let n=_.useContext(Ii);return Md(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function _S(){let n=_.useContext(tc);return Md(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ud=_.createContext(void 0);Ud.displayName="FrameworkContext";function nc(){let n=_.useContext(Ud);return Md(n,"You must render this element inside a <HydratedRouter> element"),n}function TS(n,r){let s=_.useContext(Ud),[c,f]=_.useState(!1),[h,d]=_.useState(!1),{onFocus:v,onBlur:b,onMouseEnter:g,onMouseLeave:x,onTouchStart:p}=r,C=_.useRef(null);_.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let B=k=>{k.forEach(Y=>{d(Y.isIntersecting)})},U=new IntersectionObserver(B,{threshold:.5});return C.current&&U.observe(C.current),()=>{U.disconnect()}}},[n]),_.useEffect(()=>{if(c){let B=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(B)}}},[c]);let L=()=>{f(!0)},K=()=>{f(!1),d(!1)};return s?n!=="intent"?[h,C,{}]:[h,C,{onFocus:Iu(v,L),onBlur:Iu(b,K),onMouseEnter:Iu(g,L),onMouseLeave:Iu(x,K),onTouchStart:Iu(p,L)}]:[!1,C,{}]}function Iu(n,r){return s=>{n&&n(s),s.defaultPrevented||r(s)}}function NS({page:n,...r}){let s=D2(),{nonce:c}=nc(),{router:f}=Dd(),h=_.useMemo(()=>jg(f.routes,n,f.basename),[f.routes,n,f.basename]);return h?(r.nonce==null&&c&&(r={...r,nonce:c}),s?_.createElement(zS,{page:n,matches:h,...r}):_.createElement(wS,{page:n,matches:h,...r})):null}function CS(n){let{manifest:r,routeModules:s}=nc(),[c,f]=_.useState([]);return _.useEffect(()=>{let h=!1;return pS(n,r,s).then(d=>{h||f(d)}),()=>{h=!0}},[n,r,s]),c}function zS({page:n,matches:r,...s}){let c=vl(),{future:f}=nc(),{basename:h}=Dd(),d=_.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let v=Jg(n,h,f.v8_trailingSlashAwareDataRequests,"rsc"),b=!1,g=[];for(let x of r)typeof x.route.shouldRevalidate=="function"?b=!0:g.push(x.route.id);return b&&g.length>0&&v.searchParams.set("_routes",g.join(",")),[v.pathname+v.search]},[h,f.v8_trailingSlashAwareDataRequests,n,c,r]);return _.createElement(_.Fragment,null,d.map(v=>_.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...s})))}function wS({page:n,matches:r,...s}){let c=vl(),{future:f,manifest:h,routeModules:d}=nc(),{basename:v}=Dd(),{loaderData:b,matches:g}=_S(),x=_.useMemo(()=>Y0(n,r,g,h,c,"data"),[n,r,g,h,c]),p=_.useMemo(()=>Y0(n,r,g,h,c,"assets"),[n,r,g,h,c]),C=_.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let B=new Set,U=!1;if(r.forEach(Y=>{var J;let Z=h.routes[Y.route.id];!Z||!Z.hasLoader||(!x.some(X=>X.route.id===Y.route.id)&&Y.route.id in b&&((J=d[Y.route.id])!=null&&J.shouldRevalidate)||Z.hasClientLoader?U=!0:B.add(Y.route.id))}),B.size===0)return[];let k=Jg(n,v,f.v8_trailingSlashAwareDataRequests,"data");return U&&B.size>0&&k.searchParams.set("_routes",r.filter(Y=>B.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[k.pathname+k.search]},[v,f.v8_trailingSlashAwareDataRequests,b,c,h,x,r,n,d]),L=_.useMemo(()=>bS(p,h),[p,h]),K=CS(p);return _.createElement(_.Fragment,null,C.map(B=>_.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...s})),L.map(B=>_.createElement("link",{key:B,rel:"modulepreload",href:B,...s})),K.map(({key:B,link:U})=>_.createElement("link",{key:B,nonce:s.nonce,...U,crossOrigin:U.crossOrigin??s.crossOrigin})))}function OS(...n){return r=>{n.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var RS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{RS&&(window.__reactRouterVersion="7.18.4")}catch{}function jS({basename:n,children:r,useTransitions:s,window:c}){let f=_.useRef();f.current==null&&(f.current=i2({window:c,v5Compat:!0}));let h=f.current,[d,v]=_.useState({action:h.action,location:h.location}),b=_.useCallback(g=>{s===!1?v(g):_.startTransition(()=>v(g))},[s]);return _.useLayoutEffect(()=>h.listen(b),[h,b]),_.createElement(iS,{basename:n,children:r,location:d.location,navigationType:d.action,navigator:h,useTransitions:s})}var Fg=_.forwardRef(function({onClick:r,discover:s="render",prefetch:c="none",relative:f,reloadDocument:h,replace:d,mask:v,state:b,target:g,to:x,preventScrollReset:p,viewTransition:C,defaultShouldRevalidate:L,...K},B){let{basename:U,navigator:k,useTransitions:Y}=_.useContext(tl),Z=typeof x=="string"&&Cd.test(x),J=qg(x,U);x=J.to;let X=Q2(x,{relative:f}),ce=vl(),V=null;if(v){let ee=ec(v,[],ce.mask?ce.mask.pathname:"/",!0);U!=="/"&&(ee.pathname=ee.pathname==="/"?U:Cl([U,ee.pathname])),V=k.createHref(ee)}let[D,ae,ge]=TS(c,K),$=DS(x,{replace:d,mask:v,state:b,target:g,preventScrollReset:p,relative:f,viewTransition:C,defaultShouldRevalidate:L,useTransitions:Y});function ye(ee){r&&r(ee),ee.defaultPrevented||$(ee)}let _e=!(J.isExternal||h),M=_.createElement("a",{...K,...ge,href:(_e?V:void 0)||J.absoluteURL||X,onClick:_e?ye:r,ref:OS(B,ae),target:g,"data-discover":!Z&&s==="render"?"true":void 0});return D&&!Z?_.createElement(_.Fragment,null,M,_.createElement(NS,{page:X})):M});Fg.displayName="Link";var $g=_.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:c="",end:f=!1,style:h,to:d,viewTransition:v,children:b,...g},x){let p=dr(d,{relative:g.relative}),C=vl(),L=_.useContext(tc),{navigator:K,basename:B}=_.useContext(tl),U=L!=null&&LS(p)&&v===!0,k=K.encodeLocation?K.encodeLocation(p).pathname:p.pathname,Y=C.pathname,Z=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;s||(Y=Y.toLowerCase(),Z=Z?Z.toLowerCase():null,k=k.toLowerCase()),Z&&B&&(Z=ma(Z,B)||Z);const J=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let X=Y===k||!f&&Y.startsWith(k)&&Y.charAt(J)==="/",ce=Z!=null&&(Z===k||!f&&Z.startsWith(k)&&Z.charAt(k.length)==="/"),V={isActive:X,isPending:ce,isTransitioning:U},D=X?r:void 0,ae;typeof c=="function"?ae=c(V):ae=[c,X?"active":null,ce?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let ge=typeof h=="function"?h(V):h;return _.createElement(Fg,{...g,"aria-current":D,className:ae,ref:x,style:ge,to:d,viewTransition:v},typeof b=="function"?b(V):b)});$g.displayName="NavLink";var AS=_.forwardRef(({discover:n="render",fetcherKey:r,navigate:s,reloadDocument:c,replace:f,state:h,method:d=Js,action:v,onSubmit:b,relative:g,preventScrollReset:x,viewTransition:p,defaultShouldRevalidate:C,...L},K)=>{let{useTransitions:B}=_.useContext(tl),U=HS(),k=qS(v,{relative:g}),Y=d.toLowerCase()==="get"?"get":"post",Z=typeof v=="string"&&Cd.test(v),J=X=>{if(b&&b(X),X.defaultPrevented)return;X.preventDefault();let ce=X.nativeEvent.submitter,V=(ce==null?void 0:ce.getAttribute("formmethod"))||d,D=()=>U(ce||X.currentTarget,{fetcherKey:r,method:V,navigate:s,replace:f,state:h,relative:g,preventScrollReset:x,viewTransition:p,defaultShouldRevalidate:C});B&&s!==!1?_.startTransition(()=>D()):D()};return _.createElement("form",{ref:K,method:Y,action:k,onSubmit:c?b:J,...L,"data-discover":!Z&&n==="render"?"true":void 0})});AS.displayName="Form";function MS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wg(n){let r=_.useContext(Ii);return We(r,MS(n)),r}function DS(n,{target:r,replace:s,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:v,defaultShouldRevalidate:b,useTransitions:g}={}){let x=lc(),p=vl(),C=dr(n,{relative:d});return _.useCallback(L=>{if(fS(L,r)){L.preventDefault();let K=s!==void 0?s:Ln(p)===Ln(C),B=()=>x(n,{replace:K,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:v,defaultShouldRevalidate:b});g?_.startTransition(()=>B()):B()}},[p,x,C,s,c,f,r,n,h,d,v,b,g])}function h5(n){el(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=_.useRef(ad(n)),s=_.useRef(!1),c=vl(),f=_.useMemo(()=>dS(c.search,s.current?null:r.current),[c.search]),h=lc(),d=_.useCallback((v,b)=>{const g=ad(typeof v=="function"?v(new URLSearchParams(f)):v);s.current=!0,h("?"+g,b)},[h,f]);return[f,d]}var US=0,kS=()=>`__${String(++US)}__`;function HS(){let{router:n}=Wg("useSubmit"),{basename:r}=_.useContext(tl),s=eS(),c=n.fetch,f=n.navigate;return _.useCallback(async(h,d={})=>{let{action:v,method:b,encType:g,formData:x,body:p}=yS(h,r);if(d.navigate===!1){let C=d.fetcherKey||kS();await c(C,s,d.action||v,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:p,formMethod:d.method||b,formEncType:d.encType||g,flushSync:d.flushSync})}else await f(d.action||v,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:p,formMethod:d.method||b,formEncType:d.encType||g,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[c,f,r,s])}function qS(n,{relative:r}={}){let{basename:s}=_.useContext(tl),c=_.useContext(zl);We(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),h={...dr(n||".",{relative:r})},d=vl();if(n==null){h.search=d.search;let v=new URLSearchParams(h.search),b=v.getAll("index");if(b.some(x=>x==="")){v.delete("index"),b.filter(p=>p).forEach(p=>v.append("index",p));let x=v.toString();h.search=x?`?${x}`:""}}return(!n||n===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:Cl([s,h.pathname])),Ln(h)}function LS(n,{relative:r}={}){let s=_.useContext(Qg);We(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Wg("useViewTransitionState"),f=dr(n,{relative:r});if(!s.isTransitioning)return!1;let h=ma(s.currentLocation.pathname,c)||s.currentLocation.pathname,d=ma(s.nextLocation.pathname,c)||s.nextLocation.pathname;return Ws(f.pathname,d)!=null||Ws(f.pathname,h)!=null}var BS=Og();const Pg=_.createContext(void 0),tu=n=>{const r=_.useContext(Pg);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},QS=({client:n,children:r})=>(_.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),m.jsx(Pg.Provider,{value:n,children:r})),GS={setTimeout:(n,r)=>setTimeout(n,r),clearTimeout:n=>clearTimeout(n),setInterval:(n,r)=>setInterval(n,r),clearInterval:n=>clearInterval(n)};var Za,Td,gg,YS=(gg=class{constructor(){fe(this,Za,GS);fe(this,Td,!1)}setTimeoutProvider(n){I(this,Za,n)}setTimeout(n,r){return E(this,Za).setTimeout(n,r)}clearTimeout(n){E(this,Za).clearTimeout(n)}setInterval(n,r){return E(this,Za).setInterval(n,r)}clearInterval(n){E(this,Za).clearInterval(n)}},Za=new WeakMap,Td=new WeakMap,gg);const On=new YS;function VS(n){setTimeout(n,0)}const XS=typeof window>"u"||"Deno"in globalThis;function Mt(){}function KS(n,r){return typeof n=="function"?n(r):n}function Ig(n){return typeof n=="number"&&n>=0&&n!==1/0}function ep(n,r){return Math.max(n+(r||0)-Date.now(),0)}function $e(n,r){return typeof n=="function"?n(r):n}function V0(n,r){const{type:s="all",exact:c,fetchStatus:f,predicate:h,queryKey:d,stale:v}=n;if(d){if(c){if(r.queryHash!==kd(d,r.options))return!1}else if(!Wi(r.queryKey,d))return!1}if(s!=="all"){const b=r.isActive();if(s==="active"&&!b||s==="inactive"&&b)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||f&&f!==r.state.fetchStatus||h&&!h(r))}function X0(n,r){const{exact:s,status:c,predicate:f,mutationKey:h}=n;if(h){if(!r.options.mutationKey)return!1;if(s){if(Bn(r.options.mutationKey)!==Bn(h))return!1}else if(!Wi(r.options.mutationKey,h))return!1}return!(c&&r.state.status!==c||f&&!f(r))}function kd(n,r){return((r==null?void 0:r.queryKeyHashFn)||Bn)(n)}function Bn(n){return JSON.stringify(n,(r,s)=>nd(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function Wi(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(Array.isArray(n)&&Array.isArray(r)){if(r.length>n.length)return!1;for(let c=0;c<r.length;c++)if(!Wi(n[c],r[c]))return!1;return!0}const s=Object.keys(r);for(const c of s)if(!Wi(n[c],r[c]))return!1;return!0}return!1}const ZS=Object.prototype.hasOwnProperty;function tp(n,r,s=0){if(n===r)return n;if(s>500)return r;const c=K0(n)&&K0(r);if(!c&&!(nd(n)&&nd(r)))return r;const f=(c?n:Object.keys(n)).length,h=c?r:Object.keys(r),d=h.length,v=c?new Array(d):{};let b=0;for(let g=0;g<d;g++){const x=c?g:h[g],p=n[x],C=r[x];if(p===C){v[x]=p,(c?g<f:ZS.call(n,x))&&b++;continue}if(p===null||C===null||typeof p!="object"||typeof C!="object"){v[x]=C;continue}const L=tp(p,C,s+1);v[x]=L,L===p&&b++}return f===d&&b===f?n:v}function $s(n,r){if(!r||Object.keys(n).length!==Object.keys(r).length)return!1;for(const s in n)if(n[s]!==r[s])return!1;return!0}function K0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function nd(n){if(!Z0(n))return!1;const r=Object.getPrototypeOf(n),s=r==null?void 0:r.constructor;if(s===void 0)return!0;if(typeof s!="function")return!1;const c=s.prototype;return!(!Z0(c)||!c.hasOwnProperty("isPrototypeOf")||r!==Object.prototype)}function Z0(n){return Object.prototype.toString.call(n)==="[object Object]"}function JS(n){return new Promise(r=>{On.setTimeout(r,n)})}function id(n,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,r):s.structuralSharing!==!1?tp(n,r):r}function FS(n,r,s=0){const c=[...n,r];return s&&c.length>s?c.slice(1):c}function $S(n,r,s=0){const c=[r,...n];return s&&c.length>s?c.slice(0,-1):c}const Hd=Symbol();function lp(n,r){return!n.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!n.queryFn||n.queryFn===Hd?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function qd(n,r){return typeof n=="function"?n(...r):!!n}function WS(n,r,s){let c=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=r()),c||(c=!0,f.aborted?s():f.addEventListener("abort",s,{once:!0})),f)}),n}let PS=()=>XS;const Ld=()=>PS();var lu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rn,Ja,Hi,pg,IS=(pg=class extends lu{constructor(){super();fe(this,Rn);fe(this,Ja);fe(this,Hi);I(this,Hi,r=>{if(typeof window<"u"&&window.addEventListener){const s=()=>r();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){E(this,Ja)||this.setEventListener(E(this,Hi))}onUnsubscribe(){var r;this.hasListeners()||((r=E(this,Ja))==null||r.call(this),I(this,Ja,void 0))}setEventListener(r){var s;I(this,Hi,r),(s=E(this,Ja))==null||s.call(this),I(this,Ja,r(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(r){E(this,Rn)!==r&&(I(this,Rn,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(s=>{s(r)})}isFocused(){var r;return typeof E(this,Rn)=="boolean"?E(this,Rn):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Rn=new WeakMap,Ja=new WeakMap,Hi=new WeakMap,pg);const Bd=new IS,e3=VS;function t3(){let n=[],r=0,s=v=>{v()},c=v=>{v()},f=e3;const h=v=>{r?n.push(v):f(()=>{s(v)})},d=()=>{const v=n;n=[],v.length&&f(()=>{c(()=>{v.forEach(b=>{s(b)})})})};return{batch:v=>{let b;r++;try{b=v()}finally{r--,r||d()}return b},batchCalls:v=>(...b)=>{h(()=>{v(...b)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{c=v},setScheduler:v=>{f=v}}}const ft=t3();var qi,Fa,Li,bg,l3=(bg=class extends lu{constructor(){super();fe(this,qi,!0);fe(this,Fa);fe(this,Li);I(this,Li,r=>{if(typeof window<"u"&&window.addEventListener){const s=()=>r(!0),c=()=>r(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){E(this,Fa)||this.setEventListener(E(this,Li))}onUnsubscribe(){var r;this.hasListeners()||((r=E(this,Fa))==null||r.call(this),I(this,Fa,void 0))}setEventListener(r){var s;I(this,Li,r),(s=E(this,Fa))==null||s.call(this),I(this,Fa,r(this.setOnline.bind(this)))}setOnline(r){E(this,qi)!==r&&(I(this,qi,r),this.listeners.forEach(s=>{s(r)}))}isOnline(){return E(this,qi)}},qi=new WeakMap,Fa=new WeakMap,Li=new WeakMap,bg);const Ps=new l3;function a3(n){return Math.min(1e3*2**n,3e4)}function ap(n){return(n??"online")==="online"?Ps.isOnline():!0}var ud=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function np(n){let r=!1,s=0,c,f="pending",h,d;const v=new Promise((Y,Z)=>{h=Y,d=Z});v.catch(Mt);const b=()=>f!=="pending",g=Y=>{var Z;if(!b()){const J=new ud(Y);B(J),(Z=n.onCancel)==null||Z.call(n,J)}},x=()=>{r=!0},p=()=>{r=!1},C=()=>Bd.isFocused()&&(n.networkMode==="always"||Ps.isOnline())&&n.canRun(),L=()=>ap(n.networkMode)&&n.canRun(),K=Y=>{b()||(c==null||c(),f="resolved",h(Y))},B=Y=>{b()||(c==null||c(),f="rejected",d(Y))},U=Y=>new Promise(Z=>{var J;c=X=>{(b()||Y())&&Z(X)},(J=n.onPause)==null||J.call(n)}).then(()=>{var Z;c=void 0,b()||(Z=n.onContinue)==null||Z.call(n)}),k=()=>{if(b())return;let Y;const Z=s===0?n.initialPromise:void 0;try{Y=Z??n.fn()}catch(J){Y=Promise.reject(J)}Promise.resolve(Y).then(K).catch(J=>{var ae;if(b())return;const X=n.retry??(Ld()?0:3),ce=n.retryDelay??a3,V=typeof ce=="function"?ce(s,J):ce,D=X===!0||typeof X=="number"&&s<X||typeof X=="function"&&X(s,J);if(r||!D){B(J);return}s++,(ae=n.onFail)==null||ae.call(n,s,J),JS(V).then(()=>C()?void 0:U(C)).then(()=>{r?B(J):k()})})};return{promise:v,status:()=>f,cancel:g,continue:()=>(c==null||c(),v),cancelRetry:x,continueRetry:p,canStart:L,start:()=>(L()?k():U(L).then(k),v)}}var jn,xg,ip=(xg=class{constructor(){fe(this,jn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ig(this.gcTime)&&I(this,jn,On.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ld()?1/0:3e5))}clearGcTimeout(){E(this,jn)!==void 0&&(On.clearTimeout(E(this,jn)),I(this,jn,void 0))}},jn=new WeakMap,xg);function n3(n){return{onFetch:(r,s)=>{var x,p,C,L,K;const c=r.options,f=(C=(p=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:p.fetchMore)==null?void 0:C.direction,h=((L=r.state.data)==null?void 0:L.pages)||[],d=((K=r.state.data)==null?void 0:K.pageParams)||[];let v={pages:[],pageParams:[]},b=0;const g=async()=>{let B=!1;const U=Z=>{WS(Z,()=>r.signal,()=>B=!0)},k=lp(r.options,r.fetchOptions),Y=async(Z,J,X)=>{if(B)return Promise.reject(r.signal.reason);if(J==null&&Z.pages.length)return Promise.resolve(Z);const V=(()=>{const $={client:r.client,queryKey:r.queryKey,pageParam:J,direction:X?"backward":"forward",meta:r.options.meta};return U($),$})(),D=await k(V),{maxPages:ae}=r.options,ge=X?$S:FS;return{pages:ge(Z.pages,D,ae),pageParams:ge(Z.pageParams,J,ae)}};if(f&&h.length){const Z=f==="backward",J=Z?i3:J0,X={pages:h,pageParams:d};v=await Y(X,J(c,X),Z)}else{const Z=n??h.length;do{const J=b===0?d[0]??c.initialPageParam:J0(c,v);if(b>0&&J==null)break;v=await Y(v,J),b++}while(b<Z)}return v};r.options.persister?r.fetchFn=()=>{var B,U;return(U=(B=r.options).persister)==null?void 0:U.call(B,g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s)}:r.fetchFn=g}}}function J0(n,{pages:r,pageParams:s}){const c=r.length-1;return r.length>0?n.getNextPageParam(r[c],r,s[c],s):void 0}function i3(n,{pages:r,pageParams:s}){var c;return r.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,r[0],r,s[0],s):void 0}var Bi,An,Qi,dl,Mn,ot,ir,Dn,Tl,ca,Sg,u3=(Sg=class extends ip{constructor(r){super();fe(this,Tl);fe(this,Bi);fe(this,An);fe(this,Qi);fe(this,dl);fe(this,Mn);fe(this,ot);fe(this,ir);fe(this,Dn);I(this,Dn,!1),I(this,ir,r.defaultOptions),this.setOptions(r.options),this.observers=[],I(this,Mn,r.client),I(this,dl,E(this,Mn).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,I(this,An,$0(this.options)),this.state=r.state??E(this,An),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return E(this,Bi)}get promise(){var r;return(r=E(this,ot))==null?void 0:r.promise}setOptions(r){if(this.options={...E(this,ir),...r},r!=null&&r._type&&I(this,Bi,r._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=$0(this.options);s.data!==void 0&&(this.setState(F0(s.data,s.dataUpdatedAt)),I(this,An,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,dl).remove(this)}setData(r,s){const c=id(this.state.data,r,this.options);return Ee(this,Tl,ca).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(r){Ee(this,Tl,ca).call(this,{type:"setState",state:r})}cancel(r){var c,f;const s=(c=E(this,ot))==null?void 0:c.promise;return(f=E(this,ot))==null||f.cancel(r),s?s.then(Mt).catch(Mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,An)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>$e(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>$e(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!ep(this.state.dataUpdatedAt,r)}onFocus(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnWindowFocus()))==null||r.refetch({cancelRefetch:!1}),(s=E(this,ot))==null||s.continue()}onOnline(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnReconnect()))==null||r.refetch({cancelRefetch:!1}),(s=E(this,ot))==null||s.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),E(this,dl).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){const s=this.observers.indexOf(r);s!==-1&&(this.observers.splice(s,1),this.observers.length||(E(this,ot)&&(E(this,Dn)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?E(this,ot).cancel({revert:!0}):E(this,ot).cancelRetry()),this.scheduleGc()),E(this,dl).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,Tl,ca).call(this,{type:"invalidate"})}async fetch(r,s){var g,x,p,C,L,K,B,U,k,Y,Z,J;if(this.state.fetchStatus!=="idle"&&((g=E(this,ot))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(E(this,ot))return E(this,ot).continueRetry(),E(this,ot).promise}if(r&&this.setOptions(r),!this.options.queryFn){const X=this.observers.find(ce=>ce.options.queryFn);X&&this.setOptions(X.options)}const c=new AbortController,f=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>(I(this,Dn,!0),c.signal)})},h=()=>{const X=lp(this.options,s),V=(()=>{const D={client:E(this,Mn),queryKey:this.queryKey,meta:this.meta};return f(D),D})();return I(this,Dn,!1),this.options.persister?this.options.persister(X,V,this):X(V)},v=(()=>{const X={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:E(this,Mn),state:this.state,fetchFn:h};return f(X),X})();(x=E(this,Bi)==="infinite"?n3(this.options.pages):this.options.behavior)==null||x.onFetch(v,this),I(this,Qi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=v.fetchOptions)==null?void 0:p.meta))&&Ee(this,Tl,ca).call(this,{type:"fetch",meta:(C=v.fetchOptions)==null?void 0:C.meta});const b=I(this,ot,np({initialPromise:s==null?void 0:s.initialPromise,fn:v.fetchFn,onCancel:X=>{X instanceof ud&&X.revert&&this.setState({...E(this,Qi),fetchStatus:"idle"}),c.abort()},onFail:(X,ce)=>{Ee(this,Tl,ca).call(this,{type:"failed",failureCount:X,error:ce})},onPause:()=>{Ee(this,Tl,ca).call(this,{type:"pause"})},onContinue:()=>{Ee(this,Tl,ca).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const X=await b.start();if(X===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(X),(K=(L=E(this,dl).config).onSuccess)==null||K.call(L,X,this),(U=(B=E(this,dl).config).onSettled)==null||U.call(B,X,this.state.error,this),X}catch(X){if(X instanceof ud){if(X.silent)return E(this,ot).promise;if(X.revert){if(this.state.data===void 0)throw X;return this.state.data}}throw Ee(this,Tl,ca).call(this,{type:"error",error:X}),(Y=(k=E(this,dl).config).onError)==null||Y.call(k,X,this),(J=(Z=E(this,dl).config).onSettled)==null||J.call(Z,this.state.data,X,this),X}finally{E(this,ot)===b&&I(this,ot,void 0),this.scheduleGc()}}},Bi=new WeakMap,An=new WeakMap,Qi=new WeakMap,dl=new WeakMap,Mn=new WeakMap,ot=new WeakMap,ir=new WeakMap,Dn=new WeakMap,Tl=new WeakSet,ca=function(r){const s=c=>{switch(r.type){case"failed":return{...c,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...up(c.data,this.options),fetchMeta:r.meta??null};case"success":const f={...c,...F0(r.data,r.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return I(this,Qi,r.manual?f:void 0),f;case"error":const h=r.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...r.state}}};this.state=s(this.state),ft.batch(()=>{this.observers.slice().forEach(c=>{c.onQueryUpdate()}),E(this,dl).notify({query:this,type:"updated",action:r})})},Sg);function up(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ap(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function F0(n,r){return{data:n,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $0(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,s=r!==void 0,c=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var jt,je,ur,At,Un,Gi,oa,rr,Yi,Vi,kn,Hn,$a,Xi,Le,lr,rd,sd,cd,od,fd,dd,hd,md,Eg,r3=(Eg=class extends lu{constructor(r,s){super();fe(this,Le);fe(this,jt);fe(this,je);fe(this,ur);fe(this,At);fe(this,Un);fe(this,Gi);fe(this,oa);fe(this,rr);fe(this,Yi);fe(this,Vi);fe(this,kn);fe(this,Hn);fe(this,$a);fe(this,Xi,new Set);this.options=s,I(this,jt,r),I(this,oa,null),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,je).addObserver(this),W0(E(this,je),this.options)?Ee(this,Le,lr).call(this):this.updateResult(),Ee(this,Le,fd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yd(E(this,je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yd(E(this,je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ee(this,Le,dd).call(this),Ee(this,Le,hd).call(this),E(this,je).removeObserver(this)}setOptions(r){const s=this.options,c=E(this,je);if(this.options=E(this,jt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $e(this.options.enabled,E(this,je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ee(this,Le,md).call(this),E(this,je).setOptions(this.options),s._defaulted&&!$s(this.options,s)&&E(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,je),observer:this});const f=this.hasListeners();f&&P0(E(this,je),c,this.options,s)&&Ee(this,Le,lr).call(this),this.updateResult(),f&&(E(this,je)!==c||$e(this.options.enabled,E(this,je))!==$e(s.enabled,E(this,je))||$e(this.options.staleTime,E(this,je))!==$e(s.staleTime,E(this,je)))&&Ee(this,Le,sd).call(this);const h=Ee(this,Le,cd).call(this);f&&(E(this,je)!==c||$e(this.options.enabled,E(this,je))!==$e(s.enabled,E(this,je))||h!==E(this,$a))&&Ee(this,Le,od).call(this,h)}getOptimisticResult(r){const s=E(this,jt).getQueryCache().build(E(this,jt),r),c=this.createResult(s,r);return $s(this.getCurrentResult(),c)||(I(this,At,c),I(this,Gi,this.options),I(this,Un,E(this,je).state)),c}getCurrentResult(){return E(this,At)}trackResult(r,s){return new Proxy(r,{get:(c,f)=>(this.trackProp(f),s==null||s(f),Reflect.get(c,f))})}trackProp(r){E(this,Xi).add(r)}getCurrentQuery(){return E(this,je)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const s=E(this,jt).defaultQueryOptions(r),c=E(this,jt).getQueryCache().build(E(this,jt),s);let f=()=>{},h;const d=new Promise(v=>{h=v,f=E(this,jt).getQueryCache().subscribe(b=>{b.type==="updated"&&b.query.queryHash===c.queryHash&&c.state.data!==void 0&&(f(),v(this.createResult(c,s)))})});return Promise.race([c.fetch().then(()=>{const v=this.createResult(c,s);return h==null||h(v),v}).finally(()=>{f()}),d])}fetch(r){return Ee(this,Le,lr).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,At)))}createResult(r,s){var ce;const c=E(this,je),f=this.options,h=E(this,At),d=E(this,Un),v=E(this,Gi),b=r!==c?r.state:E(this,ur),{state:g}=r;let x={...g},p=!1,C;if(s._optimisticResults){const V=this.hasListeners(),D=!V&&W0(r,s),ae=V&&P0(r,c,s,f);(D||ae)&&(x={...x,...up(g.data,r.options)}),s._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:L,errorUpdatedAt:K,status:B}=x;C=x.data;let U=!1;if(s.placeholderData!==void 0&&C===void 0&&B==="pending"){let V;h!=null&&h.isPlaceholderData&&s.placeholderData===(v==null?void 0:v.placeholderData)?(V=h.data,U=!0):V=typeof s.placeholderData=="function"?s.placeholderData((ce=E(this,Vi))==null?void 0:ce.state.data,E(this,Vi)):s.placeholderData,V!==void 0&&(B="success",C=id(h==null?void 0:h.data,V,s),p=!0)}if(s.select&&C!==void 0&&!U)if(h&&C===(d==null?void 0:d.data)&&s.select===E(this,rr))C=E(this,Yi);else try{I(this,rr,s.select),C=s.select(C),C=id(h==null?void 0:h.data,C,s),I(this,Yi,C),I(this,oa,null)}catch(V){I(this,oa,V)}else C===void 0&&I(this,oa,null);E(this,oa)&&(L=E(this,oa),C=E(this,Yi),K=Date.now(),B="error",p=!1);const k=x.fetchStatus==="fetching",Y=B==="pending",Z=B==="error",J=Y&&k,X=C!==void 0;return{status:B,fetchStatus:x.fetchStatus,isPending:Y,isSuccess:B==="success",isError:Z,isInitialLoading:J,isLoading:J,data:C,dataUpdatedAt:x.dataUpdatedAt,error:L,errorUpdatedAt:K,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>b.dataUpdateCount||x.errorUpdateCount>b.errorUpdateCount,isFetching:k,isRefetching:k&&!Y,isLoadingError:Z&&!X,isPaused:x.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:Z&&X,isStale:Qd(r,s),refetch:this.refetch,isEnabled:$e(s.enabled,r)!==!1}}updateResult(){const r=E(this,At),s=this.createResult(E(this,je),this.options);if(I(this,Un,E(this,je).state),I(this,Gi,this.options),E(this,Un).data!==void 0&&I(this,Vi,E(this,je)),$s(s,r))return;I(this,At,s);const f=(()=>{if(!r)return!0;const{notifyOnChangeProps:h}=this.options,d=typeof h=="function"?h():h;if(d==="all"||!d&&!E(this,Xi).size)return!0;const v=new Set(d??E(this,Xi));return this.options.throwOnError&&v.add("error"),Object.keys(E(this,At)).some(b=>{const g=b;return E(this,At)[g]!==r[g]&&v.has(g)})})();ft.batch(()=>{f&&this.listeners.forEach(h=>{h(E(this,At))}),E(this,jt).getQueryCache().notify({query:E(this,je),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ee(this,Le,fd).call(this)}},jt=new WeakMap,je=new WeakMap,ur=new WeakMap,At=new WeakMap,Un=new WeakMap,Gi=new WeakMap,oa=new WeakMap,rr=new WeakMap,Yi=new WeakMap,Vi=new WeakMap,kn=new WeakMap,Hn=new WeakMap,$a=new WeakMap,Xi=new WeakMap,Le=new WeakSet,lr=function(r){Ee(this,Le,md).call(this);let s=E(this,je).fetch(this.options,r);return r!=null&&r.throwOnError||(s=s.catch(Mt)),s},rd=function(r){return!Ld()&&$e(this.options.enabled,E(this,je))!==!1&&Ig(r)},sd=function(){Ee(this,Le,dd).call(this);const r=$e(this.options.staleTime,E(this,je));if(E(this,At).isStale||!Ee(this,Le,rd).call(this,r))return;const s=ep(E(this,At).dataUpdatedAt,r)+1;I(this,kn,On.setTimeout(()=>{E(this,At).isStale||this.updateResult()},s))},cd=function(){return $e(this.options.refetchInterval,E(this,je))??!1},od=function(r){Ee(this,Le,hd).call(this),I(this,$a,r),!(E(this,$a)===0||!Ee(this,Le,rd).call(this,E(this,$a)))&&I(this,Hn,On.setInterval(()=>{(this.options.refetchIntervalInBackground||Bd.isFocused())&&Ee(this,Le,lr).call(this)},E(this,$a)))},fd=function(){Ee(this,Le,sd).call(this),Ee(this,Le,od).call(this,Ee(this,Le,cd).call(this))},dd=function(){E(this,kn)!==void 0&&(On.clearTimeout(E(this,kn)),I(this,kn,void 0))},hd=function(){E(this,Hn)!==void 0&&(On.clearInterval(E(this,Hn)),I(this,Hn,void 0))},md=function(){const r=E(this,jt).getQueryCache().build(E(this,jt),this.options);if(r===E(this,je))return;const s=E(this,je);I(this,je,r),I(this,ur,r.state),this.hasListeners()&&(s==null||s.removeObserver(this),r.addObserver(this))},Eg);function s3(n,r){return $e(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&$e(r.retryOnMount,n)===!1)}function W0(n,r){return s3(n,r)||n.state.data!==void 0&&yd(n,r,r.refetchOnMount)}function yd(n,r,s){if($e(r.enabled,n)!==!1&&$e(r.staleTime,n)!=="static"){const c=$e(s,n);return c==="always"||c!==!1&&Qd(n,r)}return!1}function P0(n,r,s,c){return(n!==r||$e(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Qd(n,s)}function Qd(n,r){return $e(r.enabled,n)!==!1&&n.isStaleByTime($e(r.staleTime,n))}var sr,Yl,Nt,qn,Vl,Ka,_g,c3=(_g=class extends ip{constructor(r){super();fe(this,Vl);fe(this,sr);fe(this,Yl);fe(this,Nt);fe(this,qn);I(this,sr,r.client),this.mutationId=r.mutationId,I(this,Nt,r.mutationCache),I(this,Yl,[]),this.state=r.state||rp(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){E(this,Yl).includes(r)||(E(this,Yl).push(r),this.clearGcTimeout(),E(this,Nt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){I(this,Yl,E(this,Yl).filter(s=>s!==r)),this.scheduleGc(),E(this,Nt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){E(this,Yl).length||(this.state.status==="pending"?this.scheduleGc():E(this,Nt).remove(this))}continue(){var r;return((r=E(this,qn))==null?void 0:r.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(r){var v,b,g,x,p,C,L,K,B,U,k,Y,Z,J,X,ce,V,D;const s=()=>{Ee(this,Vl,Ka).call(this,{type:"continue"})},c={client:E(this,sr),meta:this.options.meta,mutationKey:this.options.mutationKey},f=I(this,qn,np({fn:()=>this.options.mutationFn?this.options.mutationFn(r,c):Promise.reject(new Error("No mutationFn found")),onFail:(ae,ge)=>{Ee(this,Vl,Ka).call(this,{type:"failed",failureCount:ae,error:ge})},onPause:()=>{Ee(this,Vl,Ka).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Nt).canRun(this)})),h=this.state.status==="pending",d=!f.canStart();try{if(h)s();else{Ee(this,Vl,Ka).call(this,{type:"pending",variables:r,isPaused:d}),E(this,Nt).config.onMutate&&await E(this,Nt).config.onMutate(r,this,c);const ge=await((b=(v=this.options).onMutate)==null?void 0:b.call(v,r,c));ge!==this.state.context&&Ee(this,Vl,Ka).call(this,{type:"pending",context:ge,variables:r,isPaused:d})}const ae=await f.start();return await((x=(g=E(this,Nt).config).onSuccess)==null?void 0:x.call(g,ae,r,this.state.context,this,c)),await((C=(p=this.options).onSuccess)==null?void 0:C.call(p,ae,r,this.state.context,c)),await((K=(L=E(this,Nt).config).onSettled)==null?void 0:K.call(L,ae,null,this.state.variables,this.state.context,this,c)),await((U=(B=this.options).onSettled)==null?void 0:U.call(B,ae,null,r,this.state.context,c)),Ee(this,Vl,Ka).call(this,{type:"success",data:ae}),ae}catch(ae){try{await((Y=(k=E(this,Nt).config).onError)==null?void 0:Y.call(k,ae,r,this.state.context,this,c))}catch(ge){Promise.reject(ge)}try{await((J=(Z=this.options).onError)==null?void 0:J.call(Z,ae,r,this.state.context,c))}catch(ge){Promise.reject(ge)}try{await((ce=(X=E(this,Nt).config).onSettled)==null?void 0:ce.call(X,void 0,ae,this.state.variables,this.state.context,this,c))}catch(ge){Promise.reject(ge)}try{await((D=(V=this.options).onSettled)==null?void 0:D.call(V,void 0,ae,r,this.state.context,c))}catch(ge){Promise.reject(ge)}throw Ee(this,Vl,Ka).call(this,{type:"error",error:ae}),ae}finally{E(this,qn)===f&&I(this,qn,void 0),E(this,Nt).runNext(this)}}},sr=new WeakMap,Yl=new WeakMap,Nt=new WeakMap,qn=new WeakMap,Vl=new WeakSet,Ka=function(r){const s=c=>{switch(r.type){case"failed":return{...c,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...c,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:r.error,failureCount:c.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ft.batch(()=>{E(this,Yl).forEach(c=>{c.onMutationUpdate(r)}),E(this,Nt).notify({mutation:this,type:"updated",action:r})})},_g);function rp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fa,Nl,cr,Tg,o3=(Tg=class extends lu{constructor(r={}){super();fe(this,fa);fe(this,Nl);fe(this,cr);this.config=r,I(this,fa,new Set),I(this,Nl,new Map),I(this,cr,0)}build(r,s,c){const f=new c3({client:r,mutationCache:this,mutationId:++Ys(this,cr)._,options:r.defaultMutationOptions(s),state:c});return this.add(f),f}add(r){E(this,fa).add(r);const s=Xs(r);if(typeof s=="string"){const c=E(this,Nl).get(s);c?c.push(r):E(this,Nl).set(s,[r])}this.notify({type:"added",mutation:r})}remove(r){if(E(this,fa).delete(r)){const s=Xs(r);if(typeof s=="string"){const c=E(this,Nl).get(s);if(c)if(c.length>1){const f=c.indexOf(r);f!==-1&&c.splice(f,1)}else c[0]===r&&E(this,Nl).delete(s)}}this.notify({type:"removed",mutation:r})}canRun(r){var c;const s=Xs(r);if(typeof s=="string"){const f=(c=E(this,Nl).get(s))==null?void 0:c.find(h=>h.state.status==="pending");return!f||f===r}else return!0}runNext(r){var c,f;const s=Xs(r);return typeof s=="string"?((f=(c=E(this,Nl).get(s))==null?void 0:c.find(h=>h!==r&&h.state.isPaused))==null?void 0:f.continue())??Promise.resolve():Promise.resolve()}clear(){ft.batch(()=>{E(this,fa).forEach(r=>{this.notify({type:"removed",mutation:r})}),E(this,fa).clear(),E(this,Nl).clear()})}getAll(){return Array.from(E(this,fa))}find(r){const s={exact:!0,...r};return this.getAll().find(c=>X0(s,c))}findAll(r={}){return this.getAll().filter(s=>X0(r,s))}notify(r){ft.batch(()=>{this.listeners.forEach(s=>{s(r)})})}resumePausedMutations(){const r=this.getAll().filter(s=>s.state.isPaused);return ft.batch(()=>Promise.all(r.map(s=>s.continue().catch(Mt))))}},fa=new WeakMap,Nl=new WeakMap,cr=new WeakMap,Tg);function Xs(n){var r;return(r=n.options.scope)==null?void 0:r.id}var da,Wa,Ct,or,Kl,ar,vd,Ng,f3=(Ng=class extends lu{constructor(s,c){super();fe(this,Kl);fe(this,da);fe(this,Wa);fe(this,Ct);fe(this,or);I(this,da,s),this.setOptions(c),this.bindMethods(),Ee(this,Kl,ar).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=E(this,da).defaultMutationOptions(s),$s(this.options,c)||E(this,da).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Ct),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Bn(c.mutationKey)!==Bn(this.options.mutationKey)?this.reset():((f=E(this,Ct))==null?void 0:f.state.status)==="pending"&&E(this,Ct).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&E(this,Ct)&&(E(this,Ct).addObserver(this),Ee(this,Kl,ar).call(this))}onUnsubscribe(){var s;this.hasListeners()||(s=E(this,Ct))==null||s.removeObserver(this)}onMutationUpdate(s){Ee(this,Kl,ar).call(this),Ee(this,Kl,vd).call(this,s)}getCurrentResult(){return E(this,Wa)}reset(){var s;(s=E(this,Ct))==null||s.removeObserver(this),I(this,Ct,void 0),Ee(this,Kl,ar).call(this),Ee(this,Kl,vd).call(this)}mutate(s,c){var f;return I(this,or,c),(f=E(this,Ct))==null||f.removeObserver(this),I(this,Ct,E(this,da).getMutationCache().build(E(this,da),this.options)),E(this,Ct).addObserver(this),E(this,Ct).execute(s)}},da=new WeakMap,Wa=new WeakMap,Ct=new WeakMap,or=new WeakMap,Kl=new WeakSet,ar=function(){var c;const s=((c=E(this,Ct))==null?void 0:c.state)??rp();I(this,Wa,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},vd=function(s){ft.batch(()=>{var f,h,d,v;const c=E(this,or);if(c&&this.hasListeners()){const b=E(this,Wa).variables,g=E(this,Wa).context,x={client:E(this,da),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(f=c.onSuccess)==null||f.call(c,s.data,b,g,x)}catch(p){Promise.reject(p)}try{(h=c.onSettled)==null||h.call(c,s.data,null,b,g,x)}catch(p){Promise.reject(p)}}else if((s==null?void 0:s.type)==="error"){try{(d=c.onError)==null||d.call(c,s.error,b,g,x)}catch(p){Promise.reject(p)}try{(v=c.onSettled)==null||v.call(c,void 0,s.error,b,g,x)}catch(p){Promise.reject(p)}}}this.listeners.forEach(b=>{b(E(this,Wa))})})},Ng),Xl,Cg,d3=(Cg=class extends lu{constructor(r={}){super();fe(this,Xl);this.config=r,I(this,Xl,new Map)}build(r,s,c){const f=s.queryKey,h=s.queryHash??kd(f,s);let d=this.get(h);return d||(d=new u3({client:r,queryKey:f,queryHash:h,options:r.defaultQueryOptions(s),state:c,defaultOptions:r.getQueryDefaults(f)}),this.add(d)),d}add(r){E(this,Xl).has(r.queryHash)||(E(this,Xl).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){E(this,Xl).get(r.queryHash)===r&&(r.destroy(),E(this,Xl).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){ft.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return E(this,Xl).get(r)}getAll(){return[...E(this,Xl).values()]}find(r){const s={exact:!0,...r};return this.getAll().find(c=>V0(s,c))}findAll(r={}){const s=this.getAll();return Object.keys(r).length>0?s.filter(c=>V0(r,c)):s}notify(r){ft.batch(()=>{this.listeners.forEach(s=>{s(r)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Xl=new WeakMap,Cg),Ie,Pa,Ia,Ki,Zi,en,Ji,Fi,zg,h3=(zg=class{constructor(n={}){fe(this,Ie);fe(this,Pa);fe(this,Ia);fe(this,Ki);fe(this,Zi);fe(this,en);fe(this,Ji);fe(this,Fi);I(this,Ie,n.queryCache||new d3),I(this,Pa,n.mutationCache||new o3),I(this,Ia,n.defaultOptions||{}),I(this,Ki,new Map),I(this,Zi,new Map),I(this,en,0)}mount(){Ys(this,en)._++,E(this,en)===1&&(I(this,Ji,Bd.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Ie).onFocus())})),I(this,Fi,Ps.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Ie).onOnline())})))}unmount(){var n,r;Ys(this,en)._--,E(this,en)===0&&((n=E(this,Ji))==null||n.call(this),I(this,Ji,void 0),(r=E(this,Fi))==null||r.call(this),I(this,Fi,void 0))}isFetching(n){return E(this,Ie).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return E(this,Pa).findAll({...n,status:"pending"}).length}getQueryData(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=E(this,Ie).get(r.queryHash))==null?void 0:s.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),s=E(this,Ie).build(this,r),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime($e(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(c))}getQueriesData(n){return E(this,Ie).findAll(n).map(({queryKey:r,state:s})=>[r,s.data])}setQueryData(n,r,s){var d;const c=this.defaultQueryOptions({queryKey:n}),f=(d=E(this,Ie).get(c.queryHash))==null?void 0:d.state.data,h=KS(r,f);if(h!==void 0)return E(this,Ie).build(this,c).setData(h,{...s,manual:!0})}setQueriesData(n,r,s){return ft.batch(()=>E(this,Ie).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,r,s)]))}getQueryState(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=E(this,Ie).get(r.queryHash))==null?void 0:s.state}removeQueries(n){const r=E(this,Ie);ft.batch(()=>{r.findAll(n).forEach(s=>{r.remove(s)})})}resetQueries(n,r){const s=E(this,Ie);return ft.batch(()=>{const c=s.findAll(n),f=new Set(c);return c.forEach(h=>{h.reset()}),this.refetchQueries({type:"active",predicate:h=>f.has(h)},r)})}cancelQueries(n,r={}){const s={revert:!0,...r},c=ft.batch(()=>E(this,Ie).findAll(n).map(f=>f.cancel(s)));return Promise.all(c).then(Mt).catch(Mt)}invalidateQueries(n,r={}){return ft.batch(()=>(E(this,Ie).findAll(n).forEach(s=>{s.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},r)))}refetchQueries(n,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},c=ft.batch(()=>E(this,Ie).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,s);return s.throwOnError||(h=h.catch(Mt)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(Mt)}async query(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=E(this,Ie).build(this,r),c=s.isStaleByTime($e(r.staleTime,s))?await s.fetch(r):s.state.data,f=r.select;return f?f(c):c}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=E(this,Ie).build(this,r);return s.isStaleByTime($e(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Mt).catch(Mt)}infiniteQuery(n){return n._type="infinite",this.query(n)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Mt).catch(Mt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Ps.isOnline()?E(this,Pa).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ie)}getMutationCache(){return E(this,Pa)}getDefaultOptions(){return E(this,Ia)}setDefaultOptions(n){I(this,Ia,n)}setQueryDefaults(n,r){E(this,Ki).set(Bn(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...E(this,Ki).values()],s={};return r.forEach(c=>{Wi(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,r){E(this,Zi).set(Bn(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...E(this,Zi).values()],s={};return r.forEach(c=>{Wi(n,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const r={...E(this,Ia).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=kd(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Hd&&(r.enabled=!1),r}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...E(this,Ia).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){E(this,Ie).clear(),E(this,Pa).clear()}},Ie=new WeakMap,Pa=new WeakMap,Ia=new WeakMap,Ki=new WeakMap,Zi=new WeakMap,en=new WeakMap,Ji=new WeakMap,Fi=new WeakMap,zg);const sp=_.createContext(!1),m3=()=>_.useContext(sp);sp.Provider;function y3(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const v3=_.createContext(y3()),g3=()=>_.useContext(v3),p3=(n,r,s)=>{const c=s!=null&&s.state.error&&typeof n.throwOnError=="function"?qd(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||c)&&(r.isReset()||(n.retryOnMount=!1))},b3=n=>{_.useEffect(()=>{n.clearReset()},[n])},x3=({result:n,errorResetBoundary:r,throwOnError:s,query:c,suspense:f})=>n.isError&&!r.isReset()&&!n.isFetching&&c&&(f&&n.data===void 0||qd(s,[n.error,c])),S3=n=>{if(n.suspense){const s=f=>f==="static"?f:Math.max(f??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...f)=>s(c(...f)):s(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},E3=(n,r)=>(n==null?void 0:n.suspense)&&r.isPending,_3=(n,r,s)=>r.fetchOptimistic(n).catch(()=>{s.clearReset()});function T3(n,r,s){const c=m3(),f=g3(),h=tu(),d=h.defaultQueryOptions(n),v=h.getQueryCache().get(d.queryHash),b=n.subscribed!==!1;d._optimisticResults=c?"isRestoring":b?"optimistic":void 0,S3(d),p3(d,f,v),b3(f);const[g]=_.useState(()=>new r(h,d)),x=g.getOptimisticResult(d),p=!c&&b;if(_.useSyncExternalStore(_.useCallback(C=>{const L=p?g.subscribe(ft.batchCalls(C)):Mt;return g.updateResult(),L},[g,p]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),_.useEffect(()=>{g.setOptions(d)},[d,g]),E3(d,x))throw _3(d,g,f);if(x3({result:x,errorResetBoundary:f,throwOnError:d.throwOnError,query:v,suspense:d.suspense}))throw x.error;return d.notifyOnChangeProps?x:g.trackResult(x)}function ml(n,r){return T3(n,r3)}function gd(n,r){const s=tu(),[c]=_.useState(()=>new f3(s,n));_.useEffect(()=>{c.setOptions(n)},[c,n]);const f=_.useSyncExternalStore(_.useCallback(d=>c.subscribe(ft.batchCalls(d)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h=_.useCallback((...d)=>{c.mutate(d[0],d[1]).catch(Mt)},[c]);if(f.error&&qd(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:h,mutateAsync:f.mutate}}const N3="modulepreload",C3=function(n){return"/"+n},I0={},Gn=function(r,s,c){let f=Promise.resolve();if(s&&s.length>0){let d=function(g){return Promise.all(g.map(x=>Promise.resolve(x).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const v=document.querySelector("meta[property=csp-nonce]"),b=(v==null?void 0:v.nonce)||(v==null?void 0:v.getAttribute("nonce"));f=d(s.map(g=>{if(g=C3(g),g in I0)return;I0[g]=!0;const x=g.endsWith(".css"),p=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const C=document.createElement("link");if(C.rel=x?"stylesheet":N3,x||(C.as="script"),C.crossOrigin="",C.href=g,b&&C.setAttribute("nonce",b),document.head.appendChild(C),x)return new Promise((L,K)=>{C.addEventListener("load",L),C.addEventListener("error",()=>K(new Error(`Unable to preload CSS for ${g}`)))})}))}function h(d){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=d,window.dispatchEvent(v),!v.defaultPrevented)throw d}return f.then(d=>{for(const v of d||[])v.status==="rejected"&&h(v.reason);return r().catch(h)})};/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const z3=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cp=(...n)=>n.filter((r,s,c)=>!!r&&r.trim()!==""&&c.indexOf(r)===s).join(" ").trim();/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var w3={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.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const O3=_.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:f="",children:h,iconNode:d,...v},b)=>_.createElement("svg",{ref:b,...w3,width:r,height:r,stroke:n,strokeWidth:c?Number(s)*24/Number(r):s,className:cp("lucide",f),...v},[...d.map(([g,x])=>_.createElement(g,x)),...Array.isArray(h)?h:[h]]));/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const be=(n,r)=>{const s=_.forwardRef(({className:c,...f},h)=>_.createElement(O3,{ref:h,iconNode:r,className:cp(`lucide-${z3(n)}`,c),...f}));return s.displayName=`${n}`,s};/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const R3=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],j3=be("Award",R3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const A3=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],M3=be("BookOpen",A3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const D3=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],U3=be("Briefcase",D3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const k3=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],H3=be("Building2",k3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const q3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],op=be("CalendarDays",q3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const L3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],B3=be("ChartColumn",L3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Q3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],G3=be("ChevronDown",Q3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Y3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],V3=be("CircleAlert",Y3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const X3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],K3=be("CircleCheck",X3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Z3=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],J3=be("Cloud",Z3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const F3=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],$3=be("CodeXml",F3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const W3=[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]],P3=be("Dumbbell",W3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const I3=[["path",{d:"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"12ixgl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M5 17a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",key:"u0c8gj"}],["path",{d:"M7 16.5 8 22l-3-1-3 1 1-5.5",key:"5gm2nr"}]],eE=be("FileBadge",I3);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tE=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],fp=be("FileText",tE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lE=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],aE=be("FlaskConical",lE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nE=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],dp=be("GraduationCap",nE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const iE=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],uE=be("HeartHandshake",iE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],sE=be("Image",rE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cE=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],oE=be("Inbox",cE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],dE=be("Info",fE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hE=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],mE=be("Languages",hE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yE=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],vE=be("LogIn",yE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gE=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],pE=be("LogOut",gE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bE=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],xE=be("Menu",bE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const SE=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],EE=be("MicVocal",SE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _E=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],TE=be("Moon",_E);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const NE=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],CE=be("Network",NE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zE=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],wE=be("Palette",zE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const OE=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],Gd=be("Paperclip",OE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const RE=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],jE=be("PenLine",RE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const AE=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ME=be("Pencil",AE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const DE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],UE=be("Plus",DE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kE=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],HE=be("Rocket",kE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],LE=be("Rows3",qE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const BE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],QE=be("Search",BE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const GE=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],YE=be("Shapes",GE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const VE=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],XE=be("ShieldAlert",VE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const KE=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ZE=be("ShieldCheck",KE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const JE=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],FE=be("SlidersHorizontal",JE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $E=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],WE=be("Star",$E);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const PE=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],IE=be("Sun",PE);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const e4=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],hp=be("Tag",e4);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const t4=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],pd=be("Trash2",t4);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const l4=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],a4=be("Trophy",l4);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const n4=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],i4=be("Users",n4);/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const u4=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mp=be("X",u4),Yd="fp-token";function ha(){return localStorage.getItem(Yd)}function Vd(n){localStorage.setItem(Yd,n)}function Xd(){localStorage.removeItem(Yd)}async function Kd(n,r,s){const c=s||tn(),h=await(await fetch(c+"/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n,password:r,device_name:"桌面应用"})})).json();if(!h.ok)throw new Error(h.error||"登录失败");return Vd(h.data.token),h.data}async function Zd(n,r,s,c){const f=c||tn(),d=await(await fetch(f+"/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n,password:r,invite_code:s,device_name:"桌面应用"})})).json();if(!d.ok)throw new Error(d.error||"注册失败");return Vd(d.data.token),d.data}async function yp(n){const r=n||tn(),c=await(await fetch(r+"/auth/me",{headers:{Authorization:"Bearer "+ha()}})).json();if(!c.ok)throw new Error(c.error||"会话失效");return c.data}const vp="fp-server-url";function tn(){return localStorage.getItem(vp)||"https://footpr.linyux.cn"}function gp(n){localStorage.setItem(vp,n.replace(/\/+$/,""))}class bd extends Error{constructor(r){super(r),this.name="AuthError"}}async function Ae(n,r){const s=ha();if(!s)throw new bd("请先登录");const c=tn(),f=await fetch(c+"/api/"+n,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+s},body:JSON.stringify(r??{})});if(f.status===401)throw Xd(),window.dispatchEvent(new CustomEvent("fp-auth-required")),new bd("登录已过期,请重新登录");const h=await f.json();if(!f.ok||!h.ok)throw new Error(h.error||"HTTP "+f.status);return h.data}const r4=()=>Ae("app_info"),s4=()=>Ae("sync_status"),ic=()=>Ae("type_list"),c4=n=>Ae("type_upsert",n),o4=n=>Ae("type_delete",{id:n}),pp=n=>Ae("taxonomy_list",{kind:n}),f4=n=>Ae("taxonomy_upsert",n),d4=n=>Ae("taxonomy_delete",{id:n}),Jd=()=>Ae("dimension_list"),h4=n=>Ae("dimension_upsert",n),m4=n=>Ae("dimension_delete",{id:n}),bp=(n={})=>Ae("footprint_list",{query:n}),Fd=n=>Ae("footprint_get",{id:n}),xp=n=>Ae("footprint_upsert",{item:n}),y4=n=>Ae("footprint_delete",{id:n}),Sp=(n={})=>Ae("timeline",{query:n}),v4=n=>Ae("stats_overview",{year:n}),g4=()=>Ae("metric_list"),p4=n=>Ae("metric_upsert",n),b4=n=>Ae("metric_delete",{key:n}),x4=()=>Ae("grades_overview"),S4=n=>Ae("semester_upsert",n),E4=n=>Ae("semester_delete",{id:n}),_4=n=>Ae("course_upsert",n),T4=n=>Ae("course_delete",{id:n}),N4=n=>Ae("band_upsert",n),C4=n=>Ae("band_delete",{id:n}),xd=n=>Ae("attachment_add",n),Ep=n=>Ae("attachment_list",{owner_id:n}),_p=n=>Ae("attachment_delete",{id:n}),nr=n=>Ae("attachment_read",{id:n}),Tp=n=>Ae("attachment_thumb",{id:n}),z4=()=>Ae("view_list"),w4=n=>Ae("view_upsert",n),O4=n=>Ae("view_delete",{id:n});async function uc(n,r,s){const c=await fetch((s||tn())+n,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+ha()},body:JSON.stringify(r??{})}),f=await c.json().catch(()=>({ok:!1,error:"HTTP "+c.status}));if(!f.ok)throw new Error(f.error||"请求失败");return f.data}async function Np(n,r){const s=await fetch((r||tn())+n,{headers:{Authorization:"Bearer "+ha()}}),c=await s.json().catch(()=>({ok:!1,error:"HTTP "+s.status}));if(!c.ok)throw new Error(c.error||"请求失败");return c.data}const R4=n=>Np("/admin/invites",n),j4=n=>Np("/admin/users",n),A4=(n,r)=>uc("/admin/invites/generate",{count:n},r),M4=(n,r,s)=>uc("/admin/invites/create",{code:n,remark:r},s),D4=(n,r,s)=>uc("/admin/invites/update",{id:n,...r},s),U4=(n,r)=>uc("/admin/invites/delete",{id:n},r),k4=Object.freeze(Object.defineProperty({__proto__:null,AuthError:bd,adminCreateInvite:M4,adminDeleteInvite:U4,adminGenerateInvites:A4,adminListInvites:R4,adminListUsers:j4,adminUpdateInvite:D4,appInfo:r4,attachmentAdd:xd,attachmentDelete:_p,attachmentList:Ep,attachmentRead:nr,attachmentThumb:Tp,bandDelete:C4,bandUpsert:N4,clearToken:Xd,courseDelete:T4,courseUpsert:_4,deleteDimension:m4,deleteTaxonomy:d4,deleteType:o4,footprintDelete:y4,footprintGet:Fd,footprintList:bp,footprintUpsert:xp,getServerUrl:tn,getToken:ha,gradesOverview:x4,listDimensions:Jd,listTaxonomy:pp,listTypes:ic,metricDelete:b4,metricList:g4,metricUpsert:p4,semesterDelete:E4,semesterUpsert:S4,serverLogin:Kd,serverMe:yp,serverRegister:Zd,setServerUrl:gp,setToken:Vd,statsOverview:v4,syncStatus:s4,timeline:Sp,upsertDimension:h4,upsertTaxonomy:f4,upsertType:c4,viewDelete:O4,viewList:z4,viewUpsert:w4},Symbol.toStringTag,{value:"Module"}));function Cp(n){var r,s,c="";if(typeof n=="string"||typeof n=="number")c+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(r=0;r<f;r++)n[r]&&(s=Cp(n[r]))&&(c&&(c+=" "),c+=s)}else for(s in n)n[s]&&(c&&(c+=" "),c+=s);return c}function zp(){for(var n,r,s=0,c="",f=arguments.length;s<f;s++)(n=arguments[s])&&(r=Cp(n))&&(c&&(c+=" "),c+=r);return c}const eg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,tg=zp,H4=(n,r)=>s=>{var c;if((r==null?void 0:r.variants)==null)return tg(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:f,defaultVariants:h}=r,d=Object.keys(f).map(g=>{const x=s==null?void 0:s[g],p=h==null?void 0:h[g];if(x===null)return null;const C=eg(x)||eg(p);return f[g][C]}),v=s&&Object.entries(s).reduce((g,x)=>{let[p,C]=x;return C===void 0||(g[p]=C),g},{}),b=r==null||(c=r.compoundVariants)===null||c===void 0?void 0:c.reduce((g,x)=>{let{class:p,className:C,...L}=x;return Object.entries(L).every(K=>{let[B,U]=K;return Array.isArray(U)?U.includes({...h,...v}[B]):{...h,...v}[B]===U})?[...g,p,C]:g},[]);return tg(n,d,b,s==null?void 0:s.class,s==null?void 0:s.className)},q4=(n,r)=>{const s=new Array(n.length+r.length);for(let c=0;c<n.length;c++)s[c]=n[c];for(let c=0;c<r.length;c++)s[n.length+c]=r[c];return s},L4=(n,r)=>({classGroupId:n,validator:r}),wp=(n=new Map,r=null,s)=>({nextPart:n,validators:r,classGroupId:s}),Is="-",lg=[],B4="arbitrary..",Q4=n=>{const r=Y4(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return G4(d);const v=d.split(Is),b=v[0]===""&&v.length>1?1:0;return Op(v,b,r)},getConflictingClassGroupIds:(d,v)=>{if(v){const b=c[d],g=s[d];return b?g?q4(g,b):b:g||lg}return s[d]||lg}}},Op=(n,r,s)=>{if(n.length-r===0)return s.classGroupId;const f=n[r],h=s.nextPart.get(f);if(h){const g=Op(n,r+1,h);if(g)return g}const d=s.validators;if(d===null)return;const v=r===0?n.join(Is):n.slice(r).join(Is),b=d.length;for(let g=0;g<b;g++){const x=d[g];if(x.validator(v))return x.classGroupId}},G4=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),s=r.indexOf(":"),c=r.slice(0,s);return c?B4+c:void 0})(),Y4=n=>{const{theme:r,classGroups:s}=n;return V4(s,r)},V4=(n,r)=>{const s=wp();for(const c in n){const f=n[c];$d(f,s,c,r)}return s},$d=(n,r,s,c)=>{const f=n.length;for(let h=0;h<f;h++){const d=n[h];X4(d,r,s,c)}},X4=(n,r,s,c)=>{if(typeof n=="string"){K4(n,r,s);return}if(typeof n=="function"){Z4(n,r,s,c);return}J4(n,r,s,c)},K4=(n,r,s)=>{const c=n===""?r:Rp(r,n);c.classGroupId=s},Z4=(n,r,s,c)=>{if(F4(n)){$d(n(c),r,s,c);return}r.validators===null&&(r.validators=[]),r.validators.push(L4(s,n))},J4=(n,r,s,c)=>{const f=Object.entries(n),h=f.length;for(let d=0;d<h;d++){const[v,b]=f[d];$d(b,Rp(r,v),s,c)}},Rp=(n,r)=>{let s=n;const c=r.split(Is),f=c.length;for(let h=0;h<f;h++){const d=c[h];let v=s.nextPart.get(d);v||(v=wp(),s.nextPart.set(d,v)),s=v}return s},F4=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,$4=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,s=Object.create(null),c=Object.create(null);const f=(h,d)=>{s[h]=d,r++,r>n&&(r=0,c=s,s=Object.create(null))};return{get(h){let d=s[h];if(d!==void 0)return d;if((d=c[h])!==void 0)return f(h,d),d},set(h,d){h in s?s[h]=d:f(h,d)}}},Sd="!",ag=":",W4=[],ng=(n,r,s,c,f)=>({modifiers:n,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:c,isExternal:f}),P4=n=>{const{prefix:r,experimentalParseClassName:s}=n;let c=f=>{const h=[];let d=0,v=0,b=0,g;const x=f.length;for(let B=0;B<x;B++){const U=f[B];if(d===0&&v===0){if(U===ag){h.push(f.slice(b,B)),b=B+1;continue}if(U==="/"){g=B;continue}}U==="["?d++:U==="]"?d--:U==="("?v++:U===")"&&v--}const p=h.length===0?f:f.slice(b);let C=p,L=!1;p.endsWith(Sd)?(C=p.slice(0,-1),L=!0):p.startsWith(Sd)&&(C=p.slice(1),L=!0);const K=g&&g>b?g-b:void 0;return ng(h,L,C,K)};if(r){const f=r+ag,h=c;c=d=>d.startsWith(f)?h(d.slice(f.length)):ng(W4,!1,d,void 0,!0)}if(s){const f=c;c=h=>s({className:h,parseClassName:f})}return c},I4=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((s,c)=>{r.set(s,1e6+c)}),s=>{const c=[];let f=[];for(let h=0;h<s.length;h++){const d=s[h],v=d[0]==="[",b=r.has(d);v||b?(f.length>0&&(f.sort(),c.push(...f),f=[]),c.push(d)):f.push(d)}return f.length>0&&(f.sort(),c.push(...f)),c}},e_=n=>({cache:$4(n.cacheSize),parseClassName:P4(n),sortModifiers:I4(n),postfixLookupClassGroupIds:t_(n),...Q4(n)}),t_=n=>{const r=Object.create(null),s=n.postfixLookupClassGroups;if(s)for(let c=0;c<s.length;c++)r[s[c]]=!0;return r},l_=/\s+/,a_=(n,r)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:f,sortModifiers:h,postfixLookupClassGroupIds:d}=r,v=[],b=n.trim().split(l_);let g="";for(let x=b.length-1;x>=0;x-=1){const p=b[x],{isExternal:C,modifiers:L,hasImportantModifier:K,baseClassName:B,maybePostfixModifierPosition:U}=s(p);if(C){g=p+(g.length>0?" "+g:g);continue}let k=!!U,Y;if(k){const V=B.substring(0,U);Y=c(V);const D=Y&&d[Y]?c(B):void 0;D&&D!==Y&&(Y=D,k=!1)}else Y=c(B);if(!Y){if(!k){g=p+(g.length>0?" "+g:g);continue}if(Y=c(B),!Y){g=p+(g.length>0?" "+g:g);continue}k=!1}const Z=L.length===0?"":L.length===1?L[0]:h(L).join(":"),J=K?Z+Sd:Z,X=J+Y;if(v.indexOf(X)>-1)continue;v.push(X);const ce=f(Y,k);for(let V=0;V<ce.length;++V){const D=ce[V];v.push(J+D)}g=p+(g.length>0?" "+g:g)}return g},n_=(...n)=>{let r=0,s,c,f="";for(;r<n.length;)(s=n[r++])&&(c=jp(s))&&(f&&(f+=" "),f+=c);return f},jp=n=>{if(typeof n=="string")return n;let r,s="";for(let c=0;c<n.length;c++)n[c]&&(r=jp(n[c]))&&(s&&(s+=" "),s+=r);return s},i_=(n,...r)=>{let s,c,f,h;const d=b=>{const g=r.reduce((x,p)=>p(x),n());return s=e_(g),c=s.cache.get,f=s.cache.set,h=v,v(b)},v=b=>{const g=c(b);if(g)return g;const x=a_(b,s);return f(b,x),x};return h=d,(...b)=>h(n_(...b))},u_=[],ct=n=>{const r=s=>s[n]||u_;return r.isThemeGetter=!0,r.themeKey=n,r},Ap=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,r_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,s_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,o_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,f_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,d_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xa=n=>r_.test(n),Ne=n=>!!n&&!Number.isNaN(Number(n)),Gl=n=>!!n&&Number.isInteger(Number(n)),ed=n=>n.endsWith("%")&&Ne(n.slice(0,-1)),sa=n=>s_.test(n),Dp=()=>!0,h_=n=>c_.test(n)&&!o_.test(n),Wd=()=>!1,m_=n=>f_.test(n),y_=n=>d_.test(n),v_=n=>!ne(n)&&!ie(n),g_=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),p_=n=>ln(n,Hp,Wd),ne=n=>Ap.test(n),zn=n=>ln(n,qp,h_),ig=n=>ln(n,C_,Ne),b_=n=>ln(n,Bp,Dp),x_=n=>ln(n,Lp,Wd),ug=n=>ln(n,Up,Wd),S_=n=>ln(n,kp,y_),Ks=n=>ln(n,Qp,m_),ie=n=>Mp.test(n),er=n=>Yn(n,qp),E_=n=>Yn(n,Lp),rg=n=>Yn(n,Up),__=n=>Yn(n,Hp),T_=n=>Yn(n,kp),Zs=n=>Yn(n,Qp,!0),N_=n=>Yn(n,Bp,!0),ln=(n,r,s)=>{const c=Ap.exec(n);return c?c[1]?r(c[1]):s(c[2]):!1},Yn=(n,r,s=!1)=>{const c=Mp.exec(n);return c?c[1]?r(c[1]):s:!1},Up=n=>n==="position"||n==="percentage",kp=n=>n==="image"||n==="url",Hp=n=>n==="length"||n==="size"||n==="bg-size",qp=n=>n==="length",C_=n=>n==="number",Lp=n=>n==="family-name",Bp=n=>n==="number"||n==="weight",Qp=n=>n==="shadow",z_=()=>{const n=ct("color"),r=ct("font"),s=ct("text"),c=ct("font-weight"),f=ct("tracking"),h=ct("leading"),d=ct("breakpoint"),v=ct("container"),b=ct("spacing"),g=ct("radius"),x=ct("shadow"),p=ct("inset-shadow"),C=ct("text-shadow"),L=ct("drop-shadow"),K=ct("blur"),B=ct("perspective"),U=ct("aspect"),k=ct("ease"),Y=ct("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...J(),ie,ne],ce=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],D=()=>[ie,ne,b],ae=()=>[Xa,"full","auto",...D()],ge=()=>[Gl,"none","subgrid",ie,ne],$=()=>["auto",{span:["full",Gl,ie,ne]},Gl,ie,ne],ye=()=>[Gl,"auto",ie,ne],_e=()=>["auto","min","max","fr",ie,ne],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...D()],P=()=>[Xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],de=()=>[v,Xa,"screen","full","dvw","lvw","svw","min","max","fit",...D()],He=()=>[Xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],F=()=>[n,ie,ne],Dt=()=>[...J(),rg,ug,{position:[ie,ne]}],ll=()=>["no-repeat",{repeat:["","x","y","space","round"]}],wl=()=>["auto","cover","contain",__,p_,{size:[ie,ne]}],N=()=>[ed,er,zn],Q=()=>["","none","full",g,ie,ne],te=()=>["",Ne,er,zn],se=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Ne,ed,rg,ug],Me=()=>["","none",K,ie,ne],ue=()=>["none",Ne,ie,ne],me=()=>["none",Ne,ie,ne],Gt=()=>[Ne,ie,ne],ya=()=>[Xa,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sa],breakpoint:[sa],color:[Dp],container:[sa],"drop-shadow":[sa],ease:["in","out","in-out"],font:[v_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sa],shadow:[sa],spacing:["px",Ne],text:[sa],"text-shadow":[sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xa,ne,ie,U]}],container:["container"],"container-type":[{"@container":["","normal","size",ie,ne]}],"container-named":[g_],columns:[{columns:[Ne,"auto",ne,ie,v]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Gl,"auto",ie,ne]}],basis:[{basis:[Xa,"full","auto",v,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,Xa,"auto","initial","none",ne]}],grow:[{grow:["",Ne,ie,ne]}],shrink:[{shrink:["",Ne,ie,ne]}],order:[{order:[Gl,"first","last","none",ie,ne]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_e()}],"auto-rows":[{"auto-rows":_e()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...He()]}],"min-block-size":[{"min-block":["auto",...He()]}],"max-block-size":[{"max-block":["none",...He()]}],w:[{w:[v,"screen",...P()]}],"min-w":[{"min-w":[v,"screen","none",...P()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[d]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh","none",...P()]}],"font-size":[{text:["base",s,er,zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,N_,b_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ed,ne]}],"font-family":[{font:[E_,x_,r]}],"font-features":[{"font-features":[ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[f,ie,ne]}],"line-clamp":[{"line-clamp":[Ne,"none",ie,ig]}],leading:[{leading:["none",h,...D()]}],"list-image":[{"list-image":["none",ie,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",ie,zn]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ne,"auto",ie,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"tab-size":[{tab:[Gl,ie,ne]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Dt()}],"bg-repeat":[{bg:ll()}],"bg-size":[{bg:wl()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gl,ie,ne],radial:["",ie,ne],conic:["",Gl,ie,ne]},T_,S_]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,ie,ne]}],"outline-w":[{outline:["",Ne,er,zn]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","inner","none",x,Zs,Ks]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",p,Zs,Ks]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ne,zn]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",C,Zs,Ks]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ne,ie,ne]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ie,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":J()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Dt()}],"mask-repeat":[{mask:ll()}],"mask-size":[{mask:wl()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ne]}],filter:[{filter:["","none",ie,ne]}],blur:[{blur:Me()}],brightness:[{brightness:[Ne,ie,ne]}],contrast:[{contrast:[Ne,ie,ne]}],"drop-shadow":[{"drop-shadow":["","none",L,Zs,Ks]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ne,ie,ne]}],"hue-rotate":[{"hue-rotate":[Ne,ie,ne]}],invert:[{invert:["",Ne,ie,ne]}],saturate:[{saturate:[Ne,ie,ne]}],sepia:[{sepia:["",Ne,ie,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ne]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,ie,ne]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,ie,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,ie,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,ie,ne]}],"backdrop-invert":[{"backdrop-invert":["",Ne,ie,ne]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,ie,ne]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,ie,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,ie,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",ie,ne]}],ease:[{ease:["linear","initial",k,ie,ne]}],delay:[{delay:[Ne,ie,ne]}],animate:[{animate:["none",Y,ie,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,ie,ne]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:Gt()}],"skew-x":[{"skew-x":Gt()}],"skew-y":[{"skew-y":Gt()}],transform:[{transform:[ie,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ya()}],"translate-x":[{"translate-x":ya()}],"translate-y":[{"translate-y":ya()}],"translate-z":[{"translate-z":ya()}],"translate-none":["translate-none"],zoom:[{zoom:[Gl,ie,ne]}],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,ne]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ne,er,zn,ig]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},w_=i_(z_);function yl(...n){return w_(zp(n))}const O_=H4("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-colors select-none disabled:pointer-events-none disabled:opacity-45",{variants:{variant:{primary:"bg-brand text-white hover:bg-brand-hover shadow-card",secondary:"bg-surface text-ink-1 border border-line hover:bg-surface-3 hover:border-line-strong",ghost:"text-ink-2 hover:bg-surface-3 hover:text-ink-1",subtle:"bg-brand-subtle text-brand-text hover:brightness-[0.97]",danger:"bg-danger text-white hover:brightness-110","danger-ghost":"text-danger hover:bg-danger-subtle"},size:{sm:"h-7 px-2.5 text-[12px]",md:"h-8 px-3 text-[13px]",lg:"h-9 px-4 text-sm",icon:"h-8 w-8 p-0","icon-sm":"h-7 w-7 p-0"}},defaultVariants:{variant:"secondary",size:"md"}}),Qt=_.forwardRef(function({className:r,variant:s,size:c,...f},h){return m.jsx("button",{ref:h,className:yl(O_({variant:s,size:c}),r),...f})}),Gp="w-full rounded-md border border-line bg-surface px-2.5 text-[13px] text-ink-1 placeholder:text-ink-3 transition-colors hover:border-line-strong focus:border-brand focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed",rt=_.forwardRef(function({className:r,...s},c){return m.jsx("input",{ref:c,className:yl(Gp,"h-8",r),...s})}),Ed=_.forwardRef(function({className:r,...s},c){return m.jsx("textarea",{ref:c,className:yl(Gp,"py-2 min-h-[72px] resize-y leading-relaxed",r),...s})});function Ue({label:n,required:r,hint:s,className:c,children:f}){return m.jsxs("div",{className:yl("flex flex-col gap-1.5",c),children:[m.jsxs("label",{className:"text-[12px] font-medium text-ink-2",children:[n,r&&m.jsx("span",{className:"text-danger ml-0.5",children:"*"}),s&&m.jsx("span",{className:"text-ink-3 font-normal ml-2",children:s})]}),f]})}const hl=_.forwardRef(function({className:r,options:s,children:c,...f},h){return m.jsxs("div",{className:yl("relative",r?r.split(" ").filter(d=>/^w-|^min-w|^flex-/.test(d)).join(" "):""),children:[m.jsx("select",{ref:h,className:yl("w-full h-8 appearance-none rounded-md border border-line bg-surface pl-2.5 pr-7 text-[13px] text-ink-1","transition-colors hover:border-line-strong focus:border-brand focus:outline-none disabled:opacity-50",r),...f,children:s?s.map(d=>m.jsx("option",{value:d.value,children:d.label},d.value)):c}),m.jsx(G3,{size:14,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-ink-3"})]})});function Pi({className:n,color:r,...s}){return m.jsx("span",{className:yl("inline-flex items-center gap-1 rounded-sm border px-1.5 py-px text-[11px] leading-[18px] font-medium whitespace-nowrap",n),style:r?{color:r,borderColor:r+"44",backgroundColor:r+"14"}:void 0,...s})}function R_({className:n,...r}){return m.jsx("span",{className:yl("inline-flex items-center gap-1 rounded-sm border border-line bg-surface-2 px-1.5 py-px text-[11px] leading-[18px] font-medium text-ink-2 whitespace-nowrap",n),...r})}function Pd({open:n,onClose:r,title:s,width:c=560,children:f,footer:h}){return _.useEffect(()=>{if(!n)return;const d=v=>{v.key==="Escape"&&r()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[n,r]),n?BS.createPortal(m.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center overflow-y-auto p-6 pt-[8vh]",children:[m.jsx("div",{className:"fixed inset-0 bg-black/45",onClick:r}),m.jsxs("div",{className:"relative w-full rounded-lg border border-line bg-surface shadow-pop",style:{maxWidth:c},role:"dialog",children:[m.jsxs("div",{className:"flex h-12 items-center justify-between border-b border-line px-4",children:[m.jsx("div",{className:"text-sm font-semibold text-ink-1",children:s}),m.jsx(Qt,{variant:"ghost",size:"icon-sm",onClick:r,"aria-label":"关闭",children:m.jsx(mp,{size:15})})]}),m.jsx("div",{className:"px-4 py-4 max-h-[64vh] overflow-y-auto",children:f}),h&&m.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-line px-4 h-14",children:h})]})]}),document.body):null}function j_({icon:n,title:r,description:s,action:c}){return m.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 py-16 text-center",children:[m.jsx("div",{className:"text-ink-3",children:n??m.jsx(oE,{size:36,strokeWidth:1.5})}),m.jsx("div",{className:"text-[13px] font-medium text-ink-2",children:r}),s&&m.jsx("div",{className:"max-w-[360px] text-[12px] text-ink-3",children:s}),c&&m.jsx("div",{className:"mt-2",children:c})]})}const Yp=_.createContext(()=>{});function Id(){return _.useContext(Yp)}const A_={success:m.jsx(K3,{size:15,className:"text-success"}),error:m.jsx(V3,{size:15,className:"text-danger"}),info:m.jsx(dE,{size:15,className:"text-brand"})};function M_({children:n}){const[r,s]=_.useState([]),c=_.useRef(0),f=_.useCallback((h,d)=>{const v=++c.current;s(b=>[...b,{id:v,kind:h,text:d}]),setTimeout(()=>s(b=>b.filter(g=>g.id!==v)),3200)},[]);return m.jsxs(Yp.Provider,{value:f,children:[n,m.jsx("div",{className:"pointer-events-none fixed bottom-5 right-5 z-[60] flex flex-col gap-2",children:r.map(h=>m.jsxs("div",{className:yl("pointer-events-auto flex items-center gap-2 rounded-md border border-line bg-surface px-3 py-2 text-[13px] text-ink-1 shadow-pop","animate-in"),children:[A_[h.kind],h.text]},h.id))})]})}function D_({open:n,title:r,content:s,onCancel:c,onOk:f,loading:h}){return m.jsx(Pd,{open:n,onClose:c,title:r,width:420,footer:m.jsxs(m.Fragment,{children:[m.jsx(Qt,{variant:"secondary",onClick:c,children:"取消"}),m.jsx(Qt,{variant:"danger",onClick:f,disabled:h,children:"确认"})]}),children:m.jsx("p",{className:"text-[13px] text-ink-2",children:s??"该操作不可撤销,请确认。"})})}function U_({size:n=44}){return m.jsxs("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[m.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"6",fill:"var(--brand)"}),m.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:"0.95",transform:"rotate(-18 11 10)"}),m.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:"0.7"})]})}function k_({open:n,onClose:r,defaultUrl:s}){const c=tu(),f=Id(),[h,d]=_.useState("login"),[v,b]=_.useState(s||"https://footpr.linyux.cn"),[g,x]=_.useState(""),[p,C]=_.useState(""),[L,K]=_.useState(""),[B,U]=_.useState(""),[k,Y]=_.useState(!1),Z=async()=>{if(!g.trim()||!p){U("请填写账号与密码");return}let J=v.trim();J&&!J.startsWith("http")&&(J="https://"+J),Y(!0),U("");try{if(h==="login")await Kd(g.trim(),p,J);else{if(!L.trim())throw new Error("请填写邀请码");await Zd(g.trim(),p,L.trim(),J)}c.invalidateQueries(),f("success",h==="login"?"已登录 · 同步已开启":"已注册登录 · 同步已开启"),r(),setTimeout(()=>window.location.reload(),300)}catch(X){U(X.message)}finally{Y(!1)}};return n?m.jsx("div",{className:"fixed inset-0 z-[70] flex items-center justify-center bg-bg/95",children:m.jsxs("div",{className:"w-full max-w-[380px] rounded-lg border border-line bg-surface p-6 shadow-pop",children:[m.jsxs("div",{className:"flex flex-col items-center gap-1.5 pb-5",children:[m.jsx(U_,{}),m.jsx("div",{className:"text-[17px] font-semibold tracking-tight text-ink-1",children:"足迹"}),m.jsx("div",{className:"text-[10px] font-medium tracking-[0.2em] text-ink-3",children:"FOOTPRINTS"})]}),m.jsxs("div",{className:"mb-4 flex rounded-md border border-line bg-surface-2 p-0.5 text-[12.5px]",children:[m.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(h==="login"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{d("login"),U("")},children:"登录"}),m.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(h==="register"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{d("register"),U("")},children:"注册"})]}),m.jsxs("div",{className:"flex flex-col gap-3",children:[m.jsx(Ue,{label:"服务器地址",hint:"与网页版同一账号体系",children:m.jsx(rt,{value:v,onChange:J=>b(J.target.value),placeholder:"https://footpr.linyux.cn"})}),m.jsx(Ue,{label:"用户名",required:!0,children:m.jsx(rt,{value:g,onChange:J=>x(J.target.value),placeholder:"3-32 位字母数字-_"})}),m.jsx(Ue,{label:"密码",required:!0,children:m.jsx(rt,{type:"password",value:p,onChange:J=>C(J.target.value),placeholder:"至少 8 位"})}),h==="register"&&m.jsx(Ue,{label:"邀请码",required:!0,hint:"向管理员索取",children:m.jsx(rt,{value:L,onChange:J=>K(J.target.value),placeholder:"邀请码"})}),B&&m.jsx("div",{className:"text-[12px] text-danger",children:B}),m.jsx(Qt,{variant:"primary",size:"lg",onClick:()=>void Z(),disabled:k,children:k?"请稍候…":h==="login"?"登录并同步":"注册并同步"}),m.jsx("p",{className:"text-center text-[11px] text-ink-3",children:"登录后本机数据将多端同步"})]})]})}):null}const H_=[{section:"工作区",items:[{to:"/timeline",label:"时间线",icon:op},{to:"/records",label:"记录",icon:LE},{to:"/grades",label:"成绩",icon:dp},{to:"/dashboard",label:"统计",icon:B3}]},{section:"配置",items:[{to:"/admin",label:"管理",icon:ZE},{to:"/types",label:"记录类型",icon:YE},{to:"/taxonomy",label:"字典与维度",icon:FE}]}];function q_(){return m.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"lg",x1:"0",y1:"0",x2:"0",y2:"26",children:[m.jsx("stop",{stopColor:"#4359e8"}),m.jsx("stop",{offset:"1",stopColor:"#2a3ab8"})]})}),m.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"7",fill:"url(#lg)"}),m.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:".95",transform:"rotate(-18 11 10)"}),m.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:".7"})]})}function L_({open:n,onClose:r}){const s=tu(),f=ml({queryKey:["me",ha()??""],refetchOnMount:"always",queryFn:()=>yp(),enabled:!!ha(),retry:0}).data??null,[h,d]=_.useState(!1);return m.jsxs("aside",{className:yl("flex w-[236px] shrink-0 flex-col border-r border-line bg-surface","max-lg:fixed max-lg:inset-y-0 max-lg:left-0 max-lg:z-40 max-lg:transition-transform",n?"max-lg:translate-x-0":"max-lg:-translate-x-full"),children:[m.jsx(k_,{open:h,onClose:()=>d(!1),defaultUrl:"https://footpr.linyux.cn"}),m.jsxs("div",{className:"flex h-[60px] items-center gap-3 border-b border-line px-5",children:[m.jsx(q_,{}),m.jsxs("div",{className:"leading-tight",children:[m.jsx("div",{className:"text-[15px] font-bold tracking-tight text-ink-1",children:"足迹"}),m.jsx("div",{className:"text-[9px] font-medium tracking-[0.24em] text-ink-3",children:"FOOTPRINTS"})]})]}),m.jsx("nav",{className:"flex-1 overflow-y-auto px-2.5 py-4",children:H_.map(v=>m.jsxs("div",{className:"mb-5",children:[m.jsx("div",{className:"px-2.5 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-ink-3",children:v.section}),m.jsx("div",{className:"flex flex-col gap-0.5",children:v.items.map(b=>m.jsxs($g,{to:b.to,onClick:r,className:({isActive:g})=>yl("relative flex h-[34px] items-center gap-3 rounded-lg px-3 text-[13px] font-medium transition-all duration-150",g?"bg-brand-subtle text-brand-text nav-active":"text-ink-2 hover:bg-surface-3 hover:text-ink-1"),children:[m.jsx(b.icon,{size:16,strokeWidth:1.8}),b.label]},b.to))})]},v.section))}),m.jsx("div",{className:"border-t border-line px-3 py-3",children:ha()&&f?m.jsxs("div",{className:"rounded-lg bg-surface-2 px-3 py-2.5",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-brand text-[10px] font-bold text-white",children:f.username.charAt(0).toUpperCase()}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"truncate text-[12px] font-semibold text-ink-1",title:f.username,children:f.username}),f.is_admin&&m.jsx("div",{className:"text-[10px] text-brand-text",children:"管理员"})]})]}),m.jsx("button",{className:"shrink-0 rounded p-1 text-ink-3 transition-colors hover:bg-surface-3 hover:text-danger",title:"退出登录",onClick:()=>{Xd(),s.clear(),window.location.reload()},children:m.jsx(pE,{size:13})})]}),m.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[10px] text-success",children:[m.jsx(J3,{size:10}),"云端同步已开启"]})]}):m.jsxs("button",{className:"flex w-full items-center justify-center gap-2 rounded-lg border border-brand/30 bg-brand-subtle px-3 py-2 text-[13px] font-medium text-brand-text transition-all hover:shadow-brand",onClick:()=>d(!0),children:[m.jsx(vE,{size:14}),"登录我的档案"]})})]})}const B_={"/timeline":{title:"时间线",sub:"按学年与月份回顾全部足迹"},"/records":{title:"记录",sub:"全部足迹的检索与管理"},"/grades":{title:"成绩",sub:"学年学科成绩 · 梯度与总览"},"/dashboard":{title:"统计",sub:"量化个人成长收获"},"/types":{title:"记录类型",sub:"类型与字段模板管理"},"/taxonomy":{title:"字典与维度",sub:"级别、角色与成长维度"}};function Q_({onMenu:n}){const{pathname:r}=vl(),s=lc(),[c,f]=_.useState(""),[h,d]=_.useState(document.documentElement.classList.contains("dark")),v=B_[r]??{title:""},b=()=>{const g=!h;d(g),document.documentElement.classList.toggle("dark",g),localStorage.setItem("fp-theme",g?"dark":"light"),window.dispatchEvent(new CustomEvent("fp-theme-change"))};return m.jsxs("header",{className:"flex h-14 shrink-0 items-center gap-4 border-b border-line bg-surface px-5",children:[m.jsx(Qt,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:n,"aria-label":"打开导航",children:m.jsx(xE,{size:17})}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("h1",{className:"truncate text-[15px] font-semibold leading-tight text-ink-1",children:v.title}),v.sub&&m.jsx("p",{className:"truncate text-[11px] leading-tight text-ink-3",children:v.sub})]}),m.jsxs("div",{className:"relative ml-auto w-[280px]",children:[m.jsx(QE,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-ink-3"}),m.jsx(rt,{className:"pl-8",placeholder:"搜索标题、内容、结果、标签",value:c,onChange:g=>f(g.target.value),onKeyDown:g=>{g.key==="Enter"&&c.trim()&&s("/records?q="+encodeURIComponent(c.trim()))}})]}),m.jsx(Qt,{variant:"ghost",size:"icon",onClick:b,"aria-label":"切换主题",children:h?m.jsx(IE,{size:15}):m.jsx(TE,{size:15})}),m.jsxs(Qt,{variant:"primary",onClick:()=>s("/records?new=1"),children:[m.jsx(UE,{size:14}),"新建记录"]})]})}function G_(){return m.jsxs("svg",{width:"44",height:"44",viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[m.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"6",fill:"var(--brand)"}),m.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:"0.95",transform:"rotate(-18 11 10)"}),m.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:"0.7"})]})}function Y_(){const[n,r]=_.useState("login"),[s,c]=_.useState(""),[f,h]=_.useState(""),[d,v]=_.useState(""),[b,g]=_.useState(""),[x,p]=_.useState(!1),C="__TAURI_INTERNALS__"in window,[L,K]=_.useState(tn()),B=k=>{K(k),gp(k)},U=async()=>{if(!s.trim()||!f){g("请填写账号与密码");return}p(!0),g("");try{if(n==="login")await Kd(s.trim(),f,L);else{if(!d.trim())throw new Error("请填写邀请码");await Zd(s.trim(),f,d.trim(),L)}setTimeout(()=>window.location.reload(),200)}catch(k){g(k.message)}finally{p(!1)}};return m.jsx("div",{className:"flex h-full items-center justify-center bg-bg px-4",children:m.jsxs("div",{className:"w-full max-w-[380px] rounded-lg border border-line bg-surface p-6 shadow-pop",children:[m.jsxs("div",{className:"flex flex-col items-center gap-1.5 pb-5",children:[m.jsx(G_,{}),m.jsx("div",{className:"text-[18px] font-semibold tracking-tight text-ink-1",children:"足迹"}),m.jsx("div",{className:"text-[11px] font-medium tracking-[0.2em] text-ink-3",children:"FOOTPRINTS"})]}),m.jsxs("div",{className:"mb-4 flex rounded-md border border-line bg-surface-2 p-0.5 text-[12.5px]",children:[m.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(n==="login"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{r("login"),g("")},children:"登录"}),m.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(n==="register"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{r("register"),g("")},children:"注册"})]}),m.jsxs("div",{className:"flex flex-col gap-3",children:[C&&m.jsx(Ue,{label:"服务器地址",hint:"默认即可",children:m.jsx(rt,{value:L,onChange:k=>B(k.target.value),placeholder:"https://footpr.linyux.cn"})}),m.jsx(Ue,{label:"用户名",required:!0,children:m.jsx(rt,{value:s,onChange:k=>c(k.target.value),placeholder:"3-32 位字母数字-_",onKeyDown:k=>{k.key==="Enter"&&U()}})}),m.jsx(Ue,{label:"密码",required:!0,children:m.jsx(rt,{type:"password",value:f,onChange:k=>h(k.target.value),placeholder:"至少 8 位",onKeyDown:k=>{k.key==="Enter"&&U()}})}),n==="register"&&m.jsx(Ue,{label:"邀请码",required:!0,hint:"向管理员索取",children:m.jsx(rt,{value:d,onChange:k=>v(k.target.value),placeholder:"邀请码",onKeyDown:k=>{k.key==="Enter"&&U()}})}),b&&m.jsx("div",{className:"text-[12px] text-danger",children:b}),m.jsx(Qt,{variant:"primary",size:"lg",onClick:()=>void U(),disabled:x,children:x?"请稍候…":n==="login"?"进入我的档案":"创建我的档案"}),m.jsx("button",{type:"button",className:"mt-1 flex w-full items-center justify-center gap-1.5 rounded-md border border-dashed border-line px-3 py-2 text-[11.5px] text-ink-3 transition-colors hover:border-brand/40 hover:text-brand-text",onClick:()=>{c("demo"),h("demo1234")},children:"演示账号:demo / demo1234(点击填充)"})]})]})})}function V_(){const[n,r]=_.useState(()=>!!ha()),[s,c]=_.useState(!1);return _.useEffect(()=>{const f=()=>r(!1);return window.addEventListener("fp-auth-required",f),()=>window.removeEventListener("fp-auth-required",f)},[]),n?m.jsx(M_,{children:m.jsxs("div",{className:"flex h-full",children:[s&&m.jsx("div",{className:"fixed inset-0 z-30 bg-black/45 lg:hidden",onClick:()=>c(!1),"aria-hidden":!0}),m.jsx(L_,{open:s,onClose:()=>c(!1)}),m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[m.jsx(Q_,{onMenu:()=>c(!0)}),m.jsx("main",{className:"min-h-0 flex-1 overflow-y-auto",children:m.jsx(nS,{})})]})]})}):m.jsx(Y_,{})}const sg={draft:{label:"草稿",color:"var(--text-3)",bg:"var(--surface-3)"},ongoing:{label:"进行中",color:"var(--brand-text)",bg:"var(--brand-subtle)"},submitted:{label:"已提交待果",color:"var(--warning)",bg:"var(--warning-subtle)"},finished:{label:"已完结",color:"var(--success)",bg:"var(--success-subtle)"}};function Vp({status:n}){const r=sg[n]??sg.draft;return m.jsx("span",{className:"inline-flex items-center rounded-sm px-1.5 py-px text-[11px] leading-[18px] font-medium whitespace-nowrap",style:{color:r.color,backgroundColor:r.bg},children:r.label})}const X_={国际级:"#7c3aed",国家级:"#dc2626",省市级:"#ea580c",区县级:"#2563eb",校级:"#16a34a",院级:"#0891b2"};function Xp({level:n}){return n?m.jsx(Pi,{color:X_[n]??"var(--text-3)",children:n}):null}const K_={特等奖:"#b45309",一等奖:"#b45309",二等奖:"#ea580c",三等奖:"#2563eb",优秀奖:"#64748b"};function Kp({grade:n}){return n?m.jsx(Pi,{color:K_[n]??"var(--text-3)",children:n}):null}function Zp({role:n}){return n?m.jsx(R_,{children:n}):null}function Jp(){return m.jsx(Pi,{color:"var(--danger)",children:"负面"})}const y5=[{name:"tag",label:"通用"},{name:"graduation-cap",label:"学业"},{name:"trophy",label:"竞赛"},{name:"flask-conical",label:"科研"},{name:"briefcase",label:"实习"},{name:"network",label:"学生工作"},{name:"heart-handshake",label:"志愿"},{name:"palette",label:"文体"},{name:"award",label:"荣誉"},{name:"file-badge",label:"证书"},{name:"star",label:"收藏"},{name:"shield-alert",label:"惩处"},{name:"book-open",label:"阅读"},{name:"code-2",label:"技术"},{name:"languages",label:"语言"},{name:"mic-2",label:"文艺"},{name:"pen-line",label:"发表"},{name:"rocket",label:"项目"},{name:"users",label:"团队"},{name:"building-2",label:"组织"},{name:"dumbbell",label:"体育"}],Z_={tag:hp,"graduation-cap":dp,trophy:a4,"flask-conical":aE,briefcase:U3,network:CE,"heart-handshake":uE,palette:wE,award:j3,"file-badge":eE,star:WE,"shield-alert":XE,"book-open":M3,"code-2":$3,languages:mE,"mic-2":EE,"pen-line":jE,rocket:HE,users:i4,"building-2":H3,dumbbell:P3};function J_({name:n,color:r,size:s=14,className:c}){const f=Z_[n]??hp;return m.jsx(f,{size:s,color:r,className:c,strokeWidth:2})}function F_({value:n,onChange:r,placeholder:s}){const[c,f]=_.useState(""),h=()=>{const v=c.trim();v&&!n.includes(v)&&r([...n,v]),f("")},d=v=>{v.key==="Enter"||v.key===","?(v.preventDefault(),h()):v.key==="Backspace"&&!c&&n.length&&r(n.slice(0,-1))};return m.jsxs("div",{className:yl("flex min-h-8 w-full flex-wrap items-center gap-1 rounded-md border border-line bg-surface px-1.5 py-1","transition-colors hover:border-line-strong focus-within:border-brand"),children:[n.map(v=>m.jsxs("span",{className:"inline-flex items-center gap-0.5 rounded-sm bg-surface-3 px-1.5 text-[12px] text-ink-2",children:[v,m.jsx("button",{type:"button",className:"text-ink-3 hover:text-ink-1",onClick:()=>r(n.filter(b=>b!==v)),children:m.jsx(mp,{size:11})})]},v)),m.jsx("input",{className:"min-w-[80px] flex-1 border-0 bg-transparent text-[13px] outline-none placeholder:text-ink-3",value:c,placeholder:n.length?"":s??"输入后回车添加",onChange:v=>f(v.target.value),onKeyDown:d,onBlur:h})]})}function cg(n,r){return n.options?Array.isArray(n.options)?n.options.map(s=>({value:s,label:s})):r[n.options.taxonomy]??[]:[]}function $_({fields:n,value:r,onChange:s,taxonomies:c}){if(!n.length)return null;const f=(d,v)=>s({...r,[d]:v}),h=d=>{const v=r[d.key],b=d.required&&(v==null||v==="")?"该项必填":"",g=x=>d.unit?m.jsxs("div",{className:"flex items-center gap-2",children:[x,m.jsx("span",{className:"text-[12px] text-ink-3 shrink-0",children:d.unit})]}):x;switch(d.widget){case"textarea":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(Ed,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);case"number":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:g(m.jsx(rt,{type:"number",step:"any",className:"num",value:v==null?"":String(v),onChange:x=>f(d.key,x.target.value===""?void 0:Number(x.target.value))}))},d.key);case"date":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(rt,{type:"date",value:String(v??""),onChange:x=>f(d.key,x.target.value)})},d.key);case"select":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(hl,{value:String(v??""),onChange:x=>f(d.key,x.target.value||void 0),options:[{value:"",label:"请选择"},...cg(d,c)]})},d.key);case"multiselect":{const x=cg(d,c),p=Array.isArray(v)?v:[];return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[x.map(C=>{const L=p.includes(C.value);return m.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(L?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>f(d.key,L?p.filter(K=>K!==C.value):[...p,C.value]),children:C.label},C.value)}),!x.length&&m.jsx("span",{className:"text-[12px] text-ink-3",children:"未配置选项"})]})},d.key)}case"link":return m.jsx(Ue,{label:d.label,required:d.required,hint:b||"关联记录功能规划中,暂以文本记录",children:m.jsx(rt,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);default:return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(rt,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key)}};return m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:n.map(d=>m.jsx("div",{className:d.widget==="textarea"?"col-span-2":"",children:h(d)},d.key))})}function og(n){return n?n.slice(0,16).replace("T"," "):""}function W_(n,r){const s=n?n.slice(0,10):"",c=r?r.slice(0,10):"";return s&&c?s+" ~ "+c:s?s+(r===""?"":" 起"):c?"至 "+c:""}function _d(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/1024/1024).toFixed(1)+" MB"}function Fp(n,r,s=480,c=.82){return new Promise((f,h)=>{const d=new Image;d.onload=()=>{try{const v=Math.min(1,s/Math.max(d.naturalWidth,d.naturalHeight)),b=Math.max(1,Math.round(d.naturalWidth*v)),g=Math.max(1,Math.round(d.naturalHeight*v)),x=document.createElement("canvas");x.width=b,x.height=g;const p=x.getContext("2d");if(!p)return h(new Error("canvas 不可用"));p.drawImage(d,0,0,b,g),f(x.toDataURL("image/webp",c))}catch(v){h(v instanceof Error?v:new Error(String(v)))}},d.onerror=()=>h(new Error("图片解码失败")),d.src="data:"+r+";base64,"+n})}function fg({items:n,pending:r,onPick:s,onDeleteSaved:c,onDeletePending:f,onOpenSaved:h,uploading:d}){const v=_.useRef(null),b=n.length+r.length;return m.jsxs("div",{className:"rounded-md border border-line bg-surface-2 p-3",children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink-2",children:[m.jsx(Gd,{size:13}),"附件(",b,")"]}),m.jsx(Qt,{size:"sm",variant:"secondary",disabled:d,onClick:()=>{var g;return(g=v.current)==null?void 0:g.click()},children:d?"上传中…":"添加文件"}),m.jsx("input",{ref:v,type:"file",multiple:!0,className:"hidden",onChange:g=>{var x;(x=g.target.files)!=null&&x.length&&s(g.target.files),g.target.value=""}})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[n.map(g=>m.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[m.jsx(fp,{size:13,className:"text-ink-3 shrink-0"}),m.jsx("span",{className:"truncate "+(h?"cursor-pointer text-ink-1 hover:text-brand-text hover:underline":"text-ink-1"),onClick:()=>h==null?void 0:h(g),title:g.file_name,children:g.file_name}),m.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:_d(g.size)}),m.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>c(g.id),"aria-label":"删除附件",children:m.jsx(pd,{size:13})})]},"s"+g.id)),r.map((g,x)=>{var p;return m.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[(p=g.mime)!=null&&p.startsWith("image/")&&g.preview?m.jsx("img",{src:g.preview,alt:g.file_name,className:"size-7 shrink-0 rounded object-cover"}):m.jsx(sE,{size:13,className:"text-ink-3 shrink-0"}),m.jsx("span",{className:"truncate text-ink-1",children:g.file_name}),m.jsx("span",{className:"text-[11px] text-brand-text",children:"待上传"}),m.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:_d(g.size)}),m.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>f(x),"aria-label":"移除",children:m.jsx(pd,{size:13})})]},"p"+x)}),!b&&m.jsx("div",{className:"py-1 text-[12px] text-ink-3",children:"证书扫描件、照片、文档等佐证材料"})]})]})}async function dg(n){var h,d;const r=await new Promise((v,b)=>{const g=new FileReader;g.onload=()=>v(String(g.result||"")),g.onerror=()=>b(new Error("读取文件失败")),g.readAsDataURL(n)}),s=r.indexOf(","),c=s>=0?r.slice(s+1):r;let f;if((h=n.type)!=null&&h.startsWith("image/")&&!n.type.includes("gif"))try{f=(await Fp(c,n.type)).split(",")[1]||void 0}catch{f=void 0}return{file_name:n.name,mime:n.type||void 0,size:n.size,data_b64:c,thumb_b64:f,preview:(d=n.type)!=null&&d.startsWith("image/")?URL.createObjectURL(n):void 0}}function $p(n,r,s){if(!s)return;const c=Uint8Array.from(atob(s),d=>d.charCodeAt(0)),f=new Blob([c],{type:r||"application/octet-stream"}),h=URL.createObjectURL(f);if(r!=null&&r.startsWith("image/")||r==="application/pdf")window.open(h,"_blank");else{const d=document.createElement("a");d.href=h,d.download=n,d.click()}setTimeout(()=>URL.revokeObjectURL(h),6e4)}const hg={type_id:null,title:"",organizer:"",start_date:"",end_date:"",status:"draft",role:"",level:"",award_grade:"",rank:"",polarity:"positive",weight:"3",description:"",result:"",tags:[],dimension_ids:[],group_id:"",parent_id:"",extras:{}},P_=["特等奖","一等奖","二等奖","三等奖","优秀奖","无"],mg=80*1024*1024,I_=[{value:"draft",label:"草稿"},{value:"ongoing",label:"进行中"},{value:"submitted",label:"已提交待果"},{value:"finished",label:"已完结"}];function e5({open:n,onClose:r,footprintId:s,onSaved:c}){var ae,ge,$,ye,_e;const f=tu(),h=Id(),[d,v]=_.useState(hg),[b,g]=_.useState([]),[x,p]=_.useState(!1),[C,L]=_.useState(""),K=ml({queryKey:["types"],queryFn:ic,enabled:n}),B=ml({queryKey:["taxonomy-all"],queryFn:()=>pp(),enabled:n}),U=ml({queryKey:["dimensions"],queryFn:Jd,enabled:n}),k=ml({queryKey:["footprint",s],queryFn:()=>Fd(s),enabled:n&&!!s}),Y=ml({queryKey:["attachments",s],queryFn:()=>Ep(s),enabled:n&&!!s}),Z=_.useMemo(()=>{var M;return(M=K.data)==null?void 0:M.items.find(ee=>ee.id===d.type_id)},[K.data,d.type_id]),J=ml({queryKey:["parent-candidates",d.type_id],queryFn:()=>bp({types:d.type_id?[d.type_id]:void 0,page_size:200,sort:"date_desc"}),enabled:n&&!!d.type_id});_.useEffect(()=>{if(n)if(L(""),g([]),s&&k.data){const M=k.data.item;v({type_id:M.type_id,title:M.title,organizer:M.organizer??"",start_date:(M.start_date??"").slice(0,10),end_date:(M.end_date??"").slice(0,10),status:M.status,role:M.role??"",level:M.level??"",award_grade:M.award_grade??"",rank:M.rank!=null?String(M.rank):"",polarity:M.polarity,weight:String(M.weight??3),description:M.description??"",result:M.result??"",tags:M.tags??[],dimension_ids:M.dimensions??[],group_id:M.group_id??"",parent_id:M.parent_id!=null?String(M.parent_id):"",extras:M.extras??{}})}else v(hg)},[n,s,k.data]);const X=_.useMemo(()=>{var ee,G;const M={};for(const P of((ee=B.data)==null?void 0:ee.items)??[])(M[G=P.kind]??(M[G]=[])).push({value:P.value,label:P.value});return M},[B.data]),ce=gd({mutationFn:async()=>{if(!d.type_id)throw new Error("请选择记录类型");if(!d.title.trim())throw new Error("请填写标题");const M={};for(const P of(Z==null?void 0:Z.form_template)??[])if(P.metric&&P.widget==="number"){const de=d.extras[P.key];typeof de=="number"&&!Number.isNaN(de)&&(M[P.metric]=de)}const ee={id:s??void 0,type_id:d.type_id,title:d.title.trim(),organizer:d.organizer||null,start_date:d.start_date||null,end_date:d.end_date||null,status:d.status,role:d.role||null,level:d.level||null,award_grade:d.award_grade&&d.award_grade!=="无"?d.award_grade:null,rank:d.rank?Number(d.rank):null,polarity:d.polarity,description:d.description,result:d.result,tags:d.tags,dimension_ids:d.dimension_ids,group_id:d.group_id||null,parent_id:d.parent_id?Number(d.parent_id):null,weight:Number(d.weight)||3,extras:d.extras,metrics:M},G=await xp(ee);for(const P of b)await xd({owner_id:G.id,file_name:P.file_name,mime:P.mime,size:P.size,data_b64:P.data_b64,thumb_b64:P.thumb_b64});return G.id},onSuccess:M=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),f.invalidateQueries({queryKey:["footprint"]}),f.invalidateQueries({queryKey:["attachments",M]}),f.invalidateQueries({queryKey:["types"]}),h("success",s?"记录已更新":"记录已创建"),c==null||c(M),r()},onError:M=>L(M.message)}),V=(M,ee)=>v(G=>({...G,[M]:ee})),D=gd({mutationFn:M=>_p(M),onSuccess:()=>void f.invalidateQueries({queryKey:["attachments",s]})});return m.jsx(Pd,{open:n,onClose:r,width:760,title:s?"编辑记录":"新建记录",footer:m.jsxs(m.Fragment,{children:[C&&m.jsx("span",{className:"mr-auto text-[12px] text-danger",children:C}),m.jsx(Qt,{variant:"secondary",onClick:r,children:"取消"}),m.jsx(Qt,{variant:"primary",onClick:()=>ce.mutate(),disabled:ce.isPending,children:ce.isPending?"保存中…":"保存"})]}),children:m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[200px_1fr] gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"类型",required:!0,children:m.jsx(hl,{value:d.type_id!=null?String(d.type_id):"",onChange:M=>V("type_id",M.target.value?Number(M.target.value):null),options:[{value:"",label:"请选择"},...(((ae=K.data)==null?void 0:ae.items)??[]).map(M=>({value:String(M.id),label:M.name}))]})}),m.jsx(Ue,{label:"标题",required:!0,children:m.jsx(rt,{value:d.title,onChange:M=>V("title",M.target.value),placeholder:"事项名称,如:2025 全国大学生数学建模竞赛"})})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"组织方 / 所在组织",children:m.jsx(rt,{value:d.organizer,onChange:M=>V("organizer",M.target.value),placeholder:"如:中国工业与应用数学学会"})}),m.jsx(Ue,{label:"开始日期",children:m.jsx(rt,{type:"date",value:d.start_date,onChange:M=>V("start_date",M.target.value)})}),m.jsx(Ue,{label:"结束日期",children:m.jsx(rt,{type:"date",value:d.end_date,onChange:M=>V("end_date",M.target.value)})})]}),m.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"角色",children:m.jsx(hl,{value:d.role,onChange:M=>V("role",M.target.value),options:[{value:"",label:"未设置"},...X.role??[]]})}),m.jsx(Ue,{label:"级别",children:m.jsx(hl,{value:d.level,onChange:M=>V("level",M.target.value),options:[{value:"",label:"未设置"},...X.level??[]]})}),m.jsx(Ue,{label:"状态",children:m.jsx(hl,{value:d.status,onChange:M=>V("status",M.target.value),options:I_})}),m.jsx(Ue,{label:"重要度",children:m.jsx(hl,{value:d.weight,onChange:M=>V("weight",M.target.value),options:[1,2,3,4,5].map(M=>({value:String(M),label:String(M)}))})})]}),m.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"奖等",children:m.jsx(hl,{value:d.award_grade,onChange:M=>V("award_grade",M.target.value),options:[{value:"",label:"未设置"},...P_.map(M=>({value:M,label:M}))]})}),m.jsx(Ue,{label:"名次",children:m.jsx(rt,{type:"number",className:"num",value:d.rank,onChange:M=>V("rank",M.target.value),placeholder:"如 2"})}),m.jsx(Ue,{label:"性质",children:m.jsx(hl,{value:d.polarity,onChange:M=>V("polarity",M.target.value),options:[{value:"positive",label:"正面"},{value:"negative",label:"负面"}]})}),m.jsx(Ue,{label:"上级记录",hint:"晋升链",children:m.jsx(hl,{value:d.parent_id,onChange:M=>V("parent_id",M.target.value),options:[{value:"",label:"无"},...(((ge=J.data)==null?void 0:ge.items)??[]).filter(M=>M.id!==s).map(M=>({value:String(M.id),label:M.title.slice(0,24)}))]})})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"工作内容 / 描述",children:m.jsx(Ed,{value:d.description,onChange:M=>V("description",M.target.value),placeholder:"具体做了什么、承担什么分工"})}),m.jsx(Ue,{label:"结果 / 产出",children:m.jsx(Ed,{value:d.result,onChange:M=>V("result",M.target.value),placeholder:"获奖等级、成果、最终产品等"})})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"标签",children:m.jsx(F_,{value:d.tags,onChange:M=>V("tags",M)})}),m.jsx(Ue,{label:"成长维度",children:m.jsxs("div",{className:"flex flex-wrap gap-1.5 min-h-8 items-center",children:[((($=U.data)==null?void 0:$.items)??[]).map(M=>{const ee=d.dimension_ids.includes(M.id);return m.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(ee?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>V("dimension_ids",ee?d.dimension_ids.filter(G=>G!==M.id):[...d.dimension_ids,M.id]),children:M.name},M.id)}),!((ye=U.data)!=null&&ye.items.length)&&m.jsx("span",{className:"text-[12px] text-ink-3",children:"尚未配置维度(配置页可添加)"})]})})]}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3",children:m.jsx(Ue,{label:"事件组 ID",hint:"同一场事件的多条记录共享",children:m.jsx(rt,{value:d.group_id,onChange:M=>V("group_id",M.target.value),placeholder:"如 g2025001(可选)"})})}),Z&&Z.form_template.length>0&&m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsxs("div",{className:"mb-3 text-[12px] font-semibold text-ink-2",children:["类型字段 · ",Z.name]}),m.jsx($_,{fields:Z.form_template,value:d.extras,onChange:M=>V("extras",M),taxonomies:X})]}),s?m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsx(fg,{items:((_e=Y.data)==null?void 0:_e.items)??[],pending:b,uploading:x,onPick:async M=>{if(s){p(!0);try{let ee=0;for(const G of Array.from(M)){if(G.size>mg){h("error","「"+G.name+"」超过 80MB,已跳过");continue}const P=await dg(G);await xd({owner_id:s,file_name:P.file_name,mime:P.mime,size:P.size,data_b64:P.data_b64,thumb_b64:P.thumb_b64}),ee++}ee>0&&(f.invalidateQueries({queryKey:["attachments",s]}),h("success","已上传 "+ee+" 个附件"))}catch(ee){h("error",ee.message)}finally{p(!1)}}},onDeleteSaved:M=>D.mutate(M),onDeletePending:()=>{},onOpenSaved:async M=>{try{const ee=await nr(M.id);$p(ee.file_name,ee.mime??void 0,ee.data_b64)}catch(ee){h("error",ee.message)}}}),m.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"点击文件名可预览(支持图片 / PDF,其余下载)· 单个文件不超过 80MB"})]}):m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsx(fg,{items:[],pending:b,onPick:async M=>{const ee=[];for(const G of Array.from(M)){if(G.size>mg){h("error","「"+G.name+"」超过 80MB,已跳过");continue}ee.push(await dg(G))}g(G=>[...G,...ee])},onDeleteSaved:()=>{},onDeletePending:M=>g(ee=>ee.filter((G,P)=>P!==M))}),m.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"保存记录时将一并上传 · 单个文件不超过 80MB"})]})]})})}const tr=new Map,yg=new Map;function t5({open:n,onClose:r,footprintId:s,onEdit:c}){var V,D,ae,ge;const f=tu(),h=Id(),d=ml({queryKey:["footprint",s],queryFn:()=>Fd(s),enabled:n&&!!s}),v=ml({queryKey:["types"],queryFn:ic,enabled:n}),b=ml({queryKey:["dimensions"],queryFn:Jd,enabled:n}),g=(V=d.data)==null?void 0:V.item,x=(D=v.data)==null?void 0:D.items.find($=>$.id===(g==null?void 0:g.type_id)),p=((g==null?void 0:g.dimensions)??[]).map($=>{var ye,_e;return(_e=(ye=b.data)==null?void 0:ye.items.find(M=>M.id===$))==null?void 0:_e.name}).filter(Boolean),[C,L]=_.useState(!1),K=gd({mutationFn:()=>Gn(()=>Promise.resolve().then(()=>k4),[]).then($=>$.footprintDelete(s)),onSuccess:()=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),h("success","记录已删除"),L(!1),r()}}),B=async $=>{try{let ye=yg.get($.id);ye||(ye=(await nr($.id)).data_b64,($.size??0)<=2*1024*1024&&yg.set($.id,ye)),$p($.file_name,$.mime??void 0,ye)}catch(ye){h("error",ye.message)}},[U,k]=_.useState({}),Y=(g==null?void 0:g.attachments)??[],Z=Y.filter($=>{var ye;return(ye=$.mime)==null?void 0:ye.startsWith("image/")}),J=Y.filter($=>{var ye;return!((ye=$.mime)!=null&&ye.startsWith("image/"))}),X=Y.map($=>$.id).join(",");_.useEffect(()=>{if(!n||!X)return;let $=!1;const ye=Y.filter(_e=>{var M;return(M=_e.mime)==null?void 0:M.startsWith("image/")});return(async()=>{for(const _e of ye){if($)return;if(tr.has(_e.id)){k(M=>({...M,[_e.id]:tr.get(_e.id)}));continue}try{if(_e.thumb_rel_path){const M=await Tp(_e.id);if($)return;const ee="data:"+(M.mime||"image/webp")+";base64,"+M.data_b64;tr.set(_e.id,ee),k(G=>({...G,[_e.id]:ee}))}else{const M=await nr(_e.id);if($)return;const ee=await Fp(M.data_b64,M.mime||"image/png");tr.set(_e.id,ee),k(G=>({...G,[_e.id]:ee}))}}catch{try{const M=await nr(_e.id);if($)return;const ee="data:"+(M.mime||"image/png")+";base64,"+M.data_b64;tr.set(_e.id,ee),k(G=>({...G,[_e.id]:ee}))}catch{}}}})(),()=>{$=!0}},[n,s,X]);const ce=[];if(g&&x)for(const $ of x.form_template??[]){const ye=(g.extras??{})[$.key];if(ye==null||ye==="")continue;const _e=Array.isArray(ye)?ye.join("、"):String(ye);ce.push({label:$.label,value:$.unit?_e+" "+$.unit:_e})}return m.jsxs(Pd,{open:n,onClose:r,width:680,title:g?g.title:"记录详情",footer:g?m.jsxs(m.Fragment,{children:[m.jsxs(Qt,{variant:"danger-ghost",className:"mr-auto",onClick:()=>L(!0),disabled:K.isPending,children:[m.jsx(pd,{size:13})," 删除"]}),m.jsx(Qt,{variant:"secondary",onClick:r,children:"关闭"}),m.jsxs(Qt,{variant:"primary",onClick:()=>s&&(c==null?void 0:c(s)),children:[m.jsx(ME,{size:13})," 编辑"]})]}):null,children:[d.isLoading||!g?m.jsx("div",{className:"py-10 text-center text-[13px] text-ink-3",children:"加载中…"}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.jsx(Pi,{color:g.type_color,children:g.type_name}),m.jsx(Xp,{level:g.level}),m.jsx(Kp,{grade:g.award_grade}),m.jsx(Zp,{role:g.role}),m.jsx(Vp,{status:g.status}),g.polarity==="negative"&&m.jsx(Jp,{}),g.rank!=null&&m.jsxs(Pi,{color:"var(--text-3)",children:["第 ",g.rank," 名"]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 rounded-md border border-line bg-surface-2 px-3 py-2.5 text-[12.5px]",children:[m.jsx(wn,{label:"时间",value:W_(g.start_date,g.end_date)||"—"}),m.jsx(wn,{label:"组织方",value:g.organizer||"—"}),g.group_id&&m.jsx(wn,{label:"事件组",value:g.group_id}),g.parent_id!=null&&m.jsx(wn,{label:"上级记录",value:"#"+g.parent_id}),m.jsx(wn,{label:"创建于",value:og(g.created_at)}),m.jsx(wn,{label:"更新于",value:og(g.updated_at)})]}),g.description&&m.jsx(Ui,{title:"工作内容 / 描述",children:m.jsx("p",{className:"whitespace-pre-wrap text-[13px] leading-relaxed text-ink-2",children:g.description})}),g.result&&m.jsx(Ui,{title:"结果 / 产出",children:m.jsx("p",{className:"whitespace-pre-wrap rounded-md bg-success-subtle px-3 py-2 text-[13px] leading-relaxed text-success",children:g.result})}),ce.length>0&&m.jsx(Ui,{title:x?"类型字段 · "+x.name:"类型字段",children:m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-2",children:ce.map($=>m.jsx(wn,{label:$.label,value:$.value},$.label))})}),g.metrics&&Object.keys(g.metrics).length>0&&m.jsx(Ui,{title:"量化指标",children:m.jsx("div",{className:"flex flex-wrap gap-1.5",children:Object.entries(g.metrics).map(([$,ye])=>m.jsxs("span",{className:"num rounded-sm border border-line bg-surface-2 px-2 py-0.5 text-[12px] text-ink-2",children:[$,": ",m.jsx("span",{className:"font-medium text-ink-1",children:ye})]},$))})}),((((ae=g.tags)==null?void 0:ae.length)??0)>0||p.length>0)&&m.jsx(Ui,{title:"标签与维度",children:m.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[g.tags.map($=>m.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-0.5 text-[12px] text-ink-2",children:$},$)),p.map($=>m.jsx("span",{className:"rounded-sm border border-brand/30 bg-brand-subtle px-1.5 py-0.5 text-[12px] text-brand-text",children:$},$))]})}),m.jsx(Ui,{title:"附件("+(((ge=g.attachments)==null?void 0:ge.length)??0)+")",children:Y.length?m.jsxs("div",{className:"flex flex-col gap-2.5",children:[Z.length>0&&m.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-4",children:Z.map($=>m.jsxs("button",{className:"group relative aspect-square overflow-hidden rounded-md border border-line bg-surface-2",onClick:()=>B($),title:"点击查看原图:"+$.file_name,children:[U[$.id]?m.jsx("img",{src:U[$.id],alt:$.file_name,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-[1.04]"}):m.jsx("div",{className:"h-full w-full animate-pulse bg-surface-3"}),m.jsx("span",{className:"absolute inset-x-0 bottom-0 truncate bg-gradient-to-t from-black/60 to-transparent px-1.5 pb-1 pt-3 text-[10px] text-white opacity-0 transition-opacity group-hover:opacity-100",children:$.file_name})]},$.id))}),J.length>0&&m.jsx("div",{className:"flex flex-col gap-1",children:J.map($=>m.jsxs("button",{className:"flex items-center gap-2 rounded-md border border-line bg-surface px-2.5 py-2 text-left text-[12.5px] transition-colors hover:border-line-strong",onClick:()=>B($),children:[m.jsx(fp,{size:14,className:"shrink-0 text-ink-3"}),m.jsx("span",{className:"truncate text-ink-1",children:$.file_name}),m.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:_d($.size)}),m.jsx(Gd,{size:12,className:"shrink-0 text-ink-3"})]},$.id))}),m.jsx("div",{className:"text-[11px] text-ink-3",children:"点击图片查看原图(原始比例)"})]}):m.jsx("p",{className:"text-[12px] text-ink-3",children:"暂无佐证附件"})})]}),m.jsx(D_,{open:C,title:"删除记录",content:g?"确定删除「"+g.title+"」吗?该操作不可撤销。":"",onCancel:()=>L(!1),onOk:()=>K.mutate(),loading:K.isPending})]})}function wn({label:n,value:r}){return m.jsxs("div",{className:"flex min-w-0 gap-2",children:[m.jsx("span",{className:"shrink-0 text-ink-3",children:n}),m.jsx("span",{className:"min-w-0 truncate font-medium text-ink-1",title:r,children:r})]})}function Ui({title:n,children:r}){return m.jsxs("div",{children:[m.jsx("div",{className:"mb-1.5 text-[12px] font-semibold text-ink-2",children:n}),r]})}function l5(){var X,ce,V;const[n,r]=_.useState(""),[s,c]=_.useState(""),[f,h]=_.useState(""),[d,v]=_.useState(""),[b,g]=_.useState(null),[x,p]=_.useState(!1),[C,L]=_.useState(null),[K,B]=_.useState(!1),U=ml({queryKey:["types"],queryFn:ic}),k=_.useMemo(()=>({q:n||void 0,types:s?[Number(s)]:void 0,year:f?Number(f):void 0,polarity:d||void 0,sort:"date_desc",page_size:2e3}),[n,s,f,d]),Y=ml({queryKey:["timeline",k],queryFn:()=>Sp(k)}),Z=_.useMemo(()=>{var ae;const D=new Set;for(const ge of((ae=Y.data)==null?void 0:ae.groups)??[])D.add(ge.year);return Array.from(D).sort((ge,$)=>$-ge)},[Y.data]),J=D=>{L(D),B(!0)};return m.jsxs("div",{className:"mx-auto max-w-[880px] px-6 py-5",children:[m.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[m.jsx(rt,{className:"w-[220px]",placeholder:"搜索足迹…",value:n,onChange:D=>r(D.target.value)}),m.jsx(hl,{className:"w-[130px]",value:s,onChange:D=>c(D.target.value),options:[{value:"",label:"全部类型"},...(((X=U.data)==null?void 0:X.items)??[]).map(D=>({value:String(D.id),label:D.name}))]}),m.jsx(hl,{className:"w-[120px]",value:f,onChange:D=>h(D.target.value),options:[{value:"",label:"全部年份"},...Z.map(D=>({value:String(D),label:D+" 年"}))]}),m.jsx(hl,{className:"w-[110px]",value:d,onChange:D=>v(D.target.value),options:[{value:"",label:"全部性质"},{value:"positive",label:"正面"},{value:"negative",label:"负面"}]}),m.jsxs("span",{className:"num ml-auto text-[12px] text-ink-3",children:["共 ",((ce=Y.data)==null?void 0:ce.total)??0," 条"]})]}),Y.isLoading?m.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"}):(V=Y.data)!=null&&V.groups.length?m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"absolute bottom-0 left-[7px] top-0 w-px bg-line","aria-hidden":!0}),Y.data.groups.map(D=>m.jsxs("section",{className:"mb-2",children:[m.jsxs("div",{className:"sticky top-0 z-10 -mx-6 flex items-center gap-2 bg-bg/90 px-6 py-2 backdrop-blur",children:[m.jsx("span",{className:"num text-[16px] font-semibold text-ink-1",children:D.year}),m.jsxs("span",{className:"text-[12px] text-ink-3",children:[D.count," 条记录"]})]}),D.months.map(ae=>m.jsxs("div",{className:"mb-3",children:[m.jsxs("div",{className:"mb-2 pl-6 text-[12px] font-medium text-ink-3",children:[ae.month," 月"]}),m.jsx("div",{className:"flex flex-col gap-2",children:ae.items.map(ge=>m.jsx(a5,{row:ge,onClick:()=>J(ge.id)},ge.id))})]},ae.month))]},D.year))]}):m.jsx(j_,{icon:m.jsx(op,{size:36,strokeWidth:1.5}),title:"暂无足迹",description:"点击右上角「新建记录」,开始记录你的第一段足迹。"}),m.jsx(t5,{open:K,onClose:()=>B(!1),footprintId:C,onEdit:D=>{B(!1),g(D),p(!0)}}),m.jsx(e5,{open:x,onClose:()=>p(!1),footprintId:b})]})}function a5({row:n,onClick:r}){const s=(n.start_date??n.created_at).slice(0,10);return m.jsxs("button",{onClick:r,className:"group relative w-full rounded-lg border border-line bg-surface px-4 py-3 text-left shadow-card transition-all hover:border-line-strong hover:shadow-pop",children:[m.jsx("span",{className:"absolute left-0 top-3 bottom-3 w-[3px] rounded-full",style:{backgroundColor:n.type_color},"aria-hidden":!0}),m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsxs("div",{className:"num w-[52px] shrink-0 pt-0.5 text-[12px] leading-relaxed text-ink-3",children:[s.slice(5,7),"-",s.slice(8,10)]}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.jsx("span",{className:"text-[13.5px] font-medium text-ink-1 group-hover:text-brand-text",children:n.title}),m.jsx(Pi,{color:n.type_color,children:n.type_name}),m.jsx(Xp,{level:n.level}),m.jsx(Kp,{grade:n.award_grade}),m.jsx(Zp,{role:n.role}),m.jsx(Vp,{status:n.status}),n.polarity==="negative"&&m.jsx(Jp,{})]}),n.organizer&&m.jsx("div",{className:"mt-0.5 text-[12px] text-ink-3",children:n.organizer}),n.description&&m.jsx("p",{className:"mt-1 line-clamp-2 text-[12.5px] leading-relaxed text-ink-2",children:n.description}),(n.result||n.tags.length>0||n.attachment_count>0)&&m.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11.5px] text-ink-3",children:[n.result&&m.jsxs("span",{className:"text-success",children:["结果:",n.result]}),n.tags.map(c=>m.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-px",children:c},c)),n.attachment_count>0&&m.jsxs("span",{className:"inline-flex items-center gap-1",children:[m.jsx(Gd,{size:11}),n.attachment_count]})]})]}),m.jsx("div",{className:"shrink-0 pt-1 text-ink-3",children:m.jsx(J_,{name:n.type_icon,color:n.type_color,size:16})})]})]})}const n5=_.lazy(()=>Gn(()=>import("./RecordsPage-BN4jf1vQ.js"),[]).then(n=>({default:n.RecordsPage}))),i5=_.lazy(()=>Gn(()=>import("./DashboardPage-Dv6k8rrZ.js"),__vite__mapDeps([0,1,2,3])).then(n=>({default:n.DashboardPage}))),u5=_.lazy(()=>Gn(()=>import("./GradesPage-CWm5gsW9.js"),__vite__mapDeps([4,1,2,3])).then(n=>({default:n.GradesPage}))),r5=_.lazy(()=>Gn(()=>import("./TypesPage-DtmU1Vij.js"),__vite__mapDeps([5,1])).then(n=>({default:n.TypesPage}))),s5=_.lazy(()=>Gn(()=>import("./TaxonomyPage--zwAHhtt.js"),__vite__mapDeps([6,1])).then(n=>({default:n.TaxonomyPage}))),c5=_.lazy(()=>Gn(()=>import("./AdminPage-CrUVnwRu.js"),__vite__mapDeps([7,1])).then(n=>({default:n.AdminPage})));function ki(){return m.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"})}function o5(){return m.jsx(uS,{children:m.jsxs(_l,{element:m.jsx(V_,{}),children:[m.jsx(_l,{path:"/",element:m.jsx(G0,{to:"/timeline",replace:!0})}),m.jsx(_l,{path:"/timeline",element:m.jsx(l5,{})}),m.jsx(_l,{path:"/records",element:m.jsx(_.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(n5,{})})}),m.jsx(_l,{path:"/grades",element:m.jsx(_.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(u5,{})})}),m.jsx(_l,{path:"/dashboard",element:m.jsx(_.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(i5,{})})}),m.jsx(_l,{path:"/types",element:m.jsx(_.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(r5,{})})}),m.jsx(_l,{path:"/taxonomy",element:m.jsx(_.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(s5,{})})}),m.jsx(_l,{path:"/admin",element:m.jsx(_.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(c5,{})})}),m.jsx(_l,{path:"*",element:m.jsx(G0,{to:"/timeline",replace:!0})})]})})}const f5=new h3({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0,staleTime:0,gcTime:0}}}),vg=localStorage.getItem("fp-theme");(vg==="dark"||!vg&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&document.documentElement.classList.add("dark");"serviceWorker"in navigator&&!("__TAURI_INTERNALS__"in window)&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});a2.createRoot(document.getElementById("root")).render(m.jsx($x.StrictMode,{children:m.jsx(QS,{client:f5,children:m.jsx(jS,{children:m.jsx(o5,{})})})}));export{_d as $,Pi as A,Qt as B,D_ as C,Pd as D,j_ as E,Ue as F,Kp as G,_4 as H,rt as I,x4 as J,J_ as K,Xp as L,c4 as M,y5 as N,o4 as O,UE as P,f4 as Q,Zp as R,hl as S,pd as T,d4 as U,h4 as V,m4 as W,Jd as X,tn as Y,ha as Z,mp as _,yl as a,A4 as a0,M4 as a1,D4 as a2,U4 as a3,Gn as a4,j4 as a5,R4 as a6,k4 as a7,Id as b,be as c,h5 as d,ml as e,gd as f,W_ as g,Vp as h,og as i,m as j,ME as k,t5 as l,e5 as m,y4 as n,ic as o,pp as p,bp as q,_ as r,v4 as s,dp as t,tu as u,N4 as v,C4 as w,T4 as x,S4 as y,E4 as z};
|