323 lines
414 KiB
JavaScript
323 lines
414 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-CQnxSqVN.js","assets/card-TX22Y0l9.js","assets/useChart-CjbsPbyQ.js","assets/echarts-BIWefrIc.js","assets/GradesPage-DzUjrUOh.js","assets/TypesPage-C7Z51VT_.js","assets/TaxonomyPage-Ddc1f8hF.js","assets/AdminPage-fQn8miqZ.js"])))=>i.map(i=>d[i]);
|
||
var Cp=n=>{throw TypeError(n)};var Kf=(n,r,s)=>r.has(n)||Cp("Cannot "+s);var T=(n,r,s)=>(Kf(n,r,"read from private field"),s?s.call(n):r.get(n)),he=(n,r,s)=>r.has(n)?Cp("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,s),P=(n,r,s,c)=>(Kf(n,r,"write to private field"),c?c.call(n,s):r.set(n,s),s),Se=(n,r,s)=>(Kf(n,r,"access private method"),s);var Gs=(n,r,s,c)=>({set _(f){P(n,r,f,s)},get _(){return T(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)}})();var j5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ag(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zf={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 wp;function Ix(){if(wp)return Wu;wp=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 jp;function e2(){return jp||(jp=1,Zf.exports=Ix()),Zf.exports}var m=e2(),Jf={exports:{}},ge={};/**
|
||
* @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 zp;function t2(){if(zp)return ge;zp=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"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),_=Symbol.for("react.view_transition"),k=Symbol.iterator;function K(C){return C===null||typeof C!="object"?null:(C=k&&C[k]||C["@@iterator"],typeof C=="function"?C:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,H={};function Q(C,G,W){this.props=C,this.context=G,this.refs=H,this.updater=W||q}Q.prototype.isReactComponent={},Q.prototype.setState=function(C,G){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,G,"setState")},Q.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function Z(){}Z.prototype=Q.prototype;function J(C,G,W){this.props=C,this.context=G,this.refs=H,this.updater=W||q}var Y=J.prototype=new Z;Y.constructor=J,D(Y,Q.prototype),Y.isPureReactComponent=!0;var de=Array.isArray;function F(){}var U={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function le(C,G,W){var oe=W.ref;return{$$typeof:n,type:C,key:G,ref:oe!==void 0?oe:null,props:W}}function Ve(C,G){return le(C.type,G,C.props)}function Fe(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function ie(C){var G={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(W){return G[W]})}var Te=/\/+/g;function re(C,G){return typeof C=="object"&&C!==null&&C.key!=null?ie(""+C.key):G.toString(36)}function V(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(F,F):(C.status="pending",C.then(function(G){C.status==="pending"&&(C.status="fulfilled",C.value=G)},function(G){C.status==="pending"&&(C.status="rejected",C.reason=G)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ee(C,G,W,oe,we){var me=typeof C;(me==="undefined"||me==="boolean")&&(C=null);var Ae=!1;if(C===null)Ae=!0;else switch(me){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(C.$$typeof){case n:case r:Ae=!0;break;case x:return Ae=C._init,ee(Ae(C._payload),G,W,oe,we)}}if(Ae)return we=we(C),Ae=oe===""?"."+re(C,0):oe,de(we)?(W="",Ae!=null&&(W=Ae.replace(Te,"$&/")+"/"),ee(we,G,W,"",function(Yt){return Yt})):we!=null&&(Fe(we)&&(we=Ve(we,W+(we.key==null||C&&C.key===we.key?"":(""+we.key).replace(Te,"$&/")+"/")+Ae)),G.push(we)),1;Ae=0;var se=oe===""?".":oe+":";if(de(C))for(var ye=0;ye<C.length;ye++)oe=C[ye],me=se+re(oe,ye),Ae+=ee(oe,G,W,me,we);else if(ye=K(C),typeof ye=="function")for(C=ye.call(C),ye=0;!(oe=C.next()).done;)oe=oe.value,me=se+re(oe,ye++),Ae+=ee(oe,G,W,me,we);else if(me==="object"){if(typeof C.then=="function")return ee(V(C),G,W,oe,we);throw G=String(C),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function R(C,G,W){if(C==null)return C;var oe=[],we=0;return ee(C,oe,"","",function(me){return G.call(W,me,we++)}),oe}function ae(C){if(C._status===-1){var G=C._result,W=G();W.then(function(oe){(C._status===0||C._status===-1)&&(C._status=1,C._result=oe,W.status===void 0&&(W.status="fulfilled",W.value=oe))},function(oe){(C._status===0||C._status===-1)&&(C._status=2,C._result=oe,W.status===void 0&&(W.status="rejected",W.reason=oe))}),C._status===-1&&(C._status=0,C._result=W)}if(C._status===1)return C._result.default;throw C._result}var X=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function ke(C){var G=U.T,W={};W.types=G!==null?G.types:null,U.T=W;try{var oe=C(),we=U.S;we!==null&&we(W,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(F,X)}catch(me){X(me)}finally{G!==null&&W.types!==null&&(G.types=W.types),U.T=G}}function Nt(C){var G=U.T;if(G!==null){var W=G.types;W===null?G.types=[C]:W.indexOf(C)===-1&&W.push(C)}else ke(Nt.bind(null,C))}var zl={map:R,forEach:function(C,G,W){R(C,function(){G.apply(this,arguments)},W)},count:function(C){var G=0;return R(C,function(){G++}),G},toArray:function(C){return R(C,function(G){return G})||[]},only:function(C){if(!Fe(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ge.Activity=g,ge.Children=zl,ge.Component=Q,ge.Fragment=s,ge.Profiler=f,ge.PureComponent=J,ge.StrictMode=c,ge.Suspense=b,ge.ViewTransition=_,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,ge.__COMPILER_RUNTIME={__proto__:null,c:function(C){return U.H.useMemoCache(C)}},ge.addTransitionType=Nt,ge.cache=function(C){return function(){return C.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(C,G,W){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var oe=D({},C.props),we=C.key;if(G!=null)for(me in G.key!==void 0&&(we=""+G.key),G)!I.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(oe[me]=G[me]);var me=arguments.length-2;if(me===1)oe.children=W;else if(1<me){for(var Ae=Array(me),se=0;se<me;se++)Ae[se]=arguments[se+2];oe.children=Ae}return le(C.type,we,oe)},ge.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:h,_context:C},C},ge.createElement=function(C,G,W){var oe,we={},me=null;if(G!=null)for(oe in G.key!==void 0&&(me=""+G.key),G)I.call(G,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(we[oe]=G[oe]);var Ae=arguments.length-2;if(Ae===1)we.children=W;else if(1<Ae){for(var se=Array(Ae),ye=0;ye<Ae;ye++)se[ye]=arguments[ye+2];we.children=se}if(C&&C.defaultProps)for(oe in Ae=C.defaultProps,Ae)we[oe]===void 0&&(we[oe]=Ae[oe]);return le(C,me,we)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(C){return{$$typeof:v,render:C}},ge.isValidElement=Fe,ge.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:ae}},ge.memo=function(C,G){return{$$typeof:p,type:C,compare:G===void 0?null:G}},ge.startTransition=ke,ge.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ge.use=function(C){return U.H.use(C)},ge.useActionState=function(C,G,W){return U.H.useActionState(C,G,W)},ge.useCallback=function(C,G){return U.H.useCallback(C,G)},ge.useContext=function(C){return U.H.useContext(C)},ge.useDebugValue=function(){},ge.useDeferredValue=function(C,G){return U.H.useDeferredValue(C,G)},ge.useEffect=function(C,G){return U.H.useEffect(C,G)},ge.useEffectEvent=function(C){return U.H.useEffectEvent(C)},ge.useId=function(){return U.H.useId()},ge.useImperativeHandle=function(C,G,W){return U.H.useImperativeHandle(C,G,W)},ge.useInsertionEffect=function(C,G){return U.H.useInsertionEffect(C,G)},ge.useLayoutEffect=function(C,G){return U.H.useLayoutEffect(C,G)},ge.useMemo=function(C,G){return U.H.useMemo(C,G)},ge.useOptimistic=function(C,G){return U.H.useOptimistic(C,G)},ge.useReducer=function(C,G,W){return U.H.useReducer(C,G,W)},ge.useRef=function(C){return U.H.useRef(C)},ge.useState=function(C){return U.H.useState(C)},ge.useSyncExternalStore=function(C,G,W){return U.H.useSyncExternalStore(C,G,W)},ge.useTransition=function(){return U.H.useTransition()},ge.version="19.3.1",ge}var Op;function zd(){return Op||(Op=1,Jf.exports=t2()),Jf.exports}var E=zd();const l2=Ag(E);var Ff={exports:{}},Iu={},$f={exports:{}},Pf={};/**
|
||
* @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 Rp;function a2(){return Rp||(Rp=1,(function(n){function r(V,ee){var R=V.length;V.push(ee);e:for(;0<R;){var ae=R-1>>>1,X=V[ae];if(0<f(X,ee))V[ae]=ee,V[R]=X,R=ae;else break e}}function s(V){return V.length===0?null:V[0]}function c(V){if(V.length===0)return null;var ee=V[0],R=V.pop();if(R!==ee){V[0]=R;e:for(var ae=0,X=V.length,ke=X>>>1;ae<ke;){var Nt=2*(ae+1)-1,zl=V[Nt],C=Nt+1,G=V[C];if(0>f(zl,R))C<X&&0>f(G,zl)?(V[ae]=G,V[C]=R,ae=C):(V[ae]=zl,V[Nt]=R,ae=Nt);else if(C<X&&0>f(G,R))V[ae]=G,V[C]=R,ae=C;else break e}}return ee}function f(V,ee){var R=V.sortIndex-ee.sortIndex;return R!==0?R:V.id-ee.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=[],p=[],x=1,g=null,_=3,k=!1,K=!1,q=!1,D=!1,H=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function J(V){for(var ee=s(p);ee!==null;){if(ee.callback===null)c(p);else if(ee.startTime<=V)c(p),ee.sortIndex=ee.expirationTime,r(b,ee);else break;ee=s(p)}}function Y(V){if(q=!1,J(V),!K)if(s(b)!==null)K=!0,de||(de=!0,Fe());else{var ee=s(p);ee!==null&&re(Y,ee.startTime-V)}}var de=!1,F=-1,U=5,I=-1;function le(){return D?!0:!(n.unstable_now()-I<U)}function Ve(){if(D=!1,de){var V=n.unstable_now();I=V;var ee=!0;try{e:{K=!1,q&&(q=!1,Q(F),F=-1),k=!0;var R=_;try{t:{for(J(V),g=s(b);g!==null&&!(g.expirationTime>V&&le());){var ae=g.callback;if(typeof ae=="function"){g.callback=null,_=g.priorityLevel;var X=ae(g.expirationTime<=V);if(V=n.unstable_now(),typeof X=="function"){g.callback=X,J(V),ee=!0;break t}g===s(b)&&c(b),J(V)}else c(b);g=s(b)}if(g!==null)ee=!0;else{var ke=s(p);ke!==null&&re(Y,ke.startTime-V),ee=!1}}break e}finally{g=null,_=R,k=!1}ee=void 0}}finally{ee?Fe():de=!1}}}var Fe;if(typeof Z=="function")Fe=function(){Z(Ve)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Te=ie.port2;ie.port1.onmessage=Ve,Fe=function(){Te.postMessage(null)}}else Fe=function(){H(Ve,0)};function re(V,ee){F=H(function(){V(n.unstable_now())},ee)}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(V){V.callback=null},n.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<V?Math.floor(1e3/V):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_next=function(V){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var R=_;_=ee;try{return V()}finally{_=R}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var R=_;_=V;try{return ee()}finally{_=R}},n.unstable_scheduleCallback=function(V,ee,R){var ae=n.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?ae+R:ae):R=ae,V){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=R+X,V={id:x++,callback:ee,priorityLevel:V,startTime:R,expirationTime:X,sortIndex:-1},R>ae?(V.sortIndex=R,r(p,V),s(b)===null&&V===s(p)&&(q?(Q(F),F=-1):q=!0,re(Y,R-ae))):(V.sortIndex=X,r(b,V),K||k||(K=!0,de||(de=!0,Fe()))),V},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(V){var ee=_;return function(){var R=_;_=ee;try{return V.apply(this,arguments)}finally{_=R}}}})(Pf)),Pf}var Ap;function n2(){return Ap||(Ap=1,$f.exports=a2()),$f.exports}var Wf={exports:{}},Tt={};/**
|
||
* @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 Mp;function i2(){if(Mp)return Tt;Mp=1;var n=zd();function r(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+x+"; visit "+g+" 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,g,_){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:k==null?null:k===d?d:""+k,children:x,containerInfo:g,implementation:_}}var b=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Tt.browser=function(x){return{$$typeof:h,_reason:x}},Tt.createPortal=function(x,g){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return v(x,g,null,_)},Tt.flushSync=function(x){var g=b.T,_=c.p;try{if(b.T=null,c.p=2,x)return x()}finally{b.T=g,c.p=_,c.d.f()}},Tt.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,c.d.C(x,g))},Tt.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},Tt.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var _=g.as,k=p(_,g.crossOrigin),K=typeof g.integrity=="string"?g.integrity:void 0,q=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;_==="style"?c.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:k,integrity:K,fetchPriority:q}):_==="script"&&c.d.X(x,{crossOrigin:k,integrity:K,fetchPriority:q,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Tt.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var _=p(g.as,g.crossOrigin);c.d.M(x,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&c.d.M(x)},Tt.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,k=p(_,g.crossOrigin);c.d.L(x,_,{crossOrigin:k,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Tt.preloadModule=function(x,g){if(typeof x=="string")if(g){var _=p(g.as,g.crossOrigin);c.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else c.d.m(x)},Tt.requestFormReset=function(x){c.d.r(x)},Tt.unstable_batchedUpdates=function(x,g){return x(g)},Tt.useFormState=function(x,g,_){return b.H.useFormState(x,g,_)},Tt.useFormStatus=function(){return b.H.useHostTransitionStatus()},Tt.version="19.3.1",Tt}var Dp;function Mg(){if(Dp)return Wf.exports;Dp=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(),Wf.exports=i2(),Wf.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 Up;function u2(){if(Up)return Iu;Up=1;var n=n2(),r=zd(),s=Mg();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 p(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 g(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)&&g(e.child,t,l,a,i,u))return!0;e=e.sibling}return!1}function _(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 k(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=_(e);return l===null||q(t,e,l.child,{foundSelf:!1}),t}function q(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)&&q(e,t,l.child,a))return!0;l=l.sibling}return!1}function D(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 H=null,Q=null;function Z(e,t,l){return e===l?!0:e===t?(H=e,!0):!1}function J(e,t,l){return e===l?(Q=e,!1):e===t?(Q!==null&&(H=e),!0):!1}function Y(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 de(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 F=Object.assign,U=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),le=Symbol.for("react.portal"),Ve=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),Te=Symbol.for("react.consumer"),re=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),ke=Symbol.for("react.activity"),Nt=Symbol.for("react.legacy_hidden"),zl=Symbol.for("react.memo_cache_sentinel"),C=Symbol.for("react.view_transition"),G=Symbol.for("react.recoverable"),W=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function me(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 Ve:return"Fragment";case ie:return"Profiler";case Fe:return"StrictMode";case ee:return"Suspense";case R:return"SuspenseList";case ke:return"Activity";case C:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case le:return"Portal";case re:return e.displayName||"Context";case Te:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var Ae=Array.isArray,se=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Yt={pending:!1,data:null,method:null,action:null},pa=[],Vn=-1;function Ol(e){return{current:e}}function pt(e){0>Vn||(e.current=pa[Vn],pa[Vn]=null,Vn--)}function Ke(e,t){Vn++,pa[Vn]=e.current,e.current=t}var Rl=Ol(null),nu=Ol(null),ga=Ol(null),dr=Ol(null);function hr(e,t){switch(Ke(ga,t),Ke(nu,e),Ke(Rl,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Uv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Uv(t),e=kv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}pt(Rl),Ke(Rl,e)}function Xn(){pt(Rl),pt(nu),pt(ga)}function oc(e){var t=e.memoizedState;t!==null&&(Ai._currentValue=t.memoizedState,Ke(dr,e)),t=Rl.current;var l=kv(t,e.type);t!==l&&(Ke(nu,e),Ke(Rl,l))}function mr(e){nu.current===e&&(pt(Rl),pt(nu)),dr.current===e&&(pt(dr),Ai._currentValue=Yt)}var fc,lh;function ba(e){if(fc===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);fc=t&&t[1]||"",lh=-1<l.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+fc+e+lh}var dc=!1;function hc(e,t){if(!e||dc)return"";dc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch($){var w=$}Reflect.construct(e,[],B)}else{try{B.call()}catch($){w=$}B=!1;try{var A=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),B=!0,new e}finally{B&&(A!==void 0?Object.defineProperty(e.prototype,"props",A):delete e.prototype.props)}}}else{try{throw Error()}catch($){w=$}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch($){if($&&w&&typeof $.stack=="string")return[$.stack,w.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(`
|
||
`),z=y.split(`
|
||
`);for(i=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(a===S.length||i===z.length)for(a=S.length-1,i=z.length-1;1<=a&&0<=i&&S[a]!==z[i];)i--;for(;1<=a&&0<=i;a--,i--)if(S[a]!==z[i]){if(a!==1||i!==1)do if(a--,i--,0>i||S[a]!==z[i]){var M=`
|
||
`+S[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=i);break}}}finally{dc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ba(l):""}function a1(e,t){switch(e.tag){case 26:case 27:case 5:return ba(e.type);case 16:return ba("Lazy");case 13:return e.child!==t&&t!==null?ba("Suspense Fallback"):ba("Suspense");case 19:return ba("SuspenseList");case 0:case 15:return hc(e.type,!1);case 11:return hc(e.type.render,!1);case 1:return hc(e.type,!0);case 31:return ba("Activity");case 30:return ba("ViewTransition");default:return""}}function ah(e){try{var t="",l=null;do t+=a1(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
||
Error generating stack: `+a.message+`
|
||
`+a.stack}}var mc=Object.prototype.hasOwnProperty,yc=n.unstable_scheduleCallback,vc=n.unstable_cancelCallback,n1=n.unstable_shouldYield,i1=n.unstable_requestPaint,Vt=n.unstable_now,u1=n.unstable_getCurrentPriorityLevel,nh=n.unstable_ImmediatePriority,ih=n.unstable_UserBlockingPriority,yr=n.unstable_NormalPriority,r1=n.unstable_LowPriority,uh=n.unstable_IdlePriority,s1=n.log,c1=n.unstable_setDisableYieldValue,iu=null,Xt=null;function xa(e){if(typeof s1=="function"&&c1(e),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(iu,e)}catch{}}var Kt=Math.clz32?Math.clz32:d1,o1=Math.log,f1=Math.LN2;function d1(e){return e>>>=0,e===0?32:31-(o1(e)/f1|0)|0}var vr=256,pr=262144,gr=4194304;function nn(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 br(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=nn(a):(o&=y,o!==0?i=nn(o):l||(l=y&~e,l!==0&&(i=nn(l))))):(y=a&~u,y!==0?i=nn(y):o!==0?i=nn(o):l||(l=a&~e,l!==0&&(i=nn(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 uu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rh(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-Kt(l),i=1<<a;t|=e[a],l&=~i}return t}function h1(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 sh(){var e=gr;return gr<<=1,(gr&62914560)===0&&(gr=4194304),e}function pc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ru(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function m1(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,z=e.hiddenUpdates;for(l=o&~l;0<l;){var M=31-Kt(l),B=1<<M;y[M]=0,S[M]=-1;var w=z[M];if(w!==null)for(z[M]=null,M=0;M<w.length;M++){var A=w[M];A!==null&&(A.lane&=-536870913)}l&=~B}a!==0&&ch(e,a,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function ch(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Kt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function oh(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Kt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function fh(e,t){var l=t&-t;return l=(l&42)!==0?1:gc(l),(l&(e.suspendedLanes|t))!==0?0:l}function gc(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 bc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dh(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:bp(e.type))}function hh(e,t){var l=ye.p;try{return ye.p=e,t()}finally{ye.p=l}}var Fl=Math.random().toString(36).slice(2),gt="__reactFiber$"+Fl,Ht="__reactProps$"+Fl,Kn="__reactContainer$"+Fl,mh="__reactEvents$"+Fl,y1="__reactListeners$"+Fl,v1="__reactHandles$"+Fl,yh="__reactResources$"+Fl,su="__reactMarker$"+Fl,xr="__reactLoad$"+Fl;function Sr(e){delete e[gt],delete e[Ht],delete e[y1],delete e[v1]}function un(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=Iv(e);e!==null;){if(l=e[gt])return l;e=Iv(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 cu(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[yh];return t||(t=e[yh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[su]=!0}function vh(e){e[xr]=void 0}var ph=new Set,gh={};function rn(e,t){Fn(e,t),Fn(e+"Capture",t)}function Fn(e,t){for(gh[e]=t,e=0;e<t.length;e++)ph.add(t[e])}var p1=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]*$"),bh={},xh={};function g1(e){return mc.call(xh,e)?!0:mc.call(bh,e)?!1:p1.test(e)?xh[e]=!0:(bh[e]=!0,!1)}var Ue=!1;function Sh(){var e=Ue;return Ue=!1,e}function Er(e,t,l){if(g1(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 _r(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 $l(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 Zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b1(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 xc(e){if(!e._valueTracker){var t=Eh(e)?"checked":"value";e._valueTracker=b1(e,t,""+e[t])}}function _h(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Eh(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var x1=/[\n"\\]/g;function al(e){return e.replace(x1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Sc(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=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?Ec(e,Zt(e.value)):Ec(e,Zt(t)):l!=null?Ec(e,Zt(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=""+Zt(y):e.removeAttribute("name")}function Th(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)){xc(e);return}l=l!=null?""+Zt(l):"",t=t!=null?""+Zt(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),xc(e)}function Ec(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=""+Zt(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 Nh(e,t,l){if(t!=null&&(t=""+Zt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Zt(l):""}function Ch(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(Ae(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Zt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),xc(e)}function Pn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var S1=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 wh(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||S1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function jh(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]="",Ue=!0);for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&(wh(e,i,a),Ue=!0)}else for(var u in t)t.hasOwnProperty(u)&&wh(e,u,t[u])}function _c(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 E1=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"]]),_1=/^[\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 Tr(e){return _1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Al(){}var Tc=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wn=null,In=null;function zh(e){var t=Zn(e);if(t&&(e=t.stateNode)){var l=e[Ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Sc(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[Ht]||null;if(!i)throw Error(c(90));Sc(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&&_h(a)}break e;case"textarea":Nh(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$n(e,!!l.multiple,t,!1)}}}var Cc=!1;function Oh(e,t,l){if(Cc)return e(t,l);Cc=!0;try{var a=e(t);return a}finally{if(Cc=!1,(Wn!==null||In!==null)&&(Ts(),Wn&&(t=Wn,e=In,In=Wn=null,zh(t),e)))for(t=0;t<e.length;t++)zh(e[t])}}function ou(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ht]||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 Pl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wc=!1;if(Pl)try{var fu={};Object.defineProperty(fu,"passive",{get:function(){wc=!0}}),window.addEventListener("test",fu,fu),window.removeEventListener("test",fu,fu)}catch{wc=!1}var Sa=null,jc=null,Nr=null;function Rh(){if(Nr)return Nr;var e,t=jc,l=t.length,a,i="value"in Sa?Sa.value:Sa.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 Nr=i.slice(e,1<a?1-a:void 0)}function Cr(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 Ah(){return!1}function Ot(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:Ah,this.isPropagationStopped=Ah,this}return F(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 Ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jr=Ot(Ea),du=F({},Ea,{view:0,detail:0}),T1=Ot(du),zc,Oc,hu,zr=F({},du,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,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!==hu&&(hu&&e.type==="mousemove"?(zc=e.screenX-hu.screenX,Oc=e.screenY-hu.screenY):Oc=zc=0,hu=e),zc)},movementY:function(e){return"movementY"in e?e.movementY:Oc}}),Mh=Ot(zr),N1=F({},zr,{dataTransfer:0}),C1=Ot(N1),w1=F({},du,{relatedTarget:0}),Rc=Ot(w1),j1=F({},Ea,{animationName:0,elapsedTime:0,pseudoElement:0}),z1=Ot(j1),O1=F({},Ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R1=Ot(O1),A1=F({},Ea,{data:0}),Dh=Ot(A1),M1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D1={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"},U1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U1[e])?!!t[e]:!1}function Ac(){return k1}var H1=F({},du,{key:function(e){if(e.key){var t=M1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(e){return e.type==="keypress"?Cr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q1=Ot(H1),L1=F({},zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uh=Ot(L1),B1=F({},Ea,{submitter:0}),Q1=Ot(B1),G1=F({},du,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),Y1=Ot(G1),V1=F({},Ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),X1=Ot(V1),K1=F({},zr,{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}),Z1=Ot(K1),J1=F({},Ea,{newState:0,oldState:0,source:0}),F1=Ot(J1),$1=[9,13,27,32],Mc=Pl&&"CompositionEvent"in window,mu=null;Pl&&"documentMode"in document&&(mu=document.documentMode);var P1=Pl&&"TextEvent"in window&&!mu,kh=Pl&&(!Mc||mu&&8<mu&&11>=mu),Hh=" ",qh=!1;function Lh(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ei=!1;function W1(e,t){switch(e){case"compositionend":return Bh(t);case"keypress":return t.which!==32?null:(qh=!0,Hh);case"textInput":return e=t.data,e===Hh&&qh?null:e;default:return null}}function I1(e,t){if(ei)return e==="compositionend"||!Mc&&Lh(e,t)?(e=Rh(),Nr=jc=Sa=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 kh&&t.locale!=="ko"?null:t.data;default:return null}}var eb={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 Qh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eb[e.type]:t==="textarea"}function Gh(e,t,l,a){Wn?In?In.push(a):In=[a]:Wn=a,t=Os(t,"onChange"),0<t.length&&(l=new jr("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var yu=null,vu=null;function tb(e){zv(e,0)}function Or(e){var t=cu(e);if(_h(t))return e}function Yh(e,t){if(e==="change")return t}var Vh=!1;if(Pl){var Dc;if(Pl){var Uc="oninput"in document;if(!Uc){var Xh=document.createElement("div");Xh.setAttribute("oninput","return;"),Uc=typeof Xh.oninput=="function"}Dc=Uc}else Dc=!1;Vh=Dc&&(!document.documentMode||9<document.documentMode)}function Kh(){yu&&(yu.detachEvent("onpropertychange",Zh),vu=yu=null)}function Zh(e){if(e.propertyName==="value"&&Or(vu)){var t=[];Gh(t,vu,e,Nc(e)),Oh(tb,t)}}function lb(e,t,l){e==="focusin"?(Kh(),yu=t,vu=l,yu.attachEvent("onpropertychange",Zh)):e==="focusout"&&Kh()}function ab(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Or(vu)}function nb(e,t){if(e==="click")return Or(t)}function ib(e,t){if(e==="input"||e==="change")return Or(t)}function ub(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:ub;function pu(e,t){if(Jt(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(!mc.call(t,i)||!Jt(e[i],t[i]))return!1}return!0}function kc(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 Jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fh(e,t){var l=Jh(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=Jh(l)}}function $h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ph(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kc(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=kc(e.document)}return t}function Hc(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 rb=Pl&&"documentMode"in document&&11>=document.documentMode,ti=null,qc=null,gu=null,Lc=!1;function Wh(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lc||ti==null||ti!==kc(a)||(a=ti,"selectionStart"in a&&Hc(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&&pu(gu,a)||(gu=a,a=Os(qc,"onSelect"),0<a.length&&(t=new jr("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ti)))}function sn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var li={animationend:sn("Animation","AnimationEnd"),animationiteration:sn("Animation","AnimationIteration"),animationstart:sn("Animation","AnimationStart"),transitionrun:sn("Transition","TransitionRun"),transitionstart:sn("Transition","TransitionStart"),transitioncancel:sn("Transition","TransitionCancel"),transitionend:sn("Transition","TransitionEnd")},Bc={},Ih={};Pl&&(Ih=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 cn(e){if(Bc[e])return Bc[e];if(!li[e])return e;var t=li[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ih)return Bc[e]=t[l];return e}var em=cn("animationend"),tm=cn("animationiteration"),lm=cn("animationstart"),sb=cn("transitionrun"),cb=cn("transitionstart"),ob=cn("transitioncancel"),am=cn("transitionend"),nm=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 pl(e,t){nm.set(e,t),rn(t,[e])}var fb=0;function Wl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Sl.identifierPrefix;var l=fb++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function im(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 Il(e,t){return e=im(e),t=im(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Rr=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,Gc=0;function Ar(){for(var e=ai,t=Gc=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&&um(l,i,u)}}function Mr(e,t,l,a){nl[ai++]=e,nl[ai++]=t,nl[ai++]=l,nl[ai++]=a,Gc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Yc(e,t,l,a){return Mr(e,t,l,a),Dr(e)}function on(e,t){return Mr(e,null,null,t),Dr(e)}function um(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-Kt(l),e=u.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),u):null}function Dr(e){if(50<Bu)throw Bu=0,_s=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 db(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 qt(e,t,l,a){return new db(e,t,l,a)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ea(e,t){var l=e.alternate;return l===null?(l=qt(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 rm(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 Ur(e,t,l,a,i,u){var o=0;if(a=e,typeof a=="function")Vc(a)&&(o=1);else if(typeof a=="string")o=Bx(e,l,Rl.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case ke:return e=qt(31,l,t,i),e.elementType=ke,e.lanes=u,e;case Ve:return fn(l.children,i,u,t);case Fe:o=8,i|=24;break;case ie:return e=qt(12,l,t,i|2),e.elementType=ie,e.lanes=u,e;case ee:return e=qt(13,l,t,i),e.elementType=ee,e.lanes=u,e;case R:return e=qt(19,l,t,i),e.elementType=R,e.lanes=u,e;case Nt:case C:return e=i|32,e=qt(30,l,t,e),e.elementType=C,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 re:o=10;break e;case Te:o=9;break e;case V:o=11;break e;case ae:o=14;break e;case X:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=qt(o,l,t,i),t.elementType=e,t.type=a,t.lanes=u,t}function fn(e,t,l,a){return e=qt(7,e,a,t),e.lanes=l,e}function Xc(e,t,l){return e=qt(6,e,null,t),e.lanes=l,e}function sm(e){var t=qt(18,null,null,0);return t.stateNode=e,t}function Kc(e,t,l){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var cm=new WeakMap;function il(e,t){if(typeof e=="object"&&e!==null){var l=cm.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ah(t)},cm.set(e,t),t)}return{value:e,source:t,stack:ah(t)}}var ii=[],ui=0,kr=null,bu=0,ul=[],rl=0,_a=null,Ml=1,Dl="";function ta(e,t){ii[ui++]=bu,ii[ui++]=kr,kr=e,bu=t}function om(e,t,l){ul[rl++]=Ml,ul[rl++]=Dl,ul[rl++]=_a,_a=e;var a=Ml;e=Dl;var i=32-Kt(a)-1;a&=~(1<<i),l+=1;var u=32-Kt(t)+i;if(30<u){var o=i-i%5;u=(a&(1<<o)-1).toString(32),a>>=o,i-=o,Ml=1<<32-Kt(t)+i|l<<i|a,Dl=u+e}else Ml=1<<u|l<<i|a,Dl=e}function Hr(e){e.return!==null&&(ta(e,1),om(e,1,0))}function Zc(e){for(;e===kr;)kr=ii[--ui],ii[ui]=null,bu=ii[--ui],ii[ui]=null;for(;e===_a;)_a=ul[--rl],ul[rl]=null,Dl=ul[--rl],ul[rl]=null,Ml=ul[--rl],ul[rl]=null}function fm(e,t){ul[rl++]=Ml,ul[rl++]=Dl,ul[rl++]=_a,Ml=t.id,Dl=t.overflow,_a=e}var mt=null,Ze=null,Ee=!1,Ta=null,sl=!1,Jc=Error(c(519));function Na(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xu(il(t,e)),Jc}function dm(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[gt]=e,t[Ht]=a,l){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(l=0;l<Gu.length;l++)Ce(Gu[l],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),Th(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),Ch(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||Mv(t.textContent,l)?(a.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),a.onScroll!=null&&Ce("scroll",t),a.onScrollEnd!=null&&Ce("scrollend",t),a.onClick!=null&&(t.onclick=Al),t=!0):t=!1,t||Na(e,!0)}function qr(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:sl=!1;return;case 27:case 3:sl=!0;return;default:mt=mt.return}}function ri(e){if(e!==mt)return!1;if(!Ee)return qr(e),Ee=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Cf(e.type,e.memoizedProps)),l=!l),l&&Ze&&Na(e),qr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ze=Wv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ze=Wv(e)}else t===27?(t=Ze,Qa(e.type)?(e=Uf,Uf=null,Ze=e):Ze=t):Ze=mt?ol(e.stateNode.nextSibling):null;return!0}function dn(){Ze=mt=null,Ee=!1}function Fc(){var e=Ta;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),Ta=null),e}function xu(e){Ta===null?Ta=[e]:Ta.push(e)}var $c=Ol(null),hn=null,la=null;function Ca(e,t,l){Ke($c,t._currentValue),t._currentValue=l}function aa(e){e._currentValue=$c.current,pt($c)}function Lr(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 Pc(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),Lr(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),Lr(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),Lr(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 mn(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;Jt(i.pendingProps.value,o.value)||(e!==null?e.push(y):e=[y])}}else if(i===dr.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&&Pc(t,e,l,a),t.flags|=262144,e!==null}function Br(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yn(e){hn=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return hm(hn,e)}function Qr(e,t){return hn===null&&yn(e),hm(e,t)}function hm(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},la===null){if(e===null)throw Error(c(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return l}var hb=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()})}},mb=n.unstable_scheduleCallback,yb=n.unstable_NormalPriority,it={$$typeof:re,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wc(){return{controller:new hb,data:new Map,refCount:0}}function Su(e){e.refCount--,e.refCount===0&&mb(yb,function(){e.controller.abort()})}function mm(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 Eu=null;function vb(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var _u=null,Ic=0,vn=0,si=null;function pb(e,t){if(_u===null){var l=_u=[];Ic=0,vn=pf(),si={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ic++,t.then(ym,ym),t}function ym(){if(--Ic===0&&(Eu=null,_u!==null)){si!==null&&(si.status="fulfilled");var e=_u;_u=null,vn=0,si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gb(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 vm=se.S;se.S=function(e,t){if(sv=Vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&pb(e,t),Eu!==null)for(var l=Ci;l!==null;)mm(l,Eu),l=l.next;if(l=e.types,l!==null){for(var a=Ci;a!==null;)mm(a,l),a=a.next;if(vn!==0){a=Eu,a===null&&(a=Eu=[]);for(var i=0;i<l.length;i++){var u=l[i];a.indexOf(u)===-1&&a.push(u)}}}vm!==null&&vm(e,t)};var pn=Ol(null);function eo(){var e=pn.current;return e!==null?e:Xe.pooledCache}function Gr(e,t){t===null?Ke(pn,pn.current):Ke(pn,t.pool)}function pm(){var e=eo();return e===null?null:{parent:it._currentValue,pool:e}}var ci=Error(c(460)),to=Error(c(474)),Yr=Error(c(542)),Vr={then:function(){}};function gm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bm(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Al,Al),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sm(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then(Al,Al);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,Sm(e),e}throw bn=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"?(bn=l,ci):l}}var bn=null;function xm(){if(bn===null)throw Error(c(459));var e=bn;return bn=null,e}function Sm(e){if(e===ci||e===Yr)throw Error(c(483))}var oi=null,Tu=0;function Xr(e){var t=Tu;return Tu+=1,oi===null&&(oi=[]),bm(oi,e,t)}function wa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===U?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Em(e){function t(j,N){if(e){var O=j.deletions;O===null?(j.deletions=[N],j.flags|=16):O.push(N)}}function l(j,N){if(!e)return null;for(;N!==null;)t(j,N),N=N.sibling;return null}function a(j){for(var N=new Map;j!==null;)j.key===null?N.set(j.index,j):N.set(j.key,j),j=j.sibling;return N}function i(j,N){return j=ea(j,N),j.index=0,j.sibling=null,j}function u(j,N,O){return j.index=O,e?(O=j.alternate,O!==null?(O=O.index,O<N?(j.flags|=2,N):O):(j.flags|=134217730,N)):(j.flags|=1048576,N)}function o(j){return e&&j.alternate===null&&(j.flags|=134217730),j}function y(j,N,O,L){return N===null||N.tag!==6?(N=Xc(O,j.mode,L),N.return=j,N):(N=i(N,O),N.return=j,N)}function S(j,N,O,L){var te=O.type;return te===Ve?(j=M(j,N,O.props.children,L,O.key),wa(j,O),j):N!==null&&(N.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===X&&gn(te)===N.type)?(N=i(N,O.props),wa(N,O),N.return=j,N):(N=Ur(O.type,O.key,O.props,null,j.mode,L),wa(N,O),N.return=j,N)}function z(j,N,O,L){return N===null||N.tag!==4||N.stateNode.containerInfo!==O.containerInfo||N.stateNode.implementation!==O.implementation?(N=Kc(O,j.mode,L),N.return=j,N):(N=i(N,O.children||[]),N.return=j,N)}function M(j,N,O,L,te){return N===null||N.tag!==7?(N=fn(O,j.mode,L,te),N.return=j,N):(N=i(N,O),N.return=j,N)}function B(j,N,O){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Xc(""+N,j.mode,O),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case I:return O=Ur(N.type,N.key,N.props,null,j.mode,O),wa(O,N),O.return=j,O;case le:return N=Kc(N,j.mode,O),N.return=j,N;case X:return N=gn(N),B(j,N,O)}if(Ae(N)||oe(N))return N=fn(N,j.mode,O,null),N.return=j,N;if(typeof N.then=="function")return B(j,Xr(N),O);if(N.$$typeof===re)return B(j,Qr(j,N),O);Kr(j,N)}return null}function w(j,N,O,L){var te=N!==null?N.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return te!==null?null:y(j,N,""+O,L);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case I:return O.key===te?S(j,N,O,L):null;case le:return O.key===te?z(j,N,O,L):null;case X:return O=gn(O),w(j,N,O,L)}if(Ae(O)||oe(O))return te!==null?null:M(j,N,O,L,null);if(typeof O.then=="function")return w(j,N,Xr(O),L);if(O.$$typeof===re)return w(j,N,Qr(j,O),L);Kr(j,O)}return null}function A(j,N,O,L,te){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return j=j.get(O)||null,y(N,j,""+L,te);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case I:return j=j.get(L.key===null?O:L.key)||null,S(N,j,L,te);case le:return j=j.get(L.key===null?O:L.key)||null,z(N,j,L,te);case X:return L=gn(L),A(j,N,O,L,te)}if(Ae(L)||oe(L))return j=j.get(O)||null,M(N,j,L,te,null);if(typeof L.then=="function")return A(j,N,O,Xr(L),te);if(L.$$typeof===re)return A(j,N,O,Qr(N,L),te);Kr(N,L)}return null}function $(j,N,O,L){for(var te=null,ze=null,fe=N,ve=N=0,st=null;fe!==null&&ve<O.length;ve++){fe.index>ve?(st=fe,fe=null):st=fe.sibling;var Me=w(j,fe,O[ve],L);if(Me===null){fe===null&&(fe=st);break}e&&fe&&Me.alternate===null&&t(j,fe),N=u(Me,N,ve),ze===null?te=Me:ze.sibling=Me,ze=Me,fe=st}if(ve===O.length)return l(j,fe),Ee&&ta(j,ve),te;if(fe===null){for(;ve<O.length;ve++)fe=B(j,O[ve],L),fe!==null&&(N=u(fe,N,ve),ze===null?te=fe:ze.sibling=fe,ze=fe);return Ee&&ta(j,ve),te}for(fe=a(fe);ve<O.length;ve++)st=A(fe,j,ve,O[ve],L),st!==null&&(e&&(Me=st.alternate,Me!==null&&fe.delete(Me.key===null?ve:Me.key)),N=u(st,N,ve),ze===null?te=st:ze.sibling=st,ze=st);return e&&fe.forEach(function(Ka){return t(j,Ka)}),Ee&&ta(j,ve),te}function ce(j,N,O,L){if(O==null)throw Error(c(151));for(var te=null,ze=null,fe=N,ve=N=0,st=null,Me=O.next();fe!==null&&!Me.done;ve++,Me=O.next()){fe.index>ve?(st=fe,fe=null):st=fe.sibling;var Ka=w(j,fe,Me.value,L);if(Ka===null){fe===null&&(fe=st);break}e&&fe&&Ka.alternate===null&&t(j,fe),N=u(Ka,N,ve),ze===null?te=Ka:ze.sibling=Ka,ze=Ka,fe=st}if(Me.done)return l(j,fe),Ee&&ta(j,ve),te;if(fe===null){for(;!Me.done;ve++,Me=O.next())Me=B(j,Me.value,L),Me!==null&&(N=u(Me,N,ve),ze===null?te=Me:ze.sibling=Me,ze=Me);return Ee&&ta(j,ve),te}for(fe=a(fe);!Me.done;ve++,Me=O.next())Me=A(fe,j,ve,Me.value,L),Me!==null&&(e&&(st=Me.alternate,st!==null&&fe.delete(st.key===null?ve:st.key)),N=u(Me,N,ve),ze===null?te=Me:ze.sibling=Me,ze=Me);return e&&fe.forEach(function(Wx){return t(j,Wx)}),Ee&&ta(j,ve),te}function xe(j,N,O,L){if(typeof O=="object"&&O!==null&&O.type===Ve&&O.key===null&&O.props.ref===void 0&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case I:e:{for(var te=O.key;N!==null;){if(N.key===te){if(te=O.type,te===Ve){if(N.tag===7){l(j,N.sibling),L=i(N,O.props.children),wa(L,O),L.return=j,j=L;break e}}else if(N.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===X&&gn(te)===N.type){l(j,N.sibling),L=i(N,O.props),wa(L,O),L.return=j,j=L;break e}l(j,N);break}else t(j,N);N=N.sibling}O.type===Ve?(L=fn(O.props.children,j.mode,L,O.key),wa(L,O),L.return=j,j=L):(L=Ur(O.type,O.key,O.props,null,j.mode,L),wa(L,O),L.return=j,j=L)}return o(j);case le:e:{for(te=O.key;N!==null;){if(N.key===te)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){l(j,N.sibling),L=i(N,O.children||[]),L.return=j,j=L;break e}else{l(j,N);break}else t(j,N);N=N.sibling}L=Kc(O,j.mode,L),L.return=j,j=L}return o(j);case X:return O=gn(O),xe(j,N,O,L)}if(Ae(O))return $(j,N,O,L);if(oe(O)){if(te=oe(O),typeof te!="function")throw Error(c(150));return O=te.call(O),ce(j,N,O,L)}if(typeof O.then=="function")return xe(j,N,Xr(O),L);if(O.$$typeof===re)return xe(j,N,Qr(j,O),L);Kr(j,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,N!==null&&N.tag===6?(l(j,N.sibling),L=i(N,O),L.return=j,j=L):(l(j,N),L=Xc(O,j.mode,L),L.return=j,j=L),o(j)):l(j,N)}return function(j,N,O,L){try{Tu=0;var te=xe(j,N,O,L);return oi=null,te}catch(fe){if(fe===ci||fe===Yr)throw fe;var ze=qt(29,fe,null,j.mode);return ze.lanes=L,ze.return=j,ze}finally{}}}var xn=Em(!0),_m=Em(!1),ja=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ao(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 Oa(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(He&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Dr(e),um(e,null,l),t}return Mr(e,a,t,l),Dr(e)}function Nu(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,oh(e,l)}}function no(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 io=!1;function Cu(){if(io){var e=si;if(e!==null)throw e}}function wu(e,t,l,a){io=!1;var i=e.updateQueue;ja=!1;var u=i.firstBaseUpdate,o=i.lastBaseUpdate,y=i.shared.pending;if(y!==null){i.shared.pending=null;var S=y,z=S.next;S.next=null,o===null?u=z:o.next=z,o=S;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==o&&(y===null?M.firstBaseUpdate=z:y.next=z,M.lastBaseUpdate=S))}if(u!==null){var B=i.baseState;o=0,M=z=S=null,y=u;do{var w=y.lane&-536870913,A=w!==y.lane;if(A?(je&w)===w:(a&w)===w){w!==0&&w===vn&&(io=!0),M!==null&&(M=M.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var $=e,ce=y;w=t;var xe=l;switch(ce.tag){case 1:if($=ce.payload,typeof $=="function"){B=$.call(xe,B,w);break e}B=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ce.payload,w=typeof $=="function"?$.call(xe,B,w):$,w==null)break e;B=F({},B,w);break e;case 2:ja=!0}}w=y.callback,w!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[w]:A.push(w))}else A={lane:w,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(z=M=A,S=B):M=M.next=A,o|=w;if(y=y.next,y===null){if(y=i.shared.pending,y===null)break;A=y,y=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);M===null&&(S=B),i.baseState=S,i.firstBaseUpdate=z,i.lastBaseUpdate=M,u===null&&(i.shared.lanes=0),Ha|=o,e.lanes=o,e.memoizedState=B}}function Tm(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Nm(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tm(l[e],t)}var Ra=Ol(null),Zr=Ol(0);function Cm(e,t){e=sa,Ke(Zr,e),Ke(Ra,t),sa=e|t.baseLanes}function uo(){Ke(Zr,sa),Ke(Ra,Ra.current)}function ro(){sa=Zr.current,pt(Ra),pt(Zr)}var xt=Ol(null),Ct=null;function Aa(e){var t=e.alternate;Ke(St,St.current&1),Ke(xt,e),Ct===null&&(t===null||Ra.current!==null||t.memoizedState!==null)&&(Ct=e)}function so(e){Ke(St,St.current),Ke(xt,e),Ct===null&&(Ct=e)}function wm(e){e.tag===22?(Ke(St,St.current),Ke(xt,e),Ct===null&&(Ct=e)):Ma()}function Ma(){Ke(St,St.current),Ke(xt,xt.current)}function Ft(e){pt(xt),Ct===e&&(Ct=null),pt(St)}var St=Ol(0);function ju(e,t){Ke(xt,xt.current),Ke(St,t)}function co(e){pt(St),pt(xt),Ct===e&&(Ct=null)}function Jr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Mf(l)||Df(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 na=0,be=null,Ye=null,ut=null,Fr=!1,fi=!1,Sn=!1,$r=0,zu=0,di=null,bb=0;function tt(){throw Error(c(321))}function oo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Jt(e[l],t[l]))return!1;return!0}function fo(e,t,l,a,i,u){return na=u,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,se.H=e===null||e.memoizedState===null?oy:fy,Sn=!1,u=l(a,i),Sn=!1,fi&&(u=zm(t,l,a,i)),jm(e),u}function jm(e){se.H=as;var t=Ye!==null&&Ye.next!==null;if(na=0,ut=Ye=be=null,Fr=!1,zu=0,di=null,t)throw Error(c(300));e===null||rt||(e=e.dependencies,e!==null&&Br(e)&&(rt=!0))}function zm(e,t,l,a){be=e;var i=0;do{if(fi&&(di=null),zu=0,fi=!1,25<=i)throw Error(c(301));if(i+=1,ut=Ye=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}se.H=wb,u=t(l,a)}while(fi);return u}function xb(){var e=se.H,t=e.useState()[0];return t=typeof t.then=="function"?Ou(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(be.flags|=1024),t}function ho(){var e=$r!==0;return $r=0,e}function mo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function yo(e){if(Fr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fr=!1}na=0,ut=Ye=be=null,fi=!1,zu=$r=0,di=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?be.memoizedState=ut=e:ut=ut.next=e,ut}function at(){if(Ye===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=ut===null?be.memoizedState:ut.next;if(t!==null)ut=t,Ye=e;else{if(e===null)throw be.alternate===null?Error(c(467)):Error(c(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},ut===null?be.memoizedState=ut=e:ut=ut.next=e}return ut}function Pr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ou(e){var t=zu;return zu+=1,di===null&&(di=[]),e=bm(di,e,t),t=be,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,se.H=t===null||t.memoizedState===null?oy:fy),e}function Wr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ou(e);if(e.$$typeof===G)return;if(e.$$typeof===re)return bt(e)}throw Error(c(438,String(e)))}function vo(e){var t=null,l=be.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=be.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(),be.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]=zl;return t.index++,l}function ia(e,t){return typeof t=="function"?t(e):t}function Ir(e){var t=at();return po(t,Ye,e)}function po(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,z=t,M=!1;do{var B=z.lane&-536870913;if(B!==z.lane?(je&B)===B:(na&B)===B){var w=z.revertLane;if(w===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),B===vn&&(M=!0);else if((na&w)===w){z=z.next,w===vn&&(M=!0);continue}else B={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=B,o=u):S=S.next=B,be.lanes|=w,Ha|=w;B=z.action,Sn&&l(u,B),u=z.hasEagerState?z.eagerState:l(u,B)}else w={lane:B,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=w,o=u):S=S.next=w,be.lanes|=B,Ha|=B;z=z.next}while(z!==null&&z!==t);if(S===null?o=u:S.next=y,!Jt(u,e.memoizedState)&&(rt=!0,M&&(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 go(e){var t=at(),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);Jt(u,t.memoizedState)||(rt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Om(e,t,l){var a=be,i=at(),u=Ee;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Jt((Ye||i).memoizedState,l);if(o&&(i.memoizedState=l,rt=!0),i=i.queue,So(Mm.bind(null,a,i,e),[e]),e=i.getSnapshot!==t||o||ut!==null&&(ut.memoizedState.tag&1)!==0,hi(e?9:8,{destroy:void 0},Am.bind(null,a,i,l,t),null),e){if(a.flags|=2048,Xe===null)throw Error(c(349));u||(na&127)!==0||Rm(a,t,l)}return l}function Rm(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=be.updateQueue,t===null?(t=Pr(),be.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Am(e,t,l,a){t.value=l,t.getSnapshot=a,Dm(t)&&Um(e)}function Mm(e,t,l){return l(function(){Dm(t)&&Um(e)})}function Dm(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Jt(e,l)}catch{return!0}}function Um(e){var t=on(e,2);t!==null&&Gt(t,e,2)}function bo(e){var t=Rt();if(typeof e=="function"){var l=e;if(e=l(),Sn){xa(!0);try{l()}finally{xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e},t}function km(e,t,l,a){return e.baseState=l,po(e,Ye,typeof a=="function"?a:ia)}function Sb(e,t,l,a,i){if(ls(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)}};se.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Hm(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Hm(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var u=se.T,o={};o.types=u!==null?u.types:null,se.T=o;try{var y=l(i,a),S=se.S;S!==null&&S(o,y),qm(e,t,y)}catch(z){xo(e,t,z)}finally{u!==null&&o.types!==null&&(u.types=o.types),se.T=u}}else try{u=l(i,a),qm(e,t,u)}catch(z){xo(e,t,z)}}function qm(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Lm(e,t,a)},function(a){return xo(e,t,a)}):Lm(e,t,l)}function Lm(e,t,l){t.status="fulfilled",t.value=l,Bm(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Hm(e,l)))}function xo(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Bm(t),t=t.next;while(t!==a)}e.action=null}function Bm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qm(e,t){return t}function Gm(e,t){if(Ee){var l=Xe.formState;if(l!==null){e:{var a=be;if(Ee){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}}Na(a)}a=!1}a&&(t=l[0])}}return l=Rt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qm,lastRenderedState:t},l.queue=a,l=ry.bind(null,be,a),a.dispatch=l,a=bo(!1),u=Co.bind(null,be,!1,a.queue),a=Rt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=Sb.bind(null,be,i,u,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ym(e){var t=at();return Vm(t,Ye,e)}function Vm(e,t,l){if(t=po(e,t,Qm)[0],e=Ir(ia)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ou(t)}catch(o){throw o===ci?Yr:o}else a=t;t=at();var i=t.queue,u=i.dispatch;return l!==t.memoizedState&&(be.flags|=2048,hi(9,{destroy:void 0},Eb.bind(null,i,l),null)),[a,u,e]}function Eb(e,t){e.action=t}function Xm(e){var t=at(),l=Ye;if(l!==null)return Vm(t,l,e);at(),t=t.memoizedState,l=at();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=be.updateQueue,t===null&&(t=Pr(),be.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 Km(){return at().memoizedState}function es(e,t,l,a){var i=Rt();be.flags|=e,i.memoizedState=hi(1|t,{destroy:void 0},l,a===void 0?null:a)}function ts(e,t,l,a){var i=at();a=a===void 0?null:a;var u=i.memoizedState.inst;Ye!==null&&a!==null&&oo(a,Ye.memoizedState.deps)?i.memoizedState=hi(t,u,l,a):(be.flags|=e,i.memoizedState=hi(1|t,u,l,a))}function Zm(e,t){es(8390656,8,e,t)}function So(e,t){ts(2048,8,e,t)}function _b(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=Pr(),be.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Jm(e){var t=at().memoizedState;return _b({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Fm(e,t){return ts(4,2,e,t)}function $m(e,t){return ts(4,4,e,t)}function Pm(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 Wm(e,t,l){l=l!=null?l.concat([e]):null,ts(4,4,Pm.bind(null,t,e),l)}function Eo(){}function Im(e,t){var l=at();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&oo(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ey(e,t){var l=at();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&oo(t,a[1]))return a[0];if(a=e(),Sn){xa(!0);try{e()}finally{xa(!1)}}return l.memoizedState=[a,t],a}function _o(e,t,l){return l===void 0||(na&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=ov(),be.lanes|=e,Ha|=e,l)}function ty(e,t,l,a){return Jt(l,t)?l:Ra.current!==null?(e=_o(e,l,a),Jt(e,t)||(rt=!0),e):(na&106)===0||(na&1073741824)!==0&&(je&261930)===0?(rt=!0,e.memoizedState=l):(e=ov(),be.lanes|=e,Ha|=e,t)}function ly(e,t,l,a,i){var u=ye.p;ye.p=u!==0&&8>u?u:8;var o=se.T,y={};y.types=o!==null?o.types:null,se.T=y,Co(e,!1,t,l);try{var S=i(),z=se.S;if(z!==null&&z(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var M=gb(S,a);Ru(e,t,M,It(e))}else Ru(e,t,a,It(e))}catch(B){Ru(e,t,{then:function(){},status:"rejected",reason:B},It())}finally{ye.p=u,o!==null&&y.types!==null&&(o.types=y.types),se.T=o}}function Tb(){}function To(e,t,l,a){if(e.tag!==5)throw Error(c(476));var i=ay(e).queue;ly(e,i,t,Yt,l===null?Tb:function(){return ny(e),l(a)})}function ay(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Yt,baseState:Yt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:Yt},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ny(e){var t=ay(e);t.next===null&&(t=e.alternate.memoizedState),Ru(e,t.next.queue,{},It())}function No(){return bt(Ai)}function iy(){return at().memoizedState}function uy(){return at().memoizedState}function Nb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=It();e=za(l);var a=Oa(t,e,l);a!==null&&(Gt(a,t,l),Nu(a,t,l)),t={cache:Wc()},e.payload=t;return}t=t.return}}function Cb(e,t,l){var a=It();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ls(e)?sy(t,l):(l=Yc(e,t,l,a),l!==null&&(Gt(l,e,a),cy(l,t,a)))}function ry(e,t,l){var a=It();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(ls(e))sy(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,Jt(y,o))return Mr(e,t,i,0),Xe===null&&Ar(),!1}catch{}finally{}if(l=Yc(e,t,i,a),l!==null)return Gt(l,e,a),cy(l,t,a),!0}return!1}function Co(e,t,l,a){if(a={lane:2,revertLane:pf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ls(e)){if(t)throw Error(c(479))}else t=Yc(e,l,a,2),t!==null&&Gt(t,e,2)}function ls(e){var t=e.alternate;return e===be||t!==null&&t===be}function sy(e,t){fi=Fr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function cy(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,oh(e,l)}}var as={readContext:bt,use:Wr,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt,useEffectEvent:tt},oy={readContext:bt,use:Wr,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:Zm,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,es(4194308,4,Pm.bind(null,t,e),l)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){es(4,2,e,t)},useMemo:function(e,t){var l=Rt();t=t===void 0?null:t;var a=e();if(Sn){xa(!0);try{e()}finally{xa(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Rt();if(l!==void 0){var i=l(t);if(Sn){xa(!0);try{l(t)}finally{xa(!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=Cb.bind(null,be,e),[a.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=bo(e);var t=e.queue,l=ry.bind(null,be,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Eo,useDeferredValue:function(e,t){var l=Rt();return _o(l,e,t)},useTransition:function(){var e=bo(!1);return e=ly.bind(null,be,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=be,i=Rt();if(Ee){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Xe===null)throw Error(c(349));(je&127)!==0||Rm(a,t,l)}i.memoizedState=l;var u={value:l,getSnapshot:t};return i.queue=u,Zm(Mm.bind(null,a,u,e),[e]),a.flags|=2048,hi(9,{destroy:void 0},Am.bind(null,a,u,l,t),null),l},useId:function(){var e=Rt(),t=Xe.identifierPrefix;if(Ee){var l=Dl,a=Ml;l=(a&~(1<<32-Kt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=$r++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=bb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:No,useFormState:Gm,useActionState:Gm,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Co.bind(null,be,!0,l),l.dispatch=t,[e,t]},useMemoCache:vo,useCacheRefresh:function(){return Rt().memoizedState=Nb.bind(null,be)},useEffectEvent:function(e){var t=Rt(),l={impl:e};return t.memoizedState=l,function(){if((He&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},fy={readContext:bt,use:Wr,useCallback:Im,useContext:bt,useEffect:So,useImperativeHandle:Wm,useInsertionEffect:Fm,useLayoutEffect:$m,useMemo:ey,useReducer:Ir,useRef:Km,useState:function(){return Ir(ia)},useDebugValue:Eo,useDeferredValue:function(e,t){var l=at();return ty(l,Ye.memoizedState,e,t)},useTransition:function(){var e=Ir(ia)[0],t=at().memoizedState;return[typeof e=="boolean"?e:Ou(e),t]},useSyncExternalStore:Om,useId:iy,useHostTransitionStatus:No,useFormState:Ym,useActionState:Ym,useOptimistic:function(e,t){var l=at();return km(l,Ye,e,t)},useMemoCache:vo,useCacheRefresh:uy,useEffectEvent:Jm},wb={readContext:bt,use:Wr,useCallback:Im,useContext:bt,useEffect:So,useImperativeHandle:Wm,useInsertionEffect:Fm,useLayoutEffect:$m,useMemo:ey,useReducer:go,useRef:Km,useState:function(){return go(ia)},useDebugValue:Eo,useDeferredValue:function(e,t){var l=at();return Ye===null?_o(l,e,t):ty(l,Ye.memoizedState,e,t)},useTransition:function(){var e=go(ia)[0],t=at().memoizedState;return[typeof e=="boolean"?e:Ou(e),t]},useSyncExternalStore:Om,useId:iy,useHostTransitionStatus:No,useFormState:Xm,useActionState:Xm,useOptimistic:function(e,t){var l=at();return Ye!==null?km(l,Ye,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:vo,useCacheRefresh:uy,useEffectEvent:Jm};function wo(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:F({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var jo={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=It(),i=za(a);i.payload=t,l!=null&&(i.callback=l),t=Oa(e,i,a),t!==null&&(Gt(t,e,a),Nu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=It(),i=za(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=Oa(e,i,a),t!==null&&(Gt(t,e,a),Nu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=It(),a=za(l);a.tag=2,t!=null&&(a.callback=t),t=Oa(e,a,l),t!==null&&(Gt(t,e,l),Nu(t,e,l))}};function dy(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?!pu(l,a)||!pu(i,u):!0}function hy(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&&jo.enqueueReplaceState(t,t.state,null)}function En(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=F({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function my(e){Rr(e)}function yy(e){console.error(e)}function vy(e){Rr(e)}function ns(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function py(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 zo(e,t,l){return l=za(l),l.tag=3,l.payload={element:null},l.callback=function(){ns(e,t)},l}function gy(e){return e=za(e),e.tag=3,e}function by(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(){py(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){py(t,l,a),typeof i!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function jb(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&mn(t,l,i,!0),l=xt.current,l!==null){switch(l.tag){case 31:case 13:case 19:return Ct===null?Ns():l.alternate===null&<===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Vr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),mf(e,a,i)),!1;case 22:return l.flags|=65536,a===Vr?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)),mf(e,a,i)),!1}throw Error(c(435,l.tag))}return mf(e,a,i),Ns(),!1}if(Ee)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Jc&&(e=Error(c(422),{cause:a}),xu(il(e,l)))):(a!==Jc&&(t=Error(c(423),{cause:a}),xu(il(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=il(a,l),i=zo(e.stateNode,a,i),no(e,i),lt!==4&&(lt=2)),!1;var u=Error(c(520),{cause:a});if(u=il(u,l),Lu===null?Lu=[u]:Lu.push(u),lt!==4&&(lt=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=zo(l.stateNode,a,e),no(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"&&(qa===null||!qa.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=gy(i),by(i,e,l,a),no(l,i),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var Oo=Error(c(461)),rt=!1;function ct(e,t,l,a){t.child=e===null?_m(t,null,l,a):xn(t,e.child,l,a)}function xy(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 yn(t),a=fo(e,t,l,o,u,i),y=ho(),e!==null&&!rt?(mo(e,t,i),ua(e,t,i)):(Ee&&y&&Hr(t),t.flags|=1,ct(e,t,a,i),t.child)}function Sy(e,t,l,a,i){if(e===null){var u=l.type;return typeof u=="function"&&!Vc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Ey(e,t,u,a,i)):(e=Ur(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!qo(e,i)){var o=u.memoizedProps;if(l=l.compare,l=l!==null?l:pu,l(o,a)&&e.ref===t.ref)return ua(e,t,i)}return t.flags|=1,e=ea(u,a),e.ref=t.ref,e.return=t,t.child=e}function Ey(e,t,l,a,i){if(e!==null){var u=e.memoizedProps;if(pu(u,a)&&e.ref===t.ref)if(rt=!1,t.pendingProps=a=u,qo(e,i))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,ua(e,t,i)}return Ro(e,t,l,a,i)}function _y(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 Ty(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Gr(t,u!==null?u.cachePool:null),u!==null?Cm(t,u):uo(),wm(t);else return a=t.lanes=536870912,Ty(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Gr(t,u.cachePool),Cm(t,u),Ma(),t.memoizedState=null):(e!==null&&Gr(t,null),uo(),Ma());return ct(e,t,i,l),t.child}function Au(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ty(e,t,l,a,i){var u=eo();return u=u===null?null:{parent:it._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Gr(t,null),uo(),wm(t),e!==null&&mn(e,t,a,!0),t.childLanes=i,null}function is(e,t){return t=us({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ny(e,t,l){return xn(t,e.child,null,l),e=is(t,t.pendingProps),e.flags|=2,Ft(t),t.memoizedState=null,e}function zb(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(a.mode==="hidden")return e=is(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Au(null,e);if(so(t),(e=Ze)?(e=Pv(e,sl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_a!==null?{id:Ml,overflow:Dl}:null,retryLane:536870912,hydrationErrors:null},l=sm(e),l.return=t,t.child=l,mt=t,Ze=null)):e=null,e===null)throw Na(t);return t.lanes=536870912,null}return is(t,a)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(so(t),i)if(t.flags&256)t.flags&=-257,t=Ny(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(rt||mn(e,t,l,!1),i=(l&e.childLanes)!==0,rt||i){if(Ra.current===null){if(a=Xe,a!==null&&(o=fh(a,l),o!==0&&o!==u.retryLane))throw u.retryLane=o,on(e,o),Gt(a,e,o),Oo;Ns()}t=Ny(e,t,l)}else e=u.treeContext,Ze=ol(o.nextSibling),mt=t,Ee=!0,Ta=null,sl=!1,e!==null&&fm(t,e),t=is(t,a),t.flags|=134221824;return t}return e=ea(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 Ro(e,t,l,a,i){return yn(t),l=fo(e,t,l,a,void 0,i),a=ho(),e!==null&&!rt?(mo(e,t,i),ua(e,t,i)):(Ee&&a&&Hr(t),t.flags|=1,ct(e,t,l,i),t.child)}function Cy(e,t,l,a,i,u){return yn(t),t.updateQueue=null,l=zm(t,a,l,i),jm(e),a=ho(),e!==null&&!rt?(mo(e,t,u),ua(e,t,u)):(Ee&&a&&Hr(t),t.flags|=1,ct(e,t,l,u),t.child)}function wy(e,t,l,a,i){if(yn(t),t.stateNode===null){var u=ni,o=l.contextType;typeof o=="object"&&o!==null&&(u=bt(o)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=jo,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},lo(t),o=l.contextType,u.context=typeof o=="object"&&o!==null?bt(o):ni,u.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(wo(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&&jo.enqueueReplaceState(u,u.state,null),wu(t,a,u,i),Cu(),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=En(l,y);u.props=S;var z=u.context,M=l.contextType;o=ni,typeof M=="object"&&M!==null&&(o=bt(M));var B=l.getDerivedStateFromProps;M=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||z!==o)&&hy(t,u,a,o),ja=!1;var w=t.memoizedState;u.state=w,wu(t,a,u,i),Cu(),z=t.memoizedState,y||w!==z||ja?(typeof B=="function"&&(wo(t,l,B,a),z=t.memoizedState),(S=ja||dy(t,l,S,a,w,z,o))?(M||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=z),u.props=a,u.state=z,u.context=o,a=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,ao(e,t),o=t.memoizedProps,M=En(l,o),u.props=M,B=t.pendingProps,w=u.context,z=l.contextType,S=ni,typeof z=="object"&&z!==null&&(S=bt(z)),y=l.getDerivedStateFromProps,(z=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==B||w!==S)&&hy(t,u,a,S),ja=!1,w=t.memoizedState,u.state=w,wu(t,a,u,i),Cu();var A=t.memoizedState;o!==B||w!==A||ja||e!==null&&e.dependencies!==null&&Br(e.dependencies)?(typeof y=="function"&&(wo(t,l,y,a),A=t.memoizedState),(M=ja||dy(t,l,M,a,w,A,S)||e!==null&&e.dependencies!==null&&Br(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=S,a=M):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&w===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=xn(t,e.child,null,i),t.child=xn(t,null,l,i)):ct(e,t,l,i),t.memoizedState=u.state,e=t.child):e=ua(e,t,i),e}function jy(e,t,l,a){return dn(),t.flags|=256,ct(e,t,l,a),t.child}var Ao={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mo(e){return{baseLanes:e,cachePool:pm()}}function Do(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:(St.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(i?Aa(t):Ma(),(e=Ze)?(e=Pv(e,sl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_a!==null?{id:Ml,overflow:Dl}:null,retryLane:536870912,hydrationErrors:null},l=sm(e),l.return=t,t.child=l,mt=t,Ze=null)):e=null,e===null)throw Na(t);return Df(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,i?(Ma(),i=t.mode,u=us({mode:"hidden",children:u},i),a=fn(a,i,l,null),u.return=t,a.return=t,u.sibling=a,t.child=u,a=t.child,a.memoizedState=Mo(l),a.childLanes=Do(e,o,l),t.memoizedState=Ao,Au(null,a)):(Aa(t),Uo(t,u))}var y=e.memoizedState;if(y!==null){var S=y.dehydrated;if(S!==null)return Ob(e,t,u,o,a,S,y,l)}return i?(Ma(),i=a.fallback,u=t.mode,y=e.child,S=y.sibling,a=ea(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&1206910976,S!==null?i=ea(S,i):(i=fn(i,u,l,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,Au(null,a),a=t.child,i=e.child.memoizedState,i===null?i=Mo(l):(u=i.cachePool,u!==null?(y=it._currentValue,u=u.parent!==y?{parent:y,pool:y}:u):u=pm(),i={baseLanes:i.baseLanes|l,cachePool:u}),a.memoizedState=i,a.childLanes=Do(e,o,l),t.memoizedState=Ao,Au(e.child,a)):(Aa(t),l=e.child,e=l.sibling,l=ea(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 Uo(e,t){return t=us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function us(e,t){return e=qt(22,e,null,t),e.lanes=0,e}function rs(e,t,l){return xn(t,e.child,null,l),e=Uo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ob(e,t,l,a,i,u,o,y){if(l)return t.flags&256?(Aa(t),t.flags&=-257,rs(e,t,y)):t.memoizedState!==null?(Ma(),t.child=e.child,t.flags|=128,null):(Ma(),u=i.fallback,o=t.mode,i=us({mode:"visible",children:i.children},o),u=fn(u,o,y,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,xn(t,e.child,null,y),i=t.child,i.memoizedState=Mo(y),i.childLanes=Do(e,a,y),t.memoizedState=Ao,Au(null,i));if(Aa(t),Df(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,xu({value:i,source:null,stack:null})),rs(e,t,y)}if(rt||mn(e,t,y,!1),a=(y&e.childLanes)!==0,rt||a){if(Ra.current!==null)return rs(e,t,y);if(a=Xe,a!==null&&(i=fh(a,y),i!==0&&i!==o.retryLane))throw o.retryLane=i,on(e,i),Gt(a,e,i),Oo;return Mf(u)||Ns(),rs(e,t,y)}return Mf(u)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,Ze=ol(u.nextSibling),mt=t,Ee=!0,Ta=null,sl=!1,e!==null&&fm(t,e),t=Uo(t,i.children),t.flags|=134221824,t)}function Oy(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Lr(e.return,t,l)}function Ry(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&Jr(l)===null&&(t=e),e=e.sibling}return t}function ss(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 ko(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 Ho(e,t,l){var a=t.pendingProps,i=a.revealOrder,u=a.tail;a=a.children;var o=St.current;if(t.flags&128)return ju(t,o),null;var y=(o&2)!==0;if(y?(o=o&1|2,t.flags|=128):o&=1,ju(t,o),i==="backwards"&&e!==null?(ko(e),ct(e,t,a,l),ko(e)):ct(e,t,a,l),a=Ee?bu:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oy(e,l,t);else if(e.tag===19)Oy(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=Ry(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null,ko(t)),ss(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&&Jr(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}ss(t,!0,l,null,u,a);break;case"together":ss(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:l=Ry(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),ss(t,!1,i,l,u,a)}return t.child}function Ay(e,t,l){var a=t.pendingProps;return Ca(t,t.type,a.value),ct(e,t,a.children,l),t.child}function ua(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(mn(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=ea(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ea(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function qo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Br(e)))}function Rb(e,t,l){switch(t.tag){case 3:hr(t,t.stateNode.containerInfo),Ca(t,it,e.memoizedState.cache),dn();break;case 27:case 5:oc(t);break;case 4:hr(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,so(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Aa(t),t.flags|=128,null;a=mn(e,t,l,!1);var i=t.child.childLanes;return a||(l&i)!==0?zy(e,t,l):(Aa(t),e=ua(e,t,l),e!==null?e.sibling:null)}Aa(t);break;case 19:if(t.flags&128)return Ho(e,t,l);if(i=(e.flags&128)!==0,a=(l&t.childLanes)!==0,a||(mn(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return Ho(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ju(t,St.current),a)break;return null;case 22:return t.lanes=0,_y(e,t,l,t.pendingProps);case 24:Ca(t,it,e.memoizedState.cache)}return ua(e,t,l)}function My(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!qo(e,l)&&(t.flags&128)===0)return rt=!1,Rb(e,t,l);rt=(e.flags&131072)!==0}else rt=!1,Ee&&(t.flags&1048576)!==0&&om(t,bu,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")Vc(e)?(a=En(e,a),t.tag=1,t=wy(null,t,e,a,l)):(t.tag=0,t=Ro(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=xy(null,t,e,a,l);break e}else if(i===ae){t.tag=14,t=Sy(null,t,e,a,l);break e}else if(i===re){t.tag=10,t.type=e,t=Ay(null,t,l);break e}}throw t=me(e)||e,Error(c(306,t,""))}}return t;case 0:return Ro(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=En(a,t.pendingProps),wy(e,t,a,i,l);case 3:e:{if(hr(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var u=t.memoizedState;i=u.element,ao(e,t),wu(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Ca(t,it,a),a!==u.cache&&Pc(t,[it],l,!0),Cu(),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=jy(e,t,a,l);break e}else if(a!==i){i=il(Error(c(424)),t),xu(i),t=jy(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),mt=t,Ee=!0,Ta=null,sl=!0,l=_m(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(dn(),a===i){t=ua(e,t,l);break e}ct(e,t,a,l)}t=t.child}return t;case 26:return mi(e,t),e===null?(l=np(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ee||(t.stateNode=Hv(t.type,t.pendingProps,ga.current,t)):t.memoizedState=np(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oc(t),e===null&&Ee&&(a=t.stateNode=ep(t.type,t.pendingProps,ga.current),mt=t,sl=!0,i=Ze,Qa(t.type)?(Uf=i,Ze=ol(a.firstChild)):Ze=i),ct(e,t,t.pendingProps.children,l),mi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((i=a=Ze)&&(a=Nx(a,t.type,t.pendingProps,sl),a!==null?(t.stateNode=a,mt=t,Ze=ol(a.firstChild),sl=!1,i=!0):i=!1),i||Na(t)),oc(t),i=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,a=u.children,Cf(i,u)?a=null:o!==null&&Cf(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=fo(e,t,xb,null,null,l),Ai._currentValue=i),mi(e,t),ct(e,t,a,l),t.child;case 6:return e===null&&Ee&&((e=l=Ze)&&(l=Cx(l,t.pendingProps,sl),l!==null?(t.stateNode=l,mt=t,Ze=null,e=!0):e=!1),e||Na(t)),null;case 13:return zy(e,t,l);case 4:return hr(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=xn(t,null,a,l):ct(e,t,a,l),t.child;case 11:return xy(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,mi(e,t),ct(e,t,a,l),t.child;case 8:return ct(e,t,t.pendingProps.children,l),t.child;case 12:return ct(e,t,t.pendingProps.children,l),t.child;case 10:return Ay(e,t,l);case 9:return i=t.type._context,a=t.pendingProps.children,yn(t),i=bt(i),a=a(i),t.flags|=1,ct(e,t,a,l),t.child;case 14:return Sy(e,t,t.type,t.pendingProps,l);case 15:return Ey(e,t,t.type,t.pendingProps,l);case 19:return Ho(e,t,l);case 31:return zb(e,t,l);case 22:return _y(e,t,l,t.pendingProps);case 24:return yn(t),a=bt(it),e===null?(i=eo(),i===null&&(i=Xe,u=Wc(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),t.memoizedState={parent:a,cache:i},lo(t),Ca(t,it,i)):((e.lanes&l)!==0&&(ao(e,t),wu(t,null,null,l),Cu()),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),Ca(t,it,a)):(a=u.cache,Ca(t,it,a),a!==i.cache&&Pc(t,[it],l,!0))),ct(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:Ee&&Hr(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:mi(e,t),ct(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ra(e){e.flags|=4}function Lo(e,t,l,a,i){var u;if((u=(e.mode&32)!==0)&&(u=l===null?sp(t,a):sp(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(mv())e.flags|=8192;else throw bn=Vr,to}else e.flags&=-16777217}function Dy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cp(t))if(mv())e.flags|=8192;else throw bn=Vr,to}function cs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sh():536870912,e.lanes|=t,bi|=t)}function Mu(e,t){if(!Ee)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 Ab(e,t,l){var a=t.pendingProps;switch(Zc(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),aa(it),Xn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ri(t)?ra(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fc())),Je(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(ra(t),u!==null?(Je(t),Dy(t,u)):(Je(t),Lo(t,i,null,a,l))):u?u!==e.memoizedState?(ra(t),Je(t),Dy(t,u)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ra(t),Je(t),Lo(t,i,e,a,l)),null;case 27:if(mr(t),l=ga.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ra(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Je(t),t.subtreeFlags&=-33554433,null}e=Rl.current,ri(t)?dm(t):(e=ep(i,a,l),t.stateNode=e,ra(t))}return Je(t),t.subtreeFlags&=-33554433,null;case 5:if(mr(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ra(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))dm(t);else{var o=Vu(ga.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[Ht]=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(_t(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&&ra(t)}}return Je(t),t.subtreeFlags&=-33554433,Lo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ra(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=ga.current,ri(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=mt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[gt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Mv(e.nodeValue,l)),e||Na(t,!0)}else e=Vu(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 dn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else l=Fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(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 dn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),i=!1}else i=Fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(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),cs(t,t.updateQueue),Je(t),null);case 4:return Xn(),e===null&&Sf(t.stateNode.containerInfo),t.flags|=67108864,Je(t),null;case 10:return aa(t.type),Je(t),null;case 19:if(co(t),a=t.memoizedState,a===null)return Je(t),null;if(i=(t.flags&128)!==0,u=a.rendering,u===null)if(i)Mu(a,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Jr(e),u!==null){for(t.flags|=128,Mu(a,!1),e=u.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)rm(l,e),l=l.sibling;return ju(t,St.current&1|2),Ee&&ta(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Vt()>Ss&&(t.flags|=128,i=!0,Mu(a,!1),t.lanes=4194304)}else{if(!i)if(e=Jr(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,cs(t,e),Mu(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!Ee)return Je(t),null}else 2*Vt()-a.renderingStartTime>Ss&&l!==536870912&&(t.flags|=128,i=!0,Mu(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=Vt(),e.sibling=null,u=St.current,u=i?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||Ee?ju(t,u):(l=u,Ke(xt,t),Ke(St,l),Ct===null&&(Ct=t)),Ee&&ta(t,a.treeForkCount),e}return Je(t),null;case 22:case 23:return Ft(t),ro(),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&&cs(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&&pt(pn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),aa(it),Je(t),null;case 25:return null;case 30:return t.flags|=33554432,Je(t),null}throw Error(c(156,t.tag))}function Mb(e,t){switch(Zc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return aa(it),Xn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mr(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(c(340));dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return co(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 aa(t.type),null;case 22:case 23:return Ft(t),ro(),e!==null&&pt(pn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return aa(it),null;case 25:return null;default:return null}}function Uy(e,t){switch(Zc(t),t.tag){case 3:aa(it),Xn();break;case 26:case 27:case 5:mr(t);break;case 4:Xn();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:co(t);break;case 10:aa(t.type);break;case 22:case 23:Ft(t),ro(),e!==null&&pt(pn);break;case 24:aa(it)}}function Du(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){Qe(t,t.return,y)}}function Da(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,z=y;try{z()}catch(M){Qe(i,S,M)}}}a=a.next}while(a!==u)}}catch(M){Qe(t,t.return,M)}}function ky(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Nm(t,l)}catch(a){Qe(e,e.return,a)}}}function Hy(e,t,l){l.props=En(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Qe(e,t,a)}}function Ul(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=Wl(e.memoizedProps,i);(i.ref===null||i.ref.name!==u)&&(i.ref=Vv(u)),a=i.ref;break;case 7:if(e.stateNode===null){var o=new el(e);g(e.child,!1,_x,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){Qe(e,t,y)}}function Et(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Qe(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){Qe(e,t,i)}else l.current=null}function os(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++)$v(e.stateNode,t[l])}function qy(e){for(var t=e.return;t!==null&&(Qo(t)&&$v(e.stateNode,t.stateNode),!Bo(t));)t=t.return}function Uu(e){for(var t=e.return;t!==null&&(Qo(t)&&Tx(e.stateNode,t.stateNode),!Bo(t));)t=t.return}function Bo(e){return e.tag===5||e.tag===3||e.tag===27}function Qo(e){return e&&e.tag===7&&e.stateNode!==null}function Go(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){Qe(e,e.return,i)}}function Yo(e,t,l){try{var a=e.stateNode;ix(a,e.type,l,t),a[Ht]=t}catch(i){Qe(e,e.return,i)}}function Ly(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Vo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ly(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&&Qa(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 Xo(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=Al)),os(e,a),Ue=!0;else if(i!==4&&(i===27&&(os(e,a),a=null,Qa(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Xo(e,t,l,a),e=e.sibling;e!==null;)Xo(e,t,l,a),e=e.sibling}function fs(e,t,l,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?l.insertBefore(i,t):l.appendChild(i),os(e,a),Ue=!0;else if(i!==4&&(i===27&&(os(e,a),a=null,Qa(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(fs(e,t,l,a),e=e.sibling;e!==null;)fs(e,t,l,a),e=e.sibling}function By(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);_t(t,a,l),t[gt]=e,t[Ht]=l}catch(u){Qe(e,e.return,u)}}var ds=!1,$t=null;function Qy(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ds=!0)}var kl=null;function Gy(){var e=kl;return kl=null,e}var Lt=0;function yi(e,t,l,a,i){return Lt=0,Yy(e.child,t,l,a,i)}function Yy(e,t,l,a,i){for(var u=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(a!==null){var y=zf(o);a.push(y),y.view&&(u=!0)}else u||zf(o).view&&(u=!0);ds=!0,Gv(o,Lt===0?t:t+"_"+Lt,l),Lt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Yy(e.child,t,l,a,i)&&(u=!0));e=e.sibling}return u}function Hl(e,t){for(;e!==null;)e.tag===5?Yv(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Hl(e.child,t)),e=e.sibling}function hs(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(hs(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=Il(t.default,t.share),t!=="none"&&(yi(e,l,t,null,!1)||Hl(e.child,!1))}e=e.sibling}}function Ko(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,i=Wl(a,l),u=Il(a.default,l.paired?a.share:a.enter);u!=="none"?yi(e,i,u,null,!1)?(hs(e),l.paired||t||_i(e,a.onEnter)):Hl(e.child,!1):hs(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Ko(e,t),e=e.sibling;else hs(e)}function Zo(e){if($t!==null&&$t.size!==0){var t=$t;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=Il(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)):Hl(e.child,!1)),t.delete(a),t.size===0)break}}}Zo(e)}e=e.sibling}}}function Jo(e){if(e.tag===30){var t=e.memoizedProps,l=Wl(t,e.stateNode),a=$t!==null?$t.get(l):void 0,i=Il(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,$t.delete(l),_i(e,t.onShare)):_i(e,t.onExit):Hl(e.child,!1)),$t!==null&&Zo(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Jo(e),e=e.sibling;else $t!==null&&Zo(e)}function Vy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=Wl(t,e.stateNode);t=Il(t.default,t.update),e.flags&=-5,t!=="none"&&yi(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Vy(e);e=e.sibling}}function Fo(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,Hl(e.child,!1))}Fo(e)}e=e.sibling}}function ms(e){if(e.tag===30)e.stateNode.paired=null,Hl(e.child,!1),Fo(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ms(e),e=e.sibling;else Fo(e)}function Xy(e){for(e=e.child;e!==null;)e.tag===30?Hl(e.child,!1):(e.subtreeFlags&33554432)!==0&&Xy(e),e=e.sibling}function $o(e,t,l,a,i,u,o){for(var y=!1;t!==null;){if(t.tag===5){var S=t.stateNode;if(u!==null&&Lt<u.length){var z=u[Lt],M=zf(S);(z.view||M.view)&&(y=!0);var B;if(B=(e.flags&4)===0)if(M.clip)B=!0;else{B=z.rect;var w=M.rect;B=B.y!==w.y||B.x!==w.x||B.height!==w.height||B.width!==w.width}B&&(e.flags|=4),M.abs?M=!z.abs:(z=z.rect,M=M.rect,M=z.height!==M.height||z.width!==M.width),M&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Gv(S,Lt===0?l:l+"_"+Lt,i),y&&(e.flags&4)!==0||(kl===null&&(kl=[]),kl.push(S,Lt===0?a:a+"_"+Lt,t.memoizedProps)),Lt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:$o(e,t.child,l,a,i,u,o)&&(y=!0));t=t.sibling}return y}function Ky(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,i=Wl(l,a),u=Il(l.default,l.update),o;o=e.memoizedState,e.memoizedState=null,a=e;var y=e.child;Lt=0,i=$o(a,y,i,i,u,o,!1),(e.flags&4)!==0&&i&&_i(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Ky(e);e=e.sibling}}var yt=!1,Le=!1,ql=!1,Po=!1,Zy=typeof WeakSet=="function"?WeakSet:Set,vt=null,Ll=!1,ku=!1,ys=!1,Wo=!1;function Db(e,t,l){if(e=e.containerInfo,Tf=Mi,e=Ph(e),Hc(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,z=-1,M=0,B=0,w=e,A=null;t:for(;;){for(var $;w!==a||u!==0&&w.nodeType!==3||(S=y+u),w!==o||i!==0&&w.nodeType!==3||(z=y+i),w.nodeType===3&&(y+=w.nodeValue.length),($=w.firstChild)!==null;)A=w,w=$;for(;;){if(w===e)break t;if(A===a&&++M===u&&(S=y),A===o&&++B===i&&(z=y),($=w.nextSibling)!==null)break;w=A,A=w.parentNode}w=$}a=S===-1||z===-1?null:{start:S,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(Nf={focusedElem:e,selectionRange:a},Mi=!1,l=(l&335544064)===l,vt=t,t=l?9270:1024;vt!==null;){if(e=vt,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&Jo(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&Qy(e),vs(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&Jo(a),vs(l);continue}else if(a!==null&&a.memoizedState!==null){l&&Qy(e),vs(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,vt=a):(l&&Vy(e),vs(l))}}$t=null}function vs(e){for(;vt!==null;){var t=vt,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=En(t.type,i);l=u.getSnapshotBeforeUpdate(o,a),u.__reactInternalSnapshotBeforeUpdate=l}catch(y){Qe(t,t.return,y)}}break;case 3:if((i&1024)!==0){if(a=t.stateNode.containerInfo,l=a.nodeType,l===9)Af(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Af(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=Wl(a.memoizedProps,a.stateNode),i=t.memoizedProps,i=Il(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,vt=a;break}vt=t.return}}function Jy(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Bl(e,l),a&4&&Du(5,l);break;case 1:if(Bl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Qe(l,l.return,o)}else{var i=En(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Qe(l,l.return,o)}}a&64&&ky(l),a&512&&Ul(l,l.return);break;case 3:if(Bl(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{Nm(e,t)}catch(o){Qe(l,l.return,o)}}break;case 27:t===null&&a&4&&By(l);case 26:case 5:Bl(e,l),t===null&&a&4&&Go(l),a&512&&Ul(l,l.return);break;case 12:Bl(e,l);break;case 31:Bl(e,l),a&4&&Wy(e,l);break;case 13:Bl(e,l),a&4&&Iy(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Kb.bind(null,l),wx(e,l))));break;case 22:if(a=l.memoizedState!==null||yt,!a){var u=t!==null&&t.memoizedState!==null||Le;t=yt,i=Le,yt=a,(Le=u)&&!i?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),xl(e,l,a)):Bl(e,l),yt=t,Le=i}break;case 30:Bl(e,l),a&512&&Ul(l,l.return);break;case 7:a&512&&Ul(l,l.return);default:Bl(e,l)}}function Io(e,t){for(e=e.child;e!==null;)Fy(e,t),e=e.sibling}function Fy(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){Qe(e,e.return,S)}ef(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Ue=!0}catch(S){Qe(e,e.return,S)}break;case 18:try{var y=e.stateNode;t?Qv(y,!0):Qv(e.stateNode,!1)}catch(S){Qe(e,e.return,S)}break;case 22:case 23:e.memoizedState===null&&Io(e,t);break;default:Io(e,t)}}function ef(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:Fy(l,a);break e;case 22:l.memoizedState===null&&ef(l,a);break e;default:ef(l,a)}}e=e.sibling}}function $y(e){var t=e.alternate;t!==null&&(e.alternate=null,$y(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Sr(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 $e=null,Bt=!1;function gl(e,t,l){for(l=l.child;l!==null;)Py(e,t,l),l=l.sibling}function Py(e,t,l){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(iu,l)}catch{}switch(l.tag){case 26:Le||Et(l,t),gl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Le&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||Et(l,t),Uu(l);var a=$e,i=Bt;Qa(l.type)&&($e=l.stateNode,Bt=!1),gl(e,t,l),tp(l.stateNode,l.type,l.memoizedProps),$e=a,Bt=i;break;case 5:Le||Et(l,t),Uu(l);case 6:if(l.tag===6&&Uu(l),a=$e,i=Bt,$e=null,gl(e,t,l),$e=a,Bt=i,$e!==null)if(Bt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(l.stateNode),Ue=!0}catch(u){Qe(l,t,u)}else try{$e.removeChild(l.stateNode),Ue=!0}catch(u){Qe(l,t,u)}break;case 18:$e!==null&&(Bt?(e=$e,Bv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Di(e)):Bv($e,l.stateNode));break;case 4:a=$e,i=Bt,$e=l.stateNode.containerInfo,Bt=!0,gl(e,t,l),$e=a,Bt=i;break;case 0:case 11:case 14:case 15:Da(2,l,t),Le||Da(4,l,t),gl(e,t,l);break;case 1:Le||(Et(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Hy(l,t,a)),gl(e,t,l);break;case 21:gl(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,gl(e,t,l),Le=a;break;case 30:Et(l,t),gl(e,t,l);break;case 7:Le||Et(l,t),gl(e,t,l);break;default:gl(e,t,l)}}function Wy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Di(e)}catch(l){Qe(t,t.return,l)}}}function Iy(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){Qe(t,t.return,l)}}function Ub(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zy),t;default:throw Error(c(435,e.tag))}}function ps(e,t){var l=Ub(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=Zb.bind(null,e,a);a.then(i,i)}})}function At(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(Qa(S.type)){$e=S.stateNode,Bt=!1;break e}break;case 5:$e=S.stateNode,Bt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,Bt=!0;break e}S=S.return}if($e===null)throw Error(c(160));Py(o,y,u),$e=null,Bt=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ev(t,e,l),t=t.sibling}var bl=null;function ev(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}At(t,e,l),Mt(e),i&4&&(Da(3,e,e.return),Du(3,e),Da(5,e,e.return));break;case 1:At(t,e,l),Mt(e),i&512&&(Le||a===null||Et(a,a.return)),i&64&&yt&&(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,At(t,e,l),Mt(e),i&512&&(Le||a===null||Et(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(yt)e.stateNode=Hv(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[su]||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"))),_t(a,t,l),a[gt]=e,ht(a),t=a;break e;case"link":if(u=rp("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),_t(a,t,l),i.head.appendChild(a);break;case"meta":if(u=rp("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),_t(a,t,l),i.head.appendChild(a);break;default:throw Error(c(468,t))}a[gt]=e,ht(a),t=a}e.stateNode=t}else yt||Lf(u,e.type,e.stateNode);else e.stateNode=up(u,l,e.memoizedProps);else i!==l?(i===null?(t=a.stateNode,t===null||Le||t.parentNode.removeChild(t)):i.count--,l===null?yt||Lf(u,e.type,e.stateNode):up(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Yo(e,e.memoizedProps,a.memoizedProps);break;case 27:At(t,e,l),Mt(e),i&512&&(Le||a===null||Et(a,a.return)),a!==null&&i&4&&Yo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=ql,ql=!1,At(t,e,l),ql=u,Mt(e),i&512&&(Le||a===null||Et(a,a.return)),e.flags&32){t=e.stateNode;try{Pn(t,""),Ue=!0}catch(M){Qe(e,e.return,M)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Yo(e,t,a!==null?a.memoizedProps:t)),i&1024&&(Po=!0);break;case 6:if(At(t,e,l),Mt(e),i&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,Ue=!0}catch(M){Qe(e,e.return,M)}}break;case 3:if(Ue=!1,As=null,u=bl,bl=Xu(t.containerInfo),At(t,e,l),bl=u,Mt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(M){Qe(e,e.return,M)}Po&&(Po=!1,tv(e)),Ue=!1;break;case 4:i=ql,ql=yt,a=Sh(),u=bl,bl=Xu(e.stateNode.containerInfo),At(t,e,l),Mt(e),bl=u,Ue&&ku&&(ys=!0),Ue=a,ql=i;break;case 12:At(t,e,l),Mt(e);break;case 31:At(t,e,l),Mt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 13:At(t,e,l),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xs=Vt()),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=yt,S=Le,z=ql;yt=y||u,ql=z||u,Le=S||o,At(t,e,l),Le=S,ql=z,yt=y,Mt(e),i&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||o||yt||Le||(t=o||Le,l=yt,a=Le,yt=u||yt,Le=t,Ua(e,2),yt=l,Le=a),!u&&ql||Io(e,u)),i&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,ps(e,l))));break;case 19:At(t,e,l),Mt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 30:i&512&&(Le||a===null||Et(a,a.return)),i=Sh(),u=ku,o=(l&335544064)===l,y=e.memoizedProps,ku=o&&Il(y.default,y.update)!=="none",At(t,e,l),Mt(e),o&&a!==null&&Ue&&(e.flags|=4),ku=u,Ue=i;break;case 21:break;case 7:i&512&&(Le||a===null||Et(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:At(t,e,l),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Ly(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(Bo(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=Vo(e);fs(e,S,y,o);break;case 5:var z=l.stateNode;l.flags&32&&(Pn(z,""),l.flags&=-33);var M=Vo(e);fs(e,M,z,o);break;case 3:case 4:var B=l.stateNode.containerInfo,w=Vo(e);Xo(e,w,B,o);break;default:throw Error(c(161))}}catch(A){Qe(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;tv(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;)lv(t,e),t=t.sibling;else Ky(t)}function lv(e,t){var l=e.alternate;if(l===null)Ko(e,!1);else switch(e.tag){case 3:if(Wo=Ll=!1,Gy(),vi(t,e),!Ll&&!ys){if(e=kl,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var i=e[a+1];Yv(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"})),Wo=!0}kl=null;break;case 5:vi(t,e);break;case 4:a=Ll,Ll=!1,vi(t,e),Ll&&(ys=!0),Ll=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Ko(e,!1):vi(t,e));break;case 30:a=Ll,i=Gy(),Ll=!1,vi(t,e),Ll&&(e.flags|=4);var u=e.memoizedProps,o=e.stateNode;t=Wl(u,o),o=Wl(l.memoizedProps,o);var y=Il(u.default,u.update);y==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,Lt=0,t=$o(e,l,t,o,y,u,!0),Lt!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(_i(e,e.memoizedProps.onUpdate),kl=i):i!==null&&(i.push.apply(i,kl),kl=i),Ll=(e.flags&32)!==0?!0:a;break;default:vi(t,e)}}function Bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jy(e,t.alternate,t),t=t.sibling}function Ua(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:Da(4,l,l.return),Ua(l,a);break;case 1:Et(l,l.return);var i=l.stateNode;typeof i.componentWillUnmount=="function"&&Hy(l,l.return,i),Ua(l,a);break;case 27:(a&2)!==0&&tp(l.stateNode,l.type,l.memoizedProps);case 5:Et(l,l.return),l.tag!==5&&l.tag!==27||Uu(l),Ua(l,a);break;case 6:Uu(l);break;case 26:Et(l,l.return),i=l.stateNode,l.memoizedState!==null||i===null||Le||i.parentNode.removeChild(i),Ua(l,a);break;case 22:l.memoizedState===null&&Ua(l,a);break;case 30:Et(l,l.return),Ua(l,a);break;case 7:Et(l,l.return);default:Ua(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),Du(4,u);break;case 1:if(xl(i,u,l),a=u,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Qe(a,a.return,M)}if(a=u,i=a.updateQueue,i!==null){var S=a.stateNode;try{var z=i.shared.hiddenCallbacks;if(z!==null)for(i.shared.hiddenCallbacks=null,i=0;i<z.length;i++)Tm(z[i],S)}catch(M){Qe(a,a.return,M)}}y&&o&64&&ky(u),Ul(u,u.return);break;case 27:(l&2)!==0&&By(u);case 5:u.tag!==5&&u.tag!==27||qy(u),xl(i,u,l),y&&a===null&&o&4&&Go(u),Ul(u,u.return);break;case 6:qy(u);break;case 26:S=u.stateNode,u.memoizedState!==null||S===null||yt||Lf(Xu(S.ownerDocument),u.type,S),xl(i,u,l),y&&a===null&&o&4&&Go(u),Ul(u,u.return);break;case 12:xl(i,u,l);break;case 31:xl(i,u,l),y&&o&4&&Wy(i,u);break;case 13:xl(i,u,l),y&&o&4&&Iy(i,u);break;case 22:u.memoizedState===null&&xl(i,u,l),Ul(u,u.return);break;case 30:xl(i,u,l),Ul(u,u.return);break;case 7:Ul(u,u.return);default:xl(i,u,l)}t=t.sibling}}function tf(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&&Su(l))}function lf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Su(e))}function cl(e,t,l,a){var i=(l&335544064)===l;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)av(e,t,l,a),t=t.sibling;else i&&Xy(t)}function av(e,t,l,a){var i=(l&335544064)===l;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ms(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:cl(e,t,l,a),u&2048&&Du(9,t);break;case 1:cl(e,t,l,a);break;case 3:cl(e,t,l,a),i&&Wo&&(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&&Su(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(z){Qe(t,t.return,z)}}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&&ms(y),o._visibility&2?cl(e,t,l,a):Hu(e,t)):(i&&y!==null&&y.memoizedState!==null&&ms(t),o._visibility&2?cl(e,t,l,a):(o._visibility|=2,pi(e,t,l,a,(t.subtreeFlags&10256)!==0||!1))),u&2048&&tf(y,t);break;case 24:cl(e,t,l,a),u&2048&&lf(t.alternate,t);break;case 30:i&&(u=t.alternate,u!==null&&(Hl(u.child,!0),Hl(t.child,!0))),cl(e,t,l,a);break;default:cl(e,t,l,a)}}function pi(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,z=o.flags;switch(o.tag){case 0:case 11:case 15:pi(u,o,y,S,i),Du(8,o);break;case 23:break;case 22:var M=o.stateNode;o.memoizedState!==null?M._visibility&2?pi(u,o,y,S,i):Hu(u,o):(M._visibility|=2,pi(u,o,y,S,i)),i&&z&2048&&tf(o.alternate,o);break;case 24:pi(u,o,y,S,i),i&&z&2048&&lf(o.alternate,o);break;default:pi(u,o,y,S,i)}t=t.sibling}}function Hu(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:Hu(l,a),i&2048&&tf(a.alternate,a);break;case 24:Hu(l,a),i&2048&&lf(a.alternate,a);break;default:Hu(l,a)}t=t.sibling}}var _n=8192;function Tn(e,t,l){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)nv(e,t,l),e=e.sibling}function nv(e,t,l){switch(e.tag){case 26:Tn(e,t,l),e.flags&_n&&(e.memoizedState!==null?Qx(l,bl,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&fp(l,e)));break;case 5:Tn(e,t,l),e.flags&_n&&(e=e.stateNode,(t&335544128)===t&&fp(l,e));break;case 3:case 4:var a=bl;bl=Xu(e.stateNode.containerInfo),Tn(e,t,l),bl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,Tn(e,t,l),_n=a):Tn(e,t,l));break;case 30:if((e.flags&_n)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var i=e.stateNode;i.paired=null,$t===null&&($t=new Map),$t.set(a,i)}Tn(e,t,l);break;default:Tn(e,t,l)}}function iv(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 qu(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];vt=a,rv(a,e)}iv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)uv(e),e=e.sibling}function uv(e){switch(e.tag){case 0:case 11:case 15:qu(e),e.flags&2048&&Da(9,e,e.return);break;case 3:qu(e);break;case 12:qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gs(e)):qu(e);break;default:qu(e)}}function gs(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];vt=a,rv(a,e)}iv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),gs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,gs(t));break;default:gs(t)}e=e.sibling}}function rv(e,t){for(;vt!==null;){var l=vt;switch(l.tag){case 0:case 11:case 15:Da(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:Su(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,vt=a;else e:for(l=e;vt!==null;){a=vt;var i=a.sibling,u=a.return;if($y(a),a===l){vt=null;break e}if(i!==null){i.return=u,vt=i;break e}vt=u}}}var kb={getCacheForType:function(e){var t=bt(it),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return bt(it).controller.signal}},Hb=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,Ne=null,je=0,Be=0,Pt=null,ka=!1,gi=!1,af=!1,sa=0,lt=0,Ha=0,Nn=0,bs=0,Wt=0,bi=0,Lu=null,Qt=null,nf=!1,xs=0,sv=0,Ss=1/0,Es=null,qa=null,Ie=0,Sl=null,Cn=null,Ql=0,uf=0,rf=null,cv=null,xi=null,Si=null,Ei=null,Bu=0,_s=null;function It(){return(He&2)!==0&&je!==0?je&-je:se.T!==null?pf():dh()}function ov(){if(Wt===0)if((je&536870912)===0||Ee){var e=pr;pr<<=1,(pr&3932160)===0&&(pr=262144),Wt=e}else Wt=536870912;return e=xt.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=Vv(Wl(e.memoizedProps,l))),Si===null&&(Si=[]),Si.push(t.bind(null,a))}}function Gt(e,t,l){(e===Xe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Ti(e,0),La(e,je,Wt,!1)),ru(e,l),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(Nn|=l),lt===4&&La(e,je,Wt,!1)),Gl(e))}function fv(e,t,l){if((He&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||uu(e,t),i=a?Bb(e,t):cf(e,t,!0),u=a;do{if(i===0){gi&&!a&&La(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!qb(l)){i=cf(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=Lu;var S=y.current.memoizedState.isDehydrated;if(S&&(Ti(y,o).flags|=256),o=cf(y,o,!1),o!==2&&o!==6){if(af&&!S){y.errorRecoveryDisabledLanes|=u,Nn|=u,i=4;break e}u=Qt,Qt=i,u!==null&&(Qt===null?Qt=u:Qt.push.apply(Qt,u))}i=o}if(u=!1,i!==2)continue}}if(i===1){Ti(e,0),La(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:La(a,t,Wt,!ka);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=xs+300-Vt(),10<i)){if(La(a,t,Wt,!ka),br(a,0,!0)!==0)break e;Ql=t,a.timeoutHandle=jf(dv.bind(null,a,l,Qt,Es,nf,t,Wt,Nn,bi,ka,u,"Throttled",-0,0),i);break e}dv(a,l,Qt,Es,nf,t,Wt,Nn,bi,ka,u,null,-0,0)}}break}while(!0);Gl(e)}function dv(e,t,l,a,i,u,o,y,S,z,M,B,w,A){e.timeoutHandle=-1;var $=t.subtreeFlags,ce=(u&335544064)===u;if(B=null,(ce||$&8192||($&16785408)===16785408)&&(B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Al},$t=null,nv(t,u,B),ce&&($=B,ce=e.containerInfo,ce=(ce.nodeType===9?ce:ce.ownerDocument).__reactViewTransition,ce!=null&&($.count++,$.waitingForViewTransition=!0,$=Ju.bind($),ce.finished.then($,$))),$=(u&62914560)===u?xs-Vt():(u&4194048)===u?sv-Vt():0,$=Gx(B,$),$!==null)){Ql=u,e.cancelPendingCommit=$(xv.bind(null,e,t,u,l,a,i,o,y,S,z,M,B,null,w,A)),La(e,u,o,!z);return}xv(e,t,u,l,a,i,o,y,S,z,M,B)}function qb(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(!Jt(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 La(e,t,l,a){t=rh(e,t),t&=~bs,t&=~Nn,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var u=31-Kt(i),o=1<<u;a[u]=-1,i&=~o}l!==0&&ch(e,l,t)}function Ts(){return(He&6)===0?(Qu(0),!1):!0}function sf(){if(Ne!==null){if(Be===0)var e=Ne.return;else e=Ne,la=hn=null,yo(e),oi=null,Tu=0,e=Ne;for(;e!==null;)Uy(e.alternate,e),e=e.return;Ne=null}}function Ti(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,sx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ql=0,sf(),Xe=e,Ne=l=ea(e.current,null),je=t,Be=0,Pt=null,ka=!1,gi=uu(e,t),af=!1,bi=Wt=bs=Nn=Ha=lt=0,Qt=Lu=null,nf=!1,sa=rh(e,t),Ar(),l}function hv(e,t){be=null,se.H=as,t===ci||t===Yr?(t=xm(),Be=3):t===to?(t=xm(),Be=4):Be=t===Oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pt=t,Ne===null&&(lt=1,ns(e,il(t,e.current)))}function mv(){var e=xt.current;return e===null?!0:(je&4194048)===je?Ct===null:(je&62914560)===je||(je&536870912)!==0?e===Ct:!1}function yv(){var e=se.H;return se.H=as,e===null?as:e}function vv(){var e=se.A;return se.A=kb,e}function Ns(){lt=4,ka||(je&4194048)!==je&&xt.current!==null||(gi=!0),(Ha&134217727)===0&&(Nn&134217727)===0||Xe===null||La(Xe,je,Wt,!1)}function cf(e,t,l){var a=He;He|=2;var i=yv(),u=vv();(Xe!==e||je!==t)&&(Es=null,Ti(e,t)),t=!1;var o=lt;e:do try{if(Be!==0&&Ne!==null){var y=Ne,S=Pt;switch(Be){case 8:sf(),o=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var z=Be;if(Be=0,Pt=null,Ni(e,y,S,z),l&&gi){o=0;break e}break;default:z=Be,Be=0,Pt=null,Ni(e,y,S,z)}}Lb(),o=lt;break}catch(M){hv(e,M)}while(!0);return t&&e.shellSuspendCounter++,la=hn=null,He=a,se.H=i,se.A=u,Ne===null&&(Xe=null,je=0,Ar()),o}function Lb(){for(;Ne!==null;)pv(Ne)}function Bb(e,t){var l=He;He|=2;var a=yv(),i=vv();Xe!==e||je!==t?(Es=null,Ss=Vt()+500,Ti(e,t)):gi=uu(e,t);e:do try{if(Be!==0&&Ne!==null){t=Ne;var u=Pt;t:switch(Be){case 1:Be=0,Pt=null,Ni(e,t,u,1);break;case 2:case 9:if(gm(u)){Be=0,Pt=null,gv(t);break}t=function(){Be!==2&&Be!==9||Xe!==e||(Be=7),Gl(e)},u.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:gm(u)?(Be=0,Pt=null,gv(t)):(Be=0,Pt=null,Ni(e,t,u,7));break;case 5:var o=null;switch(Ne.tag){case 26:o=Ne.memoizedState;case 5:case 27:var y=Ne;if(o?cp(o):y.stateNode.complete){Be=0,Pt=null;var S=y.sibling;if(S!==null)Ne=S;else{var z=y.return;z!==null?(Ne=z,Cs(z)):Ne=null}break t}}Be=0,Pt=null,Ni(e,t,u,5);break;case 6:Be=0,Pt=null,Ni(e,t,u,6);break;case 8:sf(),lt=6;break e;default:throw Error(c(462))}}Qb();break}catch(M){hv(e,M)}while(!0);return la=hn=null,se.H=a,se.A=i,He=l,Ne!==null?0:(Xe=null,je=0,Ar(),lt)}function Qb(){for(;Ne!==null&&!n1();)pv(Ne)}function pv(e){var t=My(e.alternate,e,sa);e.memoizedProps=e.pendingProps,t===null?Cs(e):Ne=t}function gv(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Cy(l,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Cy(l,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:yo(t);var a=t;a===mt&&(Ee?(qr(a),a.tag===5&&a.stateNode!=null&&(Ze=a.stateNode)):(qr(a),Ee=!0));default:Uy(l,t),t=Ne=rm(t,sa),t=My(l,t,sa)}e.memoizedProps=e.pendingProps,t===null?Cs(e):Ne=t}function Ni(e,t,l,a){la=hn=null,yo(t),oi=null,Tu=0;var i=t.return;try{if(jb(e,i,t,l,je)){lt=1,ns(e,il(l,e.current)),Ne=null;return}}catch(u){if(i!==null)throw Ne=i,u;lt=1,ns(e,il(l,e.current)),Ne=null;return}t.flags&32768?(Ee||a===1?e=!0:gi||(je&536870912)!==0?e=!1:(ka=e=!0,(a===2||a===9||a===3||a===6)&&(a=xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),bv(t,e)):Cs(t)}function Cs(e){var t=e;do{if((t.flags&32768)!==0){bv(t,ka);return}e=t.return;var l=Ab(t.alternate,t,sa);if(l!==null){Ne=l;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);lt===0&&(lt=5)}function bv(e,t){do{var l=Mb(e.alternate,e);if(l!==null){l.flags&=32767,Ne=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=l}while(e!==null);lt=6,Ne=null}function xv(e,t,l,a,i,u,o,y,S,z,M,B){e.cancelPendingCommit=null;do ws();while(Ie!==0);if((He&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===Xe&&(Ne=Xe=null,je=0),Cn=t,Sl=e,Ql=l,rf=i,cv=a,Gb(e,t,l,o,y,S,B)}}function Gb(e,t,l,a,i,u,o){var y=t.lanes|t.childLanes;if(uf=y,y|=Gc,m1(e,l,y,a,i,u),Si=null,(l&335544064)===l?(Ei=vb(e),a=10262):(Ei=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,Jb(yr,function(){return hf(),null})):(e.callbackNode=null,e.callbackPriority=0),ds=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=se.T,se.T=null,i=ye.p,ye.p=2,u=He,He|=4;try{Db(e,t,l)}finally{He=u,ye.p=i,se.T=a}}Ie=1,ds?xi=mx(o,e.containerInfo,Ei,of,ff,Vb,df,hf,Yb):(of(),ff(),df())}function Yb(e){if(Ie!==0){var t=Sl.onRecoverableError;t(e,{componentStack:null})}}function Vb(){Ie===3&&(Ie=0,lv(Cn,Sl),Ie=4)}function of(){if(Ie===1){Ie=0;var e=Sl,t=Cn,l=Ql,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=se.T,se.T=null;var i=ye.p;ye.p=2;var u=He;He|=4;try{ku=ys=!1,ev(t,e,l),l=Nf;var o=Ph(e.containerInfo),y=l.focusedElem,S=l.selectionRange;if(o!==y&&y&&y.ownerDocument&&$h(y.ownerDocument.documentElement,y)){if(S!==null&&Hc(y)){var z=S.start,M=S.end;if(M===void 0&&(M=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(M,y.value.length);else{var B=y.ownerDocument||document,w=B&&B.defaultView||window;if(w.getSelection){var A=w.getSelection(),$=y.textContent.length,ce=Math.min(S.start,$),xe=S.end===void 0?ce:Math.min(S.end,$);!A.extend&&ce>xe&&(o=xe,xe=ce,ce=o);var j=Fh(y,ce),N=Fh(y,xe);if(j&&N&&(A.rangeCount!==1||A.anchorNode!==j.node||A.anchorOffset!==j.offset||A.focusNode!==N.node||A.focusOffset!==N.offset)){var O=B.createRange();O.setStart(j.node,j.offset),A.removeAllRanges(),ce>xe?(A.addRange(O),A.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),A.addRange(O))}}}}for(B=[],A=y;A=A.parentNode;)A.nodeType===1&&B.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<B.length;y++){var L=B[y];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Mi=!!Tf,Nf=Tf=null}finally{He=u,ye.p=i,se.T=a}}e.current=t,Ie=2}}function ff(){if(Ie===2){Ie=0;var e=Sl,t=Cn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=se.T,se.T=null;var a=ye.p;ye.p=2;var i=He;He|=4;try{Jy(e,t.alternate,t)}finally{He=i,ye.p=a,se.T=l}}Ie=3}}function df(){if(Ie===4||Ie===3){Ie=0;var e=xi;xi=null,i1();var t=Sl,l=Cn,a=Ql,i=cv,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Ie=5:(Ie=0,Cn=Sl=null,Sv(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(qa=null),bc(a),l=l.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(iu,l,void 0,(l.current.flags&128)===128)}catch{}if(i!==null){l=se.T,u=ye.p,ye.p=2,se.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{se.T=l,ye.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);(Ql&3)!==0&&ws(),Gl(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===_s?Bu++:(Bu=0,_s=t):(Bu=0,_s=null),Qu(0)}}function Sv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Su(t)))}function ws(){return xi!==null&&(xi.skipTransition(),xi=null),of(),ff(),df(),hf()}function hf(){if(Ie!==5)return!1;var e=Sl,t=uf;uf=0;var l=bc(Ql),a=se.T,i=ye.p;try{ye.p=32>l?32:l,se.T=null,l=rf,rf=null;var u=Sl,o=Ql;if(Ie=0,Cn=Sl=null,Ql=0,(He&6)!==0)throw Error(c(331));var y=He;if(He|=4,uv(u.current),av(u,u.current,o,l),He=y,Qu(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(iu,u)}catch{}return!0}finally{ye.p=i,se.T=a,Sv(e,t)}}function Ev(e,t,l){t=il(l,t),t=zo(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(ru(e,2),Gl(e))}function Qe(e,t,l){if(e.tag===3)Ev(e,e,l);else for(;t!==null;){if(t.tag===3){Ev(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(qa===null||!qa.has(a))){e=il(l,e),l=gy(2),a=Oa(t,l,2),a!==null&&(by(l,a,t,e),ru(a,2),Gl(a));break}}t=t.return}}function mf(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Hb;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)||(af=!0,i.add(l),e=Xb.bind(null,e,t,l),t.then(e,e))}function Xb(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Xe===e&&(je&l)===l&&((lt===4||lt===3&&(je&62914560)===je&&300>Vt()-xs)&&(He&2)===0?Ti(e,0):bs|=l,bi===je&&(bi=0)),Gl(e)}function _v(e,t){t===0&&(t=sh()),e=on(e,t),e!==null&&(ru(e,t),Gl(e))}function Kb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),_v(e,l)}function Zb(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),_v(e,l)}function Jb(e,t){return yc(e,t)}var Ci=null,wi=null,yf=!1,js=!1,vf=!1,Ba=0;function Gl(e){e!==wi&&e.next===null&&(wi===null?Ci=wi=e:wi=wi.next=e),js=!0,yf||(yf=!0,$b())}function Qu(e,t){if(!vf&&js){vf=!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-Kt(42|e)+1)-1,u&=i&~(o&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,wv(a,u))}else u=je,u=br(a,a===Xe?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||uu(a,u)||(l=!0,wv(a,u));a=a.next}while(l);vf=!1}}function Fb(){Tv()}function Tv(){js=yf=!1;var e=0;Ba!==0&&rx()&&(e=Ba);for(var t=Vt(),l=null,a=Ci;a!==null;){var i=a.next,u=Nv(a,t);u===0?(a.next=null,l===null?Ci=i:l.next=i,i===null&&(wi=l)):(l=a,(e!==0||(u&3)!==0)&&(js=!0)),a=i}Ie!==0&&Ie!==5||Qu(e),Ba!==0&&(Ba=0)}function Nv(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-Kt(u),y=1<<o,S=i[o];S===-1?((y&l)===0||(y&a)!==0)&&(i[o]=h1(y,t)):S<=t&&(e.expiredLanes|=y),u&=~y}if(t=Xe,l=je,l=br(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&vc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||uu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&vc(a),bc(l)){case 2:case 8:l=ih;break;case 32:l=yr;break;case 268435456:l=uh;break;default:l=yr}return a=Cv.bind(null,e),l=yc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&vc(a),e.callbackPriority=2,e.callbackNode=null,2}function Cv(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ws()&&e.callbackNode!==l)return null;var a=je;return a=br(e,e===Xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(fv(e,a,t),Nv(e,Vt()),e.callbackNode!=null&&e.callbackNode===l?Cv.bind(null,e):null)}function wv(e,t){if(ws())return null;fv(e,t,!0)}function $b(){cx(function(){(He&6)!==0?yc(nh,Fb):Tv()})}function pf(){if(Ba===0){var e=vn;e===0&&(e=vr,vr<<=1,(vr&261888)===0&&(vr=256)),Ba=e}return Ba}function jv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tr(e)}function Pb(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var u=jv((i[Ht]||null).action),o=a.submitter;o&&(t=(t=o[Ht]||null)?jv(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var y=new jr("action","action",null,a,i);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ba!==0){var S=new FormData(i,o);To(l,{pending:!0,data:S,method:i.method,action:u},null,S)}}else typeof u=="function"&&(y.preventDefault(),S=new FormData(i,o),To(l,{pending:!0,data:S,method:i.method,action:u},u,S))},currentTarget:i}]})}}for(var gf=0;gf<Qc.length;gf++){var bf=Qc[gf],Wb=bf.toLowerCase(),Ib=bf[0].toUpperCase()+bf.slice(1);pl(Wb,"on"+Ib)}pl(em,"onAnimationEnd"),pl(tm,"onAnimationIteration"),pl(lm,"onAnimationStart"),pl("dblclick","onDoubleClick"),pl("focusin","onFocus"),pl("focusout","onBlur"),pl(sb,"onTransitionRun"),pl(cb,"onTransitionStart"),pl(ob,"onTransitionCancel"),pl(am,"onTransitionEnd"),Fn("onMouseEnter",["mouseout","mouseover"]),Fn("onMouseLeave",["mouseout","mouseover"]),Fn("onPointerEnter",["pointerout","pointerover"]),Fn("onPointerLeave",["pointerout","pointerover"]),rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gu="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(" "),ex=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gu));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,z=y.currentTarget;if(y=y.listener,S!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=z;try{u(i)}catch(M){Rr(M)}i.currentTarget=null,u=S}else for(o=0;o<a.length;o++){if(y=a[o],S=y.instance,z=y.currentTarget,y=y.listener,S!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=z;try{u(i)}catch(M){Rr(M)}i.currentTarget=null,u=S}}}}function Ce(e,t){var l=t[mh];l===void 0&&(l=t[mh]=new Set);var a=e+"__bubble";l.has(a)||(Ov(t,e,2,!1),l.add(a))}function xf(e,t,l){var a=0;t&&(a|=4),Ov(l,e,a,t)}var zs="_reactListening"+Math.random().toString(36).slice(2);function Sf(e){if(!e[zs]){e[zs]=!0,ph.forEach(function(l){l!=="selectionchange"&&(ex.has(l)||xf(l,!1,e),xf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zs]||(t[zs]=!0,xf("selectionchange",!1,t))}}function Ov(e,t,l,a){switch(bp(t)){case 2:var i=Kx;break;case 8:i=Zx;break;default:i=Qf}l=i.bind(null,t,l,e),i=void 0,!wc||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 Ef(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=un(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}Oh(function(){var z=u,M=Nc(l),B=[];e:{var w=nm.get(e);if(w!==void 0){var A=jr,$=e;switch(e){case"keypress":if(Cr(l)===0)break e;case"keydown":case"keyup":A=q1;break;case"focusin":$="focus",A=Rc;break;case"focusout":$="blur",A=Rc;break;case"beforeblur":case"afterblur":A=Rc;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":A=Mh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=C1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Y1;break;case em:case tm:case lm:A=z1;break;case am:A=X1;break;case"scroll":case"scrollend":A=T1;break;case"wheel":A=Z1;break;case"copy":case"cut":case"paste":A=R1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Uh;break;case"submit":A=Q1;break;case"toggle":case"beforetoggle":A=F1}var ce=(t&4)!==0,xe=!ce&&(e==="scroll"||e==="scrollend"),j=ce?w!==null?w+"Capture":null:w;ce=[];for(var N=z,O;N!==null;){var L=N;if(O=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||O===null||j===null||(L=ou(N,j),L!=null&&ce.push(Yu(N,L,O))),xe)break;N=N.return}0<ce.length&&(w=new A(w,$,null,l,M),B.push({event:w,listeners:ce}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",A&&l!==Tc&&($=l.relatedTarget||l.fromElement)&&(un($)||$[Kn]))break e;(w||A)&&($=M.window===M?M:(A=M.ownerDocument)?A.defaultView||A.parentWindow:window,w?(A=l.relatedTarget||l.toElement,w=z,A=A?un(A):null,A!==null&&(xe=h(A),ce=A.tag,A!==xe||ce!==5&&ce!==27&&ce!==6)&&(A=null)):(w=null,A=z),w!==A&&(ce=Mh,L="onMouseLeave",j="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Uh,L="onPointerLeave",j="onPointerEnter",N="pointer"),xe=w==null?$:cu(w),O=A==null?$:cu(A),$=new ce(L,N+"leave",w,l,M),$.target=xe,$.relatedTarget=O,L=null,un(M)===z&&(ce=new ce(j,N+"enter",A,l,M),ce.target=O,ce.relatedTarget=xe,L=ce),xe=L,ce=w&&A?de(w,A,tx):null,w!==null&&Rv(B,$,w,ce,!1),A!==null&&xe!==null&&Rv(B,xe,A,ce,!0)))}e:{if(w=z?cu(z):window,A=w.nodeName&&w.nodeName.toLowerCase(),A==="select"||A==="input"&&w.type==="file")var te=Yh;else if(Qh(w))if(Vh)te=ib;else{te=ab;var ze=lb}else A=w.nodeName,!A||A.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?z&&_c(z.elementType)&&(te=Yh):te=nb;if(te&&(te=te(e,z))){Gh(B,te,l,M);break e}ze&&ze(e,w,z)}switch(ze=z?cu(z):window,e){case"focusin":(Qh(ze)||ze.contentEditable==="true")&&(ti=ze,qc=z,gu=null);break;case"focusout":gu=qc=ti=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,Wh(B,l,M);break;case"selectionchange":if(rb)break;case"keydown":case"keyup":Wh(B,l,M)}var fe;if(Mc)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?Lh(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(kh&&l.locale!=="ko"&&(ei||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ei&&(fe=Rh()):(Sa=M,jc="value"in Sa?Sa.value:Sa.textContent,ei=!0)),ze=Os(z,ve),0<ze.length&&(ve=new Dh(ve,e,null,l,M),B.push({event:ve,listeners:ze}),fe?ve.data=fe:(fe=Bh(l),fe!==null&&(ve.data=fe)))),(fe=P1?W1(e,l):I1(e,l))&&(ve=Os(z,"onBeforeInput"),0<ve.length&&(ze=new Dh("onBeforeInput","beforeinput",null,l,M),B.push({event:ze,listeners:ve}),ze.data=fe)),Pb(B,e,z,l,M)}zv(B,t)})}function Yu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Os(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=ou(e,l),i!=null&&a.unshift(Yu(e,i,u)),i=ou(e,t),i!=null&&a.push(Yu(e,i,u))),e.tag===3)return a;e=e.return}return[]}function tx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rv(e,t,l,a,i){for(var u=t._reactName,o=[];l!==null&&l!==a;){var y=l,S=y.alternate,z=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||z===null||(S=z,i?(z=ou(l,u),z!=null&&o.unshift(Yu(l,z,S))):i||(z=ou(l,u),z!=null&&o.push(Yu(l,z,S)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var lx=/\r\n?/g,ax=/\u0000|\uFFFD/g;function Av(e){return(typeof e=="string"?e:""+e).replace(lx,`
|
||
`).replace(ax,"")}function Mv(e,t){return t=Av(t),Av(e)===t}function Ge(e,t,l,a,i,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Pn(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Pn(e,""+a);else return;break;case"className":_r(e,"class",a);break;case"tabIndex":_r(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":_r(e,l,a);break;case"style":jh(e,a,u);return;case"data":if(t!=="object"){_r(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=Tr(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"&&Ge(e,t,"name",i.name,i,null),Ge(e,t,"formEncType",i.formEncType,i,null),Ge(e,t,"formMethod",i.formMethod,i,null),Ge(e,t,"formTarget",i.formTarget,i,null)):(Ge(e,t,"encType",i.encType,i,null),Ge(e,t,"method",i.method,i,null),Ge(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Tr(a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Al);return;case"onScroll":a!=null&&Ce("scroll",e);return;case"onScrollEnd":a!=null&&Ce("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=Tr(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":Ce("beforetoggle",e),Ce("toggle",e),Er(e,"popover",a);break;case"xlinkActuate":$l(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$l(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$l(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$l(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$l(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$l(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$l(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$l(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$l(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Er(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=E1.get(l)||l,Er(e,l,a);else return}Ue=!0}function _f(e,t,l,a,i,u){switch(l){case"style":jh(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")Pn(e,a);else if(typeof a=="number"||typeof a=="bigint")Pn(e,""+a);else return;break;case"onScroll":a!=null&&Ce("scroll",e);return;case"onScrollEnd":a!=null&&Ce("scrollend",e);return;case"onClick":a!=null&&(e.onclick=Al);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!gh.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[Ht]||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}Ue=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):Er(e,l,a)}return}Ue=!0}function _t(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("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:Ge(e,t,u,o,l,null)}}i&&Ge(e,t,"srcSet",l.srcSet,l,null),a&&Ge(e,t,"src",l.src,l,null);return;case"input":Ce("invalid",e);var y=u=o=i=null,S=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":i=M;break;case"type":o=M;break;case"checked":S=M;break;case"defaultChecked":z=M;break;case"value":u=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:Ge(e,t,a,M,l,null)}}Th(e,u,y,S,z,o,i,!1);return;case"select":Ce("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:Ge(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":Ce("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:Ge(e,t,o,y,l,null)}Ch(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:Ge(e,t,S,a,l,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(a=0;a<Gu.length;a++)Ce(Gu[a],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ge(e,t,z,a,l,null)}return;default:if(_c(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&_f(e,t,M,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&Ge(e,t,y,a,l,null))}var nx={};function ix(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,z=null,M=null;for(A in l){var B=l[A];if(l.hasOwnProperty(A)&&B!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":S=B;default:a.hasOwnProperty(A)||Ge(e,t,A,null,a,B)}}for(var w in a){var A=a[w];if(B=l[w],a.hasOwnProperty(w)&&(A!=null||B!=null))switch(w){case"type":A!==B&&(Ue=!0),u=A;break;case"name":A!==B&&(Ue=!0),i=A;break;case"checked":A!==B&&(Ue=!0),z=A;break;case"defaultChecked":A!==B&&(Ue=!0),M=A;break;case"value":A!==B&&(Ue=!0),o=A;break;case"defaultValue":A!==B&&(Ue=!0),y=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:A!==B&&Ge(e,t,w,A,a,B)}}Sc(e,o,y,S,z,M,u,i);return;case"select":A=o=y=w=null;for(u in l)if(S=l[u],l.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":A=S;default:a.hasOwnProperty(u)||Ge(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&&(Ue=!0),w=u;break;case"defaultValue":u!==S&&(Ue=!0),y=u;break;case"multiple":u!==S&&(Ue=!0),o=u;default:u!==S&&Ge(e,t,i,u,a,S)}t=y,l=o,a=A,w!=null?$n(e,!!l,w,!1):!!a!=!!l&&(t!=null?$n(e,!!l,t,!0):$n(e,!!l,l?[]:"",!1));return;case"textarea":A=w=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:Ge(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&&(Ue=!0),w=i;break;case"defaultValue":i!==u&&(Ue=!0),A=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&Ge(e,t,o,i,a,u)}Nh(e,w,A);return;case"option":for(var $ in l)if(w=l[$],l.hasOwnProperty($)&&w!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Ge(e,t,$,null,a,w)}for(S in a)if(w=a[S],A=l[S],a.hasOwnProperty(S)&&w!==A&&(w!=null||A!=null))switch(S){case"selected":w!==A&&(Ue=!0),e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ge(e,t,S,w,a,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in l)w=l[ce],l.hasOwnProperty(ce)&&w!=null&&!a.hasOwnProperty(ce)&&Ge(e,t,ce,null,a,w);for(z in a)if(w=a[z],A=l[z],a.hasOwnProperty(z)&&w!==A&&(w!=null||A!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,t));break;default:Ge(e,t,z,w,a,A)}return;default:if(_c(t)){for(var xe in l)w=l[xe],l.hasOwnProperty(xe)&&w!==void 0&&!a.hasOwnProperty(xe)&&_f(e,t,xe,void 0,a,w);for(M in a)w=a[M],A=l[M],!a.hasOwnProperty(M)||w===A||w===void 0&&A===void 0||_f(e,t,M,w,a,A);return}}for(var j in l)w=l[j],l.hasOwnProperty(j)&&w!=null&&!a.hasOwnProperty(j)&&Ge(e,t,j,null,a,w);for(B in a)w=a[B],A=l[B],!a.hasOwnProperty(B)||w===A||w==null&&A==null||Ge(e,t,B,w,a,A)}function Dv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ux(){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&&Dv(o)){for(o=0,y=i.responseEnd,a+=1;a<l.length;a++){var S=l[a],z=S.startTime;if(z>y)break;var M=S.transferSize,B=S.initiatorType;M&&Dv(B)&&(S=S.responseEnd,o+=M*(S<y?1:(y-z)/(S-z)))}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 Tf=null,Nf=null;function Vu(e){return e.nodeType===9?e:e.ownerDocument}function Uv(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 kv(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 Hv(e,t,l,a){return l=Vu(l).createElement(e),l[gt]=a,l[Ht]=t,_t(l,e,t),ht(l),l}function Cf(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 wf=null;function rx(){var e=window.event;return e&&e.type==="popstate"?e===wf?!1:(wf=e,!0):(wf=null,!1)}var jf=typeof setTimeout=="function"?setTimeout:void 0,sx=typeof clearTimeout=="function"?clearTimeout:void 0,qv=typeof Promise=="function"?Promise:void 0,Lv=typeof requestAnimationFrame=="function"?requestAnimationFrame:jf,cx=typeof queueMicrotask=="function"?queueMicrotask:typeof qv<"u"?function(e){return qv.resolve(null).then(e).catch(ox)}:jf;function ox(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function Bv(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")kf(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,kf(l);for(var u=l.firstChild;u;){var o=u.nextSibling,y=u.nodeName;u[su]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=o}}else l==="body"&&kf(e.ownerDocument.body);l=i}while(l);Di(t)}function Qv(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 Gv(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 Yv(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 fx(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 zf(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return fx(t,l,e)}function dx(e){return e.documentElement.clientHeight}function hx(e){this.addEventListener("load",e),this.addEventListener("error",e)}function mx(e,t,l,a,i,u,o,y,S){var z=t.nodeType===9?t:t.ownerDocument;try{var M=z.startViewTransition({update:function(){var w=z.defaultView,A=w.navigation&&w.navigation.transition,$=z.fonts.status;a();var ce=[];if($==="loaded"&&(dx(z),z.fonts.status==="loading"&&ce.push(z.fonts.ready)),$=ce.length,e!==null)for(var xe=e.suspenseyImages,j=0,N=0;N<xe.length;N++){var O=xe[N];if(!O.complete){var L=O.getBoundingClientRect();if(0<L.bottom&&0<L.right&&L.top<w.innerHeight&&L.left<w.innerWidth){if(j+=op(O),j>Ms){ce.length=$;break}O=new Promise(hx.bind(O)),ce.push(O)}}}if(0<ce.length)return w=Promise.race([Promise.all(ce),new Promise(function(te){return setTimeout(te,500)})]).then(i,i),(A?Promise.allSettled([A.finished,w]):w).then(u,u);if(i(),A)return A.finished.then(u,u);u()},types:l});z.__reactViewTransition=M;var B=[];return M.ready.then(function(){for(var w=z.documentElement.getAnimations({subtree:!0}),A=0;A<w.length;A++){var $=w[A],ce=$.effect,xe=ce.pseudoElement;if(xe!=null&&xe.startsWith("::view-transition")){B.push($),$=ce.getKeyframes();for(var j=xe=void 0,N=!0,O=0;O<$.length;O++){var L=$[O],te=L.width;if(xe===void 0)xe=te;else if(xe!==te){N=!1;break}if(te=L.height,j===void 0)j=te;else if(j!==te){N=!1;break}delete L.width,delete L.height,L.transform==="none"&&delete L.transform}N&&xe!==void 0&&j!==void 0&&(ce.setKeyframes($),N=getComputedStyle(ce.target,ce.pseudoElement),N.width!==xe||N.height!==j)&&(N=$[0],N.width=xe,N.height=j,N=$[$.length-1],N.width=xe,N.height=j,ce.setKeyframes($))}}o()},function(w){z.__reactViewTransition===M&&(z.__reactViewTransition=null);try{if(typeof w=="object"&&w!==null)switch(w.name){case"InvalidStateError":(w.message==="View transition was skipped because document visibility state is hidden."||w.message==="Skipping view transition because document visibility state has become hidden."||w.message==="Skipping view transition because viewport size changed."||w.message==="Transition was aborted because of invalid state")&&(w=null)}w!==null&&S(w)}finally{a(),i(),o()}}),M.finished.finally(function(){for(var w=0;w<B.length;w++)B[w].cancel();z.__reactViewTransition===M&&(z.__reactViewTransition=null),y()}),M}catch{return a(),i(),o(),null}}function wn(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}wn.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:F({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},wn.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},wn.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Vv(e){return{name:e,group:new wn("group",e),imagePair:new wn("image-pair",e),old:new wn("old",e),new:new wn("new",e)}}function el(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}el.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(Kv(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=ji(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:y,cleanup:i}),g(this._fragmentFiber.child,!1,yx,e,y,a)}this._eventListeners=u}};function yx(e,t,l,a){return D(e).addEventListener(t,l,a),!1}el.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=Kv(a,e,t,l),t!==-1)){var i=a[t];l=i.attachedListener;var u=i.cleanup;i=ji(i.optionsOrUseCapture),g(this._fragmentFiber.child,!1,vx,e,l,i),a.splice(t,1),u!==null&&u()}};function vx(e,t,l,a){return D(e).removeEventListener(t,l,a),!1}function ji(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Xv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Kv(e,t,l,a){if(e.length===0)return-1;a=Xv(a);for(var i=0;i<e.length;i++){var u=e[i];if(u.type===t&&u.listener===l&&Xv(u.optionsOrUseCapture)===a)return i}return-1}el.prototype.dispatchEvent=function(e){var t=_(this._fragmentFiber);if(t===null)return!0;t=D(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,ji(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,ji(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},el.prototype.focus=function(e){g(this._fragmentFiber.child,!0,Zv,e,void 0,void 0)};function Zv(e,t){return e.tag===6?!1:(e=D(e),jx(e,t))}el.prototype.focusLast=function(e){var t=[];g(this._fragmentFiber.child,!0,Of,t,void 0,void 0);for(var l=t.length-1;0<=l&&!Zv(t[l],e);l--);};function Of(e,t){return t.push(e),!1}el.prototype.blur=function(){var e=_(this._fragmentFiber);e!==null&&(e=D(e),e=Vu(e).activeElement,e!==null&&g(this._fragmentFiber.child,!1,px,e,void 0,void 0))};function px(e,t){return e.tag===6?!1:(e=D(e),e===t||e.contains(t)?(t.blur(),!0):!1)}el.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),g(this._fragmentFiber.child,!1,gx,e,void 0,void 0)};function gx(e,t){return e.tag===6||(e=D(e),t.observe(e)),!1}el.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),g(this._fragmentFiber.child,!1,bx,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 bx(e,t){return e.tag===6||(e=D(e),t.unobserve(e)),!1}var El=[],Rf=!1;function xx(e,t,l){El.push({fragmentInstance:e,observer:t,instance:l}),Rf||(Rf=!0,zx(function(){Rf=!1;var a=El;El=[];for(var i=0;i<a.length;i++){var u=a[i];u.observer.unobserve(u.instance)}}))}el.prototype.getClientRects=function(){var e=[];return g(this._fragmentFiber.child,!1,Sx,e,void 0,void 0),e};function Sx(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=D(e),t.push.apply(t,e.getClientRects());return!1}el.prototype.getRootNode=function(e){var t=_(this._fragmentFiber);return t===null?this:D(t).getRootNode(e)},el.prototype.compareDocumentPosition=function(e){var t=_(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];g(this._fragmentFiber.child,!1,Of,l,void 0,void 0);var a=D(t);if(l.length===0){if(l=a,k(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=D(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=D(l[0]),i=D(l[l.length-1]);var u=k(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||Ex(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Ex(e,t,l,a,i){var u=un(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=_(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=de(l,u,Y),t===null?t=!1:(g(t,!0,Z,u,l),u=H,H=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=de(a,u,Y),t===null?t=!1:(g(t,!0,J,u,a),u=H,Q=H=null,t=u!==null)),t):!1}function Jv(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)}el.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];g(this._fragmentFiber.child,!1,Of,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]||_(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=D(a),Jv(e,l);return}if(a=D(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=D(i),Jv(i,l)):D(i).scrollIntoView(e),a+=l?-1:1}};function _x(e,t){return e=D(e),Fv(e,t),!1}function Fv(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function $v(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,ji(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)}),Fv(e,t))}function Tx(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,ji(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?xx(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Af(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":Af(l),Sr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Nx(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[su])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 Cx(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 Pv(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 Mf(e){return e.data==="$?"||e.data==="$~"}function Df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wx(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 Uf=null;function Wv(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 Iv(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 jx(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 zx(e){Lv(function(){Lv(function(t){return e(t)})})}function ep(e,t,l){switch(t=Vu(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 tp(e,t,l){for(var a in l){var i=l[a];l.hasOwnProperty(a)&&i!=null&&Ge(e,t,a,null,nx,i)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Al&&(e.onclick=null),Sr(e)}function kf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Sr(e)}var fl=new Map,lp=new Set;function Xu(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 ca=ye.d;ye.d={f:Ox,r:Rx,D:Ax,C:Mx,L:Dx,m:Ux,X:Hx,S:kx,M:qx};function Ox(){var e=ca.f(),t=Ts();return e||t}function Rx(e){var t=Zn(e);t!==null&&t.tag===5&&t.type==="form"?ny(t):ca.r(e)}var zi=typeof document>"u"?null:document;function ap(e,t,l){var a=zi;if(a&&typeof t=="string"&&t){var i=al(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),lp.has(i)||(lp.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),_t(t,"link",e),ht(t),a.head.appendChild(t)))}}function Ax(e){ca.D(e),ap("dns-prefetch",e,null)}function Mx(e,t){ca.C(e,t),ap("preconnect",e,t)}function Dx(e,t,l){ca.L(e,t,l);var a=zi;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=Oi(e);break;case"script":u=Ri(e)}if(!(fl.has(u)||(e=F({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(Ku(u))||t==="script"&&a.querySelector(Zu(u))))){var o=a.createElement("link");_t(o,"link",e),t==="style"&&(o[xr]=!0,o.onload=o.onerror=function(){vh(o)}),ht(o),a.head.appendChild(o)}}}function Ux(e,t){ca.m(e,t);var l=zi;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=Ri(e)}if(!fl.has(u)&&(e=F({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(Zu(u)))return}a=l.createElement("link"),_t(a,"link",e),ht(a),l.head.appendChild(a)}}}function kx(e,t,l){ca.S(e,t,l);var a=zi;if(a&&e){var i=Jn(a).hoistableStyles,u=Oi(e);t=t||"default";var o=i.get(u);if(!o){var y={loading:0,preload:null};if(o=a.querySelector(Ku(u)))y.loading=5;else{e=F({rel:"stylesheet",href:e,"data-precedence":t},l),(l=fl.get(u))&&Hf(e,l);var S=o=a.createElement("link");ht(S),_t(S,"link",e),S._p=new Promise(function(z,M){S.onload=z,S.onerror=M}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Rs(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:y},i.set(u,o)}}}function Hx(e,t){ca.X(e,t);var l=zi;if(l&&e){var a=Jn(l).hoistableScripts,i=Ri(e),u=a.get(i);u||(u=l.querySelector(Zu(i)),u||(e=F({src:e,async:!0},t),(t=fl.get(i))&&qf(e,t),u=l.createElement("script"),ht(u),_t(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function qx(e,t){ca.M(e,t);var l=zi;if(l&&e){var a=Jn(l).hoistableScripts,i=Ri(e),u=a.get(i);u||(u=l.querySelector(Zu(i)),u||(e=F({src:e,async:!0,type:"module"},t),(t=fl.get(i))&&qf(e,t),u=l.createElement("script"),ht(u),_t(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function np(e,t,l,a){var i=(i=ga.current)?Xu(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=Oi(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=Oi(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(Ku(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)),Lx(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=Ri(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 Oi(e){return'href="'+al(e)+'"'}function Ku(e){return'link[rel="stylesheet"]['+e+"]"}function ip(e){return F({},e,{"data-precedence":e.precedence,precedence:null})}function Lx(e,t,l,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[xr]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[xr]=!0,t.onload=t.onerror=vh.bind(null,t),_t(t,"link",l),ht(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 Ri(e){return'[src="'+al(e)+'"]'}function Zu(e){return"script[async]"+e}function up(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,ht(a),a;var i=F({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ht(a),_t(a,"style",i),Rs(a,l.precedence,e),t.instance=a;case"stylesheet":i=Oi(l.href);var u=e.querySelector(Ku(i));if(u)return t.state.loading|=4,t.instance=u,ht(u),u;a=ip(l),(i=fl.get(i))&&Hf(a,i),u=(e.ownerDocument||e).createElement("link"),ht(u);var o=u;return o._p=new Promise(function(y,S){o.onload=y,o.onerror=S}),_t(u,"link",a),t.state.loading|=4,Rs(u,l.precedence,e),t.instance=u;case"script":return u=Ri(l.src),(i=e.querySelector(Zu(u)))?(t.instance=i,ht(i),i):(a=l,(i=fl.get(u))&&(a=F({},l),qf(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),ht(i),_t(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,Rs(a,l.precedence,e));return t.instance}function Rs(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 Hf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var As=null;function rp(e,t,l){if(As===null){var a=new Map,i=As=new Map;i.set(l,a)}else i=As,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[su]||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 Lf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Bx(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 sp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function cp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function op(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function fp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=op(t),e.suspenseyImages.push(t)),e=Yx.bind(e),t.decode().then(e,e))}function Qx(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=Oi(a.href),u=t.querySelector(Ku(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ht(u);return}u=t.ownerDocument||t,a=ip(a),(i=fl.get(i))&&Hf(a,i),u=u.createElement("link"),ht(u);var o=u;o._p=new Promise(function(y,S){o.onload=y,o.onerror=S}),_t(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=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ms=0;function Gx(e,t){return e.stylesheets&&e.count===0&&Us(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Us(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Ms===0&&(Ms=62500*ux());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Us(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Ms?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function dp(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Us(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Ju(){this.count--,dp(this)}function Yx(){this.imgCount--,dp(this)}var Ds=null;function Us(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ds=new Map,t.forEach(Vx,e),Ds=null,Ju.call(e))}function Vx(e,t){if(!(t.state.loading&4)){var l=Ds.get(e);if(l)var a=l.get(null);else{l=new Map,Ds.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=Ju.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:re,Provider:null,Consumer:null,_currentValue:Yt,_currentValue2:Yt,_threadCount:0};function Xx(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=pc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pc(0),this.hiddenUpdates=pc(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 hp(e,t,l,a,i,u,o,y,S,z,M,B){return e=new Xx(e,t,l,o,S,z,M,B,y),t=1,u===!0&&(t|=24),u=qt(3,null,null,t),e.current=u,u.stateNode=e,t=Wc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},lo(u),e}function mp(e){return e?(e=ni,e):ni}function yp(e,t,l,a,i,u){i=mp(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=Oa(e,a,t),l!==null&&(Gt(l,e,t),Nu(l,e,t))}function vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Bf(e,t){vp(e,t),(e=e.alternate)&&vp(e,t)}function pp(e){if(e.tag===13||e.tag===31){var t=on(e,67108864);t!==null&&Gt(t,e,67108864),Bf(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=It();t=gc(t);var l=on(e,t);l!==null&&Gt(l,e,t),Bf(e,t)}}var Mi=!0;function Kx(e,t,l,a){var i=se.T;se.T=null;var u=ye.p;try{ye.p=2,Qf(e,t,l,a)}finally{ye.p=u,se.T=i}}function Zx(e,t,l,a){var i=se.T;se.T=null;var u=ye.p;try{ye.p=8,Qf(e,t,l,a)}finally{ye.p=u,se.T=i}}function Qf(e,t,l,a){if(Mi){var i=Gf(a);if(i===null)Ef(e,t,a,ks,l),xp(e,a);else if(Fx(i,e,t,l,a))a.stopPropagation();else if(xp(e,a),t&4&&-1<Jx.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=nn(u.pendingLanes);if(o!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;o;){var S=1<<31-Kt(o);y.entanglements[1]|=S,o&=~S}Gl(u),(He&6)===0&&(Ss=Vt()+500,Qu(0))}}break;case 31:case 13:y=on(u,2),y!==null&&Gt(y,u,2),Ts(),Bf(u,2)}if(u=Gf(a),u===null&&Ef(e,t,a,ks,l),u===i)break;i=u}i!==null&&a.stopPropagation()}else Ef(e,t,a,null,l)}}function Gf(e){return e=Nc(e),Yf(e)}var ks=null;function Yf(e){if(ks=null,e=un(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 ks=e,null}function bp(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(u1()){case nh:return 2;case ih:return 8;case yr:case r1:return 32;case uh:return 268435456;default:return 32}default:return 32}}var Vf=!1,Ga=null,Ya=null,Va=null,Fu=new Map,$u=new Map,Xa=[],Jx="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 xp(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Ya=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":Fu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$u.delete(t.pointerId)}}function Pu(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&&pp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fx(e,t,l,a,i){switch(t){case"focusin":return Ga=Pu(Ga,e,t,l,a,i),!0;case"dragenter":return Ya=Pu(Ya,e,t,l,a,i),!0;case"mouseover":return Va=Pu(Va,e,t,l,a,i),!0;case"pointerover":var u=i.pointerId;return Fu.set(u,Pu(Fu.get(u)||null,e,t,l,a,i)),!0;case"gotpointercapture":return u=i.pointerId,$u.set(u,Pu($u.get(u)||null,e,t,l,a,i)),!0}return!1}function Sp(e){var t=un(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,hh(e.priority,function(){gp(l)});return}}else if(t===31){if(t=v(l),t!==null){e.blockedOn=t,hh(e.priority,function(){gp(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 Hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Gf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Tc=a,l.target.dispatchEvent(a),Tc=null}else return t=Zn(l),t!==null&&pp(t),e.blockedOn=l,!1;t.shift()}return!0}function Ep(e,t,l){Hs(e)&&l.delete(t)}function $x(){Vf=!1,Ga!==null&&Hs(Ga)&&(Ga=null),Ya!==null&&Hs(Ya)&&(Ya=null),Va!==null&&Hs(Va)&&(Va=null),Fu.forEach(Ep),$u.forEach(Ep)}function qs(e,t){e.blockedOn===t&&(e.blockedOn=null,Vf||(Vf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$x)))}var Ls=null;function _p(e){Ls!==e&&(Ls=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ls===e&&(Ls=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(Yf(a||l)===null)continue;break}var u=Zn(l);u!==null&&(e.splice(t,3),t-=3,To(u,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function Di(e){function t(S){return qs(S,e)}Ga!==null&&qs(Ga,e),Ya!==null&&qs(Ya,e),Va!==null&&qs(Va,e),Fu.forEach(t),$u.forEach(t);for(var l=0;l<Xa.length;l++){var a=Xa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Xa.length&&(l=Xa[0],l.blockedOn===null);)Sp(l),l.blockedOn===null&&Xa.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[Ht]||null;if(typeof u=="function")o||_p(l);else if(o){var y=null;if(u&&u.hasAttribute("formAction")){if(i=u,o=u[Ht]||null)y=o.formAction;else if(Yf(i)!==null)continue}else y=o.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),_p(l)}}}function Tp(){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 Xf(e){this._internalRoot=e}Bs.prototype.render=Xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=It();yp(l,a,e,t,null,null)},Bs.prototype.unmount=Xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yp(e.current,2,null,e,null,null),Ts(),t[Kn]=null}};function Bs(e){this._internalRoot=e}Bs.prototype.unstable_scheduleHydration=function(e){if(e){var t=dh();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Xa.length&&t!==0&&t<Xa[l].priority;l++);Xa.splice(l,0,e),l===0&&Sp(e)}};var Np=r.version;if(Np!=="19.3.1")throw Error(c(527,Np,"19.3.1"));ye.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=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Px={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:se,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qs.isDisabled&&Qs.supportsFiber)try{iu=Qs.inject(Px),Xt=Qs}catch{}}return Iu.createRoot=function(e,t){if(!f(e))throw Error(c(299));var l=!1,a="",i=my,u=yy,o=vy;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=hp(e,1,!1,null,null,l,a,null,i,u,o,Tp),e[Kn]=t.current,Sf(e),new Xf(t)},Iu.hydrateRoot=function(e,t,l){if(!f(e))throw Error(c(299));var a=!1,i="",u=my,o=yy,y=vy,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=hp(e,1,!0,t,l??null,a,i,S,u,o,y,Tp),t.context=mp(null),l=t.current,a=It(),a=gc(a),i=za(a),i.callback=null,Oa(l,i,a),l=a,t.current.lanes=l,ru(t,l),Gl(t),e[Kn]=t.current,Sf(e),new Bs(t)},Iu.version="19.3.1",Iu}var kp;function r2(){if(kp)return Ff.exports;kp=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=u2(),Ff.exports}var s2=r2();const c2=Ag(s2);/**
|
||
* 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 Od=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Dg=/^[\\/]{2}/;function o2(n,r){return r+n.replace(/\\/g,"/")}var Hp="popstate";function qp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function f2(n={}){function r(f,h){let{pathname:d="/",search:v="",hash:b=""}=Gn(f.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),id("",{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,p=b.indexOf("#");v=p===-1?b:b.slice(0,p)}return v+"#"+(typeof h=="string"?h:Ln(h))}function c(f,h){tl(f.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return h2(r,s,c,n)}function We(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function tl(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function d2(){return Math.random().toString(36).substring(2,10)}function Lp(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 id(n,r,s=null,c,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Gn(r):r,state:s,key:r&&r.key||c||d2(),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 Gn(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 h2(n,r,s,c={}){let{window:f=document.defaultView,v5Compat:h=!1}=c,d=f.history,v="POP",b=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function g(){v="POP";let D=x(),H=D==null?null:D-p;p=D,b&&b({action:v,location:q.location,delta:H})}function _(D,H){v="PUSH";let Q=qp(D)?D:id(q.location,D,H);s&&s(Q,D),p=x()+1;let Z=Lp(Q,p),J=q.createHref(Q.mask||Q);try{d.pushState(Z,"",J)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;f.location.assign(J)}h&&b&&b({action:v,location:q.location,delta:1})}function k(D,H){v="REPLACE";let Q=qp(D)?D:id(q.location,D,H);s&&s(Q,D),p=x();let Z=Lp(Q,p),J=q.createHref(Q.mask||Q);d.replaceState(Z,"",J),h&&b&&b({action:v,location:q.location,delta:0})}function K(D){return m2(f,D)}let q={get action(){return v},get location(){return n(f,d)},listen(D){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(Hp,g),b=D,()=>{f.removeEventListener(Hp,g),b=null}},createHref(D){return r(f,D)},createURL:K,encodeLocation(D){let H=K(D);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:_,replace:k,go(D){return d.go(D)}};return q}function m2(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&&Dg.test(f)&&(f=c+f),new URL(f,c)}function Ug(n,r,s="/"){return y2(n,r,s,!1)}function y2(n,r,s,c,f){let h=typeof r=="string"?Gn(r):r,d=ya(h.pathname||"/",s);if(d==null)return null;let v=v2(n),b=null,p=w2(d);for(let x=0;b==null&&x<v.length;++x)b=C2(v[x],p,c);return b}function v2(n){let r=kg(n);return p2(r),r}function kg(n,r=[],s=[],c="",f=!1){let h=(d,v,b=f,p)=>{let x={relativePath:p===void 0?d.path||"":p,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 g=Cl([c,x.relativePath]),_=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 "${g}".`),kg(d.children,r,_,g,b)),!(d.path==null&&!d.index)&&r.push({path:g,score:T2(g,d.index),routesMeta:_.map((k,K)=>{let[q,D]=Lg(k.relativePath,k.caseSensitive,K===_.length-1);return{...k,matcher:q,compiledParams:D}})})};return n.forEach((d,v)=>{var b;if(d.path===""||!((b=d.path)!=null&&b.includes("?")))h(d,v);else for(let p of Hg(d.path))h(d,v,!0,p)}),r}function Hg(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=Hg(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 p2(n){n.sort((r,s)=>r.score!==s.score?s.score-r.score:N2(r.routesMeta.map(c=>c.childrenIndex),s.routesMeta.map(c=>c.childrenIndex)))}var g2=/^:[\w-]+$/,b2=3,x2=2,S2=1,E2=10,_2=-2,Bp=n=>n==="*";function T2(n,r){let s=n.split("/"),c=s.length;return s.some(Bp)&&(c+=_2),r&&(c+=x2),s.filter(f=>!Bp(f)).reduce((f,h)=>f+(g2.test(h)?b2:h===""?S2:E2),c)}function N2(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 C2(n,r,s=!1){let{routesMeta:c}=n,f={},h="/",d=[];for(let v=0;v<c.length;++v){let b=c[v],p=v===c.length-1,x=h==="/"?r:r.slice(h.length)||"/",g={path:b.relativePath,caseSensitive:b.caseSensitive,end:p},_=b.matcher&&b.compiledParams?qg(g,x,b.matcher,b.compiledParams):Ps(g,x),k=b.route;if(!_&&p&&s&&!c[c.length-1].route.index&&(_=Ps({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},x)),!_)return null;Object.assign(f,_.params),d.push({params:f,pathname:Cl([h,_.pathname]),pathnameBase:O2(Cl([h,_.pathnameBase])),route:k}),_.pathnameBase!=="/"&&(h=Cl([h,_.pathnameBase]))}return d}function Ps(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,c]=Lg(n.path,n.caseSensitive,n.end);return qg(n,r,s,c)}function qg(n,r,s,c){let f=r.match(s);if(!f)return null;let h=f[0],d=Pi(h,1),v=f.slice(1);return{params:c.reduce((p,{paramName:x,isOptional:g},_)=>{if(x==="*"){let K=v[_]||"";d=Pi(h.slice(0,h.length-K.length),1)}const k=v[_];return g&&!k?p[x]=void 0:p[x]=(k||"").replace(/%2F/g,"/"),p},{}),pathname:h,pathnameBase:d,pattern:n}}function Lg(n,r=!1,s=!0){tl(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,p,x)=>{if(c.push({paramName:v,isOptional:b!=null}),b){let g=x.charAt(p+d.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 w2(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return tl(!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 ya(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 j2(n,r="/"){let{pathname:s,search:c="",hash:f=""}=typeof n=="string"?Gn(n):n,h;return s?(s=Bg(s),s.startsWith("/")||s.startsWith("\\")?h=Qp(s.substring(1),"/"):h=Qp(s,r)):h=r,{pathname:h,search:R2(c),hash:A2(f)}}function Qp(n,r){let s=Pi(r).split("/");return n.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function If(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 z2(n){return n.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function Rd(n){let r=z2(n);return r.map((s,c)=>c===r.length-1?s.pathname:s.pathnameBase)}function tc(n,r,s,c=!1){let f;typeof n=="string"?f=Gn(n):(f={...n},We(!f.pathname||!f.pathname.includes("?"),If("?","pathname","search",f)),We(!f.pathname||!f.pathname.includes("#"),If("#","pathname","hash",f)),We(!f.search||!f.search.includes("#"),If("#","search","hash",f)));let h=n===""||f.pathname==="",d=h?"/":f.pathname,v;if(d==null)v=s;else{let g=r.length-1;if(!c&&d.startsWith("..")){let _=d.split("/");for(;_[0]==="..";)_.shift(),g-=1;f.pathname=_.join("/")}v=g>=0?r[g]:"/"}let b=j2(f,v),p=d&&d!=="/"&&d.endsWith("/"),x=(h||d===".")&&s.endsWith("/");return!b.pathname.endsWith("/")&&(p||x)&&(b.pathname+="/"),b}var Bg=n=>n.replace(/[\\/]{2,}/g,"/"),Cl=n=>Bg(n.join("/"));function Pi(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 O2=n=>Pi(n).replace(/^\/*/,"/"),R2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,A2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,M2=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 D2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function U2(n){let r=n.map(s=>s.route.path).filter(Boolean);return Cl(r)||"/"}var Qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n,r){let s=n;if(typeof s!="string"||!Od.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let c=s,f=!1;if(Qg)try{let h=new URL(window.location.href),d=Dg.test(s)?new URL(o2(s,h.protocol)):new URL(s),v=ya(d.pathname,r);d.origin===h.origin&&v!=null?s=v+d.search+d.hash:f=!0}catch{tl(!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 Gp=new URL("http://localhost");function Ad(n){if(n.createURL)return n.createURL("/");try{return new URL(n.createHref("/"),Gp)}catch{return Gp}}function ed(n,r){return n.origin===r.origin&&(n.origin!=="null"||n.protocol===r.protocol&&n.host===r.host)}function k2(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 Md(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&&!ed(f,s),v=!ed(h,s);if(c==="reject"){if(d||v)throw new Error("External navigation is not allowed")}else if(v&&(f==null||!k2(n,f)||!ed(f,h)))throw new Error("External navigation is not allowed")}var Yg=["POST","PUT","PATCH","DELETE"];new Set(Yg);var H2=["GET",...Yg];new Set(H2);var q2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function L2(n){try{return q2.includes(new URL(n).protocol)}catch{return!1}}var eu=E.createContext(null);eu.displayName="DataRouter";var lc=E.createContext(null);lc.displayName="DataRouterState";var Vg=E.createContext(!1);function B2(){return E.useContext(Vg)}var Xg=E.createContext({isTransitioning:!1});Xg.displayName="ViewTransition";var Q2=E.createContext(new Map);Q2.displayName="Fetchers";var G2=E.createContext(null);G2.displayName="Await";var ll=E.createContext(null);ll.displayName="Navigation";var or=E.createContext(null);or.displayName="Location";var jl=E.createContext({outlet:null,matches:[],isDataRoute:!1});jl.displayName="Route";var Dd=E.createContext(null);Dd.displayName="RouteError";var Kg="REACT_ROUTER_ERROR",Y2="REDIRECT",V2="ROUTE_ERROR_RESPONSE";function X2(n){if(n.startsWith(`${Kg}:${Y2}:{`))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 K2(n){if(n.startsWith(`${Kg}:${V2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new M2(r.status,r.statusText,r.data)}catch{}}function Z2(n,{relative:r}={}){We(tu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:c}=E.useContext(ll),{hash:f,pathname:h,search:d}=fr(n,{relative:r}),v=h;return s!=="/"&&(v=h==="/"?s:Cl([s,h])),c.createHref({pathname:v,search:d,hash:f})}function tu(){return E.useContext(or)!=null}function vl(){return We(tu(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(or).location}var Zg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jg(n){E.useContext(ll).static||E.useLayoutEffect(n)}function ac(){let{isDataRoute:n}=E.useContext(jl);return n?sS():J2()}function J2(){We(tu(),"useNavigate() may be used only in the context of a <Router> component.");let n=E.useContext(eu),{basename:r,navigator:s}=E.useContext(ll),{matches:c}=E.useContext(jl),{pathname:f}=vl(),h=JSON.stringify(Rd(c)),d=E.useRef(!1);return Jg(()=>{d.current=!0}),E.useCallback((b,p={})=>{if(tl(d.current,Zg),!d.current)return;if(typeof b=="number"){s.go(b);return}let x=tc(b,JSON.parse(h),f,p.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Cl([r,x.pathname])),Md(typeof b=="string"?b:Ln(b),s.createHref(x),Ad(s),"reject"),(p.replace?s.replace:s.push)(x,p.state,p)},[r,s,h,f,n])}var F2=E.createContext(null);function $2(n){let r=E.useContext(jl).outlet;return E.useMemo(()=>r&&E.createElement(F2.Provider,{value:n},r),[r,n])}function fr(n,{relative:r}={}){let{matches:s}=E.useContext(jl),{pathname:c}=vl(),f=JSON.stringify(Rd(s));return E.useMemo(()=>tc(n,JSON.parse(f),c,r==="path"),[n,f,c,r])}function P2(n,r){return Fg(n,r)}function Fg(n,r,s){var D;We(tu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(ll),{matches:f}=E.useContext(jl),h=f[f.length-1],d=h?h.params:{},v=h?h.pathname:"/",b=h?h.pathnameBase:"/",p=h&&h.route;{let H=p&&p.path||"";Pg(v,!p||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${H}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let x=vl(),g;if(r){let H=typeof r=="string"?Gn(r):r;We(b==="/"||((D=H.pathname)==null?void 0:D.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 "${H.pathname}" was given in the \`location\` prop.`),g=H}else g=x;let _=g.pathname||"/",k=_;if(b!=="/"){let H=b.replace(/^\//,"").split("/");k="/"+_.replace(/^\//,"").split("/").slice(H.length).join("/")}let K=s&&s.state.matches.length?s.state.matches.map(H=>Object.assign(H,{route:s.manifest[H.route.id]||H.route})):Ug(n,{pathname:k});tl(p||K!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),tl(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 "${g.pathname}${g.search}${g.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 q=lS(K&&K.map(H=>Object.assign({},H,{params:Object.assign({},d,H.params),pathname:Cl([b,c.encodeLocation?c.encodeLocation(H.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?b:Cl([b,c.encodeLocation?c.encodeLocation(H.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),f,s);return r&&q?E.createElement(or.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},q):q}function W2(){let n=rS(),r=D2(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=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:h},"ErrorBoundary")," or"," ",E.createElement("code",{style:h},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},r),s?E.createElement("pre",{style:f},s):null,d)}var I2=E.createElement(W2,null),$g=class extends E.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=K2(n.digest);s&&(n=s)}let r=n!==void 0?E.createElement(jl.Provider,{value:this.props.routeContext},E.createElement(Dd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?E.createElement(eS,{error:n},r):r}};$g.contextType=Vg;var td=new WeakMap;function eS({children:n,error:r}){let{basename:s,navigator:c}=E.useContext(ll);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let f=X2(r.digest);if(f){let h=td.get(r);if(h)throw h;let d=Gg(f.location,s),v=d.absoluteURL||d.to;if(Md(f.location,v,Ad(c),"allow-explicit"),L2(v))throw new Error("Invalid redirect location");if(Qg&&!td.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 td.set(r,b),b}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v}`})}}return n}function tS({routeContext:n,match:r,children:s}){let c=E.useContext(eu);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(jl.Provider,{value:n},s)}function lS(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(g=>g.route.id&&(h==null?void 0:h[g.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 g=f[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(v=x),g.route.id){let{loaderData:_,errors:k}=c,K=g.route.loader&&!_.hasOwnProperty(g.route.id)&&(!k||k[g.route.id]===void 0);if(g.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,p=c&&b?(x,g)=>{var _,k;b(x,{location:c.location,params:((k=(_=c.matches)==null?void 0:_[0])==null?void 0:k.params)??{},pattern:U2(c.matches),errorInfo:g})}:void 0;return f.reduceRight((x,g,_)=>{let k,K=!1,q=null,D=null;c&&(k=h&&g.route.id?h[g.route.id]:void 0,q=g.route.errorElement||I2,d&&(v<0&&_===0?(Pg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,D=null):v===_&&(K=!0,D=g.route.hydrateFallbackElement||null)));let H=r.concat(f.slice(0,_+1)),Q=()=>{let Z;return k?Z=q:K?Z=D:g.route.Component?Z=E.createElement(g.route.Component,null):g.route.element?Z=g.route.element:Z=x,E.createElement(tS,{match:g,routeContext:{outlet:x,matches:H,isDataRoute:c!=null},children:Z})};return c&&(g.route.ErrorBoundary||g.route.errorElement||_===0)?E.createElement($g,{location:c.location,revalidation:c.revalidation,component:q,error:k,children:Q(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:p}):Q()},null)}function Ud(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aS(n){let r=E.useContext(eu);return We(r,Ud(n)),r}function nS(n){let r=E.useContext(lc);return We(r,Ud(n)),r}function iS(n){let r=E.useContext(jl);return We(r,Ud(n)),r}function kd(n){let r=iS(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 uS(){return kd("useRouteId")}function rS(){var c;let n=E.useContext(Dd),r=nS("useRouteError"),s=kd("useRouteError");return n!==void 0?n:(c=r.errors)==null?void 0:c[s]}function sS(){let{router:n}=aS("useNavigate"),r=kd("useNavigate"),s=E.useRef(!1);return Jg(()=>{s.current=!0}),E.useCallback(async(f,h={})=>{tl(s.current,Zg),s.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:r,...h}))},[n,r])}var Yp={};function Pg(n,r,s){!r&&!Yp[n]&&(Yp[n]=!0,tl(!1,s))}E.memo(cS);function cS({routes:n,manifest:r,future:s,state:c,isStatic:f,onError:h}){return Fg(n,void 0,{manifest:r,state:c,isStatic:f,onError:h})}function Vp({to:n,replace:r,state:s,relative:c}){We(tu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f,navigator:h}=E.useContext(ll);tl(!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}=E.useContext(jl),{pathname:v}=vl(),b=ac(),p=tc(n,Rd(d),v,c==="path");Md(typeof n=="string"?n:Ln(n),h.createHref(p),Ad(h),"reject");let x=JSON.stringify(p);return E.useEffect(()=>{b(JSON.parse(x),{replace:r,state:s,relative:c})},[b,x,c,r,s]),null}function oS(n){return $2(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 fS({basename:n="/",children:r=null,location:s,navigationType:c="POP",navigator:f,static:h=!1,useTransitions:d}){We(!tu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=n.replace(/^\/*/,"/"),b=E.useMemo(()=>({basename:v,navigator:f,static:h,useTransitions:d,future:{}}),[v,f,h,d]);typeof s=="string"&&(s=Gn(s));let{pathname:p="/",search:x="",hash:g="",state:_=null,key:k="default",mask:K}=s,q=E.useMemo(()=>{let D=ya(p,v);return D==null?null:{location:{pathname:D,search:x,hash:g,state:_,key:k,mask:K},navigationType:c}},[v,p,x,g,_,k,c,K]);return tl(q!=null,`<Router basename="${v}"> is not able to match the URL "${p}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:E.createElement(ll.Provider,{value:b},E.createElement(or.Provider,{children:r,value:q}))}function dS({children:n,location:r}){return P2(ud(n),r)}function ud(n,r=[]){let s=[];return E.Children.forEach(n,(c,f)=>{if(!E.isValidElement(c))return;let h=[...r,f];if(c.type===E.Fragment){s.push.apply(s,ud(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=ud(c.props.children,h)),s.push(d)}),s}var Zs="get",Js="application/x-www-form-urlencoded";function nc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function hS(n){return nc(n)&&n.tagName.toLowerCase()==="button"}function mS(n){return nc(n)&&n.tagName.toLowerCase()==="form"}function yS(n){return nc(n)&&n.tagName.toLowerCase()==="input"}function vS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function pS(n,r){return n.button===0&&(!r||r==="_self")&&!vS(n)}function rd(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 gS(n,r){let s=rd(n);return r&&r.forEach((c,f)=>{s.has(f)||r.getAll(f).forEach(h=>{s.append(f,h)})}),s}var Ys=null;function bS(){if(Ys===null)try{new FormData(document.createElement("form"),0),Ys=!1}catch{Ys=!0}return Ys}var xS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ld(n){return n!=null&&!xS.has(n)?(tl(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Js}"`),null):n}function SS(n,r){let s,c,f,h,d;if(mS(n)){let v=n.getAttribute("action");c=v?ya(v,r):null,s=n.getAttribute("method")||Zs,f=ld(n.getAttribute("enctype"))||Js,h=new FormData(n)}else if(hS(n)||yS(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?ya(b,r):null,s=n.getAttribute("formmethod")||v.getAttribute("method")||Zs,f=ld(n.getAttribute("formenctype"))||ld(v.getAttribute("enctype"))||Js,h=new FormData(v,n),!bS()){let{name:p,type:x,value:g}=n;if(x==="image"){let _=p?`${p}.`:"";h.append(`${_}x`,"0"),h.append(`${_}y`,"0")}else p&&h.append(p,g)}}else{if(nc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Zs,c=null,f=Js,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 Hd(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Wg(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&&ya(f.pathname,r)==="/"?f.pathname=`${Pi(r)}/_root.${c}`:f.pathname=`${Pi(f.pathname)}.${c}`,f}async function ES(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 _S(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 TS(n,r,s){let c=await Promise.all(n.map(async f=>{let h=r.routes[f.route.id];if(h){let d=await ES(h,s);return d.links?d.links():[]}return[]}));return jS(c.flat(1).filter(_S).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Xp(n,r,s,c,f,h){let d=(b,p)=>s[p]?b.route.id!==s[p].route.id:!0,v=(b,p)=>{var x;return s[p].pathname!==b.pathname||((x=s[p].route.path)==null?void 0:x.endsWith("*"))&&s[p].params["*"]!==b.params["*"]};return h==="assets"?r.filter((b,p)=>d(b,p)||v(b,p)):h==="data"?r.filter((b,p)=>{var g;let x=c.routes[b.route.id];if(!x||!x.hasLoader)return!1;if(d(b,p)||v(b,p))return!0;if(b.route.shouldRevalidate){let _=b.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((g=s[0])==null?void 0:g.params)||{},nextUrl:new URL(n,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function NS(n,r,{includeHydrateFallback:s}={}){return CS(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 CS(n){return[...new Set(n)]}function wS(n){let r={},s=Object.keys(n).sort();for(let c of s)r[c]=n[c];return r}function jS(n,r){let s=new Set;return new Set(r),n.reduce((c,f)=>{let h=JSON.stringify(wS(f));return s.has(h)||(s.add(h),c.push({key:h,link:f})),c},[])}function qd(){let n=E.useContext(eu);return Hd(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function zS(){let n=E.useContext(lc);return Hd(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ld=E.createContext(void 0);Ld.displayName="FrameworkContext";function ic(){let n=E.useContext(Ld);return Hd(n,"You must render this element inside a <HydratedRouter> element"),n}function OS(n,r){let s=E.useContext(Ld),[c,f]=E.useState(!1),[h,d]=E.useState(!1),{onFocus:v,onBlur:b,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=r,_=E.useRef(null);E.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let q=H=>{H.forEach(Q=>{d(Q.isIntersecting)})},D=new IntersectionObserver(q,{threshold:.5});return _.current&&D.observe(_.current),()=>{D.disconnect()}}},[n]),E.useEffect(()=>{if(c){let q=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(q)}}},[c]);let k=()=>{f(!0)},K=()=>{f(!1),d(!1)};return s?n!=="intent"?[h,_,{}]:[h,_,{onFocus:er(v,k),onBlur:er(b,K),onMouseEnter:er(p,k),onMouseLeave:er(x,K),onTouchStart:er(g,k)}]:[!1,_,{}]}function er(n,r){return s=>{n&&n(s),s.defaultPrevented||r(s)}}function RS({page:n,...r}){let s=B2(),{nonce:c}=ic(),{router:f}=qd(),h=E.useMemo(()=>Ug(f.routes,n,f.basename),[f.routes,n,f.basename]);return h?(r.nonce==null&&c&&(r={...r,nonce:c}),s?E.createElement(MS,{page:n,matches:h,...r}):E.createElement(DS,{page:n,matches:h,...r})):null}function AS(n){let{manifest:r,routeModules:s}=ic(),[c,f]=E.useState([]);return E.useEffect(()=>{let h=!1;return TS(n,r,s).then(d=>{h||f(d)}),()=>{h=!0}},[n,r,s]),c}function MS({page:n,matches:r,...s}){let c=vl(),{future:f}=ic(),{basename:h}=qd(),d=E.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let v=Wg(n,h,f.v8_trailingSlashAwareDataRequests,"rsc"),b=!1,p=[];for(let x of r)typeof x.route.shouldRevalidate=="function"?b=!0:p.push(x.route.id);return b&&p.length>0&&v.searchParams.set("_routes",p.join(",")),[v.pathname+v.search]},[h,f.v8_trailingSlashAwareDataRequests,n,c,r]);return E.createElement(E.Fragment,null,d.map(v=>E.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...s})))}function DS({page:n,matches:r,...s}){let c=vl(),{future:f,manifest:h,routeModules:d}=ic(),{basename:v}=qd(),{loaderData:b,matches:p}=zS(),x=E.useMemo(()=>Xp(n,r,p,h,c,"data"),[n,r,p,h,c]),g=E.useMemo(()=>Xp(n,r,p,h,c,"assets"),[n,r,p,h,c]),_=E.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let q=new Set,D=!1;if(r.forEach(Q=>{var J;let Z=h.routes[Q.route.id];!Z||!Z.hasLoader||(!x.some(Y=>Y.route.id===Q.route.id)&&Q.route.id in b&&((J=d[Q.route.id])!=null&&J.shouldRevalidate)||Z.hasClientLoader?D=!0:q.add(Q.route.id))}),q.size===0)return[];let H=Wg(n,v,f.v8_trailingSlashAwareDataRequests,"data");return D&&q.size>0&&H.searchParams.set("_routes",r.filter(Q=>q.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[H.pathname+H.search]},[v,f.v8_trailingSlashAwareDataRequests,b,c,h,x,r,n,d]),k=E.useMemo(()=>NS(g,h),[g,h]),K=AS(g);return E.createElement(E.Fragment,null,_.map(q=>E.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...s})),k.map(q=>E.createElement("link",{key:q,rel:"modulepreload",href:q,...s})),K.map(({key:q,link:D})=>E.createElement("link",{key:q,nonce:s.nonce,...D,crossOrigin:D.crossOrigin??s.crossOrigin})))}function US(...n){return r=>{n.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var kS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kS&&(window.__reactRouterVersion="7.18.4")}catch{}function HS({basename:n,children:r,useTransitions:s,window:c}){let f=E.useRef();f.current==null&&(f.current=f2({window:c,v5Compat:!0}));let h=f.current,[d,v]=E.useState({action:h.action,location:h.location}),b=E.useCallback(p=>{s===!1?v(p):E.startTransition(()=>v(p))},[s]);return E.useLayoutEffect(()=>h.listen(b),[h,b]),E.createElement(fS,{basename:n,children:r,location:d.location,navigationType:d.action,navigator:h,useTransitions:s})}var Ig=E.forwardRef(function({onClick:r,discover:s="render",prefetch:c="none",relative:f,reloadDocument:h,replace:d,mask:v,state:b,target:p,to:x,preventScrollReset:g,viewTransition:_,defaultShouldRevalidate:k,...K},q){let{basename:D,navigator:H,useTransitions:Q}=E.useContext(ll),Z=typeof x=="string"&&Od.test(x),J=Gg(x,D);x=J.to;let Y=Z2(x,{relative:f}),de=vl(),F=null;if(v){let re=tc(v,[],de.mask?de.mask.pathname:"/",!0);D!=="/"&&(re.pathname=re.pathname==="/"?D:Cl([D,re.pathname])),F=H.createHref(re)}let[U,I,le]=OS(c,K),Ve=BS(x,{replace:d,mask:v,state:b,target:p,preventScrollReset:g,relative:f,viewTransition:_,defaultShouldRevalidate:k,useTransitions:Q});function Fe(re){r&&r(re),re.defaultPrevented||Ve(re)}let ie=!(J.isExternal||h),Te=E.createElement("a",{...K,...le,href:(ie?F:void 0)||J.absoluteURL||Y,onClick:ie?Fe:r,ref:US(q,I),target:p,"data-discover":!Z&&s==="render"?"true":void 0});return U&&!Z?E.createElement(E.Fragment,null,Te,E.createElement(RS,{page:Y})):Te});Ig.displayName="Link";var e0=E.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:c="",end:f=!1,style:h,to:d,viewTransition:v,children:b,...p},x){let g=fr(d,{relative:p.relative}),_=vl(),k=E.useContext(lc),{navigator:K,basename:q}=E.useContext(ll),D=k!=null&&XS(g)&&v===!0,H=K.encodeLocation?K.encodeLocation(g).pathname:g.pathname,Q=_.pathname,Z=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;s||(Q=Q.toLowerCase(),Z=Z?Z.toLowerCase():null,H=H.toLowerCase()),Z&&q&&(Z=ya(Z,q)||Z);const J=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let Y=Q===H||!f&&Q.startsWith(H)&&Q.charAt(J)==="/",de=Z!=null&&(Z===H||!f&&Z.startsWith(H)&&Z.charAt(H.length)==="/"),F={isActive:Y,isPending:de,isTransitioning:D},U=Y?r:void 0,I;typeof c=="function"?I=c(F):I=[c,Y?"active":null,de?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let le=typeof h=="function"?h(F):h;return E.createElement(Ig,{...p,"aria-current":U,className:I,ref:x,style:le,to:d,viewTransition:v},typeof b=="function"?b(F):b)});e0.displayName="NavLink";var qS=E.forwardRef(({discover:n="render",fetcherKey:r,navigate:s,reloadDocument:c,replace:f,state:h,method:d=Zs,action:v,onSubmit:b,relative:p,preventScrollReset:x,viewTransition:g,defaultShouldRevalidate:_,...k},K)=>{let{useTransitions:q}=E.useContext(ll),D=YS(),H=VS(v,{relative:p}),Q=d.toLowerCase()==="get"?"get":"post",Z=typeof v=="string"&&Od.test(v),J=Y=>{if(b&&b(Y),Y.defaultPrevented)return;Y.preventDefault();let de=Y.nativeEvent.submitter,F=(de==null?void 0:de.getAttribute("formmethod"))||d,U=()=>D(de||Y.currentTarget,{fetcherKey:r,method:F,navigate:s,replace:f,state:h,relative:p,preventScrollReset:x,viewTransition:g,defaultShouldRevalidate:_});q&&s!==!1?E.startTransition(()=>U()):U()};return E.createElement("form",{ref:K,method:Q,action:H,onSubmit:c?b:J,...k,"data-discover":!Z&&n==="render"?"true":void 0})});qS.displayName="Form";function LS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function t0(n){let r=E.useContext(eu);return We(r,LS(n)),r}function BS(n,{target:r,replace:s,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:v,defaultShouldRevalidate:b,useTransitions:p}={}){let x=ac(),g=vl(),_=fr(n,{relative:d});return E.useCallback(k=>{if(pS(k,r)){k.preventDefault();let K=s!==void 0?s:Ln(g)===Ln(_),q=()=>x(n,{replace:K,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:v,defaultShouldRevalidate:b});p?E.startTransition(()=>q()):q()}},[g,x,_,s,c,f,r,n,h,d,v,b,p])}function z5(n){tl(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=E.useRef(rd(n)),s=E.useRef(!1),c=vl(),f=E.useMemo(()=>gS(c.search,s.current?null:r.current),[c.search]),h=ac(),d=E.useCallback((v,b)=>{const p=rd(typeof v=="function"?v(new URLSearchParams(f)):v);s.current=!0,h("?"+p,b)},[h,f]);return[f,d]}var QS=0,GS=()=>`__${String(++QS)}__`;function YS(){let{router:n}=t0("useSubmit"),{basename:r}=E.useContext(ll),s=uS(),c=n.fetch,f=n.navigate;return E.useCallback(async(h,d={})=>{let{action:v,method:b,encType:p,formData:x,body:g}=SS(h,r);if(d.navigate===!1){let _=d.fetcherKey||GS();await c(_,s,d.action||v,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||b,formEncType:d.encType||p,flushSync:d.flushSync})}else await f(d.action||v,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||b,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[c,f,r,s])}function VS(n,{relative:r}={}){let{basename:s}=E.useContext(ll),c=E.useContext(jl);We(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),h={...fr(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(g=>g).forEach(g=>v.append("index",g));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 XS(n,{relative:r}={}){let s=E.useContext(Xg);We(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=t0("useViewTransitionState"),f=fr(n,{relative:r});if(!s.isTransitioning)return!1;let h=ya(s.currentLocation.pathname,c)||s.currentLocation.pathname,d=ya(s.nextLocation.pathname,c)||s.nextLocation.pathname;return Ps(f.pathname,d)!=null||Ps(f.pathname,h)!=null}var KS=Mg();const l0=E.createContext(void 0),lu=n=>{const r=E.useContext(l0);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},ZS=({client:n,children:r})=>(E.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),m.jsx(l0.Provider,{value:n,children:r})),JS={setTimeout:(n,r)=>setTimeout(n,r),clearTimeout:n=>clearTimeout(n),setInterval:(n,r)=>setInterval(n,r),clearInterval:n=>clearInterval(n)};var Fa,jd,Sg,FS=(Sg=class{constructor(){he(this,Fa,JS);he(this,jd,!1)}setTimeoutProvider(n){P(this,Fa,n)}setTimeout(n,r){return T(this,Fa).setTimeout(n,r)}clearTimeout(n){T(this,Fa).clearTimeout(n)}setInterval(n,r){return T(this,Fa).setInterval(n,r)}clearInterval(n){T(this,Fa).clearInterval(n)}},Fa=new WeakMap,jd=new WeakMap,Sg);const zn=new FS;function $S(n){setTimeout(n,0)}const PS=typeof window>"u"||"Deno"in globalThis;function kt(){}function WS(n,r){return typeof n=="function"?n(r):n}function a0(n){return typeof n=="number"&&n>=0&&n!==1/0}function n0(n,r){return Math.max(n+(r||0)-Date.now(),0)}function Pe(n,r){return typeof n=="function"?n(r):n}function Kp(n,r){const{type:s="all",exact:c,fetchStatus:f,predicate:h,queryKey:d,stale:v}=n;if(d){if(c){if(r.queryHash!==Bd(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 Zp(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 Bd(n,r){return((r==null?void 0:r.queryKeyHashFn)||Bn)(n)}function Bn(n){return JSON.stringify(n,(r,s)=>sd(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 IS=Object.prototype.hasOwnProperty;function i0(n,r,s=0){if(n===r)return n;if(s>500)return r;const c=Jp(n)&&Jp(r);if(!c&&!(sd(n)&&sd(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 p=0;p<d;p++){const x=c?p:h[p],g=n[x],_=r[x];if(g===_){v[x]=g,(c?p<f:IS.call(n,x))&&b++;continue}if(g===null||_===null||typeof g!="object"||typeof _!="object"){v[x]=_;continue}const k=i0(g,_,s+1);v[x]=k,k===g&&b++}return f===d&&b===f?n:v}function Fs(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 Jp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function sd(n){if(!Fp(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!(!Fp(c)||!c.hasOwnProperty("isPrototypeOf")||r!==Object.prototype)}function Fp(n){return Object.prototype.toString.call(n)==="[object Object]"}function e3(n){return new Promise(r=>{zn.setTimeout(r,n)})}function cd(n,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,r):s.structuralSharing!==!1?i0(n,r):r}function t3(n,r,s=0){const c=[...n,r];return s&&c.length>s?c.slice(1):c}function l3(n,r,s=0){const c=[r,...n];return s&&c.length>s?c.slice(0,-1):c}const Qd=Symbol();function u0(n,r){return!n.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!n.queryFn||n.queryFn===Qd?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Gd(n,r){return typeof n=="function"?n(...r):!!n}function a3(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 n3=()=>PS;const Yd=()=>n3();var au=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(){}},On,$a,qi,Eg,i3=(Eg=class extends au{constructor(){super();he(this,On);he(this,$a);he(this,qi);P(this,qi,r=>{if(typeof window<"u"&&window.addEventListener){const s=()=>r();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){T(this,$a)||this.setEventListener(T(this,qi))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,$a))==null||r.call(this),P(this,$a,void 0))}setEventListener(r){var s;P(this,qi,r),(s=T(this,$a))==null||s.call(this),P(this,$a,r(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(r){T(this,On)!==r&&(P(this,On,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(s=>{s(r)})}isFocused(){var r;return typeof T(this,On)=="boolean"?T(this,On):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},On=new WeakMap,$a=new WeakMap,qi=new WeakMap,Eg);const Vd=new i3,u3=$S;function r3(){let n=[],r=0,s=v=>{v()},c=v=>{v()},f=u3;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 dt=r3();var Li,Pa,Bi,_g,s3=(_g=class extends au{constructor(){super();he(this,Li,!0);he(this,Pa);he(this,Bi);P(this,Bi,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(){T(this,Pa)||this.setEventListener(T(this,Bi))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,Pa))==null||r.call(this),P(this,Pa,void 0))}setEventListener(r){var s;P(this,Bi,r),(s=T(this,Pa))==null||s.call(this),P(this,Pa,r(this.setOnline.bind(this)))}setOnline(r){T(this,Li)!==r&&(P(this,Li,r),this.listeners.forEach(s=>{s(r)}))}isOnline(){return T(this,Li)}},Li=new WeakMap,Pa=new WeakMap,Bi=new WeakMap,_g);const Ws=new s3;function c3(n){return Math.min(1e3*2**n,3e4)}function r0(n){return(n??"online")==="online"?Ws.isOnline():!0}var od=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function s0(n){let r=!1,s=0,c,f="pending",h,d;const v=new Promise((Q,Z)=>{h=Q,d=Z});v.catch(kt);const b=()=>f!=="pending",p=Q=>{var Z;if(!b()){const J=new od(Q);q(J),(Z=n.onCancel)==null||Z.call(n,J)}},x=()=>{r=!0},g=()=>{r=!1},_=()=>Vd.isFocused()&&(n.networkMode==="always"||Ws.isOnline())&&n.canRun(),k=()=>r0(n.networkMode)&&n.canRun(),K=Q=>{b()||(c==null||c(),f="resolved",h(Q))},q=Q=>{b()||(c==null||c(),f="rejected",d(Q))},D=Q=>new Promise(Z=>{var J;c=Y=>{(b()||Q())&&Z(Y)},(J=n.onPause)==null||J.call(n)}).then(()=>{var Z;c=void 0,b()||(Z=n.onContinue)==null||Z.call(n)}),H=()=>{if(b())return;let Q;const Z=s===0?n.initialPromise:void 0;try{Q=Z??n.fn()}catch(J){Q=Promise.reject(J)}Promise.resolve(Q).then(K).catch(J=>{var I;if(b())return;const Y=n.retry??(Yd()?0:3),de=n.retryDelay??c3,F=typeof de=="function"?de(s,J):de,U=Y===!0||typeof Y=="number"&&s<Y||typeof Y=="function"&&Y(s,J);if(r||!U){q(J);return}s++,(I=n.onFail)==null||I.call(n,s,J),e3(F).then(()=>_()?void 0:D(_)).then(()=>{r?q(J):H()})})};return{promise:v,status:()=>f,cancel:p,continue:()=>(c==null||c(),v),cancelRetry:x,continueRetry:g,canStart:k,start:()=>(k()?H():D(k).then(H),v)}}var Rn,Tg,c0=(Tg=class{constructor(){he(this,Rn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),a0(this.gcTime)&&P(this,Rn,zn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Yd()?1/0:3e5))}clearGcTimeout(){T(this,Rn)!==void 0&&(zn.clearTimeout(T(this,Rn)),P(this,Rn,void 0))}},Rn=new WeakMap,Tg);function o3(n){return{onFetch:(r,s)=>{var x,g,_,k,K;const c=r.options,f=(_=(g=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,h=((k=r.state.data)==null?void 0:k.pages)||[],d=((K=r.state.data)==null?void 0:K.pageParams)||[];let v={pages:[],pageParams:[]},b=0;const p=async()=>{let q=!1;const D=Z=>{a3(Z,()=>r.signal,()=>q=!0)},H=u0(r.options,r.fetchOptions),Q=async(Z,J,Y)=>{if(q)return Promise.reject(r.signal.reason);if(J==null&&Z.pages.length)return Promise.resolve(Z);const F=(()=>{const Ve={client:r.client,queryKey:r.queryKey,pageParam:J,direction:Y?"backward":"forward",meta:r.options.meta};return D(Ve),Ve})(),U=await H(F),{maxPages:I}=r.options,le=Y?l3:t3;return{pages:le(Z.pages,U,I),pageParams:le(Z.pageParams,J,I)}};if(f&&h.length){const Z=f==="backward",J=Z?f3:$p,Y={pages:h,pageParams:d};v=await Q(Y,J(c,Y),Z)}else{const Z=n??h.length;do{const J=b===0?d[0]??c.initialPageParam:$p(c,v);if(b>0&&J==null)break;v=await Q(v,J),b++}while(b<Z)}return v};r.options.persister?r.fetchFn=()=>{var q,D;return(D=(q=r.options).persister)==null?void 0:D.call(q,p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s)}:r.fetchFn=p}}}function $p(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 f3(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 Qi,An,Gi,dl,Mn,ft,nr,Dn,Tl,fa,Ng,d3=(Ng=class extends c0{constructor(r){super();he(this,Tl);he(this,Qi);he(this,An);he(this,Gi);he(this,dl);he(this,Mn);he(this,ft);he(this,nr);he(this,Dn);P(this,Dn,!1),P(this,nr,r.defaultOptions),this.setOptions(r.options),this.observers=[],P(this,Mn,r.client),P(this,dl,T(this,Mn).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,P(this,An,Wp(this.options)),this.state=r.state??T(this,An),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,Qi)}get promise(){var r;return(r=T(this,ft))==null?void 0:r.promise}setOptions(r){if(this.options={...T(this,nr),...r},r!=null&&r._type&&P(this,Qi,r._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Wp(this.options);s.data!==void 0&&(this.setState(Pp(s.data,s.dataUpdatedAt)),P(this,An,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,dl).remove(this)}setData(r,s){const c=cd(this.state.data,r,this.options);return Se(this,Tl,fa).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(r){Se(this,Tl,fa).call(this,{type:"setState",state:r})}cancel(r){var c,f;const s=(c=T(this,ft))==null?void 0:c.promise;return(f=T(this,ft))==null||f.cancel(r),s?s.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,An)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>Pe(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>Pe(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:!n0(this.state.dataUpdatedAt,r)}onFocus(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnWindowFocus()))==null||r.refetch({cancelRefetch:!1}),(s=T(this,ft))==null||s.continue()}onOnline(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnReconnect()))==null||r.refetch({cancelRefetch:!1}),(s=T(this,ft))==null||s.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),T(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||(T(this,ft)&&(T(this,Dn)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?T(this,ft).cancel({revert:!0}):T(this,ft).cancelRetry()),this.scheduleGc()),T(this,dl).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Tl,fa).call(this,{type:"invalidate"})}async fetch(r,s){var p,x,g,_,k,K,q,D,H,Q,Z,J;if(this.state.fetchStatus!=="idle"&&((p=T(this,ft))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(T(this,ft))return T(this,ft).continueRetry(),T(this,ft).promise}if(r&&this.setOptions(r),!this.options.queryFn){const Y=this.observers.find(de=>de.options.queryFn);Y&&this.setOptions(Y.options)}const c=new AbortController,f=Y=>{Object.defineProperty(Y,"signal",{enumerable:!0,get:()=>(P(this,Dn,!0),c.signal)})},h=()=>{const Y=u0(this.options,s),F=(()=>{const U={client:T(this,Mn),queryKey:this.queryKey,meta:this.meta};return f(U),U})();return P(this,Dn,!1),this.options.persister?this.options.persister(Y,F,this):Y(F)},v=(()=>{const Y={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:T(this,Mn),state:this.state,fetchFn:h};return f(Y),Y})();(x=T(this,Qi)==="infinite"?o3(this.options.pages):this.options.behavior)==null||x.onFetch(v,this),P(this,Gi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=v.fetchOptions)==null?void 0:g.meta))&&Se(this,Tl,fa).call(this,{type:"fetch",meta:(_=v.fetchOptions)==null?void 0:_.meta});const b=P(this,ft,s0({initialPromise:s==null?void 0:s.initialPromise,fn:v.fetchFn,onCancel:Y=>{Y instanceof od&&Y.revert&&this.setState({...T(this,Gi),fetchStatus:"idle"}),c.abort()},onFail:(Y,de)=>{Se(this,Tl,fa).call(this,{type:"failed",failureCount:Y,error:de})},onPause:()=>{Se(this,Tl,fa).call(this,{type:"pause"})},onContinue:()=>{Se(this,Tl,fa).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const Y=await b.start();if(Y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Y),(K=(k=T(this,dl).config).onSuccess)==null||K.call(k,Y,this),(D=(q=T(this,dl).config).onSettled)==null||D.call(q,Y,this.state.error,this),Y}catch(Y){if(Y instanceof od){if(Y.silent)return T(this,ft).promise;if(Y.revert){if(this.state.data===void 0)throw Y;return this.state.data}}throw Se(this,Tl,fa).call(this,{type:"error",error:Y}),(Q=(H=T(this,dl).config).onError)==null||Q.call(H,Y,this),(J=(Z=T(this,dl).config).onSettled)==null||J.call(Z,this.state.data,Y,this),Y}finally{T(this,ft)===b&&P(this,ft,void 0),this.scheduleGc()}}},Qi=new WeakMap,An=new WeakMap,Gi=new WeakMap,dl=new WeakMap,Mn=new WeakMap,ft=new WeakMap,nr=new WeakMap,Dn=new WeakMap,Tl=new WeakSet,fa=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,...o0(c.data,this.options),fetchMeta:r.meta??null};case"success":const f={...c,...Pp(r.data,r.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return P(this,Gi,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),dt.batch(()=>{this.observers.slice().forEach(c=>{c.onQueryUpdate()}),T(this,dl).notify({query:this,type:"updated",action:r})})},Ng);function o0(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:r0(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Pp(n,r){return{data:n,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wp(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 Dt,Oe,ir,Ut,Un,Yi,da,ur,Vi,Xi,kn,Hn,Wa,Ki,qe,lr,fd,dd,hd,md,yd,vd,pd,gd,Cg,h3=(Cg=class extends au{constructor(r,s){super();he(this,qe);he(this,Dt);he(this,Oe);he(this,ir);he(this,Ut);he(this,Un);he(this,Yi);he(this,da);he(this,ur);he(this,Vi);he(this,Xi);he(this,kn);he(this,Hn);he(this,Wa);he(this,Ki,new Set);this.options=s,P(this,Dt,r),P(this,da,null),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Oe).addObserver(this),Ip(T(this,Oe),this.options)?Se(this,qe,lr).call(this):this.updateResult(),Se(this,qe,yd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bd(T(this,Oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bd(T(this,Oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,qe,vd).call(this),Se(this,qe,pd).call(this),T(this,Oe).removeObserver(this)}setOptions(r){const s=this.options,c=T(this,Oe);if(this.options=T(this,Dt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pe(this.options.enabled,T(this,Oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,qe,gd).call(this),T(this,Oe).setOptions(this.options),s._defaulted&&!Fs(this.options,s)&&T(this,Dt).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Oe),observer:this});const f=this.hasListeners();f&&eg(T(this,Oe),c,this.options,s)&&Se(this,qe,lr).call(this),this.updateResult(),f&&(T(this,Oe)!==c||Pe(this.options.enabled,T(this,Oe))!==Pe(s.enabled,T(this,Oe))||Pe(this.options.staleTime,T(this,Oe))!==Pe(s.staleTime,T(this,Oe)))&&Se(this,qe,dd).call(this);const h=Se(this,qe,hd).call(this);f&&(T(this,Oe)!==c||Pe(this.options.enabled,T(this,Oe))!==Pe(s.enabled,T(this,Oe))||h!==T(this,Wa))&&Se(this,qe,md).call(this,h)}getOptimisticResult(r){const s=T(this,Dt).getQueryCache().build(T(this,Dt),r),c=this.createResult(s,r);return Fs(this.getCurrentResult(),c)||(P(this,Ut,c),P(this,Yi,this.options),P(this,Un,T(this,Oe).state)),c}getCurrentResult(){return T(this,Ut)}trackResult(r,s){return new Proxy(r,{get:(c,f)=>(this.trackProp(f),s==null||s(f),Reflect.get(c,f))})}trackProp(r){T(this,Ki).add(r)}getCurrentQuery(){return T(this,Oe)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const s=T(this,Dt).defaultQueryOptions(r),c=T(this,Dt).getQueryCache().build(T(this,Dt),s);let f=()=>{},h;const d=new Promise(v=>{h=v,f=T(this,Dt).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 Se(this,qe,lr).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Ut)))}createResult(r,s){var de;const c=T(this,Oe),f=this.options,h=T(this,Ut),d=T(this,Un),v=T(this,Yi),b=r!==c?r.state:T(this,ir),{state:p}=r;let x={...p},g=!1,_;if(s._optimisticResults){const F=this.hasListeners(),U=!F&&Ip(r,s),I=F&&eg(r,c,s,f);(U||I)&&(x={...x,...o0(p.data,r.options)}),s._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:k,errorUpdatedAt:K,status:q}=x;_=x.data;let D=!1;if(s.placeholderData!==void 0&&_===void 0&&q==="pending"){let F;h!=null&&h.isPlaceholderData&&s.placeholderData===(v==null?void 0:v.placeholderData)?(F=h.data,D=!0):F=typeof s.placeholderData=="function"?s.placeholderData((de=T(this,Xi))==null?void 0:de.state.data,T(this,Xi)):s.placeholderData,F!==void 0&&(q="success",_=cd(h==null?void 0:h.data,F,s),g=!0)}if(s.select&&_!==void 0&&!D)if(h&&_===(d==null?void 0:d.data)&&s.select===T(this,ur))_=T(this,Vi);else try{P(this,ur,s.select),_=s.select(_),_=cd(h==null?void 0:h.data,_,s),P(this,Vi,_),P(this,da,null)}catch(F){P(this,da,F)}else _===void 0&&P(this,da,null);T(this,da)&&(k=T(this,da),_=T(this,Vi),K=Date.now(),q="error",g=!1);const H=x.fetchStatus==="fetching",Q=q==="pending",Z=q==="error",J=Q&&H,Y=_!==void 0;return{status:q,fetchStatus:x.fetchStatus,isPending:Q,isSuccess:q==="success",isError:Z,isInitialLoading:J,isLoading:J,data:_,dataUpdatedAt:x.dataUpdatedAt,error:k,errorUpdatedAt:K,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>b.dataUpdateCount||x.errorUpdateCount>b.errorUpdateCount,isFetching:H,isRefetching:H&&!Q,isLoadingError:Z&&!Y,isPaused:x.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:Z&&Y,isStale:Xd(r,s),refetch:this.refetch,isEnabled:Pe(s.enabled,r)!==!1}}updateResult(){const r=T(this,Ut),s=this.createResult(T(this,Oe),this.options);if(P(this,Un,T(this,Oe).state),P(this,Yi,this.options),T(this,Un).data!==void 0&&P(this,Xi,T(this,Oe)),Fs(s,r))return;P(this,Ut,s);const f=(()=>{if(!r)return!0;const{notifyOnChangeProps:h}=this.options,d=typeof h=="function"?h():h;if(d==="all"||!d&&!T(this,Ki).size)return!0;const v=new Set(d??T(this,Ki));return this.options.throwOnError&&v.add("error"),Object.keys(T(this,Ut)).some(b=>{const p=b;return T(this,Ut)[p]!==r[p]&&v.has(p)})})();dt.batch(()=>{f&&this.listeners.forEach(h=>{h(T(this,Ut))}),T(this,Dt).getQueryCache().notify({query:T(this,Oe),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,qe,yd).call(this)}},Dt=new WeakMap,Oe=new WeakMap,ir=new WeakMap,Ut=new WeakMap,Un=new WeakMap,Yi=new WeakMap,da=new WeakMap,ur=new WeakMap,Vi=new WeakMap,Xi=new WeakMap,kn=new WeakMap,Hn=new WeakMap,Wa=new WeakMap,Ki=new WeakMap,qe=new WeakSet,lr=function(r){Se(this,qe,gd).call(this);let s=T(this,Oe).fetch(this.options,r);return r!=null&&r.throwOnError||(s=s.catch(kt)),s},fd=function(r){return!Yd()&&Pe(this.options.enabled,T(this,Oe))!==!1&&a0(r)},dd=function(){Se(this,qe,vd).call(this);const r=Pe(this.options.staleTime,T(this,Oe));if(T(this,Ut).isStale||!Se(this,qe,fd).call(this,r))return;const s=n0(T(this,Ut).dataUpdatedAt,r)+1;P(this,kn,zn.setTimeout(()=>{T(this,Ut).isStale||this.updateResult()},s))},hd=function(){return Pe(this.options.refetchInterval,T(this,Oe))??!1},md=function(r){Se(this,qe,pd).call(this),P(this,Wa,r),!(T(this,Wa)===0||!Se(this,qe,fd).call(this,T(this,Wa)))&&P(this,Hn,zn.setInterval(()=>{(this.options.refetchIntervalInBackground||Vd.isFocused())&&Se(this,qe,lr).call(this)},T(this,Wa)))},yd=function(){Se(this,qe,dd).call(this),Se(this,qe,md).call(this,Se(this,qe,hd).call(this))},vd=function(){T(this,kn)!==void 0&&(zn.clearTimeout(T(this,kn)),P(this,kn,void 0))},pd=function(){T(this,Hn)!==void 0&&(zn.clearInterval(T(this,Hn)),P(this,Hn,void 0))},gd=function(){const r=T(this,Dt).getQueryCache().build(T(this,Dt),this.options);if(r===T(this,Oe))return;const s=T(this,Oe);P(this,Oe,r),P(this,ir,r.state),this.hasListeners()&&(s==null||s.removeObserver(this),r.addObserver(this))},Cg);function m3(n,r){return Pe(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&Pe(r.retryOnMount,n)===!1)}function Ip(n,r){return m3(n,r)||n.state.data!==void 0&&bd(n,r,r.refetchOnMount)}function bd(n,r,s){if(Pe(r.enabled,n)!==!1&&Pe(r.staleTime,n)!=="static"){const c=Pe(s,n);return c==="always"||c!==!1&&Xd(n,r)}return!1}function eg(n,r,s,c){return(n!==r||Pe(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Xd(n,s)}function Xd(n,r){return Pe(r.enabled,n)!==!1&&n.isStaleByTime(Pe(r.staleTime,n))}var rr,Vl,wt,qn,Xl,Ja,wg,y3=(wg=class extends c0{constructor(r){super();he(this,Xl);he(this,rr);he(this,Vl);he(this,wt);he(this,qn);P(this,rr,r.client),this.mutationId=r.mutationId,P(this,wt,r.mutationCache),P(this,Vl,[]),this.state=r.state||f0(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){T(this,Vl).includes(r)||(T(this,Vl).push(r),this.clearGcTimeout(),T(this,wt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){P(this,Vl,T(this,Vl).filter(s=>s!==r)),this.scheduleGc(),T(this,wt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){T(this,Vl).length||(this.state.status==="pending"?this.scheduleGc():T(this,wt).remove(this))}continue(){var r;return((r=T(this,qn))==null?void 0:r.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(r){var v,b,p,x,g,_,k,K,q,D,H,Q,Z,J,Y,de,F,U;const s=()=>{Se(this,Xl,Ja).call(this,{type:"continue"})},c={client:T(this,rr),meta:this.options.meta,mutationKey:this.options.mutationKey},f=P(this,qn,s0({fn:()=>this.options.mutationFn?this.options.mutationFn(r,c):Promise.reject(new Error("No mutationFn found")),onFail:(I,le)=>{Se(this,Xl,Ja).call(this,{type:"failed",failureCount:I,error:le})},onPause:()=>{Se(this,Xl,Ja).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,wt).canRun(this)})),h=this.state.status==="pending",d=!f.canStart();try{if(h)s();else{Se(this,Xl,Ja).call(this,{type:"pending",variables:r,isPaused:d}),T(this,wt).config.onMutate&&await T(this,wt).config.onMutate(r,this,c);const le=await((b=(v=this.options).onMutate)==null?void 0:b.call(v,r,c));le!==this.state.context&&Se(this,Xl,Ja).call(this,{type:"pending",context:le,variables:r,isPaused:d})}const I=await f.start();return await((x=(p=T(this,wt).config).onSuccess)==null?void 0:x.call(p,I,r,this.state.context,this,c)),await((_=(g=this.options).onSuccess)==null?void 0:_.call(g,I,r,this.state.context,c)),await((K=(k=T(this,wt).config).onSettled)==null?void 0:K.call(k,I,null,this.state.variables,this.state.context,this,c)),await((D=(q=this.options).onSettled)==null?void 0:D.call(q,I,null,r,this.state.context,c)),Se(this,Xl,Ja).call(this,{type:"success",data:I}),I}catch(I){try{await((Q=(H=T(this,wt).config).onError)==null?void 0:Q.call(H,I,r,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await((J=(Z=this.options).onError)==null?void 0:J.call(Z,I,r,this.state.context,c))}catch(le){Promise.reject(le)}try{await((de=(Y=T(this,wt).config).onSettled)==null?void 0:de.call(Y,void 0,I,this.state.variables,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await((U=(F=this.options).onSettled)==null?void 0:U.call(F,void 0,I,r,this.state.context,c))}catch(le){Promise.reject(le)}throw Se(this,Xl,Ja).call(this,{type:"error",error:I}),I}finally{T(this,qn)===f&&P(this,qn,void 0),T(this,wt).runNext(this)}}},rr=new WeakMap,Vl=new WeakMap,wt=new WeakMap,qn=new WeakMap,Xl=new WeakSet,Ja=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),dt.batch(()=>{T(this,Vl).forEach(c=>{c.onMutationUpdate(r)}),T(this,wt).notify({mutation:this,type:"updated",action:r})})},wg);function f0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ha,Nl,sr,jg,v3=(jg=class extends au{constructor(r={}){super();he(this,ha);he(this,Nl);he(this,sr);this.config=r,P(this,ha,new Set),P(this,Nl,new Map),P(this,sr,0)}build(r,s,c){const f=new y3({client:r,mutationCache:this,mutationId:++Gs(this,sr)._,options:r.defaultMutationOptions(s),state:c});return this.add(f),f}add(r){T(this,ha).add(r);const s=Vs(r);if(typeof s=="string"){const c=T(this,Nl).get(s);c?c.push(r):T(this,Nl).set(s,[r])}this.notify({type:"added",mutation:r})}remove(r){if(T(this,ha).delete(r)){const s=Vs(r);if(typeof s=="string"){const c=T(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&&T(this,Nl).delete(s)}}this.notify({type:"removed",mutation:r})}canRun(r){var c;const s=Vs(r);if(typeof s=="string"){const f=(c=T(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=Vs(r);return typeof s=="string"?((f=(c=T(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(){dt.batch(()=>{T(this,ha).forEach(r=>{this.notify({type:"removed",mutation:r})}),T(this,ha).clear(),T(this,Nl).clear()})}getAll(){return Array.from(T(this,ha))}find(r){const s={exact:!0,...r};return this.getAll().find(c=>Zp(s,c))}findAll(r={}){return this.getAll().filter(s=>Zp(r,s))}notify(r){dt.batch(()=>{this.listeners.forEach(s=>{s(r)})})}resumePausedMutations(){const r=this.getAll().filter(s=>s.state.isPaused);return dt.batch(()=>Promise.all(r.map(s=>s.continue().catch(kt))))}},ha=new WeakMap,Nl=new WeakMap,sr=new WeakMap,jg);function Vs(n){var r;return(r=n.options.scope)==null?void 0:r.id}var ma,Ia,jt,cr,Zl,ar,xd,zg,p3=(zg=class extends au{constructor(s,c){super();he(this,Zl);he(this,ma);he(this,Ia);he(this,jt);he(this,cr);P(this,ma,s),this.setOptions(c),this.bindMethods(),Se(this,Zl,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=T(this,ma).defaultMutationOptions(s),Fs(this.options,c)||T(this,ma).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,jt),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Bn(c.mutationKey)!==Bn(this.options.mutationKey)?this.reset():((f=T(this,jt))==null?void 0:f.state.status)==="pending"&&T(this,jt).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&T(this,jt)&&(T(this,jt).addObserver(this),Se(this,Zl,ar).call(this))}onUnsubscribe(){var s;this.hasListeners()||(s=T(this,jt))==null||s.removeObserver(this)}onMutationUpdate(s){Se(this,Zl,ar).call(this),Se(this,Zl,xd).call(this,s)}getCurrentResult(){return T(this,Ia)}reset(){var s;(s=T(this,jt))==null||s.removeObserver(this),P(this,jt,void 0),Se(this,Zl,ar).call(this),Se(this,Zl,xd).call(this)}mutate(s,c){var f;return P(this,cr,c),(f=T(this,jt))==null||f.removeObserver(this),P(this,jt,T(this,ma).getMutationCache().build(T(this,ma),this.options)),T(this,jt).addObserver(this),T(this,jt).execute(s)}},ma=new WeakMap,Ia=new WeakMap,jt=new WeakMap,cr=new WeakMap,Zl=new WeakSet,ar=function(){var c;const s=((c=T(this,jt))==null?void 0:c.state)??f0();P(this,Ia,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},xd=function(s){dt.batch(()=>{var f,h,d,v;const c=T(this,cr);if(c&&this.hasListeners()){const b=T(this,Ia).variables,p=T(this,Ia).context,x={client:T(this,ma),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,p,x)}catch(g){Promise.reject(g)}try{(h=c.onSettled)==null||h.call(c,s.data,null,b,p,x)}catch(g){Promise.reject(g)}}else if((s==null?void 0:s.type)==="error"){try{(d=c.onError)==null||d.call(c,s.error,b,p,x)}catch(g){Promise.reject(g)}try{(v=c.onSettled)==null||v.call(c,void 0,s.error,b,p,x)}catch(g){Promise.reject(g)}}}this.listeners.forEach(b=>{b(T(this,Ia))})})},zg),Kl,Og,g3=(Og=class extends au{constructor(r={}){super();he(this,Kl);this.config=r,P(this,Kl,new Map)}build(r,s,c){const f=s.queryKey,h=s.queryHash??Bd(f,s);let d=this.get(h);return d||(d=new d3({client:r,queryKey:f,queryHash:h,options:r.defaultQueryOptions(s),state:c,defaultOptions:r.getQueryDefaults(f)}),this.add(d)),d}add(r){T(this,Kl).has(r.queryHash)||(T(this,Kl).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){T(this,Kl).get(r.queryHash)===r&&(r.destroy(),T(this,Kl).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){dt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return T(this,Kl).get(r)}getAll(){return[...T(this,Kl).values()]}find(r){const s={exact:!0,...r};return this.getAll().find(c=>Kp(s,c))}findAll(r={}){const s=this.getAll();return Object.keys(r).length>0?s.filter(c=>Kp(r,c)):s}notify(r){dt.batch(()=>{this.listeners.forEach(s=>{s(r)})})}onFocus(){dt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){dt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Kl=new WeakMap,Og),et,en,tn,Zi,Ji,ln,Fi,$i,Rg,b3=(Rg=class{constructor(n={}){he(this,et);he(this,en);he(this,tn);he(this,Zi);he(this,Ji);he(this,ln);he(this,Fi);he(this,$i);P(this,et,n.queryCache||new g3),P(this,en,n.mutationCache||new v3),P(this,tn,n.defaultOptions||{}),P(this,Zi,new Map),P(this,Ji,new Map),P(this,ln,0)}mount(){Gs(this,ln)._++,T(this,ln)===1&&(P(this,Fi,Vd.subscribe(async n=>{n&&(await this.resumePausedMutations(),T(this,et).onFocus())})),P(this,$i,Ws.subscribe(async n=>{n&&(await this.resumePausedMutations(),T(this,et).onOnline())})))}unmount(){var n,r;Gs(this,ln)._--,T(this,ln)===0&&((n=T(this,Fi))==null||n.call(this),P(this,Fi,void 0),(r=T(this,$i))==null||r.call(this),P(this,$i,void 0))}isFetching(n){return T(this,et).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return T(this,en).findAll({...n,status:"pending"}).length}getQueryData(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=T(this,et).get(r.queryHash))==null?void 0:s.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),s=T(this,et).build(this,r),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Pe(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(c))}getQueriesData(n){return T(this,et).findAll(n).map(({queryKey:r,state:s})=>[r,s.data])}setQueryData(n,r,s){var d;const c=this.defaultQueryOptions({queryKey:n}),f=(d=T(this,et).get(c.queryHash))==null?void 0:d.state.data,h=WS(r,f);if(h!==void 0)return T(this,et).build(this,c).setData(h,{...s,manual:!0})}setQueriesData(n,r,s){return dt.batch(()=>T(this,et).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,r,s)]))}getQueryState(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=T(this,et).get(r.queryHash))==null?void 0:s.state}removeQueries(n){const r=T(this,et);dt.batch(()=>{r.findAll(n).forEach(s=>{r.remove(s)})})}resetQueries(n,r){const s=T(this,et);return dt.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=dt.batch(()=>T(this,et).findAll(n).map(f=>f.cancel(s)));return Promise.all(c).then(kt).catch(kt)}invalidateQueries(n,r={}){return dt.batch(()=>(T(this,et).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=dt.batch(()=>T(this,et).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,s);return s.throwOnError||(h=h.catch(kt)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(kt)}async query(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=T(this,et).build(this,r),c=s.isStaleByTime(Pe(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=T(this,et).build(this,r);return s.isStaleByTime(Pe(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(kt).catch(kt)}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(kt).catch(kt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Ws.isOnline()?T(this,en).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,et)}getMutationCache(){return T(this,en)}getDefaultOptions(){return T(this,tn)}setDefaultOptions(n){P(this,tn,n)}setQueryDefaults(n,r){T(this,Zi).set(Bn(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...T(this,Zi).values()],s={};return r.forEach(c=>{Wi(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,r){T(this,Ji).set(Bn(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...T(this,Ji).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={...T(this,tn).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=Bd(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===Qd&&(r.enabled=!1),r}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...T(this,tn).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){T(this,et).clear(),T(this,en).clear()}},et=new WeakMap,en=new WeakMap,tn=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,ln=new WeakMap,Fi=new WeakMap,$i=new WeakMap,Rg);const d0=E.createContext(!1),x3=()=>E.useContext(d0);d0.Provider;function S3(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const E3=E.createContext(S3()),_3=()=>E.useContext(E3),T3=(n,r,s)=>{const c=s!=null&&s.state.error&&typeof n.throwOnError=="function"?Gd(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||c)&&(r.isReset()||(n.retryOnMount=!1))},N3=n=>{E.useEffect(()=>{n.clearReset()},[n])},C3=({result:n,errorResetBoundary:r,throwOnError:s,query:c,suspense:f})=>n.isError&&!r.isReset()&&!n.isFetching&&c&&(f&&n.data===void 0||Gd(s,[n.error,c])),w3=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))}},j3=(n,r)=>(n==null?void 0:n.suspense)&&r.isPending,z3=(n,r,s)=>r.fetchOptimistic(n).catch(()=>{s.clearReset()});function O3(n,r,s){const c=x3(),f=_3(),h=lu(),d=h.defaultQueryOptions(n),v=h.getQueryCache().get(d.queryHash),b=n.subscribed!==!1;d._optimisticResults=c?"isRestoring":b?"optimistic":void 0,w3(d),T3(d,f,v),N3(f);const[p]=E.useState(()=>new r(h,d)),x=p.getOptimisticResult(d),g=!c&&b;if(E.useSyncExternalStore(E.useCallback(_=>{const k=g?p.subscribe(dt.batchCalls(_)):kt;return p.updateResult(),k},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),E.useEffect(()=>{p.setOptions(d)},[d,p]),j3(d,x))throw z3(d,p,f);if(C3({result:x,errorResetBoundary:f,throwOnError:d.throwOnError,query:v,suspense:d.suspense}))throw x.error;return d.notifyOnChangeProps?x:p.trackResult(x)}function ml(n,r){return O3(n,h3)}function Sd(n,r){const s=lu(),[c]=E.useState(()=>new p3(s,n));E.useEffect(()=>{c.setOptions(n)},[c,n]);const f=E.useSyncExternalStore(E.useCallback(d=>c.subscribe(dt.batchCalls(d)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h=E.useCallback((...d)=>{c.mutate(d[0],d[1]).catch(kt)},[c]);if(f.error&&Gd(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:h,mutateAsync:f.mutate}}const R3="modulepreload",A3=function(n){return"/"+n},tg={},va=function(r,s,c){let f=Promise.resolve();if(s&&s.length>0){let d=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};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(p=>{if(p=A3(p),p in tg)return;tg[p]=!0;const x=p.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const _=document.createElement("link");if(_.rel=x?"stylesheet":R3,x||(_.as="script"),_.crossOrigin="",_.href=p,b&&_.setAttribute("nonce",b),document.head.appendChild(_),x)return new Promise((k,K)=>{_.addEventListener("load",k),_.addEventListener("error",()=>K(new Error(`Unable to preload CSS for ${p}`)))})}))}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 M3=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),h0=(...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 D3={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 U3=E.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:f="",children:h,iconNode:d,...v},b)=>E.createElement("svg",{ref:b,...D3,width:r,height:r,stroke:n,strokeWidth:c?Number(s)*24/Number(r):s,className:h0("lucide",f),...v},[...d.map(([p,x])=>E.createElement(p,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 pe=(n,r)=>{const s=E.forwardRef(({className:c,...f},h)=>E.createElement(U3,{ref:h,iconNode:r,className:h0(`lucide-${M3(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 k3=[["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"}]],H3=pe("Award",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:"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"}]],L3=pe("BookOpen",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 B3=[["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"}]],Q3=pe("Briefcase",B3);/**
|
||
* @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 G3=[["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"}]],Y3=pe("Building2",G3);/**
|
||
* @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 V3=[["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"}]],m0=pe("CalendarDays",V3);/**
|
||
* @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=[["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"}]],K3=pe("ChartColumn",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:"m6 9 6 6 6-6",key:"qrunsl"}]],J3=pe("ChevronDown",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=[["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"}]],$3=pe("CircleAlert",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 P3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],W3=pe("CircleCheck",P3);/**
|
||
* @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:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],eE=pe("Cloud",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:"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"}]],lE=pe("CodeXml",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 aE=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],nE=pe("Download",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 iE=[["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"}]],uE=pe("Dumbbell",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=[["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"}]],sE=pe("FileBadge",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=[["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"}]],y0=pe("FileText",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 oE=[["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"}]],fE=pe("FlaskConical",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 dE=[["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"}]],v0=pe("GraduationCap",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 hE=[["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"}]],mE=pe("HeartHandshake",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=[["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"}]],vE=pe("Image",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 pE=[["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"}]],gE=pe("Inbox",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 bE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],xE=pe("Info",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:"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"}]],EE=pe("Languages",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:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],TE=pe("LoaderCircle",_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=[["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"}]],CE=pe("LogIn",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 wE=[["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"}]],jE=pe("LogOut",wE);/**
|
||
* @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=[["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"}]],OE=pe("Menu",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 RE=[["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"}]],AE=pe("MicVocal",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 ME=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],DE=pe("Moon",ME);/**
|
||
* @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 UE=[["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"}]],kE=pe("Network",UE);/**
|
||
* @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=[["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"}]],qE=pe("Palette",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 LE=[["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"}]],Kd=pe("Paperclip",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 BE=[["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"}]],QE=pe("PenLine",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:"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"}]],YE=pe("Pencil",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:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],XE=pe("Plus",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:"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"}]],ZE=pe("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 JE=[["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"}]],FE=pe("Rows3",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=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],PE=pe("Search",$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 WE=[["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"}]],IE=pe("Shapes",WE);/**
|
||
* @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:"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"}]],t4=pe("ShieldAlert",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 l4=[["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"}]],a4=pe("ShieldCheck",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=[["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"}]],i4=pe("SlidersHorizontal",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:"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"}]],r4=pe("Star",u4);/**
|
||
* @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 s4=[["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"}]],c4=pe("Sun",s4);/**
|
||
* @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 o4=[["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"}]],p0=pe("Tag",o4);/**
|
||
* @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 f4=[["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"}]],Ed=pe("Trash2",f4);/**
|
||
* @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 d4=[["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"}]],h4=pe("Trophy",d4);/**
|
||
* @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 m4=[["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"}]],y4=pe("Users",m4);/**
|
||
* @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 v4=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],g0=pe("X",v4),Zd="fp-token";function wl(){return localStorage.getItem(Zd)}function Jd(n){localStorage.setItem(Zd,n)}function Fd(){localStorage.removeItem(Zd)}async function $d(n,r,s){const c=s||Jl(),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 Jd(h.data.token),h.data}async function Pd(n,r,s,c){const f=c||Jl(),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 Jd(d.data.token),d.data}async function b0(n){const r=n||Jl(),c=await(await fetch(r+"/auth/me",{headers:{Authorization:"Bearer "+wl()}})).json();if(!c.ok)throw new Error(c.error||"会话失效");return c.data}const x0="fp-server-url";function Jl(){return localStorage.getItem(x0)||"https://footpr.linyux.cn"}function S0(n){localStorage.setItem(x0,n.replace(/\/+$/,""))}class _d extends Error{constructor(r){super(r),this.name="AuthError"}}async function Re(n,r){const s=wl();if(!s)throw new _d("请先登录");const c=Jl(),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 Fd(),window.dispatchEvent(new CustomEvent("fp-auth-required")),new _d("登录已过期,请重新登录");const h=await f.json();if(!f.ok||!h.ok)throw new Error(h.error||"HTTP "+f.status);return h.data}const p4=()=>Re("app_info"),g4=()=>Re("sync_status"),uc=()=>Re("type_list"),b4=n=>Re("type_upsert",n),x4=n=>Re("type_delete",{id:n}),E0=n=>Re("taxonomy_list",{kind:n}),S4=n=>Re("taxonomy_upsert",n),E4=n=>Re("taxonomy_delete",{id:n}),Wd=()=>Re("dimension_list"),_4=n=>Re("dimension_upsert",n),T4=n=>Re("dimension_delete",{id:n}),_0=(n={})=>Re("footprint_list",{query:n}),Id=n=>Re("footprint_get",{id:n}),T0=n=>Re("footprint_upsert",{item:n}),N4=n=>Re("footprint_delete",{id:n}),N0=(n={})=>Re("timeline",{query:n}),C4=n=>Re("stats_overview",{year:n}),w4=()=>Re("metric_list"),j4=n=>Re("metric_upsert",n),z4=n=>Re("metric_delete",{key:n}),O4=()=>Re("grades_overview"),R4=n=>Re("semester_upsert",n),A4=n=>Re("semester_delete",{id:n}),M4=n=>Re("course_upsert",n),D4=n=>Re("course_delete",{id:n}),U4=n=>Re("band_upsert",n),k4=n=>Re("band_delete",{id:n}),C0=n=>Re("attachment_list",{owner_id:n}),w0=n=>Re("attachment_delete",{id:n}),Is=n=>Re("attachment_read",{id:n});async function Td(n,r,s){const c=new URLSearchParams({owner:String(n),name:r.name,mime:r.type||"application/octet-stream"}),f=await fetch(Jl()+"/sync/attachment/raw?"+c,{method:"PUT",headers:{authorization:"Bearer "+wl(),"content-type":r.type||"application/octet-stream"},body:r}),h=await f.json().catch(()=>({ok:!1,error:"HTTP "+f.status}));if(!h.ok)throw new Error(h.error||"上传失败");const d=h.data.item;if(s)try{await Re("attachment_set_thumb",{id:d.id,thumb_b64:s})}catch{}return d}async function j0(n){var f;const r=await fetch(Jl()+"/api/attachment_download",{method:"POST",headers:{"content-type":"application/json",authorization:"Bearer "+wl()},body:JSON.stringify({id:n})});if(!r.ok){const h=await r.json().catch(()=>null);throw new Error((h==null?void 0:h.error)||"下载失败")}const s=decodeURIComponent(r.headers.get("x-file-name")||((f=(r.headers.get("content-disposition")||"").match(/UTF-8''([^;]+)/))==null?void 0:f[1])||"file"),c=r.headers.get("content-type")||void 0;return{blob:await r.blob(),file_name:s,mime:c}}const z0=n=>Re("attachment_thumb",{id:n}),H4=()=>Re("view_list"),q4=n=>Re("view_upsert",n),L4=n=>Re("view_delete",{id:n});async function rc(n,r,s){const c=await fetch((s||Jl())+n,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+wl()},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 O0(n,r){const s=await fetch((r||Jl())+n,{headers:{Authorization:"Bearer "+wl()}}),c=await s.json().catch(()=>({ok:!1,error:"HTTP "+s.status}));if(!c.ok)throw new Error(c.error||"请求失败");return c.data}const B4=n=>O0("/admin/invites",n),Q4=n=>O0("/admin/users",n),G4=(n,r)=>rc("/admin/invites/generate",{count:n},r),Y4=(n,r,s)=>rc("/admin/invites/create",{code:n,remark:r},s),V4=(n,r,s)=>rc("/admin/invites/update",{id:n,...r},s),X4=(n,r)=>rc("/admin/invites/delete",{id:n},r),K4=Object.freeze(Object.defineProperty({__proto__:null,AuthError:_d,adminCreateInvite:Y4,adminDeleteInvite:X4,adminGenerateInvites:G4,adminListInvites:B4,adminListUsers:Q4,adminUpdateInvite:V4,appInfo:p4,attachmentDelete:w0,attachmentDownload:j0,attachmentList:C0,attachmentRead:Is,attachmentThumb:z0,attachmentUploadRaw:Td,bandDelete:k4,bandUpsert:U4,clearToken:Fd,courseDelete:D4,courseUpsert:M4,deleteDimension:T4,deleteTaxonomy:E4,deleteType:x4,footprintDelete:N4,footprintGet:Id,footprintList:_0,footprintUpsert:T0,getServerUrl:Jl,getToken:wl,gradesOverview:O4,listDimensions:Wd,listTaxonomy:E0,listTypes:uc,metricDelete:z4,metricList:w4,metricUpsert:j4,semesterDelete:A4,semesterUpsert:R4,serverLogin:$d,serverMe:b0,serverRegister:Pd,setServerUrl:S0,setToken:Jd,statsOverview:C4,syncStatus:g4,timeline:N0,upsertDimension:_4,upsertTaxonomy:S4,upsertType:b4,viewDelete:L4,viewList:H4,viewUpsert:q4},Symbol.toStringTag,{value:"Module"}));function R0(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=R0(n[r]))&&(c&&(c+=" "),c+=s)}else for(s in n)n[s]&&(c&&(c+=" "),c+=s);return c}function A0(){for(var n,r,s=0,c="",f=arguments.length;s<f;s++)(n=arguments[s])&&(r=R0(n))&&(c&&(c+=" "),c+=r);return c}const lg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ag=A0,Z4=(n,r)=>s=>{var c;if((r==null?void 0:r.variants)==null)return ag(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:f,defaultVariants:h}=r,d=Object.keys(f).map(p=>{const x=s==null?void 0:s[p],g=h==null?void 0:h[p];if(x===null)return null;const _=lg(x)||lg(g);return f[p][_]}),v=s&&Object.entries(s).reduce((p,x)=>{let[g,_]=x;return _===void 0||(p[g]=_),p},{}),b=r==null||(c=r.compoundVariants)===null||c===void 0?void 0:c.reduce((p,x)=>{let{class:g,className:_,...k}=x;return Object.entries(k).every(K=>{let[q,D]=K;return Array.isArray(D)?D.includes({...h,...v}[q]):{...h,...v}[q]===D})?[...p,g,_]:p},[]);return ag(n,d,b,s==null?void 0:s.class,s==null?void 0:s.className)},J4=(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},F4=(n,r)=>({classGroupId:n,validator:r}),M0=(n=new Map,r=null,s)=>({nextPart:n,validators:r,classGroupId:s}),ec="-",ng=[],$4="arbitrary..",P4=n=>{const r=I4(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return W4(d);const v=d.split(ec),b=v[0]===""&&v.length>1?1:0;return D0(v,b,r)},getConflictingClassGroupIds:(d,v)=>{if(v){const b=c[d],p=s[d];return b?p?J4(p,b):b:p||ng}return s[d]||ng}}},D0=(n,r,s)=>{if(n.length-r===0)return s.classGroupId;const f=n[r],h=s.nextPart.get(f);if(h){const p=D0(n,r+1,h);if(p)return p}const d=s.validators;if(d===null)return;const v=r===0?n.join(ec):n.slice(r).join(ec),b=d.length;for(let p=0;p<b;p++){const x=d[p];if(x.validator(v))return x.classGroupId}},W4=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?$4+c:void 0})(),I4=n=>{const{theme:r,classGroups:s}=n;return e_(s,r)},e_=(n,r)=>{const s=M0();for(const c in n){const f=n[c];eh(f,s,c,r)}return s},eh=(n,r,s,c)=>{const f=n.length;for(let h=0;h<f;h++){const d=n[h];t_(d,r,s,c)}},t_=(n,r,s,c)=>{if(typeof n=="string"){l_(n,r,s);return}if(typeof n=="function"){a_(n,r,s,c);return}n_(n,r,s,c)},l_=(n,r,s)=>{const c=n===""?r:U0(r,n);c.classGroupId=s},a_=(n,r,s,c)=>{if(i_(n)){eh(n(c),r,s,c);return}r.validators===null&&(r.validators=[]),r.validators.push(F4(s,n))},n_=(n,r,s,c)=>{const f=Object.entries(n),h=f.length;for(let d=0;d<h;d++){const[v,b]=f[d];eh(b,U0(r,v),s,c)}},U0=(n,r)=>{let s=n;const c=r.split(ec),f=c.length;for(let h=0;h<f;h++){const d=c[h];let v=s.nextPart.get(d);v||(v=M0(),s.nextPart.set(d,v)),s=v}return s},i_=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,u_=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)}}},Nd="!",ig=":",r_=[],ug=(n,r,s,c,f)=>({modifiers:n,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:c,isExternal:f}),s_=n=>{const{prefix:r,experimentalParseClassName:s}=n;let c=f=>{const h=[];let d=0,v=0,b=0,p;const x=f.length;for(let q=0;q<x;q++){const D=f[q];if(d===0&&v===0){if(D===ig){h.push(f.slice(b,q)),b=q+1;continue}if(D==="/"){p=q;continue}}D==="["?d++:D==="]"?d--:D==="("?v++:D===")"&&v--}const g=h.length===0?f:f.slice(b);let _=g,k=!1;g.endsWith(Nd)?(_=g.slice(0,-1),k=!0):g.startsWith(Nd)&&(_=g.slice(1),k=!0);const K=p&&p>b?p-b:void 0;return ug(h,k,_,K)};if(r){const f=r+ig,h=c;c=d=>d.startsWith(f)?h(d.slice(f.length)):ug(r_,!1,d,void 0,!0)}if(s){const f=c;c=h=>s({className:h,parseClassName:f})}return c},c_=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}},o_=n=>({cache:u_(n.cacheSize),parseClassName:s_(n),sortModifiers:c_(n),postfixLookupClassGroupIds:f_(n),...P4(n)}),f_=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},d_=/\s+/,h_=(n,r)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:f,sortModifiers:h,postfixLookupClassGroupIds:d}=r,v=[],b=n.trim().split(d_);let p="";for(let x=b.length-1;x>=0;x-=1){const g=b[x],{isExternal:_,modifiers:k,hasImportantModifier:K,baseClassName:q,maybePostfixModifierPosition:D}=s(g);if(_){p=g+(p.length>0?" "+p:p);continue}let H=!!D,Q;if(H){const F=q.substring(0,D);Q=c(F);const U=Q&&d[Q]?c(q):void 0;U&&U!==Q&&(Q=U,H=!1)}else Q=c(q);if(!Q){if(!H){p=g+(p.length>0?" "+p:p);continue}if(Q=c(q),!Q){p=g+(p.length>0?" "+p:p);continue}H=!1}const Z=k.length===0?"":k.length===1?k[0]:h(k).join(":"),J=K?Z+Nd:Z,Y=J+Q;if(v.indexOf(Y)>-1)continue;v.push(Y);const de=f(Q,H);for(let F=0;F<de.length;++F){const U=de[F];v.push(J+U)}p=g+(p.length>0?" "+p:p)}return p},m_=(...n)=>{let r=0,s,c,f="";for(;r<n.length;)(s=n[r++])&&(c=k0(s))&&(f&&(f+=" "),f+=c);return f},k0=n=>{if(typeof n=="string")return n;let r,s="";for(let c=0;c<n.length;c++)n[c]&&(r=k0(n[c]))&&(s&&(s+=" "),s+=r);return s},y_=(n,...r)=>{let s,c,f,h;const d=b=>{const p=r.reduce((x,g)=>g(x),n());return s=o_(p),c=s.cache.get,f=s.cache.set,h=v,v(b)},v=b=>{const p=c(b);if(p)return p;const x=h_(b,s);return f(b,x),x};return h=d,(...b)=>h(m_(...b))},v_=[],ot=n=>{const r=s=>s[n]||v_;return r.isThemeGetter=!0,r.themeKey=n,r},H0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,q0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,g_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b_=/\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$/,x_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,S_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Za=n=>p_.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Yl=n=>!!n&&Number.isInteger(Number(n)),ad=n=>n.endsWith("%")&&_e(n.slice(0,-1)),oa=n=>g_.test(n),L0=()=>!0,__=n=>b_.test(n)&&!x_.test(n),th=()=>!1,T_=n=>S_.test(n),N_=n=>E_.test(n),C_=n=>!ne(n)&&!ue(n),w_=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)),j_=n=>an(n,G0,th),ne=n=>H0.test(n),jn=n=>an(n,Y0,__),rg=n=>an(n,k_,_e),z_=n=>an(n,X0,L0),O_=n=>an(n,V0,th),sg=n=>an(n,B0,th),R_=n=>an(n,Q0,N_),Xs=n=>an(n,K0,T_),ue=n=>q0.test(n),tr=n=>Yn(n,Y0),A_=n=>Yn(n,V0),cg=n=>Yn(n,B0),M_=n=>Yn(n,G0),D_=n=>Yn(n,Q0),Ks=n=>Yn(n,K0,!0),U_=n=>Yn(n,X0,!0),an=(n,r,s)=>{const c=H0.exec(n);return c?c[1]?r(c[1]):s(c[2]):!1},Yn=(n,r,s=!1)=>{const c=q0.exec(n);return c?c[1]?r(c[1]):s:!1},B0=n=>n==="position"||n==="percentage",Q0=n=>n==="image"||n==="url",G0=n=>n==="length"||n==="size"||n==="bg-size",Y0=n=>n==="length",k_=n=>n==="number",V0=n=>n==="family-name",X0=n=>n==="number"||n==="weight",K0=n=>n==="shadow",H_=()=>{const n=ot("color"),r=ot("font"),s=ot("text"),c=ot("font-weight"),f=ot("tracking"),h=ot("leading"),d=ot("breakpoint"),v=ot("container"),b=ot("spacing"),p=ot("radius"),x=ot("shadow"),g=ot("inset-shadow"),_=ot("text-shadow"),k=ot("drop-shadow"),K=ot("blur"),q=ot("perspective"),D=ot("aspect"),H=ot("ease"),Q=ot("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"],Y=()=>[...J(),ue,ne],de=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],U=()=>[ue,ne,b],I=()=>[Za,"full","auto",...U()],le=()=>[Yl,"none","subgrid",ue,ne],Ve=()=>["auto",{span:["full",Yl,ue,ne]},Yl,ue,ne],Fe=()=>[Yl,"auto",ue,ne],ie=()=>["auto","min","max","fr",ue,ne],Te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...U()],ee=()=>[Za,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],R=()=>[v,Za,"screen","full","dvw","lvw","svw","min","max","fit",...U()],ae=()=>[Za,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],X=()=>[n,ue,ne],ke=()=>[...J(),cg,sg,{position:[ue,ne]}],Nt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],zl=()=>["auto","cover","contain",M_,j_,{size:[ue,ne]}],C=()=>[ad,tr,jn],G=()=>["","none","full",p,ue,ne],W=()=>["",_e,tr,jn],oe=()=>["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"],me=()=>[_e,ad,cg,sg],Ae=()=>["","none",K,ue,ne],se=()=>["none",_e,ue,ne],ye=()=>["none",_e,ue,ne],Yt=()=>[_e,ue,ne],pa=()=>[Za,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oa],breakpoint:[oa],color:[L0],container:[oa],"drop-shadow":[oa],ease:["in","out","in-out"],font:[C_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oa],shadow:[oa],spacing:["px",_e],text:[oa],"text-shadow":[oa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Za,ne,ue,D]}],container:["container"],"container-type":[{"@container":["","normal","size",ue,ne]}],"container-named":[w_],columns:[{columns:[_e,"auto",ne,ue,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:Y()}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Yl,"auto",ue,ne]}],basis:[{basis:[Za,"full","auto",v,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Za,"auto","initial","none",ne]}],grow:[{grow:["",_e,ue,ne]}],shrink:[{shrink:["",_e,ue,ne]}],order:[{order:[Yl,"first","last","none",ue,ne]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:Ve()}],"col-start":[{"col-start":Fe()}],"col-end":[{"col-end":Fe()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:Ve()}],"row-start":[{"row-start":Fe()}],"row-end":[{"row-end":Fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Te(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...Te()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":Te()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...R()]}],"min-inline-size":[{"min-inline":["auto",...R()]}],"max-inline-size":[{"max-inline":["none",...R()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[v,"screen",...ee()]}],"min-w":[{"min-w":[v,"screen","none",...ee()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[d]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh","none",...ee()]}],"font-size":[{text:["base",s,tr,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,U_,z_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ad,ne]}],"font-family":[{font:[A_,O_,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,ue,ne]}],"line-clamp":[{"line-clamp":[_e,"none",ue,rg]}],leading:[{leading:["none",h,...U()]}],"list-image":[{"list-image":["none",ue,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ue,jn]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[_e,"auto",ue,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"tab-size":[{tab:[Yl,ue,ne]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,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",ue,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:ke()}],"bg-repeat":[{bg:Nt()}],"bg-size":[{bg:zl()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yl,ue,ne],radial:["",ue,ne],conic:["",Yl,ue,ne]},D_,R_]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:C()}],"gradient-via-pos":[{via:C()}],"gradient-to-pos":[{to:C()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-bs":[{"border-bs":X()}],"border-color-be":[{"border-be":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ue,ne]}],"outline-w":[{outline:["",_e,tr,jn]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","inner","none",x,Ks,Xs]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",g,Ks,Xs]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[_e,jn]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",_,Ks,Xs]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[_e,ue,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":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[ue,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"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":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:Nt()}],"mask-size":[{mask:zl()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,ne]}],filter:[{filter:["","none",ue,ne]}],blur:[{blur:Ae()}],brightness:[{brightness:[_e,ue,ne]}],contrast:[{contrast:[_e,ue,ne]}],"drop-shadow":[{"drop-shadow":["","none",k,Ks,Xs]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",_e,ue,ne]}],"hue-rotate":[{"hue-rotate":[_e,ue,ne]}],invert:[{invert:["",_e,ue,ne]}],saturate:[{saturate:[_e,ue,ne]}],sepia:[{sepia:["",_e,ue,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ne]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ue,ne]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ue,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ue,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ue,ne]}],"backdrop-invert":[{"backdrop-invert":["",_e,ue,ne]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ue,ne]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ue,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ue,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ue,ne]}],ease:[{ease:["linear","initial",H,ue,ne]}],delay:[{delay:[_e,ue,ne]}],animate:[{animate:["none",Q,ue,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,ue,ne]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:Yt()}],"skew-x":[{"skew-x":Yt()}],"skew-y":[{"skew-y":Yt()}],transform:[{transform:[ue,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pa()}],"translate-x":[{"translate-x":pa()}],"translate-y":[{"translate-y":pa()}],"translate-z":[{"translate-z":pa()}],"translate-none":["translate-none"],zoom:[{zoom:[Yl,ue,ne]}],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"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",ue,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":X()}],"scrollbar-track-color":[{"scrollbar-track":X()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",ue,ne]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[_e,tr,jn,rg]}],stroke:[{stroke:["none",...X()]}],"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"]}},q_=y_(H_);function yl(...n){return q_(A0(n))}const L_=Z4("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"}}),zt=E.forwardRef(function({className:r,variant:s,size:c,...f},h){return m.jsx("button",{ref:h,className:yl(L_({variant:s,size:c}),r),...f})}),Z0="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",nt=E.forwardRef(function({className:r,...s},c){return m.jsx("input",{ref:c,className:yl(Z0,"h-8",r),...s})}),Cd=E.forwardRef(function({className:r,...s},c){return m.jsx("textarea",{ref:c,className:yl(Z0,"py-2 min-h-[72px] resize-y leading-relaxed",r),...s})});function De({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=E.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(J3,{size:14,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-ink-3"})]})});function Ii({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 B_({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 sc({open:n,onClose:r,title:s,width:c=560,children:f,footer:h}){return E.useEffect(()=>{if(!n)return;const d=v=>{v.key==="Escape"&&r()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[n,r]),n?KS.createPortal(m.jsxs("div",{className:"fixed inset-0 z-50 flex justify-center overflow-y-auto p-3 sm:p-6",children:[m.jsx("div",{className:"fixed inset-0 bg-black/45",onClick:r}),m.jsxs("div",{className:"animate-in relative my-auto 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(zt,{variant:"ghost",size:"icon-sm",onClick:r,"aria-label":"关闭",children:m.jsx(g0,{size:15})})]}),m.jsx("div",{className:"max-h-[70vh] overflow-y-auto px-3 py-3 sm:px-4 sm:py-4",children:f}),h&&m.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-3 py-2.5 sm:h-14 sm:flex-nowrap sm:px-4 sm:py-0",children:h})]})]}),document.body):null}function Q_({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(gE,{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 J0=E.createContext(()=>{});function cc(){return E.useContext(J0)}const G_={success:m.jsx(W3,{size:15,className:"text-success"}),error:m.jsx($3,{size:15,className:"text-danger"}),info:m.jsx(xE,{size:15,className:"text-brand"})};function Y_({children:n}){const[r,s]=E.useState([]),c=E.useRef(0),f=E.useCallback((h,d)=>{const v=++c.current;s(b=>[...b,{id:v,kind:h,text:d}]),setTimeout(()=>s(b=>b.filter(p=>p.id!==v)),3200)},[]);return m.jsxs(J0.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:[G_[h.kind],h.text]},h.id))})]})}function V_({open:n,title:r,content:s,onCancel:c,onOk:f,loading:h}){return m.jsx(sc,{open:n,onClose:c,title:r,width:420,footer:m.jsxs(m.Fragment,{children:[m.jsx(zt,{variant:"secondary",onClick:c,children:"取消"}),m.jsx(zt,{variant:"danger",onClick:f,disabled:h,children:"确认"})]}),children:m.jsx("p",{className:"text-[13px] text-ink-2",children:s??"该操作不可撤销,请确认。"})})}function X_({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=lu(),f=cc(),[h,d]=E.useState("login"),[v,b]=E.useState(s||"https://footpr.linyux.cn"),[p,x]=E.useState(""),[g,_]=E.useState(""),[k,K]=E.useState(""),[q,D]=E.useState(""),[H,Q]=E.useState(!1),Z=async()=>{if(!p.trim()||!g){D("请填写账号与密码");return}let J=v.trim();J&&!J.startsWith("http")&&(J="https://"+J),Q(!0),D("");try{if(h==="login")await $d(p.trim(),g,J);else{if(!k.trim())throw new Error("请填写邀请码");await Pd(p.trim(),g,k.trim(),J)}c.invalidateQueries(),f("success",h==="login"?"已登录 · 同步已开启":"已注册登录 · 同步已开启"),r(),setTimeout(()=>window.location.reload(),300)}catch(Y){D(Y.message)}finally{Q(!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(X_,{}),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"),D("")},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"),D("")},children:"注册"})]}),m.jsxs("div",{className:"flex flex-col gap-3",children:[m.jsx(De,{label:"服务器地址",hint:"与网页版同一账号体系",children:m.jsx(nt,{value:v,onChange:J=>b(J.target.value),placeholder:"https://footpr.linyux.cn"})}),m.jsx(De,{label:"用户名",required:!0,children:m.jsx(nt,{value:p,onChange:J=>x(J.target.value),placeholder:"3-32 位字母数字-_"})}),m.jsx(De,{label:"密码",required:!0,children:m.jsx(nt,{type:"password",value:g,onChange:J=>_(J.target.value),placeholder:"至少 8 位"})}),h==="register"&&m.jsx(De,{label:"邀请码",required:!0,hint:"向管理员索取",children:m.jsx(nt,{value:k,onChange:J=>K(J.target.value),placeholder:"邀请码"})}),q&&m.jsx("div",{className:"text-[12px] text-danger",children:q}),m.jsx(zt,{variant:"primary",size:"lg",onClick:()=>void Z(),disabled:H,children:H?"请稍候…":h==="login"?"登录并同步":"注册并同步"}),m.jsx("p",{className:"text-center text-[11px] text-ink-3",children:"登录后本机数据将多端同步"})]})]})}):null}const Z_=[{section:"工作区",items:[{to:"/timeline",label:"时间线",icon:m0},{to:"/records",label:"记录",icon:FE},{to:"/grades",label:"成绩",icon:v0},{to:"/dashboard",label:"统计",icon:K3}]},{section:"配置",items:[{to:"/admin",label:"管理",icon:a4},{to:"/types",label:"记录类型",icon:IE},{to:"/taxonomy",label:"字典与维度",icon:i4}]}];function J_(){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 F_({open:n,onClose:r}){const s=lu(),f=ml({queryKey:["me",wl()??""],refetchOnMount:"always",queryFn:()=>b0(),enabled:!!wl(),retry:0}).data??null,[h,d]=E.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(J_,{}),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:Z_.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(e0,{to:b.to,onClick:r,className:({isActive:p})=>yl("relative flex h-[34px] items-center gap-3 rounded-lg px-3 text-[13px] font-medium transition-all duration-150",p?"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:wl()&&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:()=>{Fd(),s.clear(),window.location.reload()},children:m.jsx(jE,{size:13})})]}),m.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[10px] text-success",children:[m.jsx(eE,{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(CE,{size:14}),"登录我的档案"]})})]})}const $_={"/timeline":{title:"时间线",sub:"按学年与月份回顾全部足迹"},"/records":{title:"记录",sub:"全部足迹的检索与管理"},"/grades":{title:"成绩",sub:"学年学科成绩 · 梯度与总览"},"/dashboard":{title:"统计",sub:"量化个人成长收获"},"/types":{title:"记录类型",sub:"类型与字段模板管理"},"/taxonomy":{title:"字典与维度",sub:"级别、角色与成长维度"}};function P_({onMenu:n}){const{pathname:r}=vl(),s=ac(),[c,f]=E.useState(""),[h,d]=E.useState(document.documentElement.classList.contains("dark")),v=$_[r]??{title:""},b=()=>{const p=!h;d(p),document.documentElement.classList.toggle("dark",p),localStorage.setItem("fp-theme",p?"dark":"light"),window.dispatchEvent(new CustomEvent("fp-theme-change"))};return m.jsxs("header",{className:"flex h-14 shrink-0 items-center gap-2 border-b border-line bg-surface px-3 sm:gap-4 sm:px-5",children:[m.jsx(zt,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:n,"aria-label":"打开导航",children:m.jsx(OE,{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 hidden w-[240px] md:block lg:w-[280px]",children:[m.jsx(PE,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-ink-3"}),m.jsx(nt,{className:"pl-8",placeholder:"搜索标题、内容、结果、标签",value:c,onChange:p=>f(p.target.value),onKeyDown:p=>{p.key==="Enter"&&c.trim()&&s("/records?q="+encodeURIComponent(c.trim()))}})]}),m.jsx(zt,{variant:"ghost",size:"icon",onClick:b,"aria-label":"切换主题",children:h?m.jsx(c4,{size:15}):m.jsx(DE,{size:15})}),m.jsxs(zt,{variant:"primary",onClick:()=>s("/records?new=1"),"aria-label":"新建记录",children:[m.jsx(XE,{size:14}),m.jsx("span",{className:"hidden sm:inline",children:"新建记录"})]})]})}function W_(){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 I_(){const[n,r]=E.useState("login"),[s,c]=E.useState(""),[f,h]=E.useState(""),[d,v]=E.useState(""),[b,p]=E.useState(""),[x,g]=E.useState(!1),_="__TAURI_INTERNALS__"in window,[k,K]=E.useState(Jl()),q=H=>{K(H),S0(H)},D=async()=>{if(!s.trim()||!f){p("请填写账号与密码");return}g(!0),p("");try{if(n==="login")await $d(s.trim(),f,k);else{if(!d.trim())throw new Error("请填写邀请码");await Pd(s.trim(),f,d.trim(),k)}setTimeout(()=>window.location.reload(),200)}catch(H){p(H.message)}finally{g(!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(W_,{}),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"),p("")},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"),p("")},children:"注册"})]}),m.jsxs("div",{className:"flex flex-col gap-3",children:[_&&m.jsx(De,{label:"服务器地址",hint:"默认即可",children:m.jsx(nt,{value:k,onChange:H=>q(H.target.value),placeholder:"https://footpr.linyux.cn"})}),m.jsx(De,{label:"用户名",required:!0,children:m.jsx(nt,{value:s,onChange:H=>c(H.target.value),placeholder:"3-32 位字母数字-_",onKeyDown:H=>{H.key==="Enter"&&D()}})}),m.jsx(De,{label:"密码",required:!0,children:m.jsx(nt,{type:"password",value:f,onChange:H=>h(H.target.value),placeholder:"至少 8 位",onKeyDown:H=>{H.key==="Enter"&&D()}})}),n==="register"&&m.jsx(De,{label:"邀请码",required:!0,hint:"向管理员索取",children:m.jsx(nt,{value:d,onChange:H=>v(H.target.value),placeholder:"邀请码",onKeyDown:H=>{H.key==="Enter"&&D()}})}),b&&m.jsx("div",{className:"text-[12px] text-danger",children:b}),m.jsx(zt,{variant:"primary",size:"lg",onClick:()=>void D(),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 e5(){const[n,r]=E.useState(()=>!!wl()),[s,c]=E.useState(!1);return E.useEffect(()=>{const f=()=>r(!1);return window.addEventListener("fp-auth-required",f),()=>window.removeEventListener("fp-auth-required",f)},[]),n?m.jsx(Y_,{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(F_,{open:s,onClose:()=>c(!1)}),m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[m.jsx(P_,{onMenu:()=>c(!0)}),m.jsx("main",{className:"min-h-0 flex-1 overflow-y-auto",children:m.jsx(oS,{})})]})]})}):m.jsx(I_,{})}const Qn="inline-flex h-[22px] min-w-[52px] items-center justify-center gap-1 rounded-sm border px-2 text-[11.5px] font-medium whitespace-nowrap",og={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 F0({status:n}){const r=og[n]??og.draft;return m.jsx("span",{className:Qn+" border-transparent",style:{color:r.color,backgroundColor:r.bg},children:r.label})}const t5={国际级:"#7c3aed",国家级:"#dc2626",省市级:"#ea580c",区县级:"#2563eb",校级:"#16a34a",院级:"#0891b2"};function $0({level:n}){return n?m.jsx(Ii,{color:t5[n]??"var(--text-3)",className:Qn,children:n}):null}const l5={特等奖:"#b45309",一等奖:"#b45309",二等奖:"#ea580c",三等奖:"#2563eb",优秀奖:"#64748b"};function P0({grade:n}){return n?m.jsx(Ii,{color:l5[n]??"var(--text-3)",className:Qn,children:n}):null}function W0({role:n}){return n?m.jsx(B_,{className:Qn,children:n}):null}function I0(){return m.jsx(Ii,{color:"var(--danger)",className:Qn,children:"负面"})}const R5=[{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:"体育"}],a5={tag:p0,"graduation-cap":v0,trophy:h4,"flask-conical":fE,briefcase:Q3,network:kE,"heart-handshake":mE,palette:qE,award:H3,"file-badge":sE,star:r4,"shield-alert":t4,"book-open":L3,"code-2":lE,languages:EE,"mic-2":AE,"pen-line":QE,rocket:ZE,users:y4,"building-2":Y3,dumbbell:uE};function n5({name:n,color:r,size:s=14,className:c}){const f=a5[n]??p0;return m.jsx(f,{size:s,color:r,className:c,strokeWidth:2})}const fg=new Map,i5=25*1024*1024;async function u5(n){const r=fg.get(n.id);if(r)return r;const s=await Is(n.id);return(n.size??0)<=i5&&fg.set(n.id,s),s}function dg(n){const r=(n.mime||"").toLowerCase(),s=(n.file_name.split(".").pop()||"").toLowerCase();return r.startsWith("image/")||["png","jpg","jpeg","gif","webp","bmp","svg"].includes(s)?"image":r==="application/pdf"||s==="pdf"?"pdf":s==="docx"||r.includes("wordprocessingml")?"docx":s==="xlsx"||s==="xls"||r.includes("spreadsheetml")||r==="application/vnd.ms-excel"?"xlsx":r.startsWith("audio/")||["mp3","wav","m4a","flac","ogg"].includes(s)?"audio":r.startsWith("video/")||["mp4","mov","webm","mkv"].includes(s)?"video":r.startsWith("text/")||["txt","md","csv","json","log","srt"].includes(s)?"text":"other"}function r5(n){return Uint8Array.from(atob(n),r=>r.charCodeAt(0))}const s5={image:"图片",pdf:"PDF 文档",text:"文本文件",audio:"音频",video:"视频",docx:"Word 文档(.docx)",xlsx:"Excel 表格(.xlsx)",other:"该类型暂不支持在线预览"};function e1({att:n,onClose:r}){const s=cc(),[c,f]=E.useState(!1),[h,d]=E.useState(""),[v,b]=E.useState(null);E.useEffect(()=>{if(!n){b(null),d("");return}let x=!1;const g=[];return f(!0),d(""),b(null),(async()=>{try{const _=dg(n),k=n.remote_url||null;if(k&&(_==="image"||_==="pdf"||_==="audio"||_==="video")){b({kind:_,objectUrl:k}),f(!1);return}let K=n.mime??void 0,q;if(k)q=new Uint8Array(await(await fetch(k)).arrayBuffer());else{const D=await u5(n);K=D.mime,q=r5(D.data_b64)}if(x)return;if(_==="text"){const D=new TextDecoder().decode(q);b({kind:_,text:D.length>4e5?D.slice(0,4e5)+`
|
||
…(已截断)`:D})}else if(_==="docx"){const H=(await(await va(()=>import("./mammoth.browser-DsFgIycw.js").then(Q=>Q.m),[])).convertToHtml({arrayBuffer:q.buffer})).value;if(x)return;b({kind:_,html:H})}else if(_==="xlsx"){const D=await va(()=>import("./xlsx-CbTSpprj.js"),[]),H=D.read(q,{type:"array"}),Q=D.utils.sheet_to_html(H.Sheets[H.SheetNames[0]]);if(x)return;b({kind:_,html:Q})}else{const D=URL.createObjectURL(new Blob([q],{type:K||"application/octet-stream"}));if(x){URL.revokeObjectURL(D);return}g.push(D),b({kind:_,objectUrl:D})}}catch(_){x||d(_.message||"预览加载失败")}finally{x||f(!1)}})(),()=>{x=!0,g.forEach(_=>URL.revokeObjectURL(_))}},[n==null?void 0:n.id,n==null?void 0:n.file_name,n==null?void 0:n.remote_url]);const p=n?dg(n):"other";return m.jsxs(sc,{open:!!n,onClose:r,width:p==="image"||p==="pdf"?880:680,title:(n?"附件预览 · "+n.file_name:"附件预览")+(n?"("+s5[p]+")":""),footer:n?m.jsxs(m.Fragment,{children:[m.jsxs(zt,{variant:"secondary",className:"mr-auto",onClick:()=>{(async()=>{try{const{blob:x,file_name:g}=await j0(n.id),_=URL.createObjectURL(x),k=document.createElement("a");k.href=_,k.download=g,k.click(),setTimeout(()=>URL.revokeObjectURL(_),6e4),s("success","已下载:"+g)}catch(x){s("error","下载失败:"+x.message)}})()},children:[m.jsx(nE,{size:13})," 下载"]}),m.jsx(zt,{variant:"primary",onClick:r,children:"关闭"})]}):null,children:[c&&m.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-[13px] text-ink-3",children:[m.jsx(TE,{className:"animate-spin",size:16})," 正在加载预览…"]}),!c&&!!h&&m.jsx("div",{className:"py-10 text-center text-[13px] text-danger",children:h}),!c&&!h&&v&&m.jsxs(m.Fragment,{children:[v.kind==="image"&&m.jsx("img",{src:v.objectUrl,alt:n==null?void 0:n.file_name,className:"mx-auto max-h-[72vh] rounded-md"}),v.kind==="pdf"&&m.jsx("iframe",{src:v.objectUrl,title:n==null?void 0:n.file_name,className:"h-[72vh] w-full rounded-md border border-line bg-white"}),v.kind==="audio"&&m.jsx("audio",{controls:!0,src:v.objectUrl,className:"w-full"}),v.kind==="video"&&m.jsx("video",{controls:!0,src:v.objectUrl,className:"max-h-[70vh] w-full rounded-md bg-black"}),v.kind==="text"&&m.jsx("pre",{className:"max-h-[68vh] overflow-auto whitespace-pre-wrap rounded-md bg-surface-2 p-3 text-[12.5px] leading-relaxed text-ink-1",children:v.text}),(v.kind==="docx"||v.kind==="xlsx")&&m.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-md border border-line bg-white p-4 text-[13px] leading-relaxed [&_img]:max-w-full [&_table]:border-collapse [&_td]:border [&_td]:border-line [&_td]:px-2 [&_td]:py-1 [&_th]:border [&_th]:border-line [&_th]:px-2 [&_th]:py-1",dangerouslySetInnerHTML:{__html:v.html||""}}),v.kind==="other"&&m.jsxs("div",{className:"py-10 text-center",children:[m.jsx("p",{className:"text-[13px] text-ink-2",children:"该文件类型暂不支持在线预览"}),m.jsx("p",{className:"mt-1 text-[12px] text-ink-3",children:"请点击左下角「下载」,用本地应用打开"})]})]})]})}function c5({value:n,onChange:r,placeholder:s}){const[c,f]=E.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(g0,{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 hg(n,r){return n.options?Array.isArray(n.options)?n.options.map(s=>({value:s,label:s})):r[n.options.taxonomy]??[]:[]}function o5({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==="")?"该项必填":"",p=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(De,{label:d.label,required:d.required,hint:b,children:m.jsx(Cd,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);case"number":return m.jsx(De,{label:d.label,required:d.required,hint:b,children:p(m.jsx(nt,{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(De,{label:d.label,required:d.required,hint:b,children:m.jsx(nt,{type:"date",value:String(v??""),onChange:x=>f(d.key,x.target.value)})},d.key);case"select":return m.jsx(De,{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:"请选择"},...hg(d,c)]})},d.key);case"multiselect":{const x=hg(d,c),g=Array.isArray(v)?v:[];return m.jsx(De,{label:d.label,required:d.required,hint:b,children:m.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[x.map(_=>{const k=g.includes(_.value);return m.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(k?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>f(d.key,k?g.filter(K=>K!==_.value):[...g,_.value]),children:_.label},_.value)}),!x.length&&m.jsx("span",{className:"text-[12px] text-ink-3",children:"未配置选项"})]})},d.key)}case"link":return m.jsx(De,{label:d.label,required:d.required,hint:b||"关联记录功能规划中,暂以文本记录",children:m.jsx(nt,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);default:return m.jsx(De,{label:d.label,required:d.required,hint:b,children:m.jsx(nt,{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"?"sm:col-span-2":"",children:h(d)},d.key))})}function mg(n){return n?n.slice(0,16).replace("T"," "):""}function f5(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 wd(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/1024/1024).toFixed(1)+" MB"}function t1(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)),p=Math.max(1,Math.round(d.naturalHeight*v)),x=document.createElement("canvas");x.width=b,x.height=p;const g=x.getContext("2d");if(!g)return h(new Error("canvas 不可用"));g.drawImage(d,0,0,b,p),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 yg({items:n,pending:r,onPick:s,onDeleteSaved:c,onDeletePending:f,onOpenSaved:h,uploading:d}){const v=E.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(Kd,{size:13}),"附件(",b,")"]}),m.jsx(zt,{size:"sm",variant:"secondary",disabled:d,onClick:()=>{var p;return(p=v.current)==null?void 0:p.click()},children:d?"上传中…":"添加文件"}),m.jsx("input",{ref:v,type:"file",multiple:!0,className:"hidden",onChange:p=>{var x;(x=p.target.files)!=null&&x.length&&s(p.target.files),p.target.value=""}})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[n.map(p=>m.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[m.jsx(y0,{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(p),title:p.file_name,children:p.file_name}),m.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:wd(p.size)}),m.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>c(p.id),"aria-label":"删除附件",children:m.jsx(Ed,{size:13})})]},"s"+p.id)),r.map((p,x)=>{var g;return m.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[(g=p.mime)!=null&&g.startsWith("image/")&&p.preview?m.jsx("img",{src:p.preview,alt:p.file_name,className:"size-7 shrink-0 rounded object-cover"}):m.jsx(vE,{size:13,className:"text-ink-3 shrink-0"}),m.jsx("span",{className:"truncate text-ink-1",children:p.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:wd(p.size)}),m.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>f(x),"aria-label":"移除",children:m.jsx(Ed,{size:13})})]},"p"+x)}),!b&&m.jsx("div",{className:"py-1 text-[12px] text-ink-3",children:"证书扫描件、照片、文档等佐证材料"})]})]})}async function vg(n){var d,v,b,p;let r=n;if(n.type==="image/jpeg"&&n.size>3*1024*1024)try{const x=await createImageBitmap(n),g=Math.min(1,2560/Math.max(x.width,x.height)),_=document.createElement("canvas");_.width=Math.round(x.width*g),_.height=Math.round(x.height*g),(d=_.getContext("2d"))==null||d.drawImage(x,0,0,_.width,_.height);const k=await new Promise(K=>_.toBlob(K,"image/jpeg",.85));k&&k.size<n.size&&(r=new File([k],n.name.replace(/\.jpe?g$/i,"")+".jpg",{type:"image/jpeg"})),(v=x.close)==null||v.call(x)}catch{}const s=await new Promise((x,g)=>{const _=new FileReader;_.onload=()=>x(String(_.result||"")),_.onerror=()=>g(new Error("读取文件失败")),_.readAsDataURL(r)}),c=s.indexOf(","),f=c>=0?s.slice(c+1):s;let h;if((b=n.type)!=null&&b.startsWith("image/")&&!n.type.includes("gif"))try{h=(await t1(f,n.type)).split(",")[1]||void 0}catch{h=void 0}return{file:r,file_name:n.name,mime:r.type||void 0,size:r.size,data_b64:f,thumb_b64:h,preview:(p=n.type)!=null&&p.startsWith("image/")?URL.createObjectURL(n):void 0}}const $s={竞赛:{core:["level","award_grade","role","organizer"]},科研:{core:["level","role","organizer"]},实习实践:{core:["organizer"]},学生工作:{core:["role","organizer"]},志愿公益:{core:["organizer"]},文体活动:{core:["level","organizer"]},证书技能:{core:["level","organizer"]},荣誉惩处:{core:["award_grade","level","organizer"]},学业:{core:["rank"]}},pg={core:["level","role","award_grade","organizer"]},A5=[{value:"",label:"通用布局(级别/角色/奖等/组织方)"},...Object.keys($s).map(n=>({value:n,label:n+"式布局"}))];function d5(n,r){return r&&$s[r]?$s[r]:n?$s[n]??pg:pg}const gg={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:{}},h5=["特等奖","一等奖","二等奖","三等奖","优秀奖","无"],bg=80*1024*1024,m5=[{value:"draft",label:"草稿"},{value:"ongoing",label:"进行中"},{value:"submitted",label:"已提交待果"},{value:"finished",label:"已完结"}];function y5({open:n,onClose:r,footprintId:s,onSaved:c}){var ie,Te,re,V,ee;const f=lu(),h=cc(),[d,v]=E.useState(gg),[b,p]=E.useState([]),[x,g]=E.useState(!1),[_,k]=E.useState(null),[K,q]=E.useState(""),D=ml({queryKey:["types"],queryFn:uc,enabled:n}),H=ml({queryKey:["taxonomy-all"],queryFn:()=>E0(),enabled:n}),Q=ml({queryKey:["dimensions"],queryFn:Wd,enabled:n}),Z=ml({queryKey:["footprint",s],queryFn:()=>Id(s),enabled:n&&!!s}),J=ml({queryKey:["attachments",s],queryFn:()=>C0(s),enabled:n&&!!s}),Y=E.useMemo(()=>{var R;return(R=D.data)==null?void 0:R.items.find(ae=>ae.id===d.type_id)},[D.data,d.type_id]),de=d5(Y==null?void 0:Y.name,Y==null?void 0:Y.profile),F=ml({queryKey:["parent-candidates",d.type_id],queryFn:()=>_0({types:d.type_id?[d.type_id]:void 0,page_size:200,sort:"date_desc"}),enabled:n&&!!d.type_id});E.useEffect(()=>{if(n)if(q(""),p([]),s&&Z.data){const R=Z.data.item;v({type_id:R.type_id,title:R.title,organizer:R.organizer??"",start_date:(R.start_date??"").slice(0,10),end_date:(R.end_date??"").slice(0,10),status:R.status,role:R.role??"",level:R.level??"",award_grade:R.award_grade??"",rank:R.rank!=null?String(R.rank):"",polarity:R.polarity,weight:String(R.weight??3),description:R.description??"",result:R.result??"",tags:R.tags??[],dimension_ids:R.dimensions??[],group_id:R.group_id??"",parent_id:R.parent_id!=null?String(R.parent_id):"",extras:R.extras??{}})}else v(gg)},[n,s,Z.data]);const U=E.useMemo(()=>{var ae,X;const R={};for(const ke of((ae=H.data)==null?void 0:ae.items)??[])(R[X=ke.kind]??(R[X]=[])).push({value:ke.value,label:ke.value});return R},[H.data]),I=Sd({mutationFn:async()=>{if(!d.type_id)throw new Error("请选择记录类型");if(!d.title.trim())throw new Error("请填写标题");const R={};for(const ke of(Y==null?void 0:Y.form_template)??[])if(ke.metric&&ke.widget==="number"){const Nt=d.extras[ke.key];typeof Nt=="number"&&!Number.isNaN(Nt)&&(R[ke.metric]=Nt)}const ae={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:R},X=await T0(ae);for(const ke of b)await Td(X.id,ke.file,ke.thumb_b64);return X.id},onSuccess:R=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),f.invalidateQueries({queryKey:["footprint"]}),f.invalidateQueries({queryKey:["attachments",R]}),f.invalidateQueries({queryKey:["types"]}),h("success",s?"记录已更新":"记录已创建"),c==null||c(R),r()},onError:R=>q(R.message)}),le=(R,ae)=>v(X=>({...X,[R]:ae})),Ve=Sd({mutationFn:R=>w0(R),onSuccess:()=>void f.invalidateQueries({queryKey:["attachments",s]})}),Fe=R=>R==="organizer"?m.jsx(De,{label:"组织方 / 所在组织",children:m.jsx(nt,{value:d.organizer,onChange:ae=>le("organizer",ae.target.value),placeholder:"如:中国工业与应用数学学会"})},"organizer"):R==="role"?m.jsx(De,{label:"角色",children:m.jsx(hl,{value:d.role,onChange:ae=>le("role",ae.target.value),options:[{value:"",label:"未设置"},...U.role??[]]})},"role"):R==="level"?m.jsx(De,{label:"级别",children:m.jsx(hl,{value:d.level,onChange:ae=>le("level",ae.target.value),options:[{value:"",label:"未设置"},...U.level??[]]})},"level"):R==="award_grade"?m.jsx(De,{label:"奖等",children:m.jsx(hl,{value:d.award_grade,onChange:ae=>le("award_grade",ae.target.value),options:[{value:"",label:"未设置"},...h5.map(ae=>({value:ae,label:ae}))]})},"award_grade"):R==="rank"?m.jsx(De,{label:"名次",children:m.jsx(nt,{type:"number",className:"num",value:d.rank,onChange:ae=>le("rank",ae.target.value),placeholder:"如 2"})},"rank"):null;return m.jsxs(sc,{open:n,onClose:r,width:760,title:s?"编辑记录":"新建记录",footer:m.jsxs(m.Fragment,{children:[K&&m.jsx("span",{className:"mr-auto text-[12px] text-danger",children:K}),m.jsx(zt,{variant:"secondary",onClick:r,children:"取消"}),m.jsx(zt,{variant:"primary",onClick:()=>I.mutate(),disabled:I.isPending,children:I.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(De,{label:"类型",required:!0,children:m.jsx(hl,{value:d.type_id!=null?String(d.type_id):"",onChange:R=>le("type_id",R.target.value?Number(R.target.value):null),options:[{value:"",label:"请选择"},...(((ie=D.data)==null?void 0:ie.items)??[]).map(R=>({value:String(R.id),label:R.name}))]})}),m.jsx(De,{label:"标题",required:!0,children:m.jsx(nt,{value:d.title,onChange:R=>le("title",R.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(De,{label:"开始日期",children:m.jsx(nt,{type:"date",value:d.start_date,onChange:R=>le("start_date",R.target.value)})}),m.jsx(De,{label:"结束日期",children:m.jsx(nt,{type:"date",value:d.end_date,onChange:R=>le("end_date",R.target.value)})}),m.jsx(De,{label:"状态",children:m.jsx(hl,{value:d.status,onChange:R=>le("status",R.target.value),options:m5})})]}),m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsxs("div",{className:"mb-3 flex items-center gap-2 text-[12px] font-semibold text-ink-2",children:["类型要素",Y?" · "+Y.name:""]}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:de.core.map(R=>Fe(R))}),Y&&Y.form_template.length>0&&m.jsxs("div",{className:"mt-3.5",children:[m.jsx("div",{className:"mb-2 text-[11.5px] text-ink-3",children:"专项信息"}),m.jsx(o5,{fields:Y.form_template,value:d.extras,onChange:R=>le("extras",R),taxonomies:U})]})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5 border-t border-line pt-4",children:[m.jsx(De,{label:"工作内容 / 描述",children:m.jsx(Cd,{value:d.description,onChange:R=>le("description",R.target.value),placeholder:"具体做了什么、承担什么分工"})}),m.jsx(De,{label:"结果 / 产出",children:m.jsx(Cd,{value:d.result,onChange:R=>le("result",R.target.value),placeholder:"获奖等级、成果、最终产品等"})})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5 border-t border-line pt-4",children:[m.jsx(De,{label:"标签",children:m.jsx(c5,{value:d.tags,onChange:R=>le("tags",R)})}),m.jsx(De,{label:"成长维度",children:m.jsxs("div",{className:"flex flex-wrap gap-1.5 min-h-8 items-center",children:[(((Te=Q.data)==null?void 0:Te.items)??[]).map(R=>{const ae=d.dimension_ids.includes(R.id);return m.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(ae?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>le("dimension_ids",ae?d.dimension_ids.filter(X=>X!==R.id):[...d.dimension_ids,R.id]),children:R.name},R.id)}),!((re=Q.data)!=null&&re.items.length)&&m.jsx("span",{className:"text-[12px] text-ink-3",children:"尚未配置维度(配置页可添加)"})]})})]}),m.jsxs("details",{className:"border-t border-line pt-4",children:[m.jsx("summary",{className:"cursor-pointer select-none text-[12px] text-ink-3 transition-colors hover:text-ink-2",children:"高级选项(重要度 · 名次 · 性质 · 关联)"}),m.jsxs("div",{className:"mt-3 grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[m.jsx(De,{label:"重要度",children:m.jsx(hl,{value:d.weight,onChange:R=>le("weight",R.target.value),options:[1,2,3,4,5].map(R=>({value:String(R),label:String(R)}))})}),!de.core.includes("rank")&&m.jsx(De,{label:"名次",children:m.jsx(nt,{type:"number",className:"num",value:d.rank,onChange:R=>le("rank",R.target.value),placeholder:"如 2"})}),m.jsx(De,{label:"性质",children:m.jsx(hl,{value:d.polarity,onChange:R=>le("polarity",R.target.value),options:[{value:"positive",label:"正面"},{value:"negative",label:"负面"}]})}),m.jsx(De,{label:"上级记录",hint:"晋升链",children:m.jsx(hl,{value:d.parent_id,onChange:R=>le("parent_id",R.target.value),options:[{value:"",label:"无"},...(((V=F.data)==null?void 0:V.items)??[]).filter(R=>R.id!==s).map(R=>({value:String(R.id),label:R.title.slice(0,24)}))]})})]}),m.jsx("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-3",children:m.jsx(De,{label:"事件组 ID",hint:"同一场事件的多条记录共享",children:m.jsx(nt,{value:d.group_id,onChange:R=>le("group_id",R.target.value),placeholder:"如 g2025001(可选)"})})})]}),s?m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsx(yg,{items:((ee=J.data)==null?void 0:ee.items)??[],pending:b,uploading:x,onPick:async R=>{if(s){g(!0);try{let ae=0;for(const X of Array.from(R)){if(X.size>bg){h("error","「"+X.name+"」超过 80MB,已跳过");continue}const ke=await vg(X);await Td(s,ke.file,ke.thumb_b64),ae++}ae>0&&(f.invalidateQueries({queryKey:["attachments",s]}),h("success","已上传 "+ae+" 个附件"))}catch(ae){h("error",ae.message)}finally{g(!1)}}},onDeleteSaved:R=>Ve.mutate(R),onDeletePending:()=>{},onOpenSaved:R=>k(R)}),m.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"点击文件名可在线预览(图片 · PDF · 文本 · Word · Excel · 音视频)· 单个文件不超过 80MB"})]}):m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsx(yg,{items:[],pending:b,onPick:async R=>{const ae=[];for(const X of Array.from(R)){if(X.size>bg){h("error","「"+X.name+"」超过 80MB,已跳过");continue}ae.push(await vg(X))}p(X=>[...X,...ae])},onDeleteSaved:()=>{},onDeletePending:R=>p(ae=>ae.filter((X,ke)=>ke!==R))}),m.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"保存记录时将一并上传 · 单个文件不超过 80MB"})]})]}),m.jsx(e1,{att:_,onClose:()=>k(null)})]})}const Ui=new Map;function v5({open:n,onClose:r,footprintId:s,onEdit:c}){var U,I,le,Ve,Fe;const f=lu(),h=cc(),d=ml({queryKey:["footprint",s],queryFn:()=>Id(s),enabled:n&&!!s}),v=ml({queryKey:["types"],queryFn:uc,enabled:n}),b=ml({queryKey:["dimensions"],queryFn:Wd,enabled:n}),p=(U=d.data)==null?void 0:U.item,x=(I=v.data)==null?void 0:I.items.find(ie=>ie.id===(p==null?void 0:p.type_id)),g=((p==null?void 0:p.dimensions)??[]).map(ie=>{var Te,re;return(re=(Te=b.data)==null?void 0:Te.items.find(V=>V.id===ie))==null?void 0:re.name}).filter(Boolean),[_,k]=E.useState(!1),[K,q]=E.useState(null),D=Sd({mutationFn:()=>va(()=>Promise.resolve().then(()=>K4),void 0).then(ie=>ie.footprintDelete(s)),onSuccess:()=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),h("success","记录已删除"),k(!1),r()}}),[H,Q]=E.useState({}),Z=(p==null?void 0:p.attachments)??[],J=Z.filter(ie=>{var Te;return(Te=ie.mime)==null?void 0:Te.startsWith("image/")}),Y=Z.filter(ie=>{var Te;return!((Te=ie.mime)!=null&&Te.startsWith("image/"))}),de=Z.map(ie=>ie.id).join(",");E.useEffect(()=>{if(!n||!de)return;let ie=!1;const Te=Z.filter(re=>{var V;return(V=re.mime)==null?void 0:V.startsWith("image/")});return(async()=>{for(const re of Te){if(ie)return;if(Ui.has(re.id)){Q(V=>({...V,[re.id]:Ui.get(re.id)}));continue}if(re.remote_thumb){Ui.set(re.id,re.remote_thumb),Q(V=>({...V,[re.id]:re.remote_thumb}));continue}try{if(re.thumb_rel_path){const V=await z0(re.id);if(ie)return;const ee="data:"+(V.mime||"image/webp")+";base64,"+V.data_b64;Ui.set(re.id,ee),Q(R=>({...R,[re.id]:ee}))}else{const V=await Is(re.id);if(ie)return;const ee=await t1(V.data_b64,V.mime||"image/png");Ui.set(re.id,ee),Q(R=>({...R,[re.id]:ee}))}}catch{try{const V=await Is(re.id);if(ie)return;const ee="data:"+(V.mime||"image/png")+";base64,"+V.data_b64;Ui.set(re.id,ee),Q(R=>({...R,[re.id]:ee}))}catch{}}}})(),()=>{ie=!0}},[n,s,de]);const F=[];if(p&&x)for(const ie of x.form_template??[]){const Te=(p.extras??{})[ie.key];if(Te==null||Te==="")continue;const re=Array.isArray(Te)?Te.join("、"):String(Te);F.push({label:ie.label,value:ie.unit?re+" "+ie.unit:re})}return m.jsxs(sc,{open:n,onClose:r,width:680,title:"记录详情",footer:p?m.jsxs(m.Fragment,{children:[m.jsxs(zt,{variant:"danger-ghost",className:"mr-auto",onClick:()=>k(!0),disabled:D.isPending,children:[m.jsx(Ed,{size:13})," 删除"]}),m.jsx(zt,{variant:"secondary",onClick:r,children:"关闭"}),m.jsxs(zt,{variant:"primary",onClick:()=>s&&(c==null?void 0:c(s)),children:[m.jsx(YE,{size:13})," 编辑"]})]}):null,children:[d.isLoading||!p?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",{children:[m.jsx("h2",{className:"text-[20px] font-bold leading-tight tracking-tight text-ink-1",style:{textWrap:"balance"},children:p.title}),m.jsxs("div",{className:"mt-2.5 flex flex-wrap items-center gap-1.5",children:[m.jsx(Ii,{color:p.type_color,className:Qn,children:p.type_name}),m.jsx($0,{level:p.level}),m.jsx(P0,{grade:p.award_grade}),m.jsx(W0,{role:p.role}),m.jsx(F0,{status:p.status}),p.polarity==="negative"&&m.jsx(I0,{}),p.rank!=null&&m.jsxs(Ii,{color:"var(--text-3)",className:Qn,children:["第 ",p.rank," 名"]})]})]}),m.jsx(ki,{title:"事项要素",children:m.jsxs("div",{className:"grid grid-cols-1 gap-x-4 gap-y-2 rounded-md border border-line bg-surface-2 px-3 py-2.5 text-[12.5px] sm:grid-cols-2",children:[m.jsx(nd,{label:"时间",value:f5(p.start_date,p.end_date)||"—"}),m.jsx(nd,{label:"组织方",value:p.organizer||"—"}),F.map(ie=>m.jsx(nd,{label:ie.label,value:ie.value},ie.label))]})}),(((le=p.attachments)==null?void 0:le.length)??0)>0&&m.jsx(ki,{title:"附件("+(((Ve=p.attachments)==null?void 0:Ve.length)??0)+")",children:Z.length?m.jsxs("div",{className:"flex flex-col gap-2.5",children:[J.length>0&&m.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-4",children:J.map(ie=>m.jsxs("button",{className:"group relative aspect-square overflow-hidden rounded-md border border-line bg-surface-2",onClick:()=>q(ie),title:"点击预览:"+ie.file_name,children:[H[ie.id]?m.jsx("img",{src:H[ie.id],alt:ie.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:ie.file_name})]},ie.id))}),Y.length>0&&m.jsx("div",{className:"flex flex-col gap-1",children:Y.map(ie=>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:()=>q(ie),children:[m.jsx(y0,{size:14,className:"shrink-0 text-ink-3"}),m.jsx("span",{className:"truncate text-ink-1",children:ie.file_name}),m.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:wd(ie.size)}),m.jsx(Kd,{size:12,className:"shrink-0 text-ink-3"})]},ie.id))}),m.jsx("div",{className:"text-[11px] text-ink-3",children:"点击图片 / 文件可在线预览(图片 · PDF · 文本 · Word · Excel · 音视频)"})]}):m.jsx("p",{className:"text-[12px] text-ink-3",children:"暂无佐证附件"})}),p.description&&m.jsx(ki,{title:"工作内容 / 描述",children:m.jsx("p",{className:"whitespace-pre-wrap text-[13px] leading-relaxed text-ink-2",children:p.description})}),p.result&&m.jsx(ki,{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:p.result})}),p.metrics&&Object.keys(p.metrics).length>0&&m.jsx(ki,{title:"量化指标",children:m.jsx("div",{className:"flex flex-wrap gap-1.5",children:Object.entries(p.metrics).map(([ie,Te])=>m.jsxs("span",{className:"num rounded-sm border border-line bg-surface-2 px-2 py-0.5 text-[12px] text-ink-2",children:[ie,": ",m.jsx("span",{className:"font-medium text-ink-1",children:Te})]},ie))})}),((((Fe=p.tags)==null?void 0:Fe.length)??0)>0||g.length>0)&&m.jsx(ki,{title:"标签与维度",children:m.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[p.tags.map(ie=>m.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-0.5 text-[12px] text-ink-2",children:ie},ie)),g.map(ie=>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:ie},ie))]})}),m.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 border-t border-line pt-3 text-[11.5px] text-ink-3",children:[m.jsxs("span",{children:["创建于 ",mg(p.created_at)]}),m.jsxs("span",{children:["更新于 ",mg(p.updated_at)]}),p.group_id&&m.jsxs("span",{children:["事件组 ",p.group_id]}),p.parent_id!=null&&m.jsxs("span",{children:["上级 #",p.parent_id]})]})]}),m.jsx(e1,{att:K,onClose:()=>q(null)}),m.jsx(V_,{open:_,title:"删除记录",content:p?"确定删除「"+p.title+"」吗?该操作不可撤销。":"",onCancel:()=>k(!1),onOk:()=>D.mutate(),loading:D.isPending})]})}function nd({label:n,value:r}){return m.jsxs("div",{className:"grid min-w-0 grid-cols-[76px_1fr] gap-x-2.5",children:[m.jsx("span",{className:"shrink-0 text-right text-ink-3",children:n}),m.jsx("span",{className:"min-w-0 truncate font-medium text-ink-1",title:r,children:r})]})}function ki({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 p5(){var Y,de,F;const[n,r]=E.useState(""),[s,c]=E.useState(""),[f,h]=E.useState(""),[d,v]=E.useState(""),[b,p]=E.useState(null),[x,g]=E.useState(!1),[_,k]=E.useState(null),[K,q]=E.useState(!1),D=ml({queryKey:["types"],queryFn:uc}),H=E.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]),Q=ml({queryKey:["timeline",H],queryFn:()=>N0(H)}),Z=E.useMemo(()=>{var I;const U=new Set;for(const le of((I=Q.data)==null?void 0:I.groups)??[])U.add(le.year);return Array.from(U).sort((le,Ve)=>Ve-le)},[Q.data]),J=U=>{k(U),q(!0)};return m.jsxs("div",{className:"mx-auto max-w-[880px] px-3 py-4 sm:px-6 sm:py-5",children:[m.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[m.jsx(nt,{className:"w-[220px]",placeholder:"搜索足迹…",value:n,onChange:U=>r(U.target.value)}),m.jsx(hl,{className:"w-[130px]",value:s,onChange:U=>c(U.target.value),options:[{value:"",label:"全部类型"},...(((Y=D.data)==null?void 0:Y.items)??[]).map(U=>({value:String(U.id),label:U.name}))]}),m.jsx(hl,{className:"w-[120px]",value:f,onChange:U=>h(U.target.value),options:[{value:"",label:"全部年份"},...Z.map(U=>({value:String(U),label:U+" 年"}))]}),m.jsx(hl,{className:"w-[110px]",value:d,onChange:U=>v(U.target.value),options:[{value:"",label:"全部性质"},{value:"positive",label:"正面"},{value:"negative",label:"负面"}]}),m.jsxs("span",{className:"num ml-auto text-[12px] text-ink-3",children:["共 ",((de=Q.data)==null?void 0:de.total)??0," 条"]})]}),Q.isLoading?m.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"}):(F=Q.data)!=null&&F.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}),Q.data.groups.map(U=>m.jsxs("section",{className:"mb-2",children:[m.jsxs("div",{className:"sticky top-0 z-10 -mx-3 flex items-center gap-2 bg-bg/90 px-3 py-2 backdrop-blur sm:-mx-6 sm:px-6",children:[m.jsx("span",{className:"num text-[16px] font-semibold text-ink-1",children:U.year}),m.jsxs("span",{className:"text-[12px] text-ink-3",children:[U.count," 条记录"]})]}),U.months.map(I=>m.jsxs("div",{className:"mb-3",children:[m.jsxs("div",{className:"mb-2 pl-6 text-[12px] font-medium text-ink-3",children:[I.month," 月"]}),m.jsx("div",{className:"flex flex-col gap-2",children:I.items.map(le=>m.jsx(g5,{row:le,onClick:()=>J(le.id)},le.id))})]},I.month))]},U.year))]}):m.jsx(Q_,{icon:m.jsx(m0,{size:36,strokeWidth:1.5}),title:"暂无足迹",description:"点击右上角「新建记录」,开始记录你的第一段足迹。"}),m.jsx(v5,{open:K,onClose:()=>q(!1),footprintId:_,onEdit:U=>{q(!1),p(U),g(!0)}}),m.jsx(y5,{open:x,onClose:()=>g(!1),footprintId:b})]})}function g5({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(Ii,{color:n.type_color,children:n.type_name}),m.jsx($0,{level:n.level}),m.jsx(P0,{grade:n.award_grade}),m.jsx(W0,{role:n.role}),m.jsx(F0,{status:n.status}),n.polarity==="negative"&&m.jsx(I0,{})]}),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(Kd,{size:11}),n.attachment_count]})]})]}),m.jsx("div",{className:"shrink-0 pt-1 text-ink-3",children:m.jsx(n5,{name:n.type_icon,color:n.type_color,size:16})})]})]})}const b5=E.lazy(()=>va(()=>import("./RecordsPage-BwAQWdzS.js"),[]).then(n=>({default:n.RecordsPage}))),x5=E.lazy(()=>va(()=>import("./DashboardPage-CQnxSqVN.js"),__vite__mapDeps([0,1,2,3])).then(n=>({default:n.DashboardPage}))),S5=E.lazy(()=>va(()=>import("./GradesPage-DzUjrUOh.js"),__vite__mapDeps([4,1,2,3])).then(n=>({default:n.GradesPage}))),E5=E.lazy(()=>va(()=>import("./TypesPage-C7Z51VT_.js"),__vite__mapDeps([5,1])).then(n=>({default:n.TypesPage}))),_5=E.lazy(()=>va(()=>import("./TaxonomyPage-Ddc1f8hF.js"),__vite__mapDeps([6,1])).then(n=>({default:n.TaxonomyPage}))),T5=E.lazy(()=>va(()=>import("./AdminPage-fQn8miqZ.js"),__vite__mapDeps([7,1])).then(n=>({default:n.AdminPage})));function Hi(){return m.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"})}function N5(){return m.jsx(dS,{children:m.jsxs(_l,{element:m.jsx(e5,{}),children:[m.jsx(_l,{path:"/",element:m.jsx(Vp,{to:"/timeline",replace:!0})}),m.jsx(_l,{path:"/timeline",element:m.jsx(p5,{})}),m.jsx(_l,{path:"/records",element:m.jsx(E.Suspense,{fallback:m.jsx(Hi,{}),children:m.jsx(b5,{})})}),m.jsx(_l,{path:"/grades",element:m.jsx(E.Suspense,{fallback:m.jsx(Hi,{}),children:m.jsx(S5,{})})}),m.jsx(_l,{path:"/dashboard",element:m.jsx(E.Suspense,{fallback:m.jsx(Hi,{}),children:m.jsx(x5,{})})}),m.jsx(_l,{path:"/types",element:m.jsx(E.Suspense,{fallback:m.jsx(Hi,{}),children:m.jsx(E5,{})})}),m.jsx(_l,{path:"/taxonomy",element:m.jsx(E.Suspense,{fallback:m.jsx(Hi,{}),children:m.jsx(_5,{})})}),m.jsx(_l,{path:"/admin",element:m.jsx(E.Suspense,{fallback:m.jsx(Hi,{}),children:m.jsx(T5,{})})}),m.jsx(_l,{path:"*",element:m.jsx(Vp,{to:"/timeline",replace:!0})})]})})}const C5=new b3({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0,staleTime:0,gcTime:0}}}),xg=localStorage.getItem("fp-theme");(xg==="dark"||!xg&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&document.documentElement.classList.add("dark");function l1(){var r;const n=getComputedStyle(document.documentElement).getPropertyValue("--bg").trim();n&&((r=document.querySelector('meta[name="theme-color"]'))==null||r.setAttribute("content",n))}l1();window.addEventListener("fp-theme-change",l1);"serviceWorker"in navigator&&!("__TAURI_INTERNALS__"in window)&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});c2.createRoot(document.getElementById("root")).render(m.jsx(l2.StrictMode,{children:m.jsx(ZS,{client:C5,children:m.jsx(HS,{children:m.jsx(N5,{})})})}));export{wl as $,R4 as A,zt as B,V_ as C,A4 as D,Q_ as E,sc as F,P0 as G,De as H,nt as I,M4 as J,O4 as K,$0 as L,n5 as M,b4 as N,R5 as O,XE as P,A5 as Q,W0 as R,hl as S,Ed as T,x4 as U,S4 as V,E4 as W,_4 as X,T4 as Y,Wd as Z,Jl as _,yl as a,g0 as a0,wd as a1,G4 as a2,Y4 as a3,V4 as a4,X4 as a5,va as a6,Q4 as a7,B4 as a8,j5 as a9,Ag as aa,K4 as ab,KS as b,pe as c,cc as d,z5 as e,ml as f,Sd as g,f5 as h,F0 as i,m as j,mg as k,YE as l,Ii as m,v5 as n,y5 as o,N4 as p,uc as q,E as r,E0 as s,C4 as t,lu as u,_0 as v,v0 as w,U4 as x,k4 as y,D4 as z};
|