Files
FootPrint/sync-server/www/assets/index-BCzrIT2G.js
T

323 lines
410 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-D8pFC_15.js","assets/card-BnbpsHNY.js","assets/useChart-DQHpg1hj.js","assets/echarts-BIWefrIc.js","assets/GradesPage-DC5OfFHe.js","assets/TypesPage-DwN0_6Y9.js","assets/TaxonomyPage-17vlInQu.js","assets/AdminPage-B_1VIBeP.js"])))=>i.map(i=>d[i]);
var Np=n=>{throw TypeError(n)};var Xf=(n,r,s)=>r.has(n)||Np("Cannot "+s);var _=(n,r,s)=>(Xf(n,r,"read from private field"),s?s.call(n):r.get(n)),ce=(n,r,s)=>r.has(n)?Np("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,s),P=(n,r,s,c)=>(Xf(n,r,"write to private field"),c?c.call(n,s):r.set(n,s),s),Se=(n,r,s)=>(Xf(n,r,"access private method"),s);var Gs=(n,r,s,c)=>({set _(f){P(n,r,f,s)},get _(){return _(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 N5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Kf={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 Cp;function Wx(){if(Cp)return Wu;Cp=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 p in f)p!=="key"&&(h[p]=f[p])}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 wp;function Px(){return wp||(wp=1,Kf.exports=Wx()),Kf.exports}var m=Px(),Zf={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 Ix(){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"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),w=Symbol.for("react.view_transition"),B=Symbol.iterator;function Y(C){return C===null||typeof C!="object"?null:(C=B&&C[B]||C["@@iterator"],typeof C=="function"?C:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,k={};function G(C,Q,te){this.props=C,this.context=Q,this.refs=k,this.updater=te||H}G.prototype.isReactComponent={},G.prototype.setState=function(C,Q){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,Q,"setState")},G.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function X(){}X.prototype=G.prototype;function K(C,Q,te){this.props=C,this.context=Q,this.refs=k,this.updater=te||H}var V=K.prototype=new X;V.constructor=K,D(V,G.prototype),V.isPureReactComponent=!0;var oe=Array.isArray;function Z(){}var U={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ve(C,Q,te){var re=te.ref;return{$$typeof:n,type:C,key:Q,ref:re!==void 0?re:null,props:te}}function Ye(C,Q){return ve(C.type,Q,C.props)}function I(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function Ne(C){var Q={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(te){return Q[te]})}var Ee=/\/+/g;function de(C,Q){return typeof C=="object"&&C!==null&&C.key!=null?Ne(""+C.key):Q.toString(36)}function N(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Z,Z):(C.status="pending",C.then(function(Q){C.status==="pending"&&(C.status="fulfilled",C.value=Q)},function(Q){C.status==="pending"&&(C.status="rejected",C.reason=Q)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function F(C,Q,te,re,ze){var he=typeof C;(he==="undefined"||he==="boolean")&&(C=null);var Me=!1;if(C===null)Me=!0;else switch(he){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(C.$$typeof){case n:case r:Me=!0;break;case x:return Me=C._init,F(Me(C._payload),Q,te,re,ze)}}if(Me)return ze=ze(C),Me=re===""?"."+de(C,0):re,oe(ze)?(te="",Me!=null&&(te=Me.replace(Ee,"$&/")+"/"),F(ze,Q,te,"",function(Gt){return Gt})):ze!=null&&(I(ze)&&(ze=Ye(ze,te+(ze.key==null||C&&C.key===ze.key?"":(""+ze.key).replace(Ee,"$&/")+"/")+Me)),Q.push(ze)),1;Me=0;var ie=re===""?".":re+":";if(oe(C))for(var me=0;me<C.length;me++)re=C[me],he=ie+de(re,me),Me+=F(re,Q,te,he,ze);else if(me=Y(C),typeof me=="function")for(C=me.call(C),me=0;!(re=C.next()).done;)re=re.value,he=ie+de(re,me++),Me+=F(re,Q,te,he,ze);else if(he==="object"){if(typeof C.then=="function")return F(N(C),Q,te,re,ze);throw Q=String(C),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Me}function ee(C,Q,te){if(C==null)return C;var re=[],ze=0;return F(C,re,"","",function(he){return Q.call(te,he,ze++)}),re}function fe(C){if(C._status===-1){var Q=C._result,te=Q();te.then(function(re){(C._status===0||C._status===-1)&&(C._status=1,C._result=re,te.status===void 0&&(te.status="fulfilled",te.value=re))},function(re){(C._status===0||C._status===-1)&&(C._status=2,C._result=re,te.status===void 0&&(te.status="rejected",te.reason=re))}),C._status===-1&&(C._status=0,C._result=te)}if(C._status===1)return C._result.default;throw C._result}var J=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=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(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function Ut(C){var Q=U.T,te={};te.types=Q!==null?Q.types:null,U.T=te;try{var re=C(),ze=U.S;ze!==null&&ze(te,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(Z,J)}catch(he){J(he)}finally{Q!==null&&te.types!==null&&(Q.types=te.types),U.T=Q}}function ll(C){var Q=U.T;if(Q!==null){var te=Q.types;te===null?Q.types=[C]:te.indexOf(C)===-1&&te.push(C)}else Ut(ll.bind(null,C))}var zl={map:ee,forEach:function(C,Q,te){ee(C,function(){Q.apply(this,arguments)},te)},count:function(C){var Q=0;return ee(C,function(){Q++}),Q},toArray:function(C){return ee(C,function(Q){return Q})||[]},only:function(C){if(!I(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=G,ge.Fragment=s,ge.Profiler=f,ge.PureComponent=K,ge.StrictMode=c,ge.Suspense=b,ge.ViewTransition=w,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=ll,ge.cache=function(C){return function(){return C.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(C,Q,te){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var re=D({},C.props),ze=C.key;if(Q!=null)for(he in Q.key!==void 0&&(ze=""+Q.key),Q)!$.call(Q,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Q.ref===void 0||(re[he]=Q[he]);var he=arguments.length-2;if(he===1)re.children=te;else if(1<he){for(var Me=Array(he),ie=0;ie<he;ie++)Me[ie]=arguments[ie+2];re.children=Me}return ve(C.type,ze,re)},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,Q,te){var re,ze={},he=null;if(Q!=null)for(re in Q.key!==void 0&&(he=""+Q.key),Q)$.call(Q,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ze[re]=Q[re]);var Me=arguments.length-2;if(Me===1)ze.children=te;else if(1<Me){for(var ie=Array(Me),me=0;me<Me;me++)ie[me]=arguments[me+2];ze.children=ie}if(C&&C.defaultProps)for(re in Me=C.defaultProps,Me)ze[re]===void 0&&(ze[re]=Me[re]);return ve(C,he,ze)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(C){return{$$typeof:p,render:C}},ge.isValidElement=I,ge.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:fe}},ge.memo=function(C,Q){return{$$typeof:v,type:C,compare:Q===void 0?null:Q}},ge.startTransition=Ut,ge.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ge.use=function(C){return U.H.use(C)},ge.useActionState=function(C,Q,te){return U.H.useActionState(C,Q,te)},ge.useCallback=function(C,Q){return U.H.useCallback(C,Q)},ge.useContext=function(C){return U.H.useContext(C)},ge.useDebugValue=function(){},ge.useDeferredValue=function(C,Q){return U.H.useDeferredValue(C,Q)},ge.useEffect=function(C,Q){return U.H.useEffect(C,Q)},ge.useEffectEvent=function(C){return U.H.useEffectEvent(C)},ge.useId=function(){return U.H.useId()},ge.useImperativeHandle=function(C,Q,te){return U.H.useImperativeHandle(C,Q,te)},ge.useInsertionEffect=function(C,Q){return U.H.useInsertionEffect(C,Q)},ge.useLayoutEffect=function(C,Q){return U.H.useLayoutEffect(C,Q)},ge.useMemo=function(C,Q){return U.H.useMemo(C,Q)},ge.useOptimistic=function(C,Q){return U.H.useOptimistic(C,Q)},ge.useReducer=function(C,Q,te){return U.H.useReducer(C,Q,te)},ge.useRef=function(C){return U.H.useRef(C)},ge.useState=function(C){return U.H.useState(C)},ge.useSyncExternalStore=function(C,Q,te){return U.H.useSyncExternalStore(C,Q,te)},ge.useTransition=function(){return U.H.useTransition()},ge.version="19.3.1",ge}var jp;function wd(){return jp||(jp=1,Zf.exports=Ix()),Zf.exports}var E=wd();const e2=Rg(E);var Jf={exports:{}},Pu={},Ff={exports:{}},$f={};/**
* @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 Op;function t2(){return Op||(Op=1,(function(n){function r(N,F){var ee=N.length;N.push(F);e:for(;0<ee;){var fe=ee-1>>>1,J=N[fe];if(0<f(J,F))N[fe]=F,N[ee]=J,ee=fe;else break e}}function s(N){return N.length===0?null:N[0]}function c(N){if(N.length===0)return null;var F=N[0],ee=N.pop();if(ee!==F){N[0]=ee;e:for(var fe=0,J=N.length,Ut=J>>>1;fe<Ut;){var ll=2*(fe+1)-1,zl=N[ll],C=ll+1,Q=N[C];if(0>f(zl,ee))C<J&&0>f(Q,zl)?(N[fe]=Q,N[C]=ee,fe=C):(N[fe]=zl,N[ll]=ee,fe=ll);else if(C<J&&0>f(Q,ee))N[fe]=Q,N[C]=ee,fe=C;else break e}}return F}function f(N,F){var ee=N.sortIndex-F.sortIndex;return ee!==0?ee:N.id-F.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,p=d.now();n.unstable_now=function(){return d.now()-p}}var b=[],v=[],x=1,g=null,w=3,B=!1,Y=!1,H=!1,D=!1,k=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function K(N){for(var F=s(v);F!==null;){if(F.callback===null)c(v);else if(F.startTime<=N)c(v),F.sortIndex=F.expirationTime,r(b,F);else break;F=s(v)}}function V(N){if(H=!1,K(N),!Y)if(s(b)!==null)Y=!0,oe||(oe=!0,I());else{var F=s(v);F!==null&&de(V,F.startTime-N)}}var oe=!1,Z=-1,U=5,$=-1;function ve(){return D?!0:!(n.unstable_now()-$<U)}function Ye(){if(D=!1,oe){var N=n.unstable_now();$=N;var F=!0;try{e:{Y=!1,H&&(H=!1,G(Z),Z=-1),B=!0;var ee=w;try{t:{for(K(N),g=s(b);g!==null&&!(g.expirationTime>N&&ve());){var fe=g.callback;if(typeof fe=="function"){g.callback=null,w=g.priorityLevel;var J=fe(g.expirationTime<=N);if(N=n.unstable_now(),typeof J=="function"){g.callback=J,K(N),F=!0;break t}g===s(b)&&c(b),K(N)}else c(b);g=s(b)}if(g!==null)F=!0;else{var Ut=s(v);Ut!==null&&de(V,Ut.startTime-N),F=!1}}break e}finally{g=null,w=ee,B=!1}F=void 0}}finally{F?I():oe=!1}}}var I;if(typeof X=="function")I=function(){X(Ye)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Ee=Ne.port2;Ne.port1.onmessage=Ye,I=function(){Ee.postMessage(null)}}else I=function(){k(Ye,0)};function de(N,F){Z=k(function(){N(n.unstable_now())},F)}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(N){N.callback=null},n.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<N?Math.floor(1e3/N):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(N){switch(w){case 1:case 2:case 3:var F=3;break;default:F=w}var ee=w;w=F;try{return N()}finally{w=ee}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(N,F){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var ee=w;w=N;try{return F()}finally{w=ee}},n.unstable_scheduleCallback=function(N,F,ee){var fe=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?fe+ee:fe):ee=fe,N){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=ee+J,N={id:x++,callback:F,priorityLevel:N,startTime:ee,expirationTime:J,sortIndex:-1},ee>fe?(N.sortIndex=ee,r(v,N),s(b)===null&&N===s(v)&&(H?(G(Z),Z=-1):H=!0,de(V,ee-fe))):(N.sortIndex=J,r(b,N),Y||B||(Y=!0,oe||(oe=!0,I()))),N},n.unstable_shouldYield=ve,n.unstable_wrapCallback=function(N){var F=w;return function(){var ee=w;w=F;try{return N.apply(this,arguments)}finally{w=ee}}}})($f)),$f}var Rp;function l2(){return Rp||(Rp=1,Ff.exports=t2()),Ff.exports}var Wf={exports:{}},_t={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ap;function a2(){if(Ap)return _t;Ap=1;var n=wd();function r(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)g+="&args[]="+encodeURIComponent(arguments[w])}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 p(x,g,w){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:B==null?null:B===d?d:""+B,children:x,containerInfo:g,implementation:w}}var b=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,_t.browser=function(x){return{$$typeof:h,_reason:x}},_t.createPortal=function(x,g){var w=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 p(x,g,null,w)},_t.flushSync=function(x){var g=b.T,w=c.p;try{if(b.T=null,c.p=2,x)return x()}finally{b.T=g,c.p=w,c.d.f()}},_t.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))},_t.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},_t.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var w=g.as,B=v(w,g.crossOrigin),Y=typeof g.integrity=="string"?g.integrity:void 0,H=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;w==="style"?c.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:B,integrity:Y,fetchPriority:H}):w==="script"&&c.d.X(x,{crossOrigin:B,integrity:Y,fetchPriority:H,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},_t.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var w=v(g.as,g.crossOrigin);c.d.M(x,{crossOrigin:w,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)},_t.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var w=g.as,B=v(w,g.crossOrigin);c.d.L(x,w,{crossOrigin:B,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})}},_t.preloadModule=function(x,g){if(typeof x=="string")if(g){var w=v(g.as,g.crossOrigin);c.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:w,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)},_t.requestFormReset=function(x){c.d.r(x)},_t.unstable_batchedUpdates=function(x,g){return x(g)},_t.useFormState=function(x,g,w){return b.H.useFormState(x,g,w)},_t.useFormStatus=function(){return b.H.useHostTransitionStatus()},_t.version="19.3.1",_t}var Mp;function Ag(){if(Mp)return Wf.exports;Mp=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=a2(),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 Dp;function n2(){if(Dp)return Pu;Dp=1;var n=l2(),r=wd(),s=Ag();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 p(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 v(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 w(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 B(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 Y(e){var t=[null,null],l=w(e);return l===null||H(t,e,l.child,{foundSelf:!1}),t}function H(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)&&H(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 k=null,G=null;function X(e,t,l){return e===l?!0:e===t?(k=e,!0):!1}function K(e,t,l){return e===l?(G=e,!1):e===t?(G!==null&&(k=e),!0):!1}function V(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 oe(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 Z=Object.assign,U=Symbol.for("react.element"),$=Symbol.for("react.transitional.element"),ve=Symbol.for("react.portal"),Ye=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),Ee=Symbol.for("react.consumer"),de=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Ut=Symbol.for("react.activity"),ll=Symbol.for("react.legacy_hidden"),zl=Symbol.for("react.memo_cache_sentinel"),C=Symbol.for("react.view_transition"),Q=Symbol.for("react.recoverable"),te=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ye:return"Fragment";case Ne:return"Profiler";case I:return"StrictMode";case F:return"Suspense";case ee:return"SuspenseList";case Ut:return"Activity";case C:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ve:return"Portal";case de:return e.displayName||"Context";case Ee:return(e._context.displayName||"Context")+".Consumer";case N:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fe:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var Me=Array.isArray,ie=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gt={pending:!1,data:null,method:null,action:null},va=[],Vn=-1;function jl(e){return{current:e}}function vt(e){0>Vn||(e.current=va[Vn],va[Vn]=null,Vn--)}function Ke(e,t){Vn++,va[Vn]=e.current,e.current=t}var Ol=jl(null),au=jl(null),pa=jl(null),dr=jl(null);function hr(e,t){switch(Ke(pa,t),Ke(au,e),Ke(Ol,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dv(t),e=Uv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}vt(Ol),Ke(Ol,e)}function Xn(){vt(Ol),vt(au),vt(pa)}function cc(e){var t=e.memoizedState;t!==null&&(Ai._currentValue=t.memoizedState,Ke(dr,e)),t=Ol.current;var l=Uv(t,e.type);t!==l&&(Ke(au,e),Ke(Ol,l))}function mr(e){au.current===e&&(vt(Ol),vt(au)),dr.current===e&&(vt(dr),Ai._currentValue=Gt)}var oc,th;function ga(e){if(oc===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);oc=t&&t[1]||"",th=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+oc+e+th}var fc=!1;function dc(e,t){if(!e||fc)return"";fc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(W){var z=W}Reflect.construct(e,[],L)}else{try{L.call()}catch(W){z=W}L=!1;try{var A=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),L=!0,new e}finally{L&&(A!==void 0?Object.defineProperty(e.prototype,"props",A):delete e.prototype.props)}}}else{try{throw Error()}catch(W){z=W}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(W){if(W&&z&&typeof W.stack=="string")return[W.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),o=u[0],y=u[1];if(o&&y){var S=o.split(`
`),O=y.split(`
`);for(i=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(a===S.length||i===O.length)for(a=S.length-1,i=O.length-1;1<=a&&0<=i&&S[a]!==O[i];)i--;for(;1<=a&&0<=i;a--,i--)if(S[a]!==O[i]){if(a!==1||i!==1)do if(a--,i--,0>i||S[a]!==O[i]){var 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{fc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ga(l):""}function t1(e,t){switch(e.tag){case 26:case 27:case 5:return ga(e.type);case 16:return ga("Lazy");case 13:return e.child!==t&&t!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return dc(e.type,!1);case 11:return dc(e.type.render,!1);case 1:return dc(e.type,!0);case 31:return ga("Activity");case 30:return ga("ViewTransition");default:return""}}function lh(e){try{var t="",l=null;do t+=t1(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var hc=Object.prototype.hasOwnProperty,mc=n.unstable_scheduleCallback,yc=n.unstable_cancelCallback,l1=n.unstable_shouldYield,a1=n.unstable_requestPaint,Yt=n.unstable_now,n1=n.unstable_getCurrentPriorityLevel,ah=n.unstable_ImmediatePriority,nh=n.unstable_UserBlockingPriority,yr=n.unstable_NormalPriority,i1=n.unstable_LowPriority,ih=n.unstable_IdlePriority,u1=n.log,r1=n.unstable_setDisableYieldValue,nu=null,Vt=null;function ba(e){if(typeof u1=="function"&&r1(e),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(nu,e)}catch{}}var Xt=Math.clz32?Math.clz32:o1,s1=Math.log,c1=Math.LN2;function o1(e){return e>>>=0,e===0?32:31-(s1(e)/c1|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 iu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function uh(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-Xt(l),i=1<<a;t|=e[a],l&=~i}return t}function f1(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 rh(){var e=gr;return gr<<=1,(gr&62914560)===0&&(gr=4194304),e}function vc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function uu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function d1(e,t,l,a,i,u){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(l=o&~l;0<l;){var M=31-Xt(l),L=1<<M;y[M]=0,S[M]=-1;var z=O[M];if(z!==null)for(O[M]=null,M=0;M<z.length;M++){var A=z[M];A!==null&&(A.lane&=-536870913)}l&=~L}a!==0&&sh(e,a,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function sh(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Xt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ch(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Xt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function oh(e,t){var l=t&-t;return l=(l&42)!==0?1:pc(l),(l&(e.suspendedLanes|t))!==0?0:l}function pc(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 gc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fh(){var e=me.p;return e!==0?e:(e=window.event,e===void 0?32:gp(e.type))}function dh(e,t){var l=me.p;try{return me.p=e,t()}finally{me.p=l}}var Zl=Math.random().toString(36).slice(2),pt="__reactFiber$"+Zl,kt="__reactProps$"+Zl,Kn="__reactContainer$"+Zl,hh="__reactEvents$"+Zl,h1="__reactListeners$"+Zl,m1="__reactHandles$"+Zl,mh="__reactResources$"+Zl,ru="__reactMarker$"+Zl,xr="__reactLoad$"+Zl;function Sr(e){delete e[pt],delete e[kt],delete e[h1],delete e[m1]}function un(e){var t;if(t=e[pt])return t;for(var l=e.parentNode;l;){if(t=l[Kn]||l[pt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Pv(e);e!==null;){if(l=e[pt])return l;e=Pv(e)}return t}e=l,l=e.parentNode}return null}function Zn(e){if(e=e[pt]||e[Kn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function su(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Jn(e){var t=e[mh];return t||(t=e[mh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[ru]=!0}function yh(e){e[xr]=void 0}var vh=new Set,ph={};function rn(e,t){Fn(e,t),Fn(e+"Capture",t)}function Fn(e,t){for(ph[e]=t,e=0;e<t.length;e++)vh.add(t[e])}var y1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gh={},bh={};function v1(e){return hc.call(bh,e)?!0:hc.call(gh,e)?!1:y1.test(e)?bh[e]=!0:(gh[e]=!0,!1)}var ke=!1;function xh(){var e=ke;return ke=!1,e}function Er(e,t,l){if(v1(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 Jl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,a)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p1(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 bc(e){if(!e._valueTracker){var t=Sh(e)?"checked":"value";e._valueTracker=p1(e,t,""+e[t])}}function Eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Sh(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var g1=/[\n"\\]/g;function al(e){return e.replace(g1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xc(e,t,l,a,i,u,o,y){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?Sc(e,Kt(e.value)):Sc(e,Kt(t)):l!=null?Sc(e,Kt(l)):a!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Kt(y):e.removeAttribute("name")}function _h(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)){bc(e);return}l=l!=null?""+Kt(l):"",t=t!=null?""+Kt(t):l,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),bc(e)}function Sc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function $n(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Kt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Th(e,t,l){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Kt(l):""}function Nh(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(Me(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Kt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),bc(e)}function Wn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var b1=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 Ch(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||b1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function wh(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",ke=!0);for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&(Ch(e,i,a),ke=!0)}else for(var u in t)t.hasOwnProperty(u)&&Ch(e,u,t[u])}function Ec(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 x1=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"]]),S1=/^[\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 S1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rl(){}var _c=null;function Tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pn=null,In=null;function zh(e){var t=Zn(e);if(t&&(e=t.stateNode)){var l=e[kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(xc(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[kt]||null;if(!i)throw Error(c(90));xc(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&&Eh(a)}break e;case"textarea":Th(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$n(e,!!l.multiple,t,!1)}}}var Nc=!1;function jh(e,t,l){if(Nc)return e(t,l);Nc=!0;try{var a=e(t);return a}finally{if(Nc=!1,(Pn!==null||In!==null)&&(Ts(),Pn&&(t=Pn,e=In,In=Pn=null,zh(t),e)))for(t=0;t<e.length;t++)zh(e[t])}}function cu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[kt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var Fl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cc=!1;if(Fl)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){Cc=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{Cc=!1}var xa=null,wc=null,Nr=null;function Oh(){if(Nr)return Nr;var e,t=wc,l=t.length,a,i="value"in xa?xa.value:xa.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 Rh(){return!1}function zt(e){function t(l,a,i,u,o){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(l=e[y],this[y]=l?l(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?wr:Rh,this.isPropagationStopped=Rh,this}return Z(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 Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zr=zt(Sa),fu=Z({},Sa,{view:0,detail:0}),E1=zt(fu),zc,jc,du,jr=Z({},fu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==du&&(du&&e.type==="mousemove"?(zc=e.screenX-du.screenX,jc=e.screenY-du.screenY):jc=zc=0,du=e),zc)},movementY:function(e){return"movementY"in e?e.movementY:jc}}),Ah=zt(jr),_1=Z({},jr,{dataTransfer:0}),T1=zt(_1),N1=Z({},fu,{relatedTarget:0}),Oc=zt(N1),C1=Z({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),w1=zt(C1),z1=Z({},Sa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j1=zt(z1),O1=Z({},Sa,{data:0}),Mh=zt(O1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A1={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"},M1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M1[e])?!!t[e]:!1}function Rc(){return D1}var U1=Z({},fu,{key:function(e){if(e.key){var t=R1[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"?A1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,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}}),k1=zt(U1),H1=Z({},jr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dh=zt(H1),q1=Z({},Sa,{submitter:0}),L1=zt(q1),B1=Z({},fu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),Q1=zt(B1),G1=Z({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y1=zt(G1),V1=Z({},jr,{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}),X1=zt(V1),K1=Z({},Sa,{newState:0,oldState:0,source:0}),Z1=zt(K1),J1=[9,13,27,32],Ac=Fl&&"CompositionEvent"in window,hu=null;Fl&&"documentMode"in document&&(hu=document.documentMode);var F1=Fl&&"TextEvent"in window&&!hu,Uh=Fl&&(!Ac||hu&&8<hu&&11>=hu),kh=" ",Hh=!1;function qh(e,t){switch(e){case"keyup":return J1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ei=!1;function $1(e,t){switch(e){case"compositionend":return Lh(t);case"keypress":return t.which!==32?null:(Hh=!0,kh);case"textInput":return e=t.data,e===kh&&Hh?null:e;default:return null}}function W1(e,t){if(ei)return e==="compositionend"||!Ac&&qh(e,t)?(e=Oh(),Nr=wc=xa=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 Uh&&t.locale!=="ko"?null:t.data;default:return null}}var P1={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 Bh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P1[e.type]:t==="textarea"}function Qh(e,t,l,a){Pn?In?In.push(a):In=[a]:Pn=a,t=Os(t,"onChange"),0<t.length&&(l=new zr("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var mu=null,yu=null;function I1(e){zv(e,0)}function Or(e){var t=su(e);if(Eh(t))return e}function Gh(e,t){if(e==="change")return t}var Yh=!1;if(Fl){var Mc;if(Fl){var Dc="oninput"in document;if(!Dc){var Vh=document.createElement("div");Vh.setAttribute("oninput","return;"),Dc=typeof Vh.oninput=="function"}Mc=Dc}else Mc=!1;Yh=Mc&&(!document.documentMode||9<document.documentMode)}function Xh(){mu&&(mu.detachEvent("onpropertychange",Kh),yu=mu=null)}function Kh(e){if(e.propertyName==="value"&&Or(yu)){var t=[];Qh(t,yu,e,Tc(e)),jh(I1,t)}}function eb(e,t,l){e==="focusin"?(Xh(),mu=t,yu=l,mu.attachEvent("onpropertychange",Kh)):e==="focusout"&&Xh()}function tb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Or(yu)}function lb(e,t){if(e==="click")return Or(t)}function ab(e,t){if(e==="input"||e==="change")return Or(t)}function nb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:nb;function vu(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!hc.call(t,i)||!Zt(e[i],t[i]))return!1}return!0}function Uc(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 Zh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jh(e,t){var l=Zh(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=Zh(l)}}function Fh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $h(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Uc(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=Uc(e.document)}return t}function kc(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 ib=Fl&&"documentMode"in document&&11>=document.documentMode,ti=null,Hc=null,pu=null,qc=!1;function Wh(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;qc||ti==null||ti!==Uc(a)||(a=ti,"selectionStart"in a&&kc(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}),pu&&vu(pu,a)||(pu=a,a=Os(Hc,"onSelect"),0<a.length&&(t=new zr("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")},Lc={},Ph={};Fl&&(Ph=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(Lc[e])return Lc[e];if(!li[e])return e;var t=li[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ph)return Lc[e]=t[l];return e}var Ih=cn("animationend"),em=cn("animationiteration"),tm=cn("animationstart"),ub=cn("transitionrun"),rb=cn("transitionstart"),sb=cn("transitioncancel"),lm=cn("transitionend"),am=new Map,Bc="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(" ");Bc.push("scrollEnd");function pl(e,t){am.set(e,t),rn(t,[e])}var cb=0;function $l(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Sl.identifierPrefix;var l=cb++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function nm(e){if(e==null||typeof e=="string")return e;var t=null,l=Ei;if(l!==null)for(var a=0;a<l.length;a++){var i=e[l[a]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function Wl(e,t){return e=nm(e),t=nm(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,Qc=0;function Ar(){for(var e=ai,t=Qc=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&&im(l,i,u)}}function Mr(e,t,l,a){nl[ai++]=e,nl[ai++]=t,nl[ai++]=l,nl[ai++]=a,Qc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gc(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 im(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Xt(l),e=u.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),u):null}function Dr(e){if(50<Lu)throw Lu=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 ob(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 Ht(e,t,l,a){return new ob(e,t,l,a)}function Yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pl(e,t){var l=e.alternate;return l===null?(l=Ht(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 um(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")Yc(a)&&(o=1);else if(typeof a=="string")o=qx(e,l,Ol.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Ut:return e=Ht(31,l,t,i),e.elementType=Ut,e.lanes=u,e;case Ye:return fn(l.children,i,u,t);case I:o=8,i|=24;break;case Ne:return e=Ht(12,l,t,i|2),e.elementType=Ne,e.lanes=u,e;case F:return e=Ht(13,l,t,i),e.elementType=F,e.lanes=u,e;case ee:return e=Ht(19,l,t,i),e.elementType=ee,e.lanes=u,e;case ll:case C:return e=i|32,e=Ht(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 de:o=10;break e;case Ee:o=9;break e;case N:o=11;break e;case fe:o=14;break e;case J:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Ht(o,l,t,i),t.elementType=e,t.type=a,t.lanes=u,t}function fn(e,t,l,a){return e=Ht(7,e,a,t),e.lanes=l,e}function Vc(e,t,l){return e=Ht(6,e,null,t),e.lanes=l,e}function rm(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function Xc(e,t,l){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sm=new WeakMap;function il(e,t){if(typeof e=="object"&&e!==null){var l=sm.get(e);return l!==void 0?l:(t={value:e,source:t,stack:lh(t)},sm.set(e,t),t)}return{value:e,source:t,stack:lh(t)}}var ii=[],ui=0,kr=null,gu=0,ul=[],rl=0,Ea=null,Al=1,Ml="";function Il(e,t){ii[ui++]=gu,ii[ui++]=kr,kr=e,gu=t}function cm(e,t,l){ul[rl++]=Al,ul[rl++]=Ml,ul[rl++]=Ea,Ea=e;var a=Al;e=Ml;var i=32-Xt(a)-1;a&=~(1<<i),l+=1;var u=32-Xt(t)+i;if(30<u){var o=i-i%5;u=(a&(1<<o)-1).toString(32),a>>=o,i-=o,Al=1<<32-Xt(t)+i|l<<i|a,Ml=u+e}else Al=1<<u|l<<i|a,Ml=e}function Hr(e){e.return!==null&&(Il(e,1),cm(e,1,0))}function Kc(e){for(;e===kr;)kr=ii[--ui],ii[ui]=null,gu=ii[--ui],ii[ui]=null;for(;e===Ea;)Ea=ul[--rl],ul[rl]=null,Ml=ul[--rl],ul[rl]=null,Al=ul[--rl],ul[rl]=null}function om(e,t){ul[rl++]=Al,ul[rl++]=Ml,ul[rl++]=Ea,Al=t.id,Ml=t.overflow,Ea=e}var ht=null,Ze=null,_e=!1,_a=null,sl=!1,Zc=Error(c(519));function Ta(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bu(il(t,e)),Zc}function fm(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[pt]=e,t[kt]=a,l){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(l=0;l<Qu.length;l++)we(Qu[l],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),_h(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Nh(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||Av(t.textContent,l)?(a.popover!=null&&(we("beforetoggle",t),we("toggle",t)),a.onScroll!=null&&we("scroll",t),a.onScrollEnd!=null&&we("scrollend",t),a.onClick!=null&&(t.onclick=Rl),t=!0):t=!1,t||Ta(e,!0)}function qr(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:sl=!1;return;case 27:case 3:sl=!0;return;default:ht=ht.return}}function ri(e){if(e!==ht)return!1;if(!_e)return qr(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Nf(e.type,e.memoizedProps)),l=!l),l&&Ze&&Ta(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,Ba(e.type)?(e=Df,Df=null,Ze=e):Ze=t):Ze=ht?ol(e.stateNode.nextSibling):null;return!0}function dn(){Ze=ht=null,_e=!1}function Jc(){var e=_a;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),_a=null),e}function bu(e){_a===null?_a=[e]:_a.push(e)}var Fc=jl(null),hn=null,ea=null;function Na(e,t,l){Ke(Fc,t._currentValue),t._currentValue=l}function ta(e){e._currentValue=Fc.current,vt(Fc)}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 $c(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;Zt(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&&$c(t,e,l,a),t.flags|=262144,e!==null}function Br(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yn(e){hn=e,ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return dm(hn,e)}function Qr(e,t){return hn===null&&yn(e),dm(e,t)}function dm(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ea===null){if(e===null)throw Error(c(308));ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ea=ea.next=t;return l}var fb=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()})}},db=n.unstable_scheduleCallback,hb=n.unstable_NormalPriority,at={$$typeof:de,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wc(){return{controller:new fb,data:new Map,refCount:0}}function xu(e){e.refCount--,e.refCount===0&&db(hb,function(){e.controller.abort()})}function hm(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];l.indexOf(a)===-1&&l.push(a)}}}var Su=null;function mb(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Eu=null,Pc=0,vn=0,si=null;function yb(e,t){if(Eu===null){var l=Eu=[];Pc=0,vn=vf(),si={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Pc++,t.then(mm,mm),t}function mm(){if(--Pc===0&&(Su=null,Eu!==null)){si!==null&&(si.status="fulfilled");var e=Eu;Eu=null,vn=0,si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vb(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 ym=ie.S;ie.S=function(e,t){if(rv=Yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yb(e,t),Su!==null)for(var l=Ci;l!==null;)hm(l,Su),l=l.next;if(l=e.types,l!==null){for(var a=Ci;a!==null;)hm(a,l),a=a.next;if(vn!==0){a=Su,a===null&&(a=Su=[]);for(var i=0;i<l.length;i++){var u=l[i];a.indexOf(u)===-1&&a.push(u)}}}ym!==null&&ym(e,t)};var pn=jl(null);function Ic(){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 vm(){var e=Ic();return e===null?null:{parent:at._currentValue,pool:e}}var ci=Error(c(460)),eo=Error(c(474)),Yr=Error(c(542)),Vr={then:function(){}};function pm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gm(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Rl,Rl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then(Rl,Rl);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,xm(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 bm(){if(bn===null)throw Error(c(459));var e=bn;return bn=null,e}function xm(e){if(e===ci||e===Yr)throw Error(c(483))}var oi=null,_u=0;function Xr(e){var t=_u;return _u+=1,oi===null&&(oi=[]),gm(oi,e,t)}function Ca(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 Sm(e){function t(j,T){if(e){var R=j.deletions;R===null?(j.deletions=[T],j.flags|=16):R.push(T)}}function l(j,T){if(!e)return null;for(;T!==null;)t(j,T),T=T.sibling;return null}function a(j){for(var T=new Map;j!==null;)j.key===null?T.set(j.index,j):T.set(j.key,j),j=j.sibling;return T}function i(j,T){return j=Pl(j,T),j.index=0,j.sibling=null,j}function u(j,T,R){return j.index=R,e?(R=j.alternate,R!==null?(R=R.index,R<T?(j.flags|=2,T):R):(j.flags|=134217730,T)):(j.flags|=1048576,T)}function o(j){return e&&j.alternate===null&&(j.flags|=134217730),j}function y(j,T,R,q){return T===null||T.tag!==6?(T=Vc(R,j.mode,q),T.return=j,T):(T=i(T,R),T.return=j,T)}function S(j,T,R,q){var le=R.type;return le===Ye?(j=M(j,T,R.props.children,q,R.key),Ca(j,R),j):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===J&&gn(le)===T.type)?(T=i(T,R.props),Ca(T,R),T.return=j,T):(T=Ur(R.type,R.key,R.props,null,j.mode,q),Ca(T,R),T.return=j,T)}function O(j,T,R,q){return T===null||T.tag!==4||T.stateNode.containerInfo!==R.containerInfo||T.stateNode.implementation!==R.implementation?(T=Xc(R,j.mode,q),T.return=j,T):(T=i(T,R.children||[]),T.return=j,T)}function M(j,T,R,q,le){return T===null||T.tag!==7?(T=fn(R,j.mode,q,le),T.return=j,T):(T=i(T,R),T.return=j,T)}function L(j,T,R){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Vc(""+T,j.mode,R),T.return=j,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case $:return R=Ur(T.type,T.key,T.props,null,j.mode,R),Ca(R,T),R.return=j,R;case ve:return T=Xc(T,j.mode,R),T.return=j,T;case J:return T=gn(T),L(j,T,R)}if(Me(T)||re(T))return T=fn(T,j.mode,R,null),T.return=j,T;if(typeof T.then=="function")return L(j,Xr(T),R);if(T.$$typeof===de)return L(j,Qr(j,T),R);Kr(j,T)}return null}function z(j,T,R,q){var le=T!==null?T.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return le!==null?null:y(j,T,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case $:return R.key===le?S(j,T,R,q):null;case ve:return R.key===le?O(j,T,R,q):null;case J:return R=gn(R),z(j,T,R,q)}if(Me(R)||re(R))return le!==null?null:M(j,T,R,q,null);if(typeof R.then=="function")return z(j,T,Xr(R),q);if(R.$$typeof===de)return z(j,T,Qr(j,R),q);Kr(j,R)}return null}function A(j,T,R,q,le){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return j=j.get(R)||null,y(T,j,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case $:return j=j.get(q.key===null?R:q.key)||null,S(T,j,q,le);case ve:return j=j.get(q.key===null?R:q.key)||null,O(T,j,q,le);case J:return q=gn(q),A(j,T,R,q,le)}if(Me(q)||re(q))return j=j.get(R)||null,M(T,j,q,le,null);if(typeof q.then=="function")return A(j,T,R,Xr(q),le);if(q.$$typeof===de)return A(j,T,R,Qr(T,q),le);Kr(T,q)}return null}function W(j,T,R,q){for(var le=null,Oe=null,se=T,ye=T=0,ut=null;se!==null&&ye<R.length;ye++){se.index>ye?(ut=se,se=null):ut=se.sibling;var De=z(j,se,R[ye],q);if(De===null){se===null&&(se=ut);break}e&&se&&De.alternate===null&&t(j,se),T=u(De,T,ye),Oe===null?le=De:Oe.sibling=De,Oe=De,se=ut}if(ye===R.length)return l(j,se),_e&&Il(j,ye),le;if(se===null){for(;ye<R.length;ye++)se=L(j,R[ye],q),se!==null&&(T=u(se,T,ye),Oe===null?le=se:Oe.sibling=se,Oe=se);return _e&&Il(j,ye),le}for(se=a(se);ye<R.length;ye++)ut=A(se,j,ye,R[ye],q),ut!==null&&(e&&(De=ut.alternate,De!==null&&se.delete(De.key===null?ye:De.key)),T=u(ut,T,ye),Oe===null?le=ut:Oe.sibling=ut,Oe=ut);return e&&se.forEach(function(Xa){return t(j,Xa)}),_e&&Il(j,ye),le}function ue(j,T,R,q){if(R==null)throw Error(c(151));for(var le=null,Oe=null,se=T,ye=T=0,ut=null,De=R.next();se!==null&&!De.done;ye++,De=R.next()){se.index>ye?(ut=se,se=null):ut=se.sibling;var Xa=z(j,se,De.value,q);if(Xa===null){se===null&&(se=ut);break}e&&se&&Xa.alternate===null&&t(j,se),T=u(Xa,T,ye),Oe===null?le=Xa:Oe.sibling=Xa,Oe=Xa,se=ut}if(De.done)return l(j,se),_e&&Il(j,ye),le;if(se===null){for(;!De.done;ye++,De=R.next())De=L(j,De.value,q),De!==null&&(T=u(De,T,ye),Oe===null?le=De:Oe.sibling=De,Oe=De);return _e&&Il(j,ye),le}for(se=a(se);!De.done;ye++,De=R.next())De=A(se,j,ye,De.value,q),De!==null&&(e&&(ut=De.alternate,ut!==null&&se.delete(ut.key===null?ye:ut.key)),T=u(De,T,ye),Oe===null?le=De:Oe.sibling=De,Oe=De);return e&&se.forEach(function($x){return t(j,$x)}),_e&&Il(j,ye),le}function xe(j,T,R,q){if(typeof R=="object"&&R!==null&&R.type===Ye&&R.key===null&&R.props.ref===void 0&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case $:e:{for(var le=R.key;T!==null;){if(T.key===le){if(le=R.type,le===Ye){if(T.tag===7){l(j,T.sibling),q=i(T,R.props.children),Ca(q,R),q.return=j,j=q;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===J&&gn(le)===T.type){l(j,T.sibling),q=i(T,R.props),Ca(q,R),q.return=j,j=q;break e}l(j,T);break}else t(j,T);T=T.sibling}R.type===Ye?(q=fn(R.props.children,j.mode,q,R.key),Ca(q,R),q.return=j,j=q):(q=Ur(R.type,R.key,R.props,null,j.mode,q),Ca(q,R),q.return=j,j=q)}return o(j);case ve:e:{for(le=R.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===R.containerInfo&&T.stateNode.implementation===R.implementation){l(j,T.sibling),q=i(T,R.children||[]),q.return=j,j=q;break e}else{l(j,T);break}else t(j,T);T=T.sibling}q=Xc(R,j.mode,q),q.return=j,j=q}return o(j);case J:return R=gn(R),xe(j,T,R,q)}if(Me(R))return W(j,T,R,q);if(re(R)){if(le=re(R),typeof le!="function")throw Error(c(150));return R=le.call(R),ue(j,T,R,q)}if(typeof R.then=="function")return xe(j,T,Xr(R),q);if(R.$$typeof===de)return xe(j,T,Qr(j,R),q);Kr(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,T!==null&&T.tag===6?(l(j,T.sibling),q=i(T,R),q.return=j,j=q):(l(j,T),q=Vc(R,j.mode,q),q.return=j,j=q),o(j)):l(j,T)}return function(j,T,R,q){try{_u=0;var le=xe(j,T,R,q);return oi=null,le}catch(se){if(se===ci||se===Yr)throw se;var Oe=Ht(29,se,null,j.mode);return Oe.lanes=q,Oe.return=j,Oe}finally{}}}var xn=Sm(!0),Em=Sm(!1),wa=!1;function to(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(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 ja(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),im(e,null,l),t}return Mr(e,a,t,l),Dr(e)}function Tu(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ch(e,l)}}function ao(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 no=!1;function Nu(){if(no){var e=si;if(e!==null)throw e}}function Cu(e,t,l,a){no=!1;var i=e.updateQueue;wa=!1;var u=i.firstBaseUpdate,o=i.lastBaseUpdate,y=i.shared.pending;if(y!==null){i.shared.pending=null;var S=y,O=S.next;S.next=null,o===null?u=O:o.next=O,o=S;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==o&&(y===null?M.firstBaseUpdate=O:y.next=O,M.lastBaseUpdate=S))}if(u!==null){var L=i.baseState;o=0,M=O=S=null,y=u;do{var z=y.lane&-536870913,A=z!==y.lane;if(A?(je&z)===z:(a&z)===z){z!==0&&z===vn&&(no=!0),M!==null&&(M=M.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var W=e,ue=y;z=t;var xe=l;switch(ue.tag){case 1:if(W=ue.payload,typeof W=="function"){L=W.call(xe,L,z);break e}L=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ue.payload,z=typeof W=="function"?W.call(xe,L,z):W,z==null)break e;L=Z({},L,z);break e;case 2:wa=!0}}z=y.callback,z!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[z]:A.push(z))}else A={lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(O=M=A,S=L):M=M.next=A,o|=z;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=L),i.baseState=S,i.firstBaseUpdate=O,i.lastBaseUpdate=M,u===null&&(i.shared.lanes=0),ka|=o,e.lanes=o,e.memoizedState=L}}function _m(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Tm(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)_m(l[e],t)}var Oa=jl(null),Zr=jl(0);function Nm(e,t){e=ua,Ke(Zr,e),Ke(Oa,t),ua=e|t.baseLanes}function io(){Ke(Zr,ua),Ke(Oa,Oa.current)}function uo(){ua=Zr.current,vt(Oa),vt(Zr)}var bt=jl(null),Tt=null;function Ra(e){var t=e.alternate;Ke(xt,xt.current&1),Ke(bt,e),Tt===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(Tt=e)}function ro(e){Ke(xt,xt.current),Ke(bt,e),Tt===null&&(Tt=e)}function Cm(e){e.tag===22?(Ke(xt,xt.current),Ke(bt,e),Tt===null&&(Tt=e)):Aa()}function Aa(){Ke(xt,xt.current),Ke(bt,bt.current)}function Jt(e){vt(bt),Tt===e&&(Tt=null),vt(xt)}var xt=jl(0);function wu(e,t){Ke(bt,bt.current),Ke(xt,t)}function so(e){vt(xt),vt(bt),Tt===e&&(Tt=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||Af(l)||Mf(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var la=0,be=null,Ve=null,nt=null,Fr=!1,fi=!1,Sn=!1,$r=0,zu=0,di=null,pb=0;function et(){throw Error(c(321))}function co(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Zt(e[l],t[l]))return!1;return!0}function oo(e,t,l,a,i,u){return la=u,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ie.H=e===null||e.memoizedState===null?cy:oy,Sn=!1,u=l(a,i),Sn=!1,fi&&(u=zm(t,l,a,i)),wm(e),u}function wm(e){ie.H=as;var t=Ve!==null&&Ve.next!==null;if(la=0,nt=Ve=be=null,Fr=!1,zu=0,di=null,t)throw Error(c(300));e===null||it||(e=e.dependencies,e!==null&&Br(e)&&(it=!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,nt=Ve=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}ie.H=Nb,u=t(l,a)}while(fi);return u}function gb(){var e=ie.H,t=e.useState()[0];return t=typeof t.then=="function"?ju(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(be.flags|=1024),t}function fo(){var e=$r!==0;return $r=0,e}function ho(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function mo(e){if(Fr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fr=!1}la=0,nt=Ve=be=null,fi=!1,zu=$r=0,di=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?be.memoizedState=nt=e:nt=nt.next=e,nt}function lt(){if(Ve===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=nt===null?be.memoizedState:nt.next;if(t!==null)nt=t,Ve=e;else{if(e===null)throw be.alternate===null?Error(c(467)):Error(c(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},nt===null?be.memoizedState=nt=e:nt=nt.next=e}return nt}function Wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ju(e){var t=zu;return zu+=1,di===null&&(di=[]),e=gm(di,e,t),t=be,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,ie.H=t===null||t.memoizedState===null?cy:oy),e}function Pr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ju(e);if(e.$$typeof===Q)return;if(e.$$typeof===de)return gt(e)}throw Error(c(438,String(e)))}function yo(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=Wr(),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 aa(e,t){return typeof t=="function"?t(e):t}function Ir(e){var t=lt();return vo(t,Ve,e)}function vo(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var i=e.baseQueue,u=a.pending;if(u!==null){if(i!==null){var o=i.next;i.next=u.next,u.next=o}t.baseQueue=i=u,a.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var y=o=null,S=null,O=t,M=!1;do{var L=O.lane&-536870913;if(L!==O.lane?(je&L)===L:(la&L)===L){var z=O.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),L===vn&&(M=!0);else if((la&z)===z){O=O.next,z===vn&&(M=!0);continue}else L={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(y=S=L,o=u):S=S.next=L,be.lanes|=z,ka|=z;L=O.action,Sn&&l(u,L),u=O.hasEagerState?O.eagerState:l(u,L)}else z={lane:L,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(y=S=z,o=u):S=S.next=z,be.lanes|=L,ka|=L;O=O.next}while(O!==null&&O!==t);if(S===null?o=u:S.next=y,!Zt(u,e.memoizedState)&&(it=!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 po(e){var t=lt(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,u=t.memoizedState;if(i!==null){l.pending=null;var o=i=i.next;do u=e(u,o.action),o=o.next;while(o!==i);Zt(u,t.memoizedState)||(it=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function jm(e,t,l){var a=be,i=lt(),u=_e;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Zt((Ve||i).memoizedState,l);if(o&&(i.memoizedState=l,it=!0),i=i.queue,xo(Am.bind(null,a,i,e),[e]),e=i.getSnapshot!==t||o||nt!==null&&(nt.memoizedState.tag&1)!==0,hi(e?9:8,{destroy:void 0},Rm.bind(null,a,i,l,t),null),e){if(a.flags|=2048,Xe===null)throw Error(c(349));u||(la&127)!==0||Om(a,t,l)}return l}function Om(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=be.updateQueue,t===null?(t=Wr(),be.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Rm(e,t,l,a){t.value=l,t.getSnapshot=a,Mm(t)&&Dm(e)}function Am(e,t,l){return l(function(){Mm(t)&&Dm(e)})}function Mm(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Zt(e,l)}catch{return!0}}function Dm(e){var t=on(e,2);t!==null&&Qt(t,e,2)}function go(e){var t=jt();if(typeof e=="function"){var l=e;if(e=l(),Sn){ba(!0);try{l()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function Um(e,t,l,a){return e.baseState=l,vo(e,Ve,typeof a=="function"?a:aa)}function bb(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)}};ie.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,km(t,u)):(u.next=l.next,t.pending=l.next=u)}}function km(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var u=ie.T,o={};o.types=u!==null?u.types:null,ie.T=o;try{var y=l(i,a),S=ie.S;S!==null&&S(o,y),Hm(e,t,y)}catch(O){bo(e,t,O)}finally{u!==null&&o.types!==null&&(u.types=o.types),ie.T=u}}else try{u=l(i,a),Hm(e,t,u)}catch(O){bo(e,t,O)}}function Hm(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){qm(e,t,a)},function(a){return bo(e,t,a)}):qm(e,t,l)}function qm(e,t,l){t.status="fulfilled",t.value=l,Lm(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,km(e,l)))}function bo(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Lm(t),t=t.next;while(t!==a)}e.action=null}function Lm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bm(e,t){return t}function Qm(e,t){if(_e){var l=Xe.formState;if(l!==null){e:{var a=be;if(_e){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}}Ta(a)}a=!1}a&&(t=l[0])}}return l=jt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bm,lastRenderedState:t},l.queue=a,l=uy.bind(null,be,a),a.dispatch=l,a=go(!1),u=No.bind(null,be,!1,a.queue),a=jt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=bb.bind(null,be,i,u,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Gm(e){var t=lt();return Ym(t,Ve,e)}function Ym(e,t,l){if(t=vo(e,t,Bm)[0],e=Ir(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ju(t)}catch(o){throw o===ci?Yr:o}else a=t;t=lt();var i=t.queue,u=i.dispatch;return l!==t.memoizedState&&(be.flags|=2048,hi(9,{destroy:void 0},xb.bind(null,i,l),null)),[a,u,e]}function xb(e,t){e.action=t}function Vm(e){var t=lt(),l=Ve;if(l!==null)return Ym(t,l,e);lt(),t=t.memoizedState,l=lt();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function hi(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=be.updateQueue,t===null&&(t=Wr(),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 Xm(){return lt().memoizedState}function es(e,t,l,a){var i=jt();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=lt();a=a===void 0?null:a;var u=i.memoizedState.inst;Ve!==null&&a!==null&&co(a,Ve.memoizedState.deps)?i.memoizedState=hi(t,u,l,a):(be.flags|=e,i.memoizedState=hi(1|t,u,l,a))}function Km(e,t){es(8390656,8,e,t)}function xo(e,t){ts(2048,8,e,t)}function Sb(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=Wr(),be.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Zm(e){var t=lt().memoizedState;return Sb({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Jm(e,t){return ts(4,2,e,t)}function Fm(e,t){return ts(4,4,e,t)}function $m(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,$m.bind(null,t,e),l)}function So(){}function Pm(e,t){var l=lt();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&co(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Im(e,t){var l=lt();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&co(t,a[1]))return a[0];if(a=e(),Sn){ba(!0);try{e()}finally{ba(!1)}}return l.memoizedState=[a,t],a}function Eo(e,t,l){return l===void 0||(la&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=cv(),be.lanes|=e,ka|=e,l)}function ey(e,t,l,a){return Zt(l,t)?l:Oa.current!==null?(e=Eo(e,l,a),Zt(e,t)||(it=!0),e):(la&106)===0||(la&1073741824)!==0&&(je&261930)===0?(it=!0,e.memoizedState=l):(e=cv(),be.lanes|=e,ka|=e,t)}function ty(e,t,l,a,i){var u=me.p;me.p=u!==0&&8>u?u:8;var o=ie.T,y={};y.types=o!==null?o.types:null,ie.T=y,No(e,!1,t,l);try{var S=i(),O=ie.S;if(O!==null&&O(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var M=vb(S,a);Ou(e,t,M,Pt(e))}else Ou(e,t,a,Pt(e))}catch(L){Ou(e,t,{then:function(){},status:"rejected",reason:L},Pt())}finally{me.p=u,o!==null&&y.types!==null&&(o.types=y.types),ie.T=o}}function Eb(){}function _o(e,t,l,a){if(e.tag!==5)throw Error(c(476));var i=ly(e).queue;ty(e,i,t,Gt,l===null?Eb:function(){return ay(e),l(a)})}function ly(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gt,baseState:Gt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:Gt},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ay(e){var t=ly(e);t.next===null&&(t=e.alternate.memoizedState),Ou(e,t.next.queue,{},Pt())}function To(){return gt(Ai)}function ny(){return lt().memoizedState}function iy(){return lt().memoizedState}function _b(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Pt();e=za(l);var a=ja(t,e,l);a!==null&&(Qt(a,t,l),Tu(a,t,l)),t={cache:Wc()},e.payload=t;return}t=t.return}}function Tb(e,t,l){var a=Pt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ls(e)?ry(t,l):(l=Gc(e,t,l,a),l!==null&&(Qt(l,e,a),sy(l,t,a)))}function uy(e,t,l){var a=Pt();Ou(e,t,l,a)}function Ou(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ls(e))ry(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,y=u(o,l);if(i.hasEagerState=!0,i.eagerState=y,Zt(y,o))return Mr(e,t,i,0),Xe===null&&Ar(),!1}catch{}finally{}if(l=Gc(e,t,i,a),l!==null)return Qt(l,e,a),sy(l,t,a),!0}return!1}function No(e,t,l,a){if(a={lane:2,revertLane:vf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ls(e)){if(t)throw Error(c(479))}else t=Gc(e,l,a,2),t!==null&&Qt(t,e,2)}function ls(e){var t=e.alternate;return e===be||t!==null&&t===be}function ry(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 sy(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ch(e,l)}}var as={readContext:gt,use:Pr,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et,useEffectEvent:et},cy={readContext:gt,use:Pr,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Km,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,es(4194308,4,$m.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=jt();t=t===void 0?null:t;var a=e();if(Sn){ba(!0);try{e()}finally{ba(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=jt();if(l!==void 0){var i=l(t);if(Sn){ba(!0);try{l(t)}finally{ba(!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=Tb.bind(null,be,e),[a.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=go(e);var t=e.queue,l=uy.bind(null,be,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:So,useDeferredValue:function(e,t){var l=jt();return Eo(l,e,t)},useTransition:function(){var e=go(!1);return e=ty.bind(null,be,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=be,i=jt();if(_e){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Xe===null)throw Error(c(349));(je&127)!==0||Om(a,t,l)}i.memoizedState=l;var u={value:l,getSnapshot:t};return i.queue=u,Km(Am.bind(null,a,u,e),[e]),a.flags|=2048,hi(9,{destroy:void 0},Rm.bind(null,a,u,l,t),null),l},useId:function(){var e=jt(),t=Xe.identifierPrefix;if(_e){var l=Ml,a=Al;l=(a&~(1<<32-Xt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=$r++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=pb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:To,useFormState:Qm,useActionState:Qm,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=No.bind(null,be,!0,l),l.dispatch=t,[e,t]},useMemoCache:yo,useCacheRefresh:function(){return jt().memoizedState=_b.bind(null,be)},useEffectEvent:function(e){var t=jt(),l={impl:e};return t.memoizedState=l,function(){if((He&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},oy={readContext:gt,use:Pr,useCallback:Pm,useContext:gt,useEffect:xo,useImperativeHandle:Wm,useInsertionEffect:Jm,useLayoutEffect:Fm,useMemo:Im,useReducer:Ir,useRef:Xm,useState:function(){return Ir(aa)},useDebugValue:So,useDeferredValue:function(e,t){var l=lt();return ey(l,Ve.memoizedState,e,t)},useTransition:function(){var e=Ir(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:ju(e),t]},useSyncExternalStore:jm,useId:ny,useHostTransitionStatus:To,useFormState:Gm,useActionState:Gm,useOptimistic:function(e,t){var l=lt();return Um(l,Ve,e,t)},useMemoCache:yo,useCacheRefresh:iy,useEffectEvent:Zm},Nb={readContext:gt,use:Pr,useCallback:Pm,useContext:gt,useEffect:xo,useImperativeHandle:Wm,useInsertionEffect:Jm,useLayoutEffect:Fm,useMemo:Im,useReducer:po,useRef:Xm,useState:function(){return po(aa)},useDebugValue:So,useDeferredValue:function(e,t){var l=lt();return Ve===null?Eo(l,e,t):ey(l,Ve.memoizedState,e,t)},useTransition:function(){var e=po(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:ju(e),t]},useSyncExternalStore:jm,useId:ny,useHostTransitionStatus:To,useFormState:Vm,useActionState:Vm,useOptimistic:function(e,t){var l=lt();return Ve!==null?Um(l,Ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:yo,useCacheRefresh:iy,useEffectEvent:Zm};function Co(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:Z({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var wo={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Pt(),i=za(a);i.payload=t,l!=null&&(i.callback=l),t=ja(e,i,a),t!==null&&(Qt(t,e,a),Tu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Pt(),i=za(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=ja(e,i,a),t!==null&&(Qt(t,e,a),Tu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Pt(),a=za(l);a.tag=2,t!=null&&(a.callback=t),t=ja(e,a,l),t!==null&&(Qt(t,e,l),Tu(t,e,l))}};function fy(e,t,l,a,i,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,o):t.prototype&&t.prototype.isPureReactComponent?!vu(l,a)||!vu(i,u):!0}function dy(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&&wo.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=Z({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function hy(e){Rr(e)}function my(e){console.error(e)}function yy(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 vy(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 py(e){return e=za(e),e.tag=3,e}function gy(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var u=a.value;e.payload=function(){return i(u)},e.callback=function(){vy(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){vy(t,l,a),typeof i!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Cb(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=bt.current,l!==null){switch(l.tag){case 31:case 13:case 19:return Tt===null?Ns():l.alternate===null&&tt===0&&(tt=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),hf(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)),hf(e,a,i)),!1}throw Error(c(435,l.tag))}return hf(e,a,i),Ns(),!1}if(_e)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Zc&&(e=Error(c(422),{cause:a}),bu(il(e,l)))):(a!==Zc&&(t=Error(c(423),{cause:a}),bu(il(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=il(a,l),i=zo(e.stateNode,a,i),ao(e,i),tt!==4&&(tt=2)),!1;var u=Error(c(520),{cause:a});if(u=il(u,l),qu===null?qu=[u]:qu.push(u),tt!==4&&(tt=2),t===null)return!0;a=il(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=zo(l.stateNode,a,e),ao(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"&&(Ha===null||!Ha.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=py(i),gy(i,e,l,a),ao(l,i),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var jo=Error(c(461)),it=!1;function st(e,t,l,a){t.child=e===null?Em(t,null,l,a):xn(t,e.child,l,a)}function by(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=oo(e,t,l,o,u,i),y=fo(),e!==null&&!it?(ho(e,t,i),na(e,t,i)):(_e&&y&&Hr(t),t.flags|=1,st(e,t,a,i),t.child)}function xy(e,t,l,a,i){if(e===null){var u=l.type;return typeof u=="function"&&!Yc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Sy(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,!Ho(e,i)){var o=u.memoizedProps;if(l=l.compare,l=l!==null?l:vu,l(o,a)&&e.ref===t.ref)return na(e,t,i)}return t.flags|=1,e=Pl(u,a),e.ref=t.ref,e.return=t,t.child=e}function Sy(e,t,l,a,i){if(e!==null){var u=e.memoizedProps;if(vu(u,a)&&e.ref===t.ref)if(it=!1,t.pendingProps=a=u,Ho(e,i))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,na(e,t,i)}return Oo(e,t,l,a,i)}function Ey(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 _y(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?Nm(t,u):io(),Cm(t);else return a=t.lanes=536870912,_y(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Gr(t,u.cachePool),Nm(t,u),Aa(),t.memoizedState=null):(e!==null&&Gr(t,null),io(),Aa());return st(e,t,i,l),t.child}function Ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _y(e,t,l,a,i){var u=Ic();return u=u===null?null:{parent:at._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Gr(t,null),io(),Cm(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 Ty(e,t,l){return xn(t,e.child,null,l),e=is(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function wb(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(a.mode==="hidden")return e=is(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ru(null,e);if(ro(t),(e=Ze)?(e=$v(e,sl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Al,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=rm(e),l.return=t,t.child=l,ht=t,Ze=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return is(t,a)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(ro(t),i)if(t.flags&256)t.flags&=-257,t=Ty(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(it||mn(e,t,l,!1),i=(l&e.childLanes)!==0,it||i){if(Oa.current===null){if(a=Xe,a!==null&&(o=oh(a,l),o!==0&&o!==u.retryLane))throw u.retryLane=o,on(e,o),Qt(a,e,o),jo;Ns()}t=Ty(e,t,l)}else e=u.treeContext,Ze=ol(o.nextSibling),ht=t,_e=!0,_a=null,sl=!1,e!==null&&om(t,e),t=is(t,a),t.flags|=134221824;return t}return e=Pl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Oo(e,t,l,a,i){return yn(t),l=oo(e,t,l,a,void 0,i),a=fo(),e!==null&&!it?(ho(e,t,i),na(e,t,i)):(_e&&a&&Hr(t),t.flags|=1,st(e,t,l,i),t.child)}function Ny(e,t,l,a,i,u){return yn(t),t.updateQueue=null,l=zm(t,a,l,i),wm(e),a=fo(),e!==null&&!it?(ho(e,t,u),na(e,t,u)):(_e&&a&&Hr(t),t.flags|=1,st(e,t,l,u),t.child)}function Cy(e,t,l,a,i){if(yn(t),t.stateNode===null){var u=ni,o=l.contextType;typeof o=="object"&&o!==null&&(u=gt(o)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=wo,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},to(t),o=l.contextType,u.context=typeof o=="object"&&o!==null?gt(o):ni,u.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(Co(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&&wo.enqueueReplaceState(u,u.state,null),Cu(t,a,u,i),Nu(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var y=t.memoizedProps,S=En(l,y);u.props=S;var O=u.context,M=l.contextType;o=ni,typeof M=="object"&&M!==null&&(o=gt(M));var L=l.getDerivedStateFromProps;M=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||O!==o)&&dy(t,u,a,o),wa=!1;var z=t.memoizedState;u.state=z,Cu(t,a,u,i),Nu(),O=t.memoizedState,y||z!==O||wa?(typeof L=="function"&&(Co(t,l,L,a),O=t.memoizedState),(S=wa||fy(t,l,S,a,z,O,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=O),u.props=a,u.state=O,u.context=o,a=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,lo(e,t),o=t.memoizedProps,M=En(l,o),u.props=M,L=t.pendingProps,z=u.context,O=l.contextType,S=ni,typeof O=="object"&&O!==null&&(S=gt(O)),y=l.getDerivedStateFromProps,(O=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==L||z!==S)&&dy(t,u,a,S),wa=!1,z=t.memoizedState,u.state=z,Cu(t,a,u,i),Nu();var A=t.memoizedState;o!==L||z!==A||wa||e!==null&&e.dependencies!==null&&Br(e.dependencies)?(typeof y=="function"&&(Co(t,l,y,a),A=t.memoizedState),(M=wa||fy(t,l,M,a,z,A,S)||e!==null&&e.dependencies!==null&&Br(e.dependencies))?(O||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&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===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&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,mi(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=xn(t,e.child,null,i),t.child=xn(t,null,l,i)):st(e,t,l,i),t.memoizedState=u.state,e=t.child):e=na(e,t,i),e}function wy(e,t,l,a){return dn(),t.flags|=256,st(e,t,l,a),t.child}var Ro={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ao(e){return{baseLanes:e,cachePool:vm()}}function Mo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Wt),e}function zy(e,t,l){var a=t.pendingProps,i=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(i?Ra(t):Aa(),(e=Ze)?(e=$v(e,sl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Al,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=rm(e),l.return=t,t.child=l,ht=t,Ze=null)):e=null,e===null)throw Ta(t);return Mf(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,i?(Aa(),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=Ao(l),a.childLanes=Mo(e,o,l),t.memoizedState=Ro,Ru(null,a)):(Ra(t),Do(t,u))}var y=e.memoizedState;if(y!==null){var S=y.dehydrated;if(S!==null)return zb(e,t,u,o,a,S,y,l)}return i?(Aa(),i=a.fallback,u=t.mode,y=e.child,S=y.sibling,a=Pl(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&1206910976,S!==null?i=Pl(S,i):(i=fn(i,u,l,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,Ru(null,a),a=t.child,i=e.child.memoizedState,i===null?i=Ao(l):(u=i.cachePool,u!==null?(y=at._currentValue,u=u.parent!==y?{parent:y,pool:y}:u):u=vm(),i={baseLanes:i.baseLanes|l,cachePool:u}),a.memoizedState=i,a.childLanes=Mo(e,o,l),t.memoizedState=Ro,Ru(e.child,a)):(Ra(t),l=e.child,e=l.sibling,l=Pl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function Do(e,t){return t=us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function us(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function rs(e,t,l){return xn(t,e.child,null,l),e=Do(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zb(e,t,l,a,i,u,o,y){if(l)return t.flags&256?(Ra(t),t.flags&=-257,rs(e,t,y)):t.memoizedState!==null?(Aa(),t.child=e.child,t.flags|=128,null):(Aa(),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=Ao(y),i.childLanes=Mo(e,a,y),t.memoizedState=Ro,Ru(null,i));if(Ra(t),Mf(u)){if(a=u.nextSibling&&u.nextSibling.dataset,a)var S=a.dgst;return a=S,a!==""&&(i=Error(c(419)),i.stack="",i.digest=a,bu({value:i,source:null,stack:null})),rs(e,t,y)}if(it||mn(e,t,y,!1),a=(y&e.childLanes)!==0,it||a){if(Oa.current!==null)return rs(e,t,y);if(a=Xe,a!==null&&(i=oh(a,y),i!==0&&i!==o.retryLane))throw o.retryLane=i,on(e,i),Qt(a,e,i),jo;return Af(u)||Ns(),rs(e,t,y)}return Af(u)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,Ze=ol(u.nextSibling),ht=t,_e=!0,_a=null,sl=!1,e!==null&&om(t,e),t=Do(t,i.children),t.flags|=134221824,t)}function jy(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Lr(e.return,t,l)}function Oy(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 Uo(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 ko(e,t,l){var a=t.pendingProps,i=a.revealOrder,u=a.tail;a=a.children;var o=xt.current;if(t.flags&128)return wu(t,o),null;var y=(o&2)!==0;if(y?(o=o&1|2,t.flags|=128):o&=1,wu(t,o),i==="backwards"&&e!==null?(Uo(e),st(e,t,a,l),Uo(e)):st(e,t,a,l),a=_e?gu:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jy(e,l,t);else if(e.tag===19)jy(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":l=Oy(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null,Uo(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=Oy(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 Ry(e,t,l){var a=t.pendingProps;return Na(t,t.type,a.value),st(e,t,a.children,l),t.child}function na(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ka|=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=Pl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Pl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ho(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Br(e)))}function jb(e,t,l){switch(t.tag){case 3:hr(t,t.stateNode.containerInfo),Na(t,at,e.memoizedState.cache),dn();break;case 27:case 5:cc(t);break;case 4:hr(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ro(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Ra(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):(Ra(t),e=na(e,t,l),e!==null?e.sibling:null)}Ra(t);break;case 19:if(t.flags&128)return ko(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 ko(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),wu(t,xt.current),a)break;return null;case 22:return t.lanes=0,Ey(e,t,l,t.pendingProps);case 24:Na(t,at,e.memoizedState.cache)}return na(e,t,l)}function Ay(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!Ho(e,l)&&(t.flags&128)===0)return it=!1,jb(e,t,l);it=(e.flags&131072)!==0}else it=!1,_e&&(t.flags&1048576)!==0&&cm(t,gu,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")Yc(e)?(a=En(e,a),t.tag=1,t=Cy(null,t,e,a,l)):(t.tag=0,t=Oo(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===N){t.tag=11,t=by(null,t,e,a,l);break e}else if(i===fe){t.tag=14,t=xy(null,t,e,a,l);break e}else if(i===de){t.tag=10,t.type=e,t=Ry(null,t,l);break e}}throw t=he(e)||e,Error(c(306,t,""))}}return t;case 0:return Oo(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=En(a,t.pendingProps),Cy(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,lo(e,t),Cu(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Na(t,at,a),a!==u.cache&&$c(t,[at],l,!0),Nu(),a=o.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=wy(e,t,a,l);break e}else if(a!==i){i=il(Error(c(424)),t),bu(i),t=wy(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=ol(e.firstChild),ht=t,_e=!0,_a=null,sl=!0,l=Em(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(dn(),a===i){t=na(e,t,l);break e}st(e,t,a,l)}t=t.child}return t;case 26:return mi(e,t),e===null?(l=ap(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(t.stateNode=kv(t.type,t.pendingProps,pa.current,t)):t.memoizedState=ap(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return cc(t),e===null&&_e&&(a=t.stateNode=Iv(t.type,t.pendingProps,pa.current),ht=t,sl=!0,i=Ze,Ba(t.type)?(Df=i,Ze=ol(a.firstChild)):Ze=i),st(e,t,t.pendingProps.children,l),mi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((i=a=Ze)&&(a=_x(a,t.type,t.pendingProps,sl),a!==null?(t.stateNode=a,ht=t,Ze=ol(a.firstChild),sl=!1,i=!0):i=!1),i||Ta(t)),cc(t),i=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,a=u.children,Nf(i,u)?a=null:o!==null&&Nf(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=oo(e,t,gb,null,null,l),Ai._currentValue=i),mi(e,t),st(e,t,a,l),t.child;case 6:return e===null&&_e&&((e=l=Ze)&&(l=Tx(l,t.pendingProps,sl),l!==null?(t.stateNode=l,ht=t,Ze=null,e=!0):e=!1),e||Ta(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):st(e,t,a,l),t.child;case 11:return by(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,mi(e,t),st(e,t,a,l),t.child;case 8:return st(e,t,t.pendingProps.children,l),t.child;case 12:return st(e,t,t.pendingProps.children,l),t.child;case 10:return Ry(e,t,l);case 9:return i=t.type._context,a=t.pendingProps.children,yn(t),i=gt(i),a=a(i),t.flags|=1,st(e,t,a,l),t.child;case 14:return xy(e,t,t.type,t.pendingProps,l);case 15:return Sy(e,t,t.type,t.pendingProps,l);case 19:return ko(e,t,l);case 31:return wb(e,t,l);case 22:return Ey(e,t,l,t.pendingProps);case 24:return yn(t),a=gt(at),e===null?(i=Ic(),i===null&&(i=Xe,u=Wc(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),t.memoizedState={parent:a,cache:i},to(t),Na(t,at,i)):((e.lanes&l)!==0&&(lo(e,t),Cu(t,null,null,l),Nu()),i=e.memoizedState,u=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Na(t,at,a)):(a=u.cache,Na(t,at,a),a!==i.cache&&$c(t,[at],l,!0))),st(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:_e&&Hr(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:mi(e,t),st(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ia(e){e.flags|=4}function qo(e,t,l,a,i){var u;if((u=(e.mode&32)!==0)&&(u=l===null?rp(t,a):rp(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(hv())e.flags|=8192;else throw bn=Vr,eo}else e.flags&=-16777217}function My(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sp(t))if(hv())e.flags|=8192;else throw bn=Vr,eo}function cs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rh():536870912,e.lanes|=t,bi|=t)}function Au(e,t){if(!_e)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 Ob(e,t,l){var a=t.pendingProps;switch(Kc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ta(at),Xn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ri(t)?ia(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jc())),Je(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(ia(t),u!==null?(Je(t),My(t,u)):(Je(t),qo(t,i,null,a,l))):u?u!==e.memoizedState?(ia(t),Je(t),My(t,u)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ia(t),Je(t),qo(t,i,e,a,l)),null;case 27:if(mr(t),l=pa.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Je(t),t.subtreeFlags&=-33554433,null}e=Ol.current,ri(t)?fm(t):(e=Iv(i,a,l),t.stateNode=e,ia(t))}return Je(t),t.subtreeFlags&=-33554433,null;case 5:if(mr(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Je(t),t.subtreeFlags&=-33554433,null}if(u=Ol.current,ri(t))fm(t);else{var o=Yu(pa.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[pt]=t,u[kt]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(Et(u,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ia(t)}}return Je(t),t.subtreeFlags&=-33554433,qo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=pa.current,ri(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ht,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[pt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Av(e.nodeValue,l)),e||Ta(t,!0)}else e=Yu(e).createTextNode(a),e[pt]=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[pt]=t}else dn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else l=Jc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ri(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[pt]=t}else dn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),i=!1}else i=Jc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),cs(t,t.updateQueue),Je(t),null);case 4:return Xn(),e===null&&xf(t.stateNode.containerInfo),t.flags|=67108864,Je(t),null;case 10:return ta(t.type),Je(t),null;case 19:if(so(t),a=t.memoizedState,a===null)return Je(t),null;if(i=(t.flags&128)!==0,u=a.rendering,u===null)if(i)Au(a,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Jr(e),u!==null){for(t.flags|=128,Au(a,!1),e=u.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)um(l,e),l=l.sibling;return wu(t,xt.current&1|2),_e&&Il(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Yt()>Ss&&(t.flags|=128,i=!0,Au(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),Au(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!_e)return Je(t),null}else 2*Yt()-a.renderingStartTime>Ss&&l!==536870912&&(t.flags|=128,i=!0,Au(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}if(a.tail!==null){e=a.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Yt(),e.sibling=null,u=xt.current,u=i?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||_e?wu(t,u):(l=u,Ke(bt,t),Ke(xt,l),Tt===null&&(Tt=t)),_e&&Il(t,a.treeForkCount),e}return Je(t),null;case 22:case 23:return Jt(t),uo(),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&&vt(pn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ta(at),Je(t),null;case 25:return null;case 30:return t.flags|=33554432,Je(t),null}throw Error(c(156,t.tag))}function Rb(e,t){switch(Kc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(at),Xn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mr(t),null;case 31:if(t.memoizedState!==null){if(Jt(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(Jt(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 so(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Xn(),null;case 10:return ta(t.type),null;case 22:case 23:return Jt(t),uo(),e!==null&&vt(pn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(at),null;case 25:return null;default:return null}}function Dy(e,t){switch(Kc(t),t.tag){case 3:ta(at),Xn();break;case 26:case 27:case 5:mr(t);break;case 4:Xn();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:so(t);break;case 10:ta(t.type);break;case 22:case 23:Jt(t),uo(),e!==null&&vt(pn);break;case 24:ta(at)}}function Mu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var u=l.create,o=l.inst;a=u(),o.destroy=a}l=l.next}while(l!==i)}}catch(y){Qe(t,t.return,y)}}function Ma(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){var o=a.inst,y=o.destroy;if(y!==void 0){o.destroy=void 0,i=t;var S=l,O=y;try{O()}catch(M){Qe(i,S,M)}}}a=a.next}while(a!==u)}}catch(M){Qe(t,t.return,M)}}function Uy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Tm(t,l)}catch(a){Qe(e,e.return,a)}}}function ky(e,t,l){l.props=En(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Qe(e,t,a)}}function Dl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var i=e.stateNode,u=$l(e.memoizedProps,i);(i.ref===null||i.ref.name!==u)&&(i.ref=Yv(u)),a=i.ref;break;case 7:if(e.stateNode===null){var o=new It(e);g(e.child,!1,Sx,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 St(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++)Fv(e.stateNode,t[l])}function Hy(e){for(var t=e.return;t!==null&&(Bo(t)&&Fv(e.stateNode,t.stateNode),!Lo(t));)t=t.return}function Du(e){for(var t=e.return;t!==null&&(Bo(t)&&Ex(e.stateNode,t.stateNode),!Lo(t));)t=t.return}function Lo(e){return e.tag===5||e.tag===3||e.tag===27}function Bo(e){return e&&e.tag===7&&e.stateNode!==null}function Qo(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 Go(e,t,l){try{var a=e.stateNode;ax(a,e.type,l,t),a[kt]=t}catch(i){Qe(e,e.return,i)}}function qy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function Yo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qy(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&&Ba(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 Vo(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=Rl)),os(e,a),ke=!0;else if(i!==4&&(i===27&&(os(e,a),a=null,Ba(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Vo(e,t,l,a),e=e.sibling;e!==null;)Vo(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),ke=!0;else if(i!==4&&(i===27&&(os(e,a),a=null,Ba(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 Ly(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Et(t,a,l),t[pt]=e,t[kt]=l}catch(u){Qe(e,e.return,u)}}var ds=!1,Ft=null;function By(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ds=!0)}var Ul=null;function Qy(){var e=Ul;return Ul=null,e}var qt=0;function yi(e,t,l,a,i){return qt=0,Gy(e.child,t,l,a,i)}function Gy(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,Qv(o,qt===0?t:t+"_"+qt,l),qt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Gy(e.child,t,l,a,i)&&(u=!0));e=e.sibling}return u}function kl(e,t){for(;e!==null;)e.tag===5?Gv(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||kl(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=Wl(t.default,t.share),t!=="none"&&(yi(e,l,t,null,!1)||kl(e.child,!1))}e=e.sibling}}function Xo(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,i=$l(a,l),u=Wl(a.default,l.paired?a.share:a.enter);u!=="none"?yi(e,i,u,null,!1)?(hs(e),l.paired||t||_i(e,a.onEnter)):kl(e.child,!1):hs(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Xo(e,t),e=e.sibling;else hs(e)}function Ko(e){if(Ft!==null&&Ft.size!==0){var t=Ft;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var i=t.get(a);if(i!==void 0){var u=Wl(l.default,l.share);if(u!=="none"&&(yi(e,a,u,null,!1)?(u=e.stateNode,i.paired=u,u.paired=i,_i(e,l.onShare)):kl(e.child,!1)),t.delete(a),t.size===0)break}}}Ko(e)}e=e.sibling}}}function Zo(e){if(e.tag===30){var t=e.memoizedProps,l=$l(t,e.stateNode),a=Ft!==null?Ft.get(l):void 0,i=Wl(t.default,a!==void 0?t.share:t.exit);i!=="none"&&(yi(e,l,i,null,!1)?a!==void 0?(i=e.stateNode,a.paired=i,i.paired=a,Ft.delete(l),_i(e,t.onShare)):_i(e,t.onExit):kl(e.child,!1)),Ft!==null&&Ko(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Zo(e),e=e.sibling;else Ft!==null&&Ko(e)}function Yy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=$l(t,e.stateNode);t=Wl(t.default,t.update),e.flags&=-5,t!=="none"&&yi(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Yy(e);e=e.sibling}}function Jo(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,kl(e.child,!1))}Jo(e)}e=e.sibling}}function ms(e){if(e.tag===30)e.stateNode.paired=null,kl(e.child,!1),Jo(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ms(e),e=e.sibling;else Jo(e)}function Vy(e){for(e=e.child;e!==null;)e.tag===30?kl(e.child,!1):(e.subtreeFlags&33554432)!==0&&Vy(e),e=e.sibling}function Fo(e,t,l,a,i,u,o){for(var y=!1;t!==null;){if(t.tag===5){var S=t.stateNode;if(u!==null&&qt<u.length){var O=u[qt],M=zf(S);(O.view||M.view)&&(y=!0);var L;if(L=(e.flags&4)===0)if(M.clip)L=!0;else{L=O.rect;var z=M.rect;L=L.y!==z.y||L.x!==z.x||L.height!==z.height||L.width!==z.width}L&&(e.flags|=4),M.abs?M=!O.abs:(O=O.rect,M=M.rect,M=O.height!==M.height||O.width!==M.width),M&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Qv(S,qt===0?l:l+"_"+qt,i),y&&(e.flags&4)!==0||(Ul===null&&(Ul=[]),Ul.push(S,qt===0?a:a+"_"+qt,t.memoizedProps)),qt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Fo(e,t.child,l,a,i,u,o)&&(y=!0));t=t.sibling}return y}function Xy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,i=$l(l,a),u=Wl(l.default,l.update),o;o=e.memoizedState,e.memoizedState=null,a=e;var y=e.child;qt=0,i=Fo(a,y,i,i,u,o,!1),(e.flags&4)!==0&&i&&_i(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Xy(e);e=e.sibling}}var mt=!1,Le=!1,Hl=!1,$o=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,yt=null,ql=!1,Uu=!1,ys=!1,Wo=!1;function Ab(e,t,l){if(e=e.containerInfo,_f=Mi,e=$h(e),kc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var y=0,S=-1,O=-1,M=0,L=0,z=e,A=null;t:for(;;){for(var W;z!==a||u!==0&&z.nodeType!==3||(S=y+u),z!==o||i!==0&&z.nodeType!==3||(O=y+i),z.nodeType===3&&(y+=z.nodeValue.length),(W=z.firstChild)!==null;)A=z,z=W;for(;;){if(z===e)break t;if(A===a&&++M===u&&(S=y),A===o&&++L===i&&(O=y),(W=z.nextSibling)!==null)break;z=A,A=z.parentNode}z=W}a=S===-1||O===-1?null:{start:S,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Tf={focusedElem:e,selectionRange:a},Mi=!1,l=(l&335544064)===l,yt=t,t=l?9270:1024;yt!==null;){if(e=yt,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&Zo(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&By(e),vs(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&Zo(a),vs(l);continue}else if(a!==null&&a.memoizedState!==null){l&&By(e),vs(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,yt=a):(l&&Yy(e),vs(l))}}Ft=null}function vs(e){for(;yt!==null;){var t=yt,l=e,a=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&a!==null){l=void 0,i=a.memoizedProps,a=a.memoizedState;var u=t.stateNode;try{var o=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)Rf(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Rf(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=$l(a.memoizedProps,a.stateNode),i=t.memoizedProps,i=Wl(i.default,i.update),i!=="none"&&yi(a,l,i,a.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(c(163))}if(a=t.sibling,a!==null){a.return=t.return,yt=a;break}yt=t.return}}function Zy(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Ll(e,l),a&4&&Mu(5,l);break;case 1:if(Ll(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){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&&Uy(l),a&512&&Dl(l,l.return);break;case 3:if(Ll(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Tm(e,t)}catch(o){Qe(l,l.return,o)}}break;case 27:t===null&&a&4&&Ly(l);case 26:case 5:Ll(e,l),t===null&&a&4&&Qo(l),a&512&&Dl(l,l.return);break;case 12:Ll(e,l);break;case 31:Ll(e,l),a&4&&Wy(e,l);break;case 13:Ll(e,l),a&4&&Py(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Vb.bind(null,l),Nx(e,l))));break;case 22:if(a=l.memoizedState!==null||mt,!a){var u=t!==null&&t.memoizedState!==null||Le;t=mt,i=Le,mt=a,(Le=u)&&!i?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),xl(e,l,a)):Ll(e,l),mt=t,Le=i}break;case 30:Ll(e,l),a&512&&Dl(l,l.return);break;case 7:a&512&&Dl(l,l.return);default:Ll(e,l)}}function Po(e,t){for(e=e.child;e!==null;)Jy(e,t),e=e.sibling}function Jy(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)}Io(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ke=!0}catch(S){Qe(e,e.return,S)}break;case 18:try{var y=e.stateNode;t?Bv(y,!0):Bv(e.stateNode,!1)}catch(S){Qe(e,e.return,S)}break;case 22:case 23:e.memoizedState===null&&Po(e,t);break;default:Po(e,t)}}function Io(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:Jy(l,a);break e;case 22:l.memoizedState===null&&Io(l,a);break e;default:Io(l,a)}}e=e.sibling}}function Fy(e){var t=e.alternate;t!==null&&(e.alternate=null,Fy(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 Fe=null,Lt=!1;function gl(e,t,l){for(l=l.child;l!==null;)$y(e,t,l),l=l.sibling}function $y(e,t,l){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(nu,l)}catch{}switch(l.tag){case 26:Le||St(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||St(l,t),Du(l);var a=Fe,i=Lt;Ba(l.type)&&(Fe=l.stateNode,Lt=!1),gl(e,t,l),ep(l.stateNode,l.type,l.memoizedProps),Fe=a,Lt=i;break;case 5:Le||St(l,t),Du(l);case 6:if(l.tag===6&&Du(l),a=Fe,i=Lt,Fe=null,gl(e,t,l),Fe=a,Lt=i,Fe!==null)if(Lt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(l.stateNode),ke=!0}catch(u){Qe(l,t,u)}else try{Fe.removeChild(l.stateNode),ke=!0}catch(u){Qe(l,t,u)}break;case 18:Fe!==null&&(Lt?(e=Fe,Lv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Di(e)):Lv(Fe,l.stateNode));break;case 4:a=Fe,i=Lt,Fe=l.stateNode.containerInfo,Lt=!0,gl(e,t,l),Fe=a,Lt=i;break;case 0:case 11:case 14:case 15:Ma(2,l,t),Le||Ma(4,l,t),gl(e,t,l);break;case 1:Le||(St(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ky(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:St(l,t),gl(e,t,l);break;case 7:Le||St(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 Py(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 Mb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ky),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ky),t;default:throw Error(c(435,e.tag))}}function ps(e,t){var l=Mb(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=Xb.bind(null,e,a);a.then(i,i)}})}function Ot(e,t,l){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],o=e,y=t,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Ba(S.type)){Fe=S.stateNode,Lt=!1;break e}break;case 5:Fe=S.stateNode,Lt=!1;break e;case 3:case 4:Fe=S.stateNode.containerInfo,Lt=!0;break e}S=S.return}if(Fe===null)throw Error(c(160));$y(o,y,u),Fe=null,Lt=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Iy(t,e,l),t=t.sibling}var bl=null;function Iy(e,t,l){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var u=0;u<a.length;u++){var o=a[u];o.ref.impl=o.nextImpl}Ot(t,e,l),Rt(e),i&4&&(Ma(3,e,e.return),Mu(3,e),Ma(5,e,e.return));break;case 1:Ot(t,e,l),Rt(e),i&512&&(Le||a===null||St(a,a.return)),i&64&&mt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=bl,Ot(t,e,l),Rt(e),i&512&&(Le||a===null||St(a,a.return)),i&4)if(i=a!==null?a.memoizedState:null,l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null)if(mt)e.stateNode=kv(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,i=u.ownerDocument||u;t:switch(t){case"title":a=i.getElementsByTagName("title")[0],(!a||a[ru]||a[pt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(t),i.head.insertBefore(a,i.querySelector("head > title"))),Et(a,t,l),a[pt]=e,dt(a),t=a;break e;case"link":if(u=up("link","href",i).get(t+(l.href||""))){for(o=0;o<u.length;o++)if(a=u[o],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(o,1);break t}}a=i.createElement(t),Et(a,t,l),i.head.appendChild(a);break;case"meta":if(u=up("meta","content",i).get(t+(l.content||""))){for(o=0;o<u.length;o++)if(a=u[o],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(o,1);break t}}a=i.createElement(t),Et(a,t,l),i.head.appendChild(a);break;default:throw Error(c(468,t))}a[pt]=e,dt(a),t=a}e.stateNode=t}else mt||qf(u,e.type,e.stateNode);else e.stateNode=ip(u,l,e.memoizedProps);else i!==l?(i===null?(t=a.stateNode,t===null||Le||t.parentNode.removeChild(t)):i.count--,l===null?mt||qf(u,e.type,e.stateNode):ip(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Go(e,e.memoizedProps,a.memoizedProps);break;case 27:Ot(t,e,l),Rt(e),i&512&&(Le||a===null||St(a,a.return)),a!==null&&i&4&&Go(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=Hl,Hl=!1,Ot(t,e,l),Hl=u,Rt(e),i&512&&(Le||a===null||St(a,a.return)),e.flags&32){t=e.stateNode;try{Wn(t,""),ke=!0}catch(M){Qe(e,e.return,M)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Go(e,t,a!==null?a.memoizedProps:t)),i&1024&&($o=!0);break;case 6:if(Ot(t,e,l),Rt(e),i&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,ke=!0}catch(M){Qe(e,e.return,M)}}break;case 3:if(ke=!1,As=null,u=bl,bl=Vu(t.containerInfo),Ot(t,e,l),bl=u,Rt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(M){Qe(e,e.return,M)}$o&&($o=!1,ev(e)),ke=!1;break;case 4:i=Hl,Hl=mt,a=xh(),u=bl,bl=Vu(e.stateNode.containerInfo),Ot(t,e,l),Rt(e),bl=u,ke&&Uu&&(ys=!0),ke=a,Hl=i;break;case 12:Ot(t,e,l),Rt(e);break;case 31:Ot(t,e,l),Rt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 13:Ot(t,e,l),Rt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xs=Yt()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 22:u=e.memoizedState!==null,o=a!==null&&a.memoizedState!==null;var y=mt,S=Le,O=Hl;mt=y||u,Hl=O||u,Le=S||o,Ot(t,e,l),Le=S,Hl=O,mt=y,Rt(e),i&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||o||mt||Le||(t=o||Le,l=mt,a=Le,mt=u||mt,Le=t,Da(e,2),mt=l,Le=a),!u&&Hl||Po(e,u)),i&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,ps(e,l))));break;case 19:Ot(t,e,l),Rt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ps(e,t)));break;case 30:i&512&&(Le||a===null||St(a,a.return)),i=xh(),u=Uu,o=(l&335544064)===l,y=e.memoizedProps,Uu=o&&Wl(y.default,y.update)!=="none",Ot(t,e,l),Rt(e),o&&a!==null&&ke&&(e.flags|=4),Uu=u,ke=i;break;case 21:break;case 7:i&512&&(Le||a===null||St(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:Ot(t,e,l),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(qy(a)){l=a;break}a=a.return}a=null;for(var i=e.return;i!==null;){if(Bo(i)){var u=i.stateNode;a===null?a=[u]:a.push(u)}if(Lo(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=Yo(e);fs(e,S,y,o);break;case 5:var O=l.stateNode;l.flags&32&&(Wn(O,""),l.flags&=-33);var M=Yo(e);fs(e,M,O,o);break;case 3:case 4:var L=l.stateNode.containerInfo,z=Yo(e);Vo(e,z,L,o);break;default:throw Error(c(161))}}catch(A){Qe(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ev(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ev(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;)tv(t,e),t=t.sibling;else Xy(t)}function tv(e,t){var l=e.alternate;if(l===null)Xo(e,!1);else switch(e.tag){case 3:if(Wo=ql=!1,Qy(),vi(t,e),!ql&&!ys){if(e=Ul,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var i=e[a+1];Gv(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}Ul=null;break;case 5:vi(t,e);break;case 4:a=ql,ql=!1,vi(t,e),ql&&(ys=!0),ql=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Xo(e,!1):vi(t,e));break;case 30:a=ql,i=Qy(),ql=!1,vi(t,e),ql&&(e.flags|=4);var u=e.memoizedProps,o=e.stateNode;t=$l(u,o),o=$l(l.memoizedProps,o);var y=Wl(u.default,u.update);y==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,qt=0,t=Fo(e,l,t,o,y,u,!0),qt!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(_i(e,e.memoizedProps.onUpdate),Ul=i):i!==null&&(i.push.apply(i,Ul),Ul=i),ql=(e.flags&32)!==0?!0:a;break;default:vi(t,e)}}function Ll(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zy(e,t.alternate,t),t=t.sibling}function Da(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:Ma(4,l,l.return),Da(l,a);break;case 1:St(l,l.return);var i=l.stateNode;typeof i.componentWillUnmount=="function"&&ky(l,l.return,i),Da(l,a);break;case 27:(a&2)!==0&&ep(l.stateNode,l.type,l.memoizedProps);case 5:St(l,l.return),l.tag!==5&&l.tag!==27||Du(l),Da(l,a);break;case 6:Du(l);break;case 26:St(l,l.return),i=l.stateNode,l.memoizedState!==null||i===null||Le||i.parentNode.removeChild(i),Da(l,a);break;case 22:l.memoizedState===null&&Da(l,a);break;case 30:St(l,l.return),Da(l,a);break;case 7:St(l,l.return);default:Da(l,a)}e=e.sibling}}function xl(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var a=t.alternate,i=e,u=t,o=u.flags,y=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:xl(i,u,l),Mu(4,u);break;case 1:if(xl(i,u,l),a=u,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Qe(a,a.return,M)}if(a=u,i=a.updateQueue,i!==null){var S=a.stateNode;try{var O=i.shared.hiddenCallbacks;if(O!==null)for(i.shared.hiddenCallbacks=null,i=0;i<O.length;i++)_m(O[i],S)}catch(M){Qe(a,a.return,M)}}y&&o&64&&Uy(u),Dl(u,u.return);break;case 27:(l&2)!==0&&Ly(u);case 5:u.tag!==5&&u.tag!==27||Hy(u),xl(i,u,l),y&&a===null&&o&4&&Qo(u),Dl(u,u.return);break;case 6:Hy(u);break;case 26:S=u.stateNode,u.memoizedState!==null||S===null||mt||qf(Vu(S.ownerDocument),u.type,S),xl(i,u,l),y&&a===null&&o&4&&Qo(u),Dl(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&&Py(i,u);break;case 22:u.memoizedState===null&&xl(i,u,l),Dl(u,u.return);break;case 30:xl(i,u,l),Dl(u,u.return);break;case 7:Dl(u,u.return);default:xl(i,u,l)}t=t.sibling}}function ef(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&xu(l))}function tf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xu(e))}function cl(e,t,l,a){var i=(l&335544064)===l;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)lv(e,t,l,a),t=t.sibling;else i&&Vy(t)}function lv(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&&Mu(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&&xu(u)));break;case 12:if(u&2048){cl(e,t,l,a),u=t.stateNode;try{var o=t.memoizedProps,y=o.id,S=o.onPostCommit;typeof S=="function"&&S(y,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(O){Qe(t,t.return,O)}}else cl(e,t,l,a);break;case 31:cl(e,t,l,a);break;case 13:cl(e,t,l,a);break;case 23:break;case 22:o=t.stateNode,y=t.alternate,t.memoizedState!==null?(i&&y!==null&&y.memoizedState===null&&ms(y),o._visibility&2?cl(e,t,l,a):ku(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&&ef(y,t);break;case 24:cl(e,t,l,a),u&2048&&tf(t.alternate,t);break;case 30:i&&(u=t.alternate,u!==null&&(kl(u.child,!0),kl(t.child,!0))),cl(e,t,l,a);break;default:cl(e,t,l,a)}}function 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,O=o.flags;switch(o.tag){case 0:case 11:case 15:pi(u,o,y,S,i),Mu(8,o);break;case 23:break;case 22:var M=o.stateNode;o.memoizedState!==null?M._visibility&2?pi(u,o,y,S,i):ku(u,o):(M._visibility|=2,pi(u,o,y,S,i)),i&&O&2048&&ef(o.alternate,o);break;case 24:pi(u,o,y,S,i),i&&O&2048&&tf(o.alternate,o);break;default:pi(u,o,y,S,i)}t=t.sibling}}function ku(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:ku(l,a),i&2048&&ef(a.alternate,a);break;case 24:ku(l,a),i&2048&&tf(a.alternate,a);break;default:ku(l,a)}t=t.sibling}}var _n=8192;function Tn(e,t,l){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)av(e,t,l),e=e.sibling}function av(e,t,l){switch(e.tag){case 26:Tn(e,t,l),e.flags&_n&&(e.memoizedState!==null?Lx(l,bl,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&op(l,e)));break;case 5:Tn(e,t,l),e.flags&_n&&(e=e.stateNode,(t&335544128)===t&&op(l,e));break;case 3:case 4:var a=bl;bl=Vu(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,Ft===null&&(Ft=new Map),Ft.set(a,i)}Tn(e,t,l);break;default:Tn(e,t,l)}}function nv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];yt=a,uv(a,e)}nv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)iv(e),e=e.sibling}function iv(e){switch(e.tag){case 0:case 11:case 15:Hu(e),e.flags&2048&&Ma(9,e,e.return);break;case 3:Hu(e);break;case 12:Hu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gs(e)):Hu(e);break;default:Hu(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];yt=a,uv(a,e)}nv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ma(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 uv(e,t){for(;yt!==null;){var l=yt;switch(l.tag){case 0:case 11:case 15:Ma(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:xu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,yt=a;else e:for(l=e;yt!==null;){a=yt;var i=a.sibling,u=a.return;if(Fy(a),a===l){yt=null;break e}if(i!==null){i.return=u,yt=i;break e}yt=u}}}var Db={getCacheForType:function(e){var t=gt(at),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return gt(at).controller.signal}},Ub=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,Ce=null,je=0,Be=0,$t=null,Ua=!1,gi=!1,lf=!1,ua=0,tt=0,ka=0,Nn=0,bs=0,Wt=0,bi=0,qu=null,Bt=null,af=!1,xs=0,rv=0,Ss=1/0,Es=null,Ha=null,Pe=0,Sl=null,Cn=null,Bl=0,nf=0,uf=null,sv=null,xi=null,Si=null,Ei=null,Lu=0,_s=null;function Pt(){return(He&2)!==0&&je!==0?je&-je:ie.T!==null?vf():fh()}function cv(){if(Wt===0)if((je&536870912)===0||_e){var e=pr;pr<<=1,(pr&3932160)===0&&(pr=262144),Wt=e}else Wt=536870912;return e=bt.current,e!==null&&(e.flags|=32),Wt}function _i(e,t){if(t!=null){var l=e.stateNode,a=l.ref;a===null&&(a=l.ref=Yv($l(e.memoizedProps,l))),Si===null&&(Si=[]),Si.push(t.bind(null,a))}}function Qt(e,t,l){(e===Xe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Ti(e,0),qa(e,je,Wt,!1)),uu(e,l),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(Nn|=l),tt===4&&qa(e,je,Wt,!1)),Ql(e))}function ov(e,t,l){if((He&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||iu(e,t),i=a?qb(e,t):sf(e,t,!0),u=a;do{if(i===0){gi&&!a&&qa(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!kb(l)){i=sf(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var y=e;i=qu;var S=y.current.memoizedState.isDehydrated;if(S&&(Ti(y,o).flags|=256),o=sf(y,o,!1),o!==2&&o!==6){if(lf&&!S){y.errorRecoveryDisabledLanes|=u,Nn|=u,i=4;break e}u=Bt,Bt=i,u!==null&&(Bt===null?Bt=u:Bt.push.apply(Bt,u))}i=o}if(u=!1,i!==2)continue}}if(i===1){Ti(e,0),qa(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:qa(a,t,Wt,!Ua);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=xs+300-Yt(),10<i)){if(qa(a,t,Wt,!Ua),br(a,0,!0)!==0)break e;Bl=t,a.timeoutHandle=wf(fv.bind(null,a,l,Bt,Es,af,t,Wt,Nn,bi,Ua,u,"Throttled",-0,0),i);break e}fv(a,l,Bt,Es,af,t,Wt,Nn,bi,Ua,u,null,-0,0)}}break}while(!0);Ql(e)}function fv(e,t,l,a,i,u,o,y,S,O,M,L,z,A){e.timeoutHandle=-1;var W=t.subtreeFlags,ue=(u&335544064)===u;if(L=null,(ue||W&8192||(W&16785408)===16785408)&&(L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rl},Ft=null,av(t,u,L),ue&&(W=L,ue=e.containerInfo,ue=(ue.nodeType===9?ue:ue.ownerDocument).__reactViewTransition,ue!=null&&(W.count++,W.waitingForViewTransition=!0,W=Zu.bind(W),ue.finished.then(W,W))),W=(u&62914560)===u?xs-Yt():(u&4194048)===u?rv-Yt():0,W=Bx(L,W),W!==null)){Bl=u,e.cancelPendingCommit=W(bv.bind(null,e,t,u,l,a,i,o,y,S,O,M,L,null,z,A)),qa(e,u,o,!O);return}bv(e,t,u,l,a,i,o,y,S,O,M,L)}function kb(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],u=i.getSnapshot;i=i.value;try{if(!Zt(u(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qa(e,t,l,a){t=uh(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-Xt(i),o=1<<u;a[u]=-1,i&=~o}l!==0&&sh(e,l,t)}function Ts(){return(He&6)===0?(Bu(0),!1):!0}function rf(){if(Ce!==null){if(Be===0)var e=Ce.return;else e=Ce,ea=hn=null,mo(e),oi=null,_u=0,e=Ce;for(;e!==null;)Dy(e.alternate,e),e=e.return;Ce=null}}function Ti(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,ux(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Bl=0,rf(),Xe=e,Ce=l=Pl(e.current,null),je=t,Be=0,$t=null,Ua=!1,gi=iu(e,t),lf=!1,bi=Wt=bs=Nn=ka=tt=0,Bt=qu=null,af=!1,ua=uh(e,t),Ar(),l}function dv(e,t){be=null,ie.H=as,t===ci||t===Yr?(t=bm(),Be=3):t===eo?(t=bm(),Be=4):Be=t===jo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$t=t,Ce===null&&(tt=1,ns(e,il(t,e.current)))}function hv(){var e=bt.current;return e===null?!0:(je&4194048)===je?Tt===null:(je&62914560)===je||(je&536870912)!==0?e===Tt:!1}function mv(){var e=ie.H;return ie.H=as,e===null?as:e}function yv(){var e=ie.A;return ie.A=Db,e}function Ns(){tt=4,Ua||(je&4194048)!==je&&bt.current!==null||(gi=!0),(ka&134217727)===0&&(Nn&134217727)===0||Xe===null||qa(Xe,je,Wt,!1)}function sf(e,t,l){var a=He;He|=2;var i=mv(),u=yv();(Xe!==e||je!==t)&&(Es=null,Ti(e,t)),t=!1;var o=tt;e:do try{if(Be!==0&&Ce!==null){var y=Ce,S=$t;switch(Be){case 8:rf(),o=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var O=Be;if(Be=0,$t=null,Ni(e,y,S,O),l&&gi){o=0;break e}break;default:O=Be,Be=0,$t=null,Ni(e,y,S,O)}}Hb(),o=tt;break}catch(M){dv(e,M)}while(!0);return t&&e.shellSuspendCounter++,ea=hn=null,He=a,ie.H=i,ie.A=u,Ce===null&&(Xe=null,je=0,Ar()),o}function Hb(){for(;Ce!==null;)vv(Ce)}function qb(e,t){var l=He;He|=2;var a=mv(),i=yv();Xe!==e||je!==t?(Es=null,Ss=Yt()+500,Ti(e,t)):gi=iu(e,t);e:do try{if(Be!==0&&Ce!==null){t=Ce;var u=$t;t:switch(Be){case 1:Be=0,$t=null,Ni(e,t,u,1);break;case 2:case 9:if(pm(u)){Be=0,$t=null,pv(t);break}t=function(){Be!==2&&Be!==9||Xe!==e||(Be=7),Ql(e)},u.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:pm(u)?(Be=0,$t=null,pv(t)):(Be=0,$t=null,Ni(e,t,u,7));break;case 5:var o=null;switch(Ce.tag){case 26:o=Ce.memoizedState;case 5:case 27:var y=Ce;if(o?sp(o):y.stateNode.complete){Be=0,$t=null;var S=y.sibling;if(S!==null)Ce=S;else{var O=y.return;O!==null?(Ce=O,Cs(O)):Ce=null}break t}}Be=0,$t=null,Ni(e,t,u,5);break;case 6:Be=0,$t=null,Ni(e,t,u,6);break;case 8:rf(),tt=6;break e;default:throw Error(c(462))}}Lb();break}catch(M){dv(e,M)}while(!0);return ea=hn=null,ie.H=a,ie.A=i,He=l,Ce!==null?0:(Xe=null,je=0,Ar(),tt)}function Lb(){for(;Ce!==null&&!l1();)vv(Ce)}function vv(e){var t=Ay(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?Cs(e):Ce=t}function pv(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ny(l,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Ny(l,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:mo(t);var a=t;a===ht&&(_e?(qr(a),a.tag===5&&a.stateNode!=null&&(Ze=a.stateNode)):(qr(a),_e=!0));default:Dy(l,t),t=Ce=um(t,ua),t=Ay(l,t,ua)}e.memoizedProps=e.pendingProps,t===null?Cs(e):Ce=t}function Ni(e,t,l,a){ea=hn=null,mo(t),oi=null,_u=0;var i=t.return;try{if(Cb(e,i,t,l,je)){tt=1,ns(e,il(l,e.current)),Ce=null;return}}catch(u){if(i!==null)throw Ce=i,u;tt=1,ns(e,il(l,e.current)),Ce=null;return}t.flags&32768?(_e||a===1?e=!0:gi||(je&536870912)!==0?e=!1:(Ua=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),gv(t,e)):Cs(t)}function Cs(e){var t=e;do{if((t.flags&32768)!==0){gv(t,Ua);return}e=t.return;var l=Ob(t.alternate,t,ua);if(l!==null){Ce=l;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);tt===0&&(tt=5)}function gv(e,t){do{var l=Rb(e.alternate,e);if(l!==null){l.flags&=32767,Ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=l}while(e!==null);tt=6,Ce=null}function bv(e,t,l,a,i,u,o,y,S,O,M,L){e.cancelPendingCommit=null;do ws();while(Pe!==0);if((He&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===Xe&&(Ce=Xe=null,je=0),Cn=t,Sl=e,Bl=l,uf=i,sv=a,Bb(e,t,l,o,y,S,L)}}function Bb(e,t,l,a,i,u,o){var y=t.lanes|t.childLanes;if(nf=y,y|=Qc,d1(e,l,y,a,i,u),Si=null,(l&335544064)===l?(Ei=mb(e),a=10262):(Ei=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,Kb(yr,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),ds=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=ie.T,ie.T=null,i=me.p,me.p=2,u=He,He|=4;try{Ab(e,t,l)}finally{He=u,me.p=i,ie.T=a}}Pe=1,ds?xi=dx(o,e.containerInfo,Ei,cf,of,Gb,ff,df,Qb):(cf(),of(),ff())}function Qb(e){if(Pe!==0){var t=Sl.onRecoverableError;t(e,{componentStack:null})}}function Gb(){Pe===3&&(Pe=0,tv(Cn,Sl),Pe=4)}function cf(){if(Pe===1){Pe=0;var e=Sl,t=Cn,l=Bl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=ie.T,ie.T=null;var i=me.p;me.p=2;var u=He;He|=4;try{Uu=ys=!1,Iy(t,e,l),l=Tf;var o=$h(e.containerInfo),y=l.focusedElem,S=l.selectionRange;if(o!==y&&y&&y.ownerDocument&&Fh(y.ownerDocument.documentElement,y)){if(S!==null&&kc(y)){var O=S.start,M=S.end;if(M===void 0&&(M=O),"selectionStart"in y)y.selectionStart=O,y.selectionEnd=Math.min(M,y.value.length);else{var L=y.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var A=z.getSelection(),W=y.textContent.length,ue=Math.min(S.start,W),xe=S.end===void 0?ue:Math.min(S.end,W);!A.extend&&ue>xe&&(o=xe,xe=ue,ue=o);var j=Jh(y,ue),T=Jh(y,xe);if(j&&T&&(A.rangeCount!==1||A.anchorNode!==j.node||A.anchorOffset!==j.offset||A.focusNode!==T.node||A.focusOffset!==T.offset)){var R=L.createRange();R.setStart(j.node,j.offset),A.removeAllRanges(),ue>xe?(A.addRange(R),A.extend(T.node,T.offset)):(R.setEnd(T.node,T.offset),A.addRange(R))}}}}for(L=[],A=y;A=A.parentNode;)A.nodeType===1&&L.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<L.length;y++){var q=L[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Mi=!!_f,Tf=_f=null}finally{He=u,me.p=i,ie.T=a}}e.current=t,Pe=2}}function of(){if(Pe===2){Pe=0;var e=Sl,t=Cn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=ie.T,ie.T=null;var a=me.p;me.p=2;var i=He;He|=4;try{Zy(e,t.alternate,t)}finally{He=i,me.p=a,ie.T=l}}Pe=3}}function ff(){if(Pe===4||Pe===3){Pe=0;var e=xi;xi=null,a1();var t=Sl,l=Cn,a=Bl,i=sv,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Pe=5:(Pe=0,Cn=Sl=null,xv(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(Ha=null),gc(a),l=l.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(nu,l,void 0,(l.current.flags&128)===128)}catch{}if(i!==null){l=ie.T,u=me.p,me.p=2,ie.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{ie.T=l,me.p=u}}if(i=Si,o=Ei,Ei=null,i!==null&&(Si=null,o===null&&(o=[]),e!==null))for(S=0;S<i.length;S++)l=(0,i[S])(o),l!==void 0&&e.finished.finally(l);(Bl&3)!==0&&ws(),Ql(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===_s?Lu++:(Lu=0,_s=t):(Lu=0,_s=null),Bu(0)}}function xv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xu(t)))}function ws(){return xi!==null&&(xi.skipTransition(),xi=null),cf(),of(),ff(),df()}function df(){if(Pe!==5)return!1;var e=Sl,t=nf;nf=0;var l=gc(Bl),a=ie.T,i=me.p;try{me.p=32>l?32:l,ie.T=null,l=uf,uf=null;var u=Sl,o=Bl;if(Pe=0,Cn=Sl=null,Bl=0,(He&6)!==0)throw Error(c(331));var y=He;if(He|=4,iv(u.current),lv(u,u.current,o,l),He=y,Bu(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(nu,u)}catch{}return!0}finally{me.p=i,ie.T=a,xv(e,t)}}function Sv(e,t,l){t=il(l,t),t=zo(e.stateNode,t,2),e=ja(e,t,2),e!==null&&(uu(e,2),Ql(e))}function Qe(e,t,l){if(e.tag===3)Sv(e,e,l);else for(;t!==null;){if(t.tag===3){Sv(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ha===null||!Ha.has(a))){e=il(l,e),l=py(2),a=ja(t,l,2),a!==null&&(gy(l,a,t,e),uu(a,2),Ql(a));break}}t=t.return}}function hf(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ub;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)||(lf=!0,i.add(l),e=Yb.bind(null,e,t,l),t.then(e,e))}function Yb(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&&((tt===4||tt===3&&(je&62914560)===je&&300>Yt()-xs)&&(He&2)===0?Ti(e,0):bs|=l,bi===je&&(bi=0)),Ql(e)}function Ev(e,t){t===0&&(t=rh()),e=on(e,t),e!==null&&(uu(e,t),Ql(e))}function Vb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ev(e,l)}function Xb(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),Ev(e,l)}function Kb(e,t){return mc(e,t)}var Ci=null,wi=null,mf=!1,zs=!1,yf=!1,La=0;function Ql(e){e!==wi&&e.next===null&&(wi===null?Ci=wi=e:wi=wi.next=e),zs=!0,mf||(mf=!0,Jb())}function Bu(e,t){if(!yf&&zs){yf=!0;do for(var l=!1,a=Ci;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var u=0;else{var o=a.suspendedLanes,y=a.pingedLanes;u=(1<<31-Xt(42|e)+1)-1,u&=i&~(o&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Cv(a,u))}else u=je,u=br(a,a===Xe?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||iu(a,u)||(l=!0,Cv(a,u));a=a.next}while(l);yf=!1}}function Zb(){_v()}function _v(){zs=mf=!1;var e=0;La!==0&&ix()&&(e=La);for(var t=Yt(),l=null,a=Ci;a!==null;){var i=a.next,u=Tv(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)&&(zs=!0)),a=i}Pe!==0&&Pe!==5||Bu(e),La!==0&&(La=0)}function Tv(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-Xt(u),y=1<<o,S=i[o];S===-1?((y&l)===0||(y&a)!==0)&&(i[o]=f1(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&&yc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||iu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&yc(a),gc(l)){case 2:case 8:l=nh;break;case 32:l=yr;break;case 268435456:l=ih;break;default:l=yr}return a=Nv.bind(null,e),l=mc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&yc(a),e.callbackPriority=2,e.callbackNode=null,2}function Nv(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ws()&&e.callbackNode!==l)return null;var a=je;return a=br(e,e===Xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(ov(e,a,t),Tv(e,Yt()),e.callbackNode!=null&&e.callbackNode===l?Nv.bind(null,e):null)}function Cv(e,t){if(ws())return null;ov(e,t,!0)}function Jb(){rx(function(){(He&6)!==0?mc(ah,Zb):_v()})}function vf(){if(La===0){var e=vn;e===0&&(e=vr,vr<<=1,(vr&261888)===0&&(vr=256)),La=e}return La}function wv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tr(e)}function Fb(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var u=wv((i[kt]||null).action),o=a.submitter;o&&(t=(t=o[kt]||null)?wv(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var y=new zr("action","action",null,a,i);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(La!==0){var S=new FormData(i,o);_o(l,{pending:!0,data:S,method:i.method,action:u},null,S)}}else typeof u=="function"&&(y.preventDefault(),S=new FormData(i,o),_o(l,{pending:!0,data:S,method:i.method,action:u},u,S))},currentTarget:i}]})}}for(var pf=0;pf<Bc.length;pf++){var gf=Bc[pf],$b=gf.toLowerCase(),Wb=gf[0].toUpperCase()+gf.slice(1);pl($b,"on"+Wb)}pl(Ih,"onAnimationEnd"),pl(em,"onAnimationIteration"),pl(tm,"onAnimationStart"),pl("dblclick","onDoubleClick"),pl("focusin","onFocus"),pl("focusout","onBlur"),pl(ub,"onTransitionRun"),pl(rb,"onTransitionStart"),pl(sb,"onTransitionCancel"),pl(lm,"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 Qu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function zv(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var o=a.length-1;0<=o;o--){var y=a[o],S=y.instance,O=y.currentTarget;if(y=y.listener,S!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=O;try{u(i)}catch(M){Rr(M)}i.currentTarget=null,u=S}else for(o=0;o<a.length;o++){if(y=a[o],S=y.instance,O=y.currentTarget,y=y.listener,S!==u&&i.isPropagationStopped())break e;u=y,i.currentTarget=O;try{u(i)}catch(M){Rr(M)}i.currentTarget=null,u=S}}}}function we(e,t){var l=t[hh];l===void 0&&(l=t[hh]=new Set);var a=e+"__bubble";l.has(a)||(jv(t,e,2,!1),l.add(a))}function bf(e,t,l){var a=0;t&&(a|=4),jv(l,e,a,t)}var js="_reactListening"+Math.random().toString(36).slice(2);function xf(e){if(!e[js]){e[js]=!0,vh.forEach(function(l){l!=="selectionchange"&&(Pb.has(l)||bf(l,!1,e),bf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[js]||(t[js]=!0,bf("selectionchange",!1,t))}}function jv(e,t,l,a){switch(gp(t)){case 2:var i=Vx;break;case 8:i=Xx;break;default:i=Bf}l=i.bind(null,t,l,e),i=void 0,!Cc||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 Sf(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}jh(function(){var O=u,M=Tc(l),L=[];e:{var z=am.get(e);if(z!==void 0){var A=zr,W=e;switch(e){case"keypress":if(Cr(l)===0)break e;case"keydown":case"keyup":A=k1;break;case"focusin":W="focus",A=Oc;break;case"focusout":W="blur",A=Oc;break;case"beforeblur":case"afterblur":A=Oc;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=Ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=T1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Q1;break;case Ih:case em:case tm:A=w1;break;case lm:A=Y1;break;case"scroll":case"scrollend":A=E1;break;case"wheel":A=X1;break;case"copy":case"cut":case"paste":A=j1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Dh;break;case"submit":A=L1;break;case"toggle":case"beforetoggle":A=Z1}var ue=(t&4)!==0,xe=!ue&&(e==="scroll"||e==="scrollend"),j=ue?z!==null?z+"Capture":null:z;ue=[];for(var T=O,R;T!==null;){var q=T;if(R=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||R===null||j===null||(q=cu(T,j),q!=null&&ue.push(Gu(T,q,R))),xe)break;T=T.return}0<ue.length&&(z=new A(z,W,null,l,M),L.push({event:z,listeners:ue}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",A&&l!==_c&&(W=l.relatedTarget||l.fromElement)&&(un(W)||W[Kn]))break e;(z||A)&&(W=M.window===M?M:(A=M.ownerDocument)?A.defaultView||A.parentWindow:window,z?(A=l.relatedTarget||l.toElement,z=O,A=A?un(A):null,A!==null&&(xe=h(A),ue=A.tag,A!==xe||ue!==5&&ue!==27&&ue!==6)&&(A=null)):(z=null,A=O),z!==A&&(ue=Ah,q="onMouseLeave",j="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Dh,q="onPointerLeave",j="onPointerEnter",T="pointer"),xe=z==null?W:su(z),R=A==null?W:su(A),W=new ue(q,T+"leave",z,l,M),W.target=xe,W.relatedTarget=R,q=null,un(M)===O&&(ue=new ue(j,T+"enter",A,l,M),ue.target=R,ue.relatedTarget=xe,q=ue),xe=q,ue=z&&A?oe(z,A,Ib):null,z!==null&&Ov(L,W,z,ue,!1),A!==null&&xe!==null&&Ov(L,xe,A,ue,!0)))}e:{if(z=O?su(O):window,A=z.nodeName&&z.nodeName.toLowerCase(),A==="select"||A==="input"&&z.type==="file")var le=Gh;else if(Bh(z))if(Yh)le=ab;else{le=tb;var Oe=eb}else A=z.nodeName,!A||A.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?O&&Ec(O.elementType)&&(le=Gh):le=lb;if(le&&(le=le(e,O))){Qh(L,le,l,M);break e}Oe&&Oe(e,z,O)}switch(Oe=O?su(O):window,e){case"focusin":(Bh(Oe)||Oe.contentEditable==="true")&&(ti=Oe,Hc=O,pu=null);break;case"focusout":pu=Hc=ti=null;break;case"mousedown":qc=!0;break;case"contextmenu":case"mouseup":case"dragend":qc=!1,Wh(L,l,M);break;case"selectionchange":if(ib)break;case"keydown":case"keyup":Wh(L,l,M)}var se;if(Ac)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ei?qh(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Uh&&l.locale!=="ko"&&(ei||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ei&&(se=Oh()):(xa=M,wc="value"in xa?xa.value:xa.textContent,ei=!0)),Oe=Os(O,ye),0<Oe.length&&(ye=new Mh(ye,e,null,l,M),L.push({event:ye,listeners:Oe}),se?ye.data=se:(se=Lh(l),se!==null&&(ye.data=se)))),(se=F1?$1(e,l):W1(e,l))&&(ye=Os(O,"onBeforeInput"),0<ye.length&&(Oe=new Mh("onBeforeInput","beforeinput",null,l,M),L.push({event:Oe,listeners:ye}),Oe.data=se)),Fb(L,e,O,l,M)}zv(L,t)})}function Gu(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=cu(e,l),i!=null&&a.unshift(Gu(e,i,u)),i=cu(e,t),i!=null&&a.push(Gu(e,i,u))),e.tag===3)return a;e=e.return}return[]}function Ib(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ov(e,t,l,a,i){for(var u=t._reactName,o=[];l!==null&&l!==a;){var y=l,S=y.alternate,O=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||O===null||(S=O,i?(O=cu(l,u),O!=null&&o.unshift(Gu(l,O,S))):i||(O=cu(l,u),O!=null&&o.push(Gu(l,O,S)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var ex=/\r\n?/g,tx=/\u0000|\uFFFD/g;function Rv(e){return(typeof e=="string"?e:""+e).replace(ex,`
`).replace(tx,"")}function Av(e,t){return t=Rv(t),Rv(e)===t}function Ge(e,t,l,a,i,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Wn(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Wn(e,""+a);else return;break;case"className":_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":wh(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=Rl);return;case"onScroll":a!=null&&we("scroll",e);return;case"onScrollEnd":a!=null&&we("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":we("beforetoggle",e),we("toggle",e),Er(e,"popover",a);break;case"xlinkActuate":Jl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":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=x1.get(l)||l,Er(e,l,a);else return}ke=!0}function Ef(e,t,l,a,i,u){switch(l){case"style":wh(e,a,u);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(c(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof a=="string")Wn(e,a);else if(typeof a=="number"||typeof a=="bigint")Wn(e,""+a);else return;break;case"onScroll":a!=null&&we("scroll",e);return;case"onScrollEnd":a!=null&&we("scrollend",e);return;case"onClick":a!=null&&(e.onclick=Rl);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!ph.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[kt]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,i),typeof a=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,a,i);break e}ke=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):Er(e,l,a)}return}ke=!0}function Et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("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":we("invalid",e);var y=u=o=i=null,S=null,O=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":O=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)}}_h(e,u,y,S,O,o,i,!1);return;case"select":we("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":we("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)}Nh(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":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(a=0;a<Qu.length;a++)we(Qu[a],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in l)if(l.hasOwnProperty(O)&&(a=l[O],a!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ge(e,t,O,a,l,null)}return;default:if(Ec(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&Ef(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 lx={};function ax(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,o=null,y=null,S=null,O=null,M=null;for(A in l){var L=l[A];if(l.hasOwnProperty(A)&&L!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":S=L;default:a.hasOwnProperty(A)||Ge(e,t,A,null,a,L)}}for(var z in a){var A=a[z];if(L=l[z],a.hasOwnProperty(z)&&(A!=null||L!=null))switch(z){case"type":A!==L&&(ke=!0),u=A;break;case"name":A!==L&&(ke=!0),i=A;break;case"checked":A!==L&&(ke=!0),O=A;break;case"defaultChecked":A!==L&&(ke=!0),M=A;break;case"value":A!==L&&(ke=!0),o=A;break;case"defaultValue":A!==L&&(ke=!0),y=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:A!==L&&Ge(e,t,z,A,a,L)}}xc(e,o,y,S,O,M,u,i);return;case"select":A=o=y=z=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&&(ke=!0),z=u;break;case"defaultValue":u!==S&&(ke=!0),y=u;break;case"multiple":u!==S&&(ke=!0),o=u;default:u!==S&&Ge(e,t,i,u,a,S)}t=y,l=o,a=A,z!=null?$n(e,!!l,z,!1):!!a!=!!l&&(t!=null?$n(e,!!l,t,!0):$n(e,!!l,l?[]:"",!1));return;case"textarea":A=z=null;for(y in l)if(i=l[y],l.hasOwnProperty(y)&&i!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default: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&&(ke=!0),z=i;break;case"defaultValue":i!==u&&(ke=!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)}Th(e,z,A);return;case"option":for(var W in l)if(z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Ge(e,t,W,null,a,z)}for(S in a)if(z=a[S],A=l[S],a.hasOwnProperty(S)&&z!==A&&(z!=null||A!=null))switch(S){case"selected":z!==A&&(ke=!0),e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ge(e,t,S,z,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 ue in l)z=l[ue],l.hasOwnProperty(ue)&&z!=null&&!a.hasOwnProperty(ue)&&Ge(e,t,ue,null,a,z);for(O in a)if(z=a[O],A=l[O],a.hasOwnProperty(O)&&z!==A&&(z!=null||A!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Ge(e,t,O,z,a,A)}return;default:if(Ec(t)){for(var xe in l)z=l[xe],l.hasOwnProperty(xe)&&z!==void 0&&!a.hasOwnProperty(xe)&&Ef(e,t,xe,void 0,a,z);for(M in a)z=a[M],A=l[M],!a.hasOwnProperty(M)||z===A||z===void 0&&A===void 0||Ef(e,t,M,z,a,A);return}}for(var j in l)z=l[j],l.hasOwnProperty(j)&&z!=null&&!a.hasOwnProperty(j)&&Ge(e,t,j,null,a,z);for(L in a)z=a[L],A=l[L],!a.hasOwnProperty(L)||z===A||z==null&&A==null||Ge(e,t,L,z,a,A)}function Mv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nx(){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&&Mv(o)){for(o=0,y=i.responseEnd,a+=1;a<l.length;a++){var S=l[a],O=S.startTime;if(O>y)break;var M=S.transferSize,L=S.initiatorType;M&&Mv(L)&&(S=S.responseEnd,o+=M*(S<y?1:(y-O)/(S-O)))}if(--a,t+=8*(u+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _f=null,Tf=null;function Yu(e){return e.nodeType===9?e:e.ownerDocument}function Dv(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 Uv(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 kv(e,t,l,a){return l=Yu(l).createElement(e),l[pt]=a,l[kt]=t,Et(l,e,t),dt(l),l}function Nf(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 Cf=null;function ix(){var e=window.event;return e&&e.type==="popstate"?e===Cf?!1:(Cf=e,!0):(Cf=null,!1)}var wf=typeof setTimeout=="function"?setTimeout:void 0,ux=typeof clearTimeout=="function"?clearTimeout:void 0,Hv=typeof Promise=="function"?Promise:void 0,qv=typeof requestAnimationFrame=="function"?requestAnimationFrame:wf,rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Hv<"u"?function(e){return Hv.resolve(null).then(e).catch(sx)}:wf;function sx(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function Lv(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")Uf(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Uf(l);for(var u=l.firstChild;u;){var o=u.nextSibling,y=u.nodeName;u[ru]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=o}}else l==="body"&&Uf(e.ownerDocument.body);l=i}while(l);Di(t)}function Bv(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 Qv(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 Gv(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 cx(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 cx(t,l,e)}function ox(e){return e.documentElement.clientHeight}function fx(e){this.addEventListener("load",e),this.addEventListener("error",e)}function dx(e,t,l,a,i,u,o,y,S){var O=t.nodeType===9?t:t.ownerDocument;try{var M=O.startViewTransition({update:function(){var z=O.defaultView,A=z.navigation&&z.navigation.transition,W=O.fonts.status;a();var ue=[];if(W==="loaded"&&(ox(O),O.fonts.status==="loading"&&ue.push(O.fonts.ready)),W=ue.length,e!==null)for(var xe=e.suspenseyImages,j=0,T=0;T<xe.length;T++){var R=xe[T];if(!R.complete){var q=R.getBoundingClientRect();if(0<q.bottom&&0<q.right&&q.top<z.innerHeight&&q.left<z.innerWidth){if(j+=cp(R),j>Ms){ue.length=W;break}R=new Promise(fx.bind(R)),ue.push(R)}}}if(0<ue.length)return z=Promise.race([Promise.all(ue),new Promise(function(le){return setTimeout(le,500)})]).then(i,i),(A?Promise.allSettled([A.finished,z]):z).then(u,u);if(i(),A)return A.finished.then(u,u);u()},types:l});O.__reactViewTransition=M;var L=[];return M.ready.then(function(){for(var z=O.documentElement.getAnimations({subtree:!0}),A=0;A<z.length;A++){var W=z[A],ue=W.effect,xe=ue.pseudoElement;if(xe!=null&&xe.startsWith("::view-transition")){L.push(W),W=ue.getKeyframes();for(var j=xe=void 0,T=!0,R=0;R<W.length;R++){var q=W[R],le=q.width;if(xe===void 0)xe=le;else if(xe!==le){T=!1;break}if(le=q.height,j===void 0)j=le;else if(j!==le){T=!1;break}delete q.width,delete q.height,q.transform==="none"&&delete q.transform}T&&xe!==void 0&&j!==void 0&&(ue.setKeyframes(W),T=getComputedStyle(ue.target,ue.pseudoElement),T.width!==xe||T.height!==j)&&(T=W[0],T.width=xe,T.height=j,T=W[W.length-1],T.width=xe,T.height=j,ue.setKeyframes(W))}}o()},function(z){O.__reactViewTransition===M&&(O.__reactViewTransition=null);try{if(typeof z=="object"&&z!==null)switch(z.name){case"InvalidStateError":(z.message==="View transition was skipped because document visibility state is hidden."||z.message==="Skipping view transition because document visibility state has become hidden."||z.message==="Skipping view transition because viewport size changed."||z.message==="Transition was aborted because of invalid state")&&(z=null)}z!==null&&S(z)}finally{a(),i(),o()}}),M.finished.finally(function(){for(var z=0;z<L.length;z++)L[z].cancel();O.__reactViewTransition===M&&(O.__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}:Z({},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 Yv(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 It(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}It.prototype.addEventListener=function(e,t,l){var a=null,i=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(Xv(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=zi(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:y,cleanup:i}),g(this._fragmentFiber.child,!1,hx,e,y,a)}this._eventListeners=u}};function hx(e,t,l,a){return D(e).addEventListener(t,l,a),!1}It.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=Xv(a,e,t,l),t!==-1)){var i=a[t];l=i.attachedListener;var u=i.cleanup;i=zi(i.optionsOrUseCapture),g(this._fragmentFiber.child,!1,mx,e,l,i),a.splice(t,1),u!==null&&u()}};function mx(e,t,l,a){return D(e).removeEventListener(t,l,a),!1}function zi(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Vv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Xv(e,t,l,a){if(e.length===0)return-1;a=Vv(a);for(var i=0;i<e.length;i++){var u=e[i];if(u.type===t&&u.listener===l&&Vv(u.optionsOrUseCapture)===a)return i}return-1}It.prototype.dispatchEvent=function(e){var t=w(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,zi(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,zi(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},It.prototype.focus=function(e){g(this._fragmentFiber.child,!0,Kv,e,void 0,void 0)};function Kv(e,t){return e.tag===6?!1:(e=D(e),Cx(e,t))}It.prototype.focusLast=function(e){var t=[];g(this._fragmentFiber.child,!0,jf,t,void 0,void 0);for(var l=t.length-1;0<=l&&!Kv(t[l],e);l--);};function jf(e,t){return t.push(e),!1}It.prototype.blur=function(){var e=w(this._fragmentFiber);e!==null&&(e=D(e),e=Yu(e).activeElement,e!==null&&g(this._fragmentFiber.child,!1,yx,e,void 0,void 0))};function yx(e,t){return e.tag===6?!1:(e=D(e),e===t||e.contains(t)?(t.blur(),!0):!1)}It.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),g(this._fragmentFiber.child,!1,vx,e,void 0,void 0)};function vx(e,t){return e.tag===6||(e=D(e),t.observe(e)),!1}It.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),g(this._fragmentFiber.child,!1,px,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 px(e,t){return e.tag===6||(e=D(e),t.unobserve(e)),!1}var El=[],Of=!1;function gx(e,t,l){El.push({fragmentInstance:e,observer:t,instance:l}),Of||(Of=!0,wx(function(){Of=!1;var a=El;El=[];for(var i=0;i<a.length;i++){var u=a[i];u.observer.unobserve(u.instance)}}))}It.prototype.getClientRects=function(){var e=[];return g(this._fragmentFiber.child,!1,bx,e,void 0,void 0),e};function bx(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}It.prototype.getRootNode=function(e){var t=w(this._fragmentFiber);return t===null?this:D(t).getRootNode(e)},It.prototype.compareDocumentPosition=function(e){var t=w(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];g(this._fragmentFiber.child,!1,jf,l,void 0,void 0);var a=D(t);if(l.length===0){if(l=a,B(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=Y(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=B(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||xx(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function xx(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=w(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=oe(l,u,V),t===null?t=!1:(g(t,!0,X,u,l),u=k,k=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=oe(a,u,V),t===null?t=!1:(g(t,!0,K,u,a),u=k,G=k=null,t=u!==null)),t):!1}function Zv(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}It.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];g(this._fragmentFiber.child,!1,jf,t,void 0,void 0);var l=e!==!1;if(t.length===0){var a=Y(this._fragmentFiber);if(a=l?a[1]||a[0]||w(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=D(a),Zv(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),Zv(i,l)):D(i).scrollIntoView(e),a+=l?-1:1}};function Sx(e,t){return e=D(e),Jv(e,t),!1}function Jv(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Fv(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,zi(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)}),Jv(e,t))}function Ex(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,zi(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?gx(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Rf(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":Rf(l),Sr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function _x(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ru])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=ol(e.nextSibling),e===null)break}return null}function Tx(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 $v(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 Af(e){return e.data==="$?"||e.data==="$~"}function Mf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Nx(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 Df=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 Pv(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 Cx(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 wx(e){qv(function(){qv(function(t){return e(t)})})}function Iv(e,t,l){switch(t=Yu(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function ep(e,t,l){for(var a in l){var i=l[a];l.hasOwnProperty(a)&&i!=null&&Ge(e,t,a,null,lx,i)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Rl&&(e.onclick=null),Sr(e)}function Uf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Sr(e)}var fl=new Map,tp=new Set;function Vu(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var ra=me.d;me.d={f:zx,r:jx,D:Ox,C:Rx,L:Ax,m:Mx,X:Ux,S:Dx,M:kx};function zx(){var e=ra.f(),t=Ts();return e||t}function jx(e){var t=Zn(e);t!==null&&t.tag===5&&t.type==="form"?ay(t):ra.r(e)}var ji=typeof document>"u"?null:document;function lp(e,t,l){var a=ji;if(a&&typeof t=="string"&&t){var i=al(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),tp.has(i)||(tp.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),Et(t,"link",e),dt(t),a.head.appendChild(t)))}}function Ox(e){ra.D(e),lp("dns-prefetch",e,null)}function Rx(e,t){ra.C(e,t),lp("preconnect",e,t)}function Ax(e,t,l){ra.L(e,t,l);var a=ji;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=Z({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),fl.set(u,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Xu(u))||t==="script"&&a.querySelector(Ku(u))))){var o=a.createElement("link");Et(o,"link",e),t==="style"&&(o[xr]=!0,o.onload=o.onerror=function(){yh(o)}),dt(o),a.head.appendChild(o)}}}function Mx(e,t){ra.m(e,t);var l=ji;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=Z({rel:"modulepreload",href:e},t),fl.set(u,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ku(u)))return}a=l.createElement("link"),Et(a,"link",e),dt(a),l.head.appendChild(a)}}}function Dx(e,t,l){ra.S(e,t,l);var a=ji;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(Xu(u)))y.loading=5;else{e=Z({rel:"stylesheet",href:e,"data-precedence":t},l),(l=fl.get(u))&&kf(e,l);var S=o=a.createElement("link");dt(S),Et(S,"link",e),S._p=new Promise(function(O,M){S.onload=O,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 Ux(e,t){ra.X(e,t);var l=ji;if(l&&e){var a=Jn(l).hoistableScripts,i=Ri(e),u=a.get(i);u||(u=l.querySelector(Ku(i)),u||(e=Z({src:e,async:!0},t),(t=fl.get(i))&&Hf(e,t),u=l.createElement("script"),dt(u),Et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function kx(e,t){ra.M(e,t);var l=ji;if(l&&e){var a=Jn(l).hoistableScripts,i=Ri(e),u=a.get(i);u||(u=l.querySelector(Ku(i)),u||(e=Z({src:e,async:!0,type:"module"},t),(t=fl.get(i))&&Hf(e,t),u=l.createElement("script"),dt(u),Et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function ap(e,t,l,a){var i=(i=pa.current)?Vu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=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(Xu(e)))?u._p||(o.instance=u,o.state.loading=5):(u=fl.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},fl.set(e,u)),Hx(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 Xu(e){return'link[rel="stylesheet"]['+e+"]"}function np(e){return Z({},e,{"data-precedence":e.precedence,precedence:null})}function Hx(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=yh.bind(null,t),Et(t,"link",l),dt(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Ri(e){return'[src="'+al(e)+'"]'}function Ku(e){return"script[async]"+e}function ip(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+al(l.href)+'"]');if(a)return t.instance=a,dt(a),a;var i=Z({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),dt(a),Et(a,"style",i),Rs(a,l.precedence,e),t.instance=a;case"stylesheet":i=Oi(l.href);var u=e.querySelector(Xu(i));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;a=np(l),(i=fl.get(i))&&kf(a,i),u=(e.ownerDocument||e).createElement("link"),dt(u);var o=u;return o._p=new Promise(function(y,S){o.onload=y,o.onerror=S}),Et(u,"link",a),t.state.loading|=4,Rs(u,l.precedence,e),t.instance=u;case"script":return u=Ri(l.src),(i=e.querySelector(Ku(u)))?(t.instance=i,dt(i),i):(a=l,(i=fl.get(u))&&(a=Z({},l),Hf(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),dt(i),Et(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,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 kf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hf(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 up(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[ru]||u[pt]||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 qf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function qx(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 rp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function sp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cp(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function op(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=cp(t),e.suspenseyImages.push(t)),e=Qx.bind(e),t.decode().then(e,e))}function Lx(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(Xu(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Zu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,dt(u);return}u=t.ownerDocument||t,a=np(a),(i=fl.get(i))&&kf(a,i),u=u.createElement("link"),dt(u);var o=u;o._p=new Promise(function(y,S){o.onload=y,o.onerror=S}),Et(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Zu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ms=0;function Bx(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*nx());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 fp(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 Zu(){this.count--,fp(this)}function Qx(){this.imgCount--,fp(this)}var Ds=null;function Us(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ds=new Map,t.forEach(Gx,e),Ds=null,Zu.call(e))}function Gx(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=Zu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:de,Provider:null,Consumer:null,_currentValue:Gt,_currentValue2:Gt,_threadCount:0};function Yx(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=vc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.hiddenUpdates=vc(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 dp(e,t,l,a,i,u,o,y,S,O,M,L){return e=new Yx(e,t,l,o,S,O,M,L,y),t=1,u===!0&&(t|=24),u=Ht(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},to(u),e}function hp(e){return e?(e=ni,e):ni}function mp(e,t,l,a,i,u){i=hp(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=ja(e,a,t),l!==null&&(Qt(l,e,t),Tu(l,e,t))}function yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Lf(e,t){yp(e,t),(e=e.alternate)&&yp(e,t)}function vp(e){if(e.tag===13||e.tag===31){var t=on(e,67108864);t!==null&&Qt(t,e,67108864),Lf(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=Pt();t=pc(t);var l=on(e,t);l!==null&&Qt(l,e,t),Lf(e,t)}}var Mi=!0;function Vx(e,t,l,a){var i=ie.T;ie.T=null;var u=me.p;try{me.p=2,Bf(e,t,l,a)}finally{me.p=u,ie.T=i}}function Xx(e,t,l,a){var i=ie.T;ie.T=null;var u=me.p;try{me.p=8,Bf(e,t,l,a)}finally{me.p=u,ie.T=i}}function Bf(e,t,l,a){if(Mi){var i=Qf(a);if(i===null)Sf(e,t,a,ks,l),bp(e,a);else if(Zx(i,e,t,l,a))a.stopPropagation();else if(bp(e,a),t&4&&-1<Kx.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-Xt(o);y.entanglements[1]|=S,o&=~S}Ql(u),(He&6)===0&&(Ss=Yt()+500,Bu(0))}}break;case 31:case 13:y=on(u,2),y!==null&&Qt(y,u,2),Ts(),Lf(u,2)}if(u=Qf(a),u===null&&Sf(e,t,a,ks,l),u===i)break;i=u}i!==null&&a.stopPropagation()}else Sf(e,t,a,null,l)}}function Qf(e){return e=Tc(e),Gf(e)}var ks=null;function Gf(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=p(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 gp(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(n1()){case ah:return 2;case nh:return 8;case yr:case i1:return 32;case ih:return 268435456;default:return 32}default:return 32}}var Yf=!1,Qa=null,Ga=null,Ya=null,Ju=new Map,Fu=new Map,Va=[],Kx="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 bp(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Ju.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fu.delete(t.pointerId)}}function $u(e,t,l,a,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Zn(t),t!==null&&vp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Zx(e,t,l,a,i){switch(t){case"focusin":return Qa=$u(Qa,e,t,l,a,i),!0;case"dragenter":return Ga=$u(Ga,e,t,l,a,i),!0;case"mouseover":return Ya=$u(Ya,e,t,l,a,i),!0;case"pointerover":var u=i.pointerId;return Ju.set(u,$u(Ju.get(u)||null,e,t,l,a,i)),!0;case"gotpointercapture":return u=i.pointerId,Fu.set(u,$u(Fu.get(u)||null,e,t,l,a,i)),!0}return!1}function xp(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,dh(e.priority,function(){pp(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,dh(e.priority,function(){pp(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=Qf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);_c=a,l.target.dispatchEvent(a),_c=null}else return t=Zn(l),t!==null&&vp(t),e.blockedOn=l,!1;t.shift()}return!0}function Sp(e,t,l){Hs(e)&&l.delete(t)}function Jx(){Yf=!1,Qa!==null&&Hs(Qa)&&(Qa=null),Ga!==null&&Hs(Ga)&&(Ga=null),Ya!==null&&Hs(Ya)&&(Ya=null),Ju.forEach(Sp),Fu.forEach(Sp)}function qs(e,t){e.blockedOn===t&&(e.blockedOn=null,Yf||(Yf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Jx)))}var Ls=null;function Ep(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(Gf(a||l)===null)continue;break}var u=Zn(l);u!==null&&(e.splice(t,3),t-=3,_o(u,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function Di(e){function t(S){return qs(S,e)}Qa!==null&&qs(Qa,e),Ga!==null&&qs(Ga,e),Ya!==null&&qs(Ya,e),Ju.forEach(t),Fu.forEach(t);for(var l=0;l<Va.length;l++){var a=Va[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Va.length&&(l=Va[0],l.blockedOn===null);)xp(l),l.blockedOn===null&&Va.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[kt]||null;if(typeof u=="function")o||Ep(l);else if(o){var y=null;if(u&&u.hasAttribute("formAction")){if(i=u,o=u[kt]||null)y=o.formAction;else if(Gf(i)!==null)continue}else y=o.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),Ep(l)}}}function _p(){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 Vf(e){this._internalRoot=e}Bs.prototype.render=Vf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Pt();mp(l,a,e,t,null,null)},Bs.prototype.unmount=Vf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mp(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=fh();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Va.length&&t!==0&&t<Va[l].priority;l++);Va.splice(l,0,e),l===0&&xp(e)}};var Tp=r.version;if(Tp!=="19.3.1")throw Error(c(527,Tp,"19.3.1"));me.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Fx={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qs.isDisabled&&Qs.supportsFiber)try{nu=Qs.inject(Fx),Vt=Qs}catch{}}return Pu.createRoot=function(e,t){if(!f(e))throw Error(c(299));var l=!1,a="",i=hy,u=my,o=yy;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=dp(e,1,!1,null,null,l,a,null,i,u,o,_p),e[Kn]=t.current,xf(e),new Vf(t)},Pu.hydrateRoot=function(e,t,l){if(!f(e))throw Error(c(299));var a=!1,i="",u=hy,o=my,y=yy,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=dp(e,1,!0,t,l??null,a,i,S,u,o,y,_p),t.context=hp(null),l=t.current,a=Pt(),a=pc(a),i=za(a),i.callback=null,ja(l,i,a),l=a,t.current.lanes=l,uu(t,l),Ql(t),e[Kn]=t.current,xf(e),new Bs(t)},Pu.version="19.3.1",Pu}var Up;function i2(){if(Up)return Jf.exports;Up=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(),Jf.exports=n2(),Jf.exports}var u2=i2();const r2=Rg(u2);/**
* 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 zd=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Mg=/^[\\/]{2}/;function s2(n,r){return r+n.replace(/\\/g,"/")}var kp="popstate";function Hp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function c2(n={}){function r(f,h){let{pathname:d="/",search:p="",hash:b=""}=Gn(f.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),ad("",{pathname:d,search:p,hash:b},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function s(f,h){let d=f.document.querySelector("base"),p="";if(d&&d.getAttribute("href")){let b=f.location.href,v=b.indexOf("#");p=v===-1?b:b.slice(0,v)}return p+"#"+(typeof h=="string"?h:Bn(h))}function c(f,h){el(f.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return f2(r,s,c,n)}function We(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function el(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function o2(){return Math.random().toString(36).substring(2,10)}function qp(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 ad(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||o2(),mask:f}}function Bn({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 f2(n,r,s,c={}){let{window:f=document.defaultView,v5Compat:h=!1}=c,d=f.history,p="POP",b=null,v=x();v==null&&(v=0,d.replaceState({...d.state,idx:v},""));function x(){return(d.state||{idx:null}).idx}function g(){p="POP";let D=x(),k=D==null?null:D-v;v=D,b&&b({action:p,location:H.location,delta:k})}function w(D,k){p="PUSH";let G=Hp(D)?D:ad(H.location,D,k);s&&s(G,D),v=x()+1;let X=qp(G,v),K=H.createHref(G.mask||G);try{d.pushState(X,"",K)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;f.location.assign(K)}h&&b&&b({action:p,location:H.location,delta:1})}function B(D,k){p="REPLACE";let G=Hp(D)?D:ad(H.location,D,k);s&&s(G,D),v=x();let X=qp(G,v),K=H.createHref(G.mask||G);d.replaceState(X,"",K),h&&b&&b({action:p,location:H.location,delta:0})}function Y(D){return d2(f,D)}let H={get action(){return p},get location(){return n(f,d)},listen(D){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(kp,g),b=D,()=>{f.removeEventListener(kp,g),b=null}},createHref(D){return r(f,D)},createURL:Y,encodeLocation(D){let k=Y(D);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:w,replace:B,go(D){return d.go(D)}};return H}function d2(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:Bn(r);return f=f.replace(/ $/,"%20"),!s&&Mg.test(f)&&(f=c+f),new URL(f,c)}function Dg(n,r,s="/"){return h2(n,r,s,!1)}function h2(n,r,s,c,f){let h=typeof r=="string"?Gn(r):r,d=ma(h.pathname||"/",s);if(d==null)return null;let p=m2(n),b=null,v=N2(d);for(let x=0;b==null&&x<p.length;++x)b=T2(p[x],v,c);return b}function m2(n){let r=Ug(n);return y2(r),r}function Ug(n,r=[],s=[],c="",f=!1){let h=(d,p,b=f,v)=>{let x={relativePath:v===void 0?d.path||"":v,caseSensitive:d.caseSensitive===!0,childrenIndex:p,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]),w=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}".`),Ug(d.children,r,w,g,b)),!(d.path==null&&!d.index)&&r.push({path:g,score:E2(g,d.index),routesMeta:w.map((B,Y)=>{let[H,D]=qg(B.relativePath,B.caseSensitive,Y===w.length-1);return{...B,matcher:H,compiledParams:D}})})};return n.forEach((d,p)=>{var b;if(d.path===""||!((b=d.path)!=null&&b.includes("?")))h(d,p);else for(let v of kg(d.path))h(d,p,!0,v)}),r}function kg(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=kg(c.join("/")),p=[];return p.push(...d.map(b=>b===""?h:[h,b].join("/"))),f&&p.push(...d),p.map(b=>n.startsWith("/")&&b===""?"/":b)}function y2(n){n.sort((r,s)=>r.score!==s.score?s.score-r.score:_2(r.routesMeta.map(c=>c.childrenIndex),s.routesMeta.map(c=>c.childrenIndex)))}var v2=/^:[\w-]+$/,p2=3,g2=2,b2=1,x2=10,S2=-2,Lp=n=>n==="*";function E2(n,r){let s=n.split("/"),c=s.length;return s.some(Lp)&&(c+=S2),r&&(c+=g2),s.filter(f=>!Lp(f)).reduce((f,h)=>f+(v2.test(h)?p2:h===""?b2:x2),c)}function _2(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 T2(n,r,s=!1){let{routesMeta:c}=n,f={},h="/",d=[];for(let p=0;p<c.length;++p){let b=c[p],v=p===c.length-1,x=h==="/"?r:r.slice(h.length)||"/",g={path:b.relativePath,caseSensitive:b.caseSensitive,end:v},w=b.matcher&&b.compiledParams?Hg(g,x,b.matcher,b.compiledParams):Ws(g,x),B=b.route;if(!w&&v&&s&&!c[c.length-1].route.index&&(w=Ws({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},x)),!w)return null;Object.assign(f,w.params),d.push({params:f,pathname:Cl([h,w.pathname]),pathnameBase:z2(Cl([h,w.pathnameBase])),route:B}),w.pathnameBase!=="/"&&(h=Cl([h,w.pathnameBase]))}return d}function Ws(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,c]=qg(n.path,n.caseSensitive,n.end);return Hg(n,r,s,c)}function Hg(n,r,s,c){let f=r.match(s);if(!f)return null;let h=f[0],d=$i(h,1),p=f.slice(1);return{params:c.reduce((v,{paramName:x,isOptional:g},w)=>{if(x==="*"){let Y=p[w]||"";d=$i(h.slice(0,h.length-Y.length),1)}const B=p[w];return g&&!B?v[x]=void 0:v[x]=(B||"").replace(/%2F/g,"/"),v},{}),pathname:h,pathnameBase:d,pattern:n}}function qg(n,r=!1,s=!0){el(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,b,v,x)=>{if(c.push({paramName:p,isOptional:b!=null}),b){let g=x.charAt(v+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 N2(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return el(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function ma(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,c=n.charAt(s);return c&&c!=="/"?null:n.slice(s)||"/"}function C2(n,r="/"){let{pathname:s,search:c="",hash:f=""}=typeof n=="string"?Gn(n):n,h;return s?(s=Lg(s),s.startsWith("/")||s.startsWith("\\")?h=Bp(s.substring(1),"/"):h=Bp(s,r)):h=r,{pathname:h,search:j2(c),hash:O2(f)}}function Bp(n,r){let s=$i(r).split("/");return n.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function Pf(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 w2(n){return n.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function jd(n){let r=w2(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("?"),Pf("?","pathname","search",f)),We(!f.pathname||!f.pathname.includes("#"),Pf("#","pathname","hash",f)),We(!f.search||!f.search.includes("#"),Pf("#","search","hash",f)));let h=n===""||f.pathname==="",d=h?"/":f.pathname,p;if(d==null)p=s;else{let g=r.length-1;if(!c&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),g-=1;f.pathname=w.join("/")}p=g>=0?r[g]:"/"}let b=C2(f,p),v=d&&d!=="/"&&d.endsWith("/"),x=(h||d===".")&&s.endsWith("/");return!b.pathname.endsWith("/")&&(v||x)&&(b.pathname+="/"),b}var Lg=n=>n.replace(/[\\/]{2,}/g,"/"),Cl=n=>Lg(n.join("/"));function $i(n,r=0){let s=n.length;for(;s>r&&n.charCodeAt(s-1)===47;)s--;return s===n.length?n:n.slice(0,s)}var z2=n=>$i(n).replace(/^\/*/,"/"),j2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,O2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,R2=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 A2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function M2(n){let r=n.map(s=>s.route.path).filter(Boolean);return Cl(r)||"/"}var Bg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qg(n,r){let s=n;if(typeof s!="string"||!zd.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let c=s,f=!1;if(Bg)try{let h=new URL(window.location.href),d=Mg.test(s)?new URL(s2(s,h.protocol)):new URL(s),p=ma(d.pathname,r);d.origin===h.origin&&p!=null?s=p+d.search+d.hash:f=!0}catch{el(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Qp=new URL("http://localhost");function Od(n){if(n.createURL)return n.createURL("/");try{return new URL(n.createHref("/"),Qp)}catch{return Qp}}function If(n,r){return n.origin===r.origin&&(n.origin!=="null"||n.protocol===r.protocol&&n.host===r.host)}function D2(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 Rd(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&&!If(f,s),p=!If(h,s);if(c==="reject"){if(d||p)throw new Error("External navigation is not allowed")}else if(p&&(f==null||!D2(n,f)||!If(f,h)))throw new Error("External navigation is not allowed")}var Gg=["POST","PUT","PATCH","DELETE"];new Set(Gg);var U2=["GET",...Gg];new Set(U2);var k2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function H2(n){try{return k2.includes(new URL(n).protocol)}catch{return!1}}var Ii=E.createContext(null);Ii.displayName="DataRouter";var lc=E.createContext(null);lc.displayName="DataRouterState";var Yg=E.createContext(!1);function q2(){return E.useContext(Yg)}var Vg=E.createContext({isTransitioning:!1});Vg.displayName="ViewTransition";var L2=E.createContext(new Map);L2.displayName="Fetchers";var B2=E.createContext(null);B2.displayName="Await";var tl=E.createContext(null);tl.displayName="Navigation";var or=E.createContext(null);or.displayName="Location";var wl=E.createContext({outlet:null,matches:[],isDataRoute:!1});wl.displayName="Route";var Ad=E.createContext(null);Ad.displayName="RouteError";var Xg="REACT_ROUTER_ERROR",Q2="REDIRECT",G2="ROUTE_ERROR_RESPONSE";function Y2(n){if(n.startsWith(`${Xg}:${Q2}:{`))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 V2(n){if(n.startsWith(`${Xg}:${G2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new R2(r.status,r.statusText,r.data)}catch{}}function X2(n,{relative:r}={}){We(eu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:c}=E.useContext(tl),{hash:f,pathname:h,search:d}=fr(n,{relative:r}),p=h;return s!=="/"&&(p=h==="/"?s:Cl([s,h])),c.createHref({pathname:p,search:d,hash:f})}function eu(){return E.useContext(or)!=null}function vl(){return We(eu(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(or).location}var Kg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zg(n){E.useContext(tl).static||E.useLayoutEffect(n)}function ac(){let{isDataRoute:n}=E.useContext(wl);return n?uS():K2()}function K2(){We(eu(),"useNavigate() may be used only in the context of a <Router> component.");let n=E.useContext(Ii),{basename:r,navigator:s}=E.useContext(tl),{matches:c}=E.useContext(wl),{pathname:f}=vl(),h=JSON.stringify(jd(c)),d=E.useRef(!1);return Zg(()=>{d.current=!0}),E.useCallback((b,v={})=>{if(el(d.current,Kg),!d.current)return;if(typeof b=="number"){s.go(b);return}let x=tc(b,JSON.parse(h),f,v.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Cl([r,x.pathname])),Rd(typeof b=="string"?b:Bn(b),s.createHref(x),Od(s),"reject"),(v.replace?s.replace:s.push)(x,v.state,v)},[r,s,h,f,n])}var Z2=E.createContext(null);function J2(n){let r=E.useContext(wl).outlet;return E.useMemo(()=>r&&E.createElement(Z2.Provider,{value:n},r),[r,n])}function fr(n,{relative:r}={}){let{matches:s}=E.useContext(wl),{pathname:c}=vl(),f=JSON.stringify(jd(s));return E.useMemo(()=>tc(n,JSON.parse(f),c,r==="path"),[n,f,c,r])}function F2(n,r){return Jg(n,r)}function Jg(n,r,s){var D;We(eu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(tl),{matches:f}=E.useContext(wl),h=f[f.length-1],d=h?h.params:{},p=h?h.pathname:"/",b=h?h.pathnameBase:"/",v=h&&h.route;{let k=v&&v.path||"";$g(p,!v||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let x=vl(),g;if(r){let k=typeof r=="string"?Gn(r):r;We(b==="/"||((D=k.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 "${k.pathname}" was given in the \`location\` prop.`),g=k}else g=x;let w=g.pathname||"/",B=w;if(b!=="/"){let k=b.replace(/^\//,"").split("/");B="/"+w.replace(/^\//,"").split("/").slice(k.length).join("/")}let Y=s&&s.state.matches.length?s.state.matches.map(k=>Object.assign(k,{route:s.manifest[k.route.id]||k.route})):Dg(n,{pathname:B});el(v||Y!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),el(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.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 H=eS(Y&&Y.map(k=>Object.assign({},k,{params:Object.assign({},d,k.params),pathname:Cl([b,c.encodeLocation?c.encodeLocation(k.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?b:Cl([b,c.encodeLocation?c.encodeLocation(k.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),f,s);return r&&H?E.createElement(or.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},H):H}function $2(){let n=iS(),r=A2(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 W2=E.createElement($2,null),Fg=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=V2(n.digest);s&&(n=s)}let r=n!==void 0?E.createElement(wl.Provider,{value:this.props.routeContext},E.createElement(Ad.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?E.createElement(P2,{error:n},r):r}};Fg.contextType=Yg;var ed=new WeakMap;function P2({children:n,error:r}){let{basename:s,navigator:c}=E.useContext(tl);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let f=Y2(r.digest);if(f){let h=ed.get(r);if(h)throw h;let d=Qg(f.location,s),p=d.absoluteURL||d.to;if(Rd(f.location,p,Od(c),"allow-explicit"),H2(p))throw new Error("Invalid redirect location");if(Bg&&!ed.get(r))if(d.isExternal||f.reloadDocument)window.location.href=p;else{const b=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:f.replace}));throw ed.set(r,b),b}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p}`})}}return n}function I2({routeContext:n,match:r,children:s}){let c=E.useContext(Ii);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(wl.Provider,{value:n},s)}function eS(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,p=-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)&&(p=x),g.route.id){let{loaderData:w,errors:B}=c,Y=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!B||B[g.route.id]===void 0);if(g.route.lazy||Y){s.isStatic&&(d=!0),p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}}let b=s==null?void 0:s.onError,v=c&&b?(x,g)=>{var w,B;b(x,{location:c.location,params:((B=(w=c.matches)==null?void 0:w[0])==null?void 0:B.params)??{},pattern:M2(c.matches),errorInfo:g})}:void 0;return f.reduceRight((x,g,w)=>{let B,Y=!1,H=null,D=null;c&&(B=h&&g.route.id?h[g.route.id]:void 0,H=g.route.errorElement||W2,d&&(p<0&&w===0?($g("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Y=!0,D=null):p===w&&(Y=!0,D=g.route.hydrateFallbackElement||null)));let k=r.concat(f.slice(0,w+1)),G=()=>{let X;return B?X=H:Y?X=D:g.route.Component?X=E.createElement(g.route.Component,null):g.route.element?X=g.route.element:X=x,E.createElement(I2,{match:g,routeContext:{outlet:x,matches:k,isDataRoute:c!=null},children:X})};return c&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?E.createElement(Fg,{location:c.location,revalidation:c.revalidation,component:H,error:B,children:G(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:v}):G()},null)}function Md(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tS(n){let r=E.useContext(Ii);return We(r,Md(n)),r}function lS(n){let r=E.useContext(lc);return We(r,Md(n)),r}function aS(n){let r=E.useContext(wl);return We(r,Md(n)),r}function Dd(n){let r=aS(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 nS(){return Dd("useRouteId")}function iS(){var c;let n=E.useContext(Ad),r=lS("useRouteError"),s=Dd("useRouteError");return n!==void 0?n:(c=r.errors)==null?void 0:c[s]}function uS(){let{router:n}=tS("useNavigate"),r=Dd("useNavigate"),s=E.useRef(!1);return Zg(()=>{s.current=!0}),E.useCallback(async(f,h={})=>{el(s.current,Kg),s.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:r,...h}))},[n,r])}var Gp={};function $g(n,r,s){!r&&!Gp[n]&&(Gp[n]=!0,el(!1,s))}E.memo(rS);function rS({routes:n,manifest:r,future:s,state:c,isStatic:f,onError:h}){return Jg(n,void 0,{manifest:r,state:c,isStatic:f,onError:h})}function Yp({to:n,replace:r,state:s,relative:c}){We(eu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f,navigator:h}=E.useContext(tl);el(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=E.useContext(wl),{pathname:p}=vl(),b=ac(),v=tc(n,jd(d),p,c==="path");Rd(typeof n=="string"?n:Bn(n),h.createHref(v),Od(h),"reject");let x=JSON.stringify(v);return E.useEffect(()=>{b(JSON.parse(x),{replace:r,state:s,relative:c})},[b,x,c,r,s]),null}function sS(n){return J2(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 cS({basename:n="/",children:r=null,location:s,navigationType:c="POP",navigator:f,static:h=!1,useTransitions:d}){We(!eu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),b=E.useMemo(()=>({basename:p,navigator:f,static:h,useTransitions:d,future:{}}),[p,f,h,d]);typeof s=="string"&&(s=Gn(s));let{pathname:v="/",search:x="",hash:g="",state:w=null,key:B="default",mask:Y}=s,H=E.useMemo(()=>{let D=ma(v,p);return D==null?null:{location:{pathname:D,search:x,hash:g,state:w,key:B,mask:Y},navigationType:c}},[p,v,x,g,w,B,c,Y]);return el(H!=null,`<Router basename="${p}"> is not able to match the URL "${v}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:E.createElement(tl.Provider,{value:b},E.createElement(or.Provider,{children:r,value:H}))}function oS({children:n,location:r}){return F2(nd(n),r)}function nd(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,nd(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=nd(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 fS(n){return nc(n)&&n.tagName.toLowerCase()==="button"}function dS(n){return nc(n)&&n.tagName.toLowerCase()==="form"}function hS(n){return nc(n)&&n.tagName.toLowerCase()==="input"}function mS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function yS(n,r){return n.button===0&&(!r||r==="_self")&&!mS(n)}function id(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 vS(n,r){let s=id(n);return r&&r.forEach((c,f)=>{s.has(f)||r.getAll(f).forEach(h=>{s.append(f,h)})}),s}var Ys=null;function pS(){if(Ys===null)try{new FormData(document.createElement("form"),0),Ys=!1}catch{Ys=!0}return Ys}var gS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function td(n){return n!=null&&!gS.has(n)?(el(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Js}"`),null):n}function bS(n,r){let s,c,f,h,d;if(dS(n)){let p=n.getAttribute("action");c=p?ma(p,r):null,s=n.getAttribute("method")||Zs,f=td(n.getAttribute("enctype"))||Js,h=new FormData(n)}else if(fS(n)||hS(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=n.getAttribute("formaction")||p.getAttribute("action");if(c=b?ma(b,r):null,s=n.getAttribute("formmethod")||p.getAttribute("method")||Zs,f=td(n.getAttribute("formenctype"))||td(p.getAttribute("enctype"))||Js,h=new FormData(p,n),!pS()){let{name:v,type:x,value:g}=n;if(x==="image"){let w=v?`${v}.`:"";h.append(`${w}x`,"0"),h.append(`${w}y`,"0")}else v&&h.append(v,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 Ud(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&&ma(f.pathname,r)==="/"?f.pathname=`${$i(r)}/_root.${c}`:f.pathname=`${$i(f.pathname)}.${c}`,f}async function xS(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 SS(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 ES(n,r,s){let c=await Promise.all(n.map(async f=>{let h=r.routes[f.route.id];if(h){let d=await xS(h,s);return d.links?d.links():[]}return[]}));return CS(c.flat(1).filter(SS).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Vp(n,r,s,c,f,h){let d=(b,v)=>s[v]?b.route.id!==s[v].route.id:!0,p=(b,v)=>{var x;return s[v].pathname!==b.pathname||((x=s[v].route.path)==null?void 0:x.endsWith("*"))&&s[v].params["*"]!==b.params["*"]};return h==="assets"?r.filter((b,v)=>d(b,v)||p(b,v)):h==="data"?r.filter((b,v)=>{var g;let x=c.routes[b.route.id];if(!x||!x.hasLoader)return!1;if(d(b,v)||p(b,v))return!0;if(b.route.shouldRevalidate){let w=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 w=="boolean")return w}return!0}):[]}function _S(n,r,{includeHydrateFallback:s}={}){return TS(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 TS(n){return[...new Set(n)]}function NS(n){let r={},s=Object.keys(n).sort();for(let c of s)r[c]=n[c];return r}function CS(n,r){let s=new Set;return new Set(r),n.reduce((c,f)=>{let h=JSON.stringify(NS(f));return s.has(h)||(s.add(h),c.push({key:h,link:f})),c},[])}function kd(){let n=E.useContext(Ii);return Ud(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function wS(){let n=E.useContext(lc);return Ud(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Hd=E.createContext(void 0);Hd.displayName="FrameworkContext";function ic(){let n=E.useContext(Hd);return Ud(n,"You must render this element inside a <HydratedRouter> element"),n}function zS(n,r){let s=E.useContext(Hd),[c,f]=E.useState(!1),[h,d]=E.useState(!1),{onFocus:p,onBlur:b,onMouseEnter:v,onMouseLeave:x,onTouchStart:g}=r,w=E.useRef(null);E.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let H=k=>{k.forEach(G=>{d(G.isIntersecting)})},D=new IntersectionObserver(H,{threshold:.5});return w.current&&D.observe(w.current),()=>{D.disconnect()}}},[n]),E.useEffect(()=>{if(c){let H=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(H)}}},[c]);let B=()=>{f(!0)},Y=()=>{f(!1),d(!1)};return s?n!=="intent"?[h,w,{}]:[h,w,{onFocus:Iu(p,B),onBlur:Iu(b,Y),onMouseEnter:Iu(v,B),onMouseLeave:Iu(x,Y),onTouchStart:Iu(g,B)}]:[!1,w,{}]}function Iu(n,r){return s=>{n&&n(s),s.defaultPrevented||r(s)}}function jS({page:n,...r}){let s=q2(),{nonce:c}=ic(),{router:f}=kd(),h=E.useMemo(()=>Dg(f.routes,n,f.basename),[f.routes,n,f.basename]);return h?(r.nonce==null&&c&&(r={...r,nonce:c}),s?E.createElement(RS,{page:n,matches:h,...r}):E.createElement(AS,{page:n,matches:h,...r})):null}function OS(n){let{manifest:r,routeModules:s}=ic(),[c,f]=E.useState([]);return E.useEffect(()=>{let h=!1;return ES(n,r,s).then(d=>{h||f(d)}),()=>{h=!0}},[n,r,s]),c}function RS({page:n,matches:r,...s}){let c=vl(),{future:f}=ic(),{basename:h}=kd(),d=E.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let p=Wg(n,h,f.v8_trailingSlashAwareDataRequests,"rsc"),b=!1,v=[];for(let x of r)typeof x.route.shouldRevalidate=="function"?b=!0:v.push(x.route.id);return b&&v.length>0&&p.searchParams.set("_routes",v.join(",")),[p.pathname+p.search]},[h,f.v8_trailingSlashAwareDataRequests,n,c,r]);return E.createElement(E.Fragment,null,d.map(p=>E.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...s})))}function AS({page:n,matches:r,...s}){let c=vl(),{future:f,manifest:h,routeModules:d}=ic(),{basename:p}=kd(),{loaderData:b,matches:v}=wS(),x=E.useMemo(()=>Vp(n,r,v,h,c,"data"),[n,r,v,h,c]),g=E.useMemo(()=>Vp(n,r,v,h,c,"assets"),[n,r,v,h,c]),w=E.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let H=new Set,D=!1;if(r.forEach(G=>{var K;let X=h.routes[G.route.id];!X||!X.hasLoader||(!x.some(V=>V.route.id===G.route.id)&&G.route.id in b&&((K=d[G.route.id])!=null&&K.shouldRevalidate)||X.hasClientLoader?D=!0:H.add(G.route.id))}),H.size===0)return[];let k=Wg(n,p,f.v8_trailingSlashAwareDataRequests,"data");return D&&H.size>0&&k.searchParams.set("_routes",r.filter(G=>H.has(G.route.id)).map(G=>G.route.id).join(",")),[k.pathname+k.search]},[p,f.v8_trailingSlashAwareDataRequests,b,c,h,x,r,n,d]),B=E.useMemo(()=>_S(g,h),[g,h]),Y=OS(g);return E.createElement(E.Fragment,null,w.map(H=>E.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...s})),B.map(H=>E.createElement("link",{key:H,rel:"modulepreload",href:H,...s})),Y.map(({key:H,link:D})=>E.createElement("link",{key:H,nonce:s.nonce,...D,crossOrigin:D.crossOrigin??s.crossOrigin})))}function MS(...n){return r=>{n.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var DS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{DS&&(window.__reactRouterVersion="7.18.4")}catch{}function US({basename:n,children:r,useTransitions:s,window:c}){let f=E.useRef();f.current==null&&(f.current=c2({window:c,v5Compat:!0}));let h=f.current,[d,p]=E.useState({action:h.action,location:h.location}),b=E.useCallback(v=>{s===!1?p(v):E.startTransition(()=>p(v))},[s]);return E.useLayoutEffect(()=>h.listen(b),[h,b]),E.createElement(cS,{basename:n,children:r,location:d.location,navigationType:d.action,navigator:h,useTransitions:s})}var Pg=E.forwardRef(function({onClick:r,discover:s="render",prefetch:c="none",relative:f,reloadDocument:h,replace:d,mask:p,state:b,target:v,to:x,preventScrollReset:g,viewTransition:w,defaultShouldRevalidate:B,...Y},H){let{basename:D,navigator:k,useTransitions:G}=E.useContext(tl),X=typeof x=="string"&&zd.test(x),K=Qg(x,D);x=K.to;let V=X2(x,{relative:f}),oe=vl(),Z=null;if(p){let de=tc(p,[],oe.mask?oe.mask.pathname:"/",!0);D!=="/"&&(de.pathname=de.pathname==="/"?D:Cl([D,de.pathname])),Z=k.createHref(de)}let[U,$,ve]=zS(c,Y),Ye=qS(x,{replace:d,mask:p,state:b,target:v,preventScrollReset:g,relative:f,viewTransition:w,defaultShouldRevalidate:B,useTransitions:G});function I(de){r&&r(de),de.defaultPrevented||Ye(de)}let Ne=!(K.isExternal||h),Ee=E.createElement("a",{...Y,...ve,href:(Ne?Z:void 0)||K.absoluteURL||V,onClick:Ne?I:r,ref:MS(H,$),target:v,"data-discover":!X&&s==="render"?"true":void 0});return U&&!X?E.createElement(E.Fragment,null,Ee,E.createElement(jS,{page:V})):Ee});Pg.displayName="Link";var Ig=E.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:c="",end:f=!1,style:h,to:d,viewTransition:p,children:b,...v},x){let g=fr(d,{relative:v.relative}),w=vl(),B=E.useContext(lc),{navigator:Y,basename:H}=E.useContext(tl),D=B!=null&&YS(g)&&p===!0,k=Y.encodeLocation?Y.encodeLocation(g).pathname:g.pathname,G=w.pathname,X=B&&B.navigation&&B.navigation.location?B.navigation.location.pathname:null;s||(G=G.toLowerCase(),X=X?X.toLowerCase():null,k=k.toLowerCase()),X&&H&&(X=ma(X,H)||X);const K=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let V=G===k||!f&&G.startsWith(k)&&G.charAt(K)==="/",oe=X!=null&&(X===k||!f&&X.startsWith(k)&&X.charAt(k.length)==="/"),Z={isActive:V,isPending:oe,isTransitioning:D},U=V?r:void 0,$;typeof c=="function"?$=c(Z):$=[c,V?"active":null,oe?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let ve=typeof h=="function"?h(Z):h;return E.createElement(Pg,{...v,"aria-current":U,className:$,ref:x,style:ve,to:d,viewTransition:p},typeof b=="function"?b(Z):b)});Ig.displayName="NavLink";var kS=E.forwardRef(({discover:n="render",fetcherKey:r,navigate:s,reloadDocument:c,replace:f,state:h,method:d=Zs,action:p,onSubmit:b,relative:v,preventScrollReset:x,viewTransition:g,defaultShouldRevalidate:w,...B},Y)=>{let{useTransitions:H}=E.useContext(tl),D=QS(),k=GS(p,{relative:v}),G=d.toLowerCase()==="get"?"get":"post",X=typeof p=="string"&&zd.test(p),K=V=>{if(b&&b(V),V.defaultPrevented)return;V.preventDefault();let oe=V.nativeEvent.submitter,Z=(oe==null?void 0:oe.getAttribute("formmethod"))||d,U=()=>D(oe||V.currentTarget,{fetcherKey:r,method:Z,navigate:s,replace:f,state:h,relative:v,preventScrollReset:x,viewTransition:g,defaultShouldRevalidate:w});H&&s!==!1?E.startTransition(()=>U()):U()};return E.createElement("form",{ref:Y,method:G,action:k,onSubmit:c?b:K,...B,"data-discover":!X&&n==="render"?"true":void 0})});kS.displayName="Form";function HS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e0(n){let r=E.useContext(Ii);return We(r,HS(n)),r}function qS(n,{target:r,replace:s,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:p,defaultShouldRevalidate:b,useTransitions:v}={}){let x=ac(),g=vl(),w=fr(n,{relative:d});return E.useCallback(B=>{if(yS(B,r)){B.preventDefault();let Y=s!==void 0?s:Bn(g)===Bn(w),H=()=>x(n,{replace:Y,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:p,defaultShouldRevalidate:b});v?E.startTransition(()=>H()):H()}},[g,x,w,s,c,f,r,n,h,d,p,b,v])}function C5(n){el(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=E.useRef(id(n)),s=E.useRef(!1),c=vl(),f=E.useMemo(()=>vS(c.search,s.current?null:r.current),[c.search]),h=ac(),d=E.useCallback((p,b)=>{const v=id(typeof p=="function"?p(new URLSearchParams(f)):p);s.current=!0,h("?"+v,b)},[h,f]);return[f,d]}var LS=0,BS=()=>`__${String(++LS)}__`;function QS(){let{router:n}=e0("useSubmit"),{basename:r}=E.useContext(tl),s=nS(),c=n.fetch,f=n.navigate;return E.useCallback(async(h,d={})=>{let{action:p,method:b,encType:v,formData:x,body:g}=bS(h,r);if(d.navigate===!1){let w=d.fetcherKey||BS();await c(w,s,d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||b,formEncType:d.encType||v,flushSync:d.flushSync})}else await f(d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:g,formMethod:d.method||b,formEncType:d.encType||v,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[c,f,r,s])}function GS(n,{relative:r}={}){let{basename:s}=E.useContext(tl),c=E.useContext(wl);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 p=new URLSearchParams(h.search),b=p.getAll("index");if(b.some(x=>x==="")){p.delete("index"),b.filter(g=>g).forEach(g=>p.append("index",g));let x=p.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])),Bn(h)}function YS(n,{relative:r}={}){let s=E.useContext(Vg);We(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=e0("useViewTransitionState"),f=fr(n,{relative:r});if(!s.isTransitioning)return!1;let h=ma(s.currentLocation.pathname,c)||s.currentLocation.pathname,d=ma(s.nextLocation.pathname,c)||s.nextLocation.pathname;return Ws(f.pathname,d)!=null||Ws(f.pathname,h)!=null}var VS=Ag();const t0=E.createContext(void 0),tu=n=>{const r=E.useContext(t0);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},XS=({client:n,children:r})=>(E.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),m.jsx(t0.Provider,{value:n,children:r})),KS={setTimeout:(n,r)=>setTimeout(n,r),clearTimeout:n=>clearTimeout(n),setInterval:(n,r)=>setInterval(n,r),clearInterval:n=>clearInterval(n)};var Ja,Cd,xg,ZS=(xg=class{constructor(){ce(this,Ja,KS);ce(this,Cd,!1)}setTimeoutProvider(n){P(this,Ja,n)}setTimeout(n,r){return _(this,Ja).setTimeout(n,r)}clearTimeout(n){_(this,Ja).clearTimeout(n)}setInterval(n,r){return _(this,Ja).setInterval(n,r)}clearInterval(n){_(this,Ja).clearInterval(n)}},Ja=new WeakMap,Cd=new WeakMap,xg);const On=new ZS;function JS(n){setTimeout(n,0)}const FS=typeof window>"u"||"Deno"in globalThis;function Dt(){}function $S(n,r){return typeof n=="function"?n(r):n}function l0(n){return typeof n=="number"&&n>=0&&n!==1/0}function a0(n,r){return Math.max(n+(r||0)-Date.now(),0)}function $e(n,r){return typeof n=="function"?n(r):n}function Xp(n,r){const{type:s="all",exact:c,fetchStatus:f,predicate:h,queryKey:d,stale:p}=n;if(d){if(c){if(r.queryHash!==qd(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 p=="boolean"&&r.isStale()!==p||f&&f!==r.state.fetchStatus||h&&!h(r))}function Kp(n,r){const{exact:s,status:c,predicate:f,mutationKey:h}=n;if(h){if(!r.options.mutationKey)return!1;if(s){if(Qn(r.options.mutationKey)!==Qn(h))return!1}else if(!Wi(r.options.mutationKey,h))return!1}return!(c&&r.state.status!==c||f&&!f(r))}function qd(n,r){return((r==null?void 0:r.queryKeyHashFn)||Qn)(n)}function Qn(n){return JSON.stringify(n,(r,s)=>ud(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 WS=Object.prototype.hasOwnProperty;function n0(n,r,s=0){if(n===r)return n;if(s>500)return r;const c=Zp(n)&&Zp(r);if(!c&&!(ud(n)&&ud(r)))return r;const f=(c?n:Object.keys(n)).length,h=c?r:Object.keys(r),d=h.length,p=c?new Array(d):{};let b=0;for(let v=0;v<d;v++){const x=c?v:h[v],g=n[x],w=r[x];if(g===w){p[x]=g,(c?v<f:WS.call(n,x))&&b++;continue}if(g===null||w===null||typeof g!="object"||typeof w!="object"){p[x]=w;continue}const B=n0(g,w,s+1);p[x]=B,B===g&&b++}return f===d&&b===f?n:p}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 Zp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ud(n){if(!Jp(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!(!Jp(c)||!c.hasOwnProperty("isPrototypeOf")||r!==Object.prototype)}function Jp(n){return Object.prototype.toString.call(n)==="[object Object]"}function PS(n){return new Promise(r=>{On.setTimeout(r,n)})}function rd(n,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,r):s.structuralSharing!==!1?n0(n,r):r}function IS(n,r,s=0){const c=[...n,r];return s&&c.length>s?c.slice(1):c}function e3(n,r,s=0){const c=[r,...n];return s&&c.length>s?c.slice(0,-1):c}const Ld=Symbol();function i0(n,r){return!n.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!n.queryFn||n.queryFn===Ld?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Bd(n,r){return typeof n=="function"?n(...r):!!n}function t3(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 l3=()=>FS;const Qd=()=>l3();var lu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rn,Fa,Hi,Sg,a3=(Sg=class extends lu{constructor(){super();ce(this,Rn);ce(this,Fa);ce(this,Hi);P(this,Hi,r=>{if(typeof window<"u"&&window.addEventListener){const s=()=>r();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){_(this,Fa)||this.setEventListener(_(this,Hi))}onUnsubscribe(){var r;this.hasListeners()||((r=_(this,Fa))==null||r.call(this),P(this,Fa,void 0))}setEventListener(r){var s;P(this,Hi,r),(s=_(this,Fa))==null||s.call(this),P(this,Fa,r(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(r){_(this,Rn)!==r&&(P(this,Rn,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(s=>{s(r)})}isFocused(){var r;return typeof _(this,Rn)=="boolean"?_(this,Rn):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Rn=new WeakMap,Fa=new WeakMap,Hi=new WeakMap,Sg);const Gd=new a3,n3=JS;function i3(){let n=[],r=0,s=p=>{p()},c=p=>{p()},f=n3;const h=p=>{r?n.push(p):f(()=>{s(p)})},d=()=>{const p=n;n=[],p.length&&f(()=>{c(()=>{p.forEach(b=>{s(b)})})})};return{batch:p=>{let b;r++;try{b=p()}finally{r--,r||d()}return b},batchCalls:p=>(...b)=>{h(()=>{p(...b)})},schedule:h,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{c=p},setScheduler:p=>{f=p}}}const ft=i3();var qi,$a,Li,Eg,u3=(Eg=class extends lu{constructor(){super();ce(this,qi,!0);ce(this,$a);ce(this,Li);P(this,Li,r=>{if(typeof window<"u"&&window.addEventListener){const s=()=>r(!0),c=()=>r(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){_(this,$a)||this.setEventListener(_(this,Li))}onUnsubscribe(){var r;this.hasListeners()||((r=_(this,$a))==null||r.call(this),P(this,$a,void 0))}setEventListener(r){var s;P(this,Li,r),(s=_(this,$a))==null||s.call(this),P(this,$a,r(this.setOnline.bind(this)))}setOnline(r){_(this,qi)!==r&&(P(this,qi,r),this.listeners.forEach(s=>{s(r)}))}isOnline(){return _(this,qi)}},qi=new WeakMap,$a=new WeakMap,Li=new WeakMap,Eg);const Ps=new u3;function r3(n){return Math.min(1e3*2**n,3e4)}function u0(n){return(n??"online")==="online"?Ps.isOnline():!0}var sd=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function r0(n){let r=!1,s=0,c,f="pending",h,d;const p=new Promise((G,X)=>{h=G,d=X});p.catch(Dt);const b=()=>f!=="pending",v=G=>{var X;if(!b()){const K=new sd(G);H(K),(X=n.onCancel)==null||X.call(n,K)}},x=()=>{r=!0},g=()=>{r=!1},w=()=>Gd.isFocused()&&(n.networkMode==="always"||Ps.isOnline())&&n.canRun(),B=()=>u0(n.networkMode)&&n.canRun(),Y=G=>{b()||(c==null||c(),f="resolved",h(G))},H=G=>{b()||(c==null||c(),f="rejected",d(G))},D=G=>new Promise(X=>{var K;c=V=>{(b()||G())&&X(V)},(K=n.onPause)==null||K.call(n)}).then(()=>{var X;c=void 0,b()||(X=n.onContinue)==null||X.call(n)}),k=()=>{if(b())return;let G;const X=s===0?n.initialPromise:void 0;try{G=X??n.fn()}catch(K){G=Promise.reject(K)}Promise.resolve(G).then(Y).catch(K=>{var $;if(b())return;const V=n.retry??(Qd()?0:3),oe=n.retryDelay??r3,Z=typeof oe=="function"?oe(s,K):oe,U=V===!0||typeof V=="number"&&s<V||typeof V=="function"&&V(s,K);if(r||!U){H(K);return}s++,($=n.onFail)==null||$.call(n,s,K),PS(Z).then(()=>w()?void 0:D(w)).then(()=>{r?H(K):k()})})};return{promise:p,status:()=>f,cancel:v,continue:()=>(c==null||c(),p),cancelRetry:x,continueRetry:g,canStart:B,start:()=>(B()?k():D(B).then(k),p)}}var An,_g,s0=(_g=class{constructor(){ce(this,An)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),l0(this.gcTime)&&P(this,An,On.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Qd()?1/0:3e5))}clearGcTimeout(){_(this,An)!==void 0&&(On.clearTimeout(_(this,An)),P(this,An,void 0))}},An=new WeakMap,_g);function s3(n){return{onFetch:(r,s)=>{var x,g,w,B,Y;const c=r.options,f=(w=(g=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,h=((B=r.state.data)==null?void 0:B.pages)||[],d=((Y=r.state.data)==null?void 0:Y.pageParams)||[];let p={pages:[],pageParams:[]},b=0;const v=async()=>{let H=!1;const D=X=>{t3(X,()=>r.signal,()=>H=!0)},k=i0(r.options,r.fetchOptions),G=async(X,K,V)=>{if(H)return Promise.reject(r.signal.reason);if(K==null&&X.pages.length)return Promise.resolve(X);const Z=(()=>{const Ye={client:r.client,queryKey:r.queryKey,pageParam:K,direction:V?"backward":"forward",meta:r.options.meta};return D(Ye),Ye})(),U=await k(Z),{maxPages:$}=r.options,ve=V?e3:IS;return{pages:ve(X.pages,U,$),pageParams:ve(X.pageParams,K,$)}};if(f&&h.length){const X=f==="backward",K=X?c3:Fp,V={pages:h,pageParams:d};p=await G(V,K(c,V),X)}else{const X=n??h.length;do{const K=b===0?d[0]??c.initialPageParam:Fp(c,p);if(b>0&&K==null)break;p=await G(p,K),b++}while(b<X)}return p};r.options.persister?r.fetchFn=()=>{var H,D;return(D=(H=r.options).persister)==null?void 0:D.call(H,v,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s)}:r.fetchFn=v}}}function Fp(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 c3(n,{pages:r,pageParams:s}){var c;return r.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,r[0],r,s[0],s):void 0}var Bi,Mn,Qi,dl,Dn,ot,nr,Un,Tl,ca,Tg,o3=(Tg=class extends s0{constructor(r){super();ce(this,Tl);ce(this,Bi);ce(this,Mn);ce(this,Qi);ce(this,dl);ce(this,Dn);ce(this,ot);ce(this,nr);ce(this,Un);P(this,Un,!1),P(this,nr,r.defaultOptions),this.setOptions(r.options),this.observers=[],P(this,Dn,r.client),P(this,dl,_(this,Dn).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,P(this,Mn,Wp(this.options)),this.state=r.state??_(this,Mn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return _(this,Bi)}get promise(){var r;return(r=_(this,ot))==null?void 0:r.promise}setOptions(r){if(this.options={..._(this,nr),...r},r!=null&&r._type&&P(this,Bi,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($p(s.data,s.dataUpdatedAt)),P(this,Mn,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,dl).remove(this)}setData(r,s){const c=rd(this.state.data,r,this.options);return Se(this,Tl,ca).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(r){Se(this,Tl,ca).call(this,{type:"setState",state:r})}cancel(r){var c,f;const s=(c=_(this,ot))==null?void 0:c.promise;return(f=_(this,ot))==null||f.cancel(r),s?s.then(Dt).catch(Dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return _(this,Mn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>$e(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ld||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>$e(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!a0(this.state.dataUpdatedAt,r)}onFocus(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnWindowFocus()))==null||r.refetch({cancelRefetch:!1}),(s=_(this,ot))==null||s.continue()}onOnline(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnReconnect()))==null||r.refetch({cancelRefetch:!1}),(s=_(this,ot))==null||s.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),_(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||(_(this,ot)&&(_(this,Un)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?_(this,ot).cancel({revert:!0}):_(this,ot).cancelRetry()),this.scheduleGc()),_(this,dl).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Tl,ca).call(this,{type:"invalidate"})}async fetch(r,s){var v,x,g,w,B,Y,H,D,k,G,X,K;if(this.state.fetchStatus!=="idle"&&((v=_(this,ot))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(_(this,ot))return _(this,ot).continueRetry(),_(this,ot).promise}if(r&&this.setOptions(r),!this.options.queryFn){const V=this.observers.find(oe=>oe.options.queryFn);V&&this.setOptions(V.options)}const c=new AbortController,f=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(P(this,Un,!0),c.signal)})},h=()=>{const V=i0(this.options,s),Z=(()=>{const U={client:_(this,Dn),queryKey:this.queryKey,meta:this.meta};return f(U),U})();return P(this,Un,!1),this.options.persister?this.options.persister(V,Z,this):V(Z)},p=(()=>{const V={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:_(this,Dn),state:this.state,fetchFn:h};return f(V),V})();(x=_(this,Bi)==="infinite"?s3(this.options.pages):this.options.behavior)==null||x.onFetch(p,this),P(this,Qi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=p.fetchOptions)==null?void 0:g.meta))&&Se(this,Tl,ca).call(this,{type:"fetch",meta:(w=p.fetchOptions)==null?void 0:w.meta});const b=P(this,ot,r0({initialPromise:s==null?void 0:s.initialPromise,fn:p.fetchFn,onCancel:V=>{V instanceof sd&&V.revert&&this.setState({..._(this,Qi),fetchStatus:"idle"}),c.abort()},onFail:(V,oe)=>{Se(this,Tl,ca).call(this,{type:"failed",failureCount:V,error:oe})},onPause:()=>{Se(this,Tl,ca).call(this,{type:"pause"})},onContinue:()=>{Se(this,Tl,ca).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const V=await b.start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(Y=(B=_(this,dl).config).onSuccess)==null||Y.call(B,V,this),(D=(H=_(this,dl).config).onSettled)==null||D.call(H,V,this.state.error,this),V}catch(V){if(V instanceof sd){if(V.silent)return _(this,ot).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw Se(this,Tl,ca).call(this,{type:"error",error:V}),(G=(k=_(this,dl).config).onError)==null||G.call(k,V,this),(K=(X=_(this,dl).config).onSettled)==null||K.call(X,this.state.data,V,this),V}finally{_(this,ot)===b&&P(this,ot,void 0),this.scheduleGc()}}},Bi=new WeakMap,Mn=new WeakMap,Qi=new WeakMap,dl=new WeakMap,Dn=new WeakMap,ot=new WeakMap,nr=new WeakMap,Un=new WeakMap,Tl=new WeakSet,ca=function(r){const s=c=>{switch(r.type){case"failed":return{...c,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...c0(c.data,this.options),fetchMeta:r.meta??null};case"success":const f={...c,...$p(r.data,r.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return P(this,Qi,r.manual?f:void 0),f;case"error":const h=r.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...r.state}}};this.state=s(this.state),ft.batch(()=>{this.observers.slice().forEach(c=>{c.onQueryUpdate()}),_(this,dl).notify({query:this,type:"updated",action:r})})},Tg);function c0(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u0(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $p(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 At,Re,ir,Mt,kn,Gi,oa,ur,Yi,Vi,Hn,qn,Wa,Xi,qe,lr,cd,od,fd,dd,hd,md,yd,vd,Ng,f3=(Ng=class extends lu{constructor(r,s){super();ce(this,qe);ce(this,At);ce(this,Re);ce(this,ir);ce(this,Mt);ce(this,kn);ce(this,Gi);ce(this,oa);ce(this,ur);ce(this,Yi);ce(this,Vi);ce(this,Hn);ce(this,qn);ce(this,Wa);ce(this,Xi,new Set);this.options=s,P(this,At,r),P(this,oa,null),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Re).addObserver(this),Pp(_(this,Re),this.options)?Se(this,qe,lr).call(this):this.updateResult(),Se(this,qe,hd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pd(_(this,Re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pd(_(this,Re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,qe,md).call(this),Se(this,qe,yd).call(this),_(this,Re).removeObserver(this)}setOptions(r){const s=this.options,c=_(this,Re);if(this.options=_(this,At).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $e(this.options.enabled,_(this,Re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,qe,vd).call(this),_(this,Re).setOptions(this.options),s._defaulted&&!Fs(this.options,s)&&_(this,At).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Re),observer:this});const f=this.hasListeners();f&&Ip(_(this,Re),c,this.options,s)&&Se(this,qe,lr).call(this),this.updateResult(),f&&(_(this,Re)!==c||$e(this.options.enabled,_(this,Re))!==$e(s.enabled,_(this,Re))||$e(this.options.staleTime,_(this,Re))!==$e(s.staleTime,_(this,Re)))&&Se(this,qe,od).call(this);const h=Se(this,qe,fd).call(this);f&&(_(this,Re)!==c||$e(this.options.enabled,_(this,Re))!==$e(s.enabled,_(this,Re))||h!==_(this,Wa))&&Se(this,qe,dd).call(this,h)}getOptimisticResult(r){const s=_(this,At).getQueryCache().build(_(this,At),r),c=this.createResult(s,r);return Fs(this.getCurrentResult(),c)||(P(this,Mt,c),P(this,Gi,this.options),P(this,kn,_(this,Re).state)),c}getCurrentResult(){return _(this,Mt)}trackResult(r,s){return new Proxy(r,{get:(c,f)=>(this.trackProp(f),s==null||s(f),Reflect.get(c,f))})}trackProp(r){_(this,Xi).add(r)}getCurrentQuery(){return _(this,Re)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const s=_(this,At).defaultQueryOptions(r),c=_(this,At).getQueryCache().build(_(this,At),s);let f=()=>{},h;const d=new Promise(p=>{h=p,f=_(this,At).getQueryCache().subscribe(b=>{b.type==="updated"&&b.query.queryHash===c.queryHash&&c.state.data!==void 0&&(f(),p(this.createResult(c,s)))})});return Promise.race([c.fetch().then(()=>{const p=this.createResult(c,s);return h==null||h(p),p}).finally(()=>{f()}),d])}fetch(r){return Se(this,qe,lr).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Mt)))}createResult(r,s){var oe;const c=_(this,Re),f=this.options,h=_(this,Mt),d=_(this,kn),p=_(this,Gi),b=r!==c?r.state:_(this,ir),{state:v}=r;let x={...v},g=!1,w;if(s._optimisticResults){const Z=this.hasListeners(),U=!Z&&Pp(r,s),$=Z&&Ip(r,c,s,f);(U||$)&&(x={...x,...c0(v.data,r.options)}),s._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:B,errorUpdatedAt:Y,status:H}=x;w=x.data;let D=!1;if(s.placeholderData!==void 0&&w===void 0&&H==="pending"){let Z;h!=null&&h.isPlaceholderData&&s.placeholderData===(p==null?void 0:p.placeholderData)?(Z=h.data,D=!0):Z=typeof s.placeholderData=="function"?s.placeholderData((oe=_(this,Vi))==null?void 0:oe.state.data,_(this,Vi)):s.placeholderData,Z!==void 0&&(H="success",w=rd(h==null?void 0:h.data,Z,s),g=!0)}if(s.select&&w!==void 0&&!D)if(h&&w===(d==null?void 0:d.data)&&s.select===_(this,ur))w=_(this,Yi);else try{P(this,ur,s.select),w=s.select(w),w=rd(h==null?void 0:h.data,w,s),P(this,Yi,w),P(this,oa,null)}catch(Z){P(this,oa,Z)}else w===void 0&&P(this,oa,null);_(this,oa)&&(B=_(this,oa),w=_(this,Yi),Y=Date.now(),H="error",g=!1);const k=x.fetchStatus==="fetching",G=H==="pending",X=H==="error",K=G&&k,V=w!==void 0;return{status:H,fetchStatus:x.fetchStatus,isPending:G,isSuccess:H==="success",isError:X,isInitialLoading:K,isLoading:K,data:w,dataUpdatedAt:x.dataUpdatedAt,error:B,errorUpdatedAt:Y,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>b.dataUpdateCount||x.errorUpdateCount>b.errorUpdateCount,isFetching:k,isRefetching:k&&!G,isLoadingError:X&&!V,isPaused:x.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:X&&V,isStale:Yd(r,s),refetch:this.refetch,isEnabled:$e(s.enabled,r)!==!1}}updateResult(){const r=_(this,Mt),s=this.createResult(_(this,Re),this.options);if(P(this,kn,_(this,Re).state),P(this,Gi,this.options),_(this,kn).data!==void 0&&P(this,Vi,_(this,Re)),Fs(s,r))return;P(this,Mt,s);const f=(()=>{if(!r)return!0;const{notifyOnChangeProps:h}=this.options,d=typeof h=="function"?h():h;if(d==="all"||!d&&!_(this,Xi).size)return!0;const p=new Set(d??_(this,Xi));return this.options.throwOnError&&p.add("error"),Object.keys(_(this,Mt)).some(b=>{const v=b;return _(this,Mt)[v]!==r[v]&&p.has(v)})})();ft.batch(()=>{f&&this.listeners.forEach(h=>{h(_(this,Mt))}),_(this,At).getQueryCache().notify({query:_(this,Re),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,qe,hd).call(this)}},At=new WeakMap,Re=new WeakMap,ir=new WeakMap,Mt=new WeakMap,kn=new WeakMap,Gi=new WeakMap,oa=new WeakMap,ur=new WeakMap,Yi=new WeakMap,Vi=new WeakMap,Hn=new WeakMap,qn=new WeakMap,Wa=new WeakMap,Xi=new WeakMap,qe=new WeakSet,lr=function(r){Se(this,qe,vd).call(this);let s=_(this,Re).fetch(this.options,r);return r!=null&&r.throwOnError||(s=s.catch(Dt)),s},cd=function(r){return!Qd()&&$e(this.options.enabled,_(this,Re))!==!1&&l0(r)},od=function(){Se(this,qe,md).call(this);const r=$e(this.options.staleTime,_(this,Re));if(_(this,Mt).isStale||!Se(this,qe,cd).call(this,r))return;const s=a0(_(this,Mt).dataUpdatedAt,r)+1;P(this,Hn,On.setTimeout(()=>{_(this,Mt).isStale||this.updateResult()},s))},fd=function(){return $e(this.options.refetchInterval,_(this,Re))??!1},dd=function(r){Se(this,qe,yd).call(this),P(this,Wa,r),!(_(this,Wa)===0||!Se(this,qe,cd).call(this,_(this,Wa)))&&P(this,qn,On.setInterval(()=>{(this.options.refetchIntervalInBackground||Gd.isFocused())&&Se(this,qe,lr).call(this)},_(this,Wa)))},hd=function(){Se(this,qe,od).call(this),Se(this,qe,dd).call(this,Se(this,qe,fd).call(this))},md=function(){_(this,Hn)!==void 0&&(On.clearTimeout(_(this,Hn)),P(this,Hn,void 0))},yd=function(){_(this,qn)!==void 0&&(On.clearInterval(_(this,qn)),P(this,qn,void 0))},vd=function(){const r=_(this,At).getQueryCache().build(_(this,At),this.options);if(r===_(this,Re))return;const s=_(this,Re);P(this,Re,r),P(this,ir,r.state),this.hasListeners()&&(s==null||s.removeObserver(this),r.addObserver(this))},Ng);function d3(n,r){return $e(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&$e(r.retryOnMount,n)===!1)}function Pp(n,r){return d3(n,r)||n.state.data!==void 0&&pd(n,r,r.refetchOnMount)}function pd(n,r,s){if($e(r.enabled,n)!==!1&&$e(r.staleTime,n)!=="static"){const c=$e(s,n);return c==="always"||c!==!1&&Yd(n,r)}return!1}function Ip(n,r,s,c){return(n!==r||$e(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Yd(n,s)}function Yd(n,r){return $e(r.enabled,n)!==!1&&n.isStaleByTime($e(r.staleTime,n))}var rr,Yl,Nt,Ln,Vl,Za,Cg,h3=(Cg=class extends s0{constructor(r){super();ce(this,Vl);ce(this,rr);ce(this,Yl);ce(this,Nt);ce(this,Ln);P(this,rr,r.client),this.mutationId=r.mutationId,P(this,Nt,r.mutationCache),P(this,Yl,[]),this.state=r.state||o0(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){_(this,Yl).includes(r)||(_(this,Yl).push(r),this.clearGcTimeout(),_(this,Nt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){P(this,Yl,_(this,Yl).filter(s=>s!==r)),this.scheduleGc(),_(this,Nt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){_(this,Yl).length||(this.state.status==="pending"?this.scheduleGc():_(this,Nt).remove(this))}continue(){var r;return((r=_(this,Ln))==null?void 0:r.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(r){var p,b,v,x,g,w,B,Y,H,D,k,G,X,K,V,oe,Z,U;const s=()=>{Se(this,Vl,Za).call(this,{type:"continue"})},c={client:_(this,rr),meta:this.options.meta,mutationKey:this.options.mutationKey},f=P(this,Ln,r0({fn:()=>this.options.mutationFn?this.options.mutationFn(r,c):Promise.reject(new Error("No mutationFn found")),onFail:($,ve)=>{Se(this,Vl,Za).call(this,{type:"failed",failureCount:$,error:ve})},onPause:()=>{Se(this,Vl,Za).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Nt).canRun(this)})),h=this.state.status==="pending",d=!f.canStart();try{if(h)s();else{Se(this,Vl,Za).call(this,{type:"pending",variables:r,isPaused:d}),_(this,Nt).config.onMutate&&await _(this,Nt).config.onMutate(r,this,c);const ve=await((b=(p=this.options).onMutate)==null?void 0:b.call(p,r,c));ve!==this.state.context&&Se(this,Vl,Za).call(this,{type:"pending",context:ve,variables:r,isPaused:d})}const $=await f.start();return await((x=(v=_(this,Nt).config).onSuccess)==null?void 0:x.call(v,$,r,this.state.context,this,c)),await((w=(g=this.options).onSuccess)==null?void 0:w.call(g,$,r,this.state.context,c)),await((Y=(B=_(this,Nt).config).onSettled)==null?void 0:Y.call(B,$,null,this.state.variables,this.state.context,this,c)),await((D=(H=this.options).onSettled)==null?void 0:D.call(H,$,null,r,this.state.context,c)),Se(this,Vl,Za).call(this,{type:"success",data:$}),$}catch($){try{await((G=(k=_(this,Nt).config).onError)==null?void 0:G.call(k,$,r,this.state.context,this,c))}catch(ve){Promise.reject(ve)}try{await((K=(X=this.options).onError)==null?void 0:K.call(X,$,r,this.state.context,c))}catch(ve){Promise.reject(ve)}try{await((oe=(V=_(this,Nt).config).onSettled)==null?void 0:oe.call(V,void 0,$,this.state.variables,this.state.context,this,c))}catch(ve){Promise.reject(ve)}try{await((U=(Z=this.options).onSettled)==null?void 0:U.call(Z,void 0,$,r,this.state.context,c))}catch(ve){Promise.reject(ve)}throw Se(this,Vl,Za).call(this,{type:"error",error:$}),$}finally{_(this,Ln)===f&&P(this,Ln,void 0),_(this,Nt).runNext(this)}}},rr=new WeakMap,Yl=new WeakMap,Nt=new WeakMap,Ln=new WeakMap,Vl=new WeakSet,Za=function(r){const s=c=>{switch(r.type){case"failed":return{...c,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...c,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:r.error,failureCount:c.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ft.batch(()=>{_(this,Yl).forEach(c=>{c.onMutationUpdate(r)}),_(this,Nt).notify({mutation:this,type:"updated",action:r})})},Cg);function o0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fa,Nl,sr,wg,m3=(wg=class extends lu{constructor(r={}){super();ce(this,fa);ce(this,Nl);ce(this,sr);this.config=r,P(this,fa,new Set),P(this,Nl,new Map),P(this,sr,0)}build(r,s,c){const f=new h3({client:r,mutationCache:this,mutationId:++Gs(this,sr)._,options:r.defaultMutationOptions(s),state:c});return this.add(f),f}add(r){_(this,fa).add(r);const s=Vs(r);if(typeof s=="string"){const c=_(this,Nl).get(s);c?c.push(r):_(this,Nl).set(s,[r])}this.notify({type:"added",mutation:r})}remove(r){if(_(this,fa).delete(r)){const s=Vs(r);if(typeof s=="string"){const c=_(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&&_(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=_(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=_(this,Nl).get(s))==null?void 0:c.find(h=>h!==r&&h.state.isPaused))==null?void 0:f.continue())??Promise.resolve():Promise.resolve()}clear(){ft.batch(()=>{_(this,fa).forEach(r=>{this.notify({type:"removed",mutation:r})}),_(this,fa).clear(),_(this,Nl).clear()})}getAll(){return Array.from(_(this,fa))}find(r){const s={exact:!0,...r};return this.getAll().find(c=>Kp(s,c))}findAll(r={}){return this.getAll().filter(s=>Kp(r,s))}notify(r){ft.batch(()=>{this.listeners.forEach(s=>{s(r)})})}resumePausedMutations(){const r=this.getAll().filter(s=>s.state.isPaused);return ft.batch(()=>Promise.all(r.map(s=>s.continue().catch(Dt))))}},fa=new WeakMap,Nl=new WeakMap,sr=new WeakMap,wg);function Vs(n){var r;return(r=n.options.scope)==null?void 0:r.id}var da,Pa,Ct,cr,Kl,ar,gd,zg,y3=(zg=class extends lu{constructor(s,c){super();ce(this,Kl);ce(this,da);ce(this,Pa);ce(this,Ct);ce(this,cr);P(this,da,s),this.setOptions(c),this.bindMethods(),Se(this,Kl,ar).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=_(this,da).defaultMutationOptions(s),Fs(this.options,c)||_(this,da).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Ct),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Qn(c.mutationKey)!==Qn(this.options.mutationKey)?this.reset():((f=_(this,Ct))==null?void 0:f.state.status)==="pending"&&_(this,Ct).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&_(this,Ct)&&(_(this,Ct).addObserver(this),Se(this,Kl,ar).call(this))}onUnsubscribe(){var s;this.hasListeners()||(s=_(this,Ct))==null||s.removeObserver(this)}onMutationUpdate(s){Se(this,Kl,ar).call(this),Se(this,Kl,gd).call(this,s)}getCurrentResult(){return _(this,Pa)}reset(){var s;(s=_(this,Ct))==null||s.removeObserver(this),P(this,Ct,void 0),Se(this,Kl,ar).call(this),Se(this,Kl,gd).call(this)}mutate(s,c){var f;return P(this,cr,c),(f=_(this,Ct))==null||f.removeObserver(this),P(this,Ct,_(this,da).getMutationCache().build(_(this,da),this.options)),_(this,Ct).addObserver(this),_(this,Ct).execute(s)}},da=new WeakMap,Pa=new WeakMap,Ct=new WeakMap,cr=new WeakMap,Kl=new WeakSet,ar=function(){var c;const s=((c=_(this,Ct))==null?void 0:c.state)??o0();P(this,Pa,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},gd=function(s){ft.batch(()=>{var f,h,d,p;const c=_(this,cr);if(c&&this.hasListeners()){const b=_(this,Pa).variables,v=_(this,Pa).context,x={client:_(this,da),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(f=c.onSuccess)==null||f.call(c,s.data,b,v,x)}catch(g){Promise.reject(g)}try{(h=c.onSettled)==null||h.call(c,s.data,null,b,v,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,v,x)}catch(g){Promise.reject(g)}try{(p=c.onSettled)==null||p.call(c,void 0,s.error,b,v,x)}catch(g){Promise.reject(g)}}}this.listeners.forEach(b=>{b(_(this,Pa))})})},zg),Xl,jg,v3=(jg=class extends lu{constructor(r={}){super();ce(this,Xl);this.config=r,P(this,Xl,new Map)}build(r,s,c){const f=s.queryKey,h=s.queryHash??qd(f,s);let d=this.get(h);return d||(d=new o3({client:r,queryKey:f,queryHash:h,options:r.defaultQueryOptions(s),state:c,defaultOptions:r.getQueryDefaults(f)}),this.add(d)),d}add(r){_(this,Xl).has(r.queryHash)||(_(this,Xl).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){_(this,Xl).get(r.queryHash)===r&&(r.destroy(),_(this,Xl).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){ft.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return _(this,Xl).get(r)}getAll(){return[..._(this,Xl).values()]}find(r){const s={exact:!0,...r};return this.getAll().find(c=>Xp(s,c))}findAll(r={}){const s=this.getAll();return Object.keys(r).length>0?s.filter(c=>Xp(r,c)):s}notify(r){ft.batch(()=>{this.listeners.forEach(s=>{s(r)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Xl=new WeakMap,jg),Ie,Ia,en,Ki,Zi,tn,Ji,Fi,Og,p3=(Og=class{constructor(n={}){ce(this,Ie);ce(this,Ia);ce(this,en);ce(this,Ki);ce(this,Zi);ce(this,tn);ce(this,Ji);ce(this,Fi);P(this,Ie,n.queryCache||new v3),P(this,Ia,n.mutationCache||new m3),P(this,en,n.defaultOptions||{}),P(this,Ki,new Map),P(this,Zi,new Map),P(this,tn,0)}mount(){Gs(this,tn)._++,_(this,tn)===1&&(P(this,Ji,Gd.subscribe(async n=>{n&&(await this.resumePausedMutations(),_(this,Ie).onFocus())})),P(this,Fi,Ps.subscribe(async n=>{n&&(await this.resumePausedMutations(),_(this,Ie).onOnline())})))}unmount(){var n,r;Gs(this,tn)._--,_(this,tn)===0&&((n=_(this,Ji))==null||n.call(this),P(this,Ji,void 0),(r=_(this,Fi))==null||r.call(this),P(this,Fi,void 0))}isFetching(n){return _(this,Ie).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return _(this,Ia).findAll({...n,status:"pending"}).length}getQueryData(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=_(this,Ie).get(r.queryHash))==null?void 0:s.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),s=_(this,Ie).build(this,r),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime($e(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(c))}getQueriesData(n){return _(this,Ie).findAll(n).map(({queryKey:r,state:s})=>[r,s.data])}setQueryData(n,r,s){var d;const c=this.defaultQueryOptions({queryKey:n}),f=(d=_(this,Ie).get(c.queryHash))==null?void 0:d.state.data,h=$S(r,f);if(h!==void 0)return _(this,Ie).build(this,c).setData(h,{...s,manual:!0})}setQueriesData(n,r,s){return ft.batch(()=>_(this,Ie).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,r,s)]))}getQueryState(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=_(this,Ie).get(r.queryHash))==null?void 0:s.state}removeQueries(n){const r=_(this,Ie);ft.batch(()=>{r.findAll(n).forEach(s=>{r.remove(s)})})}resetQueries(n,r){const s=_(this,Ie);return ft.batch(()=>{const c=s.findAll(n),f=new Set(c);return c.forEach(h=>{h.reset()}),this.refetchQueries({type:"active",predicate:h=>f.has(h)},r)})}cancelQueries(n,r={}){const s={revert:!0,...r},c=ft.batch(()=>_(this,Ie).findAll(n).map(f=>f.cancel(s)));return Promise.all(c).then(Dt).catch(Dt)}invalidateQueries(n,r={}){return ft.batch(()=>(_(this,Ie).findAll(n).forEach(s=>{s.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},r)))}refetchQueries(n,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},c=ft.batch(()=>_(this,Ie).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,s);return s.throwOnError||(h=h.catch(Dt)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(Dt)}async query(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=_(this,Ie).build(this,r),c=s.isStaleByTime($e(r.staleTime,s))?await s.fetch(r):s.state.data,f=r.select;return f?f(c):c}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=_(this,Ie).build(this,r);return s.isStaleByTime($e(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Dt).catch(Dt)}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(Dt).catch(Dt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Ps.isOnline()?_(this,Ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,Ie)}getMutationCache(){return _(this,Ia)}getDefaultOptions(){return _(this,en)}setDefaultOptions(n){P(this,en,n)}setQueryDefaults(n,r){_(this,Ki).set(Qn(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[..._(this,Ki).values()],s={};return r.forEach(c=>{Wi(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,r){_(this,Zi).set(Qn(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[..._(this,Zi).values()],s={};return r.forEach(c=>{Wi(n,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const r={..._(this,en).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=qd(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===Ld&&(r.enabled=!1),r}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{..._(this,en).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){_(this,Ie).clear(),_(this,Ia).clear()}},Ie=new WeakMap,Ia=new WeakMap,en=new WeakMap,Ki=new WeakMap,Zi=new WeakMap,tn=new WeakMap,Ji=new WeakMap,Fi=new WeakMap,Og);const f0=E.createContext(!1),g3=()=>E.useContext(f0);f0.Provider;function b3(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const x3=E.createContext(b3()),S3=()=>E.useContext(x3),E3=(n,r,s)=>{const c=s!=null&&s.state.error&&typeof n.throwOnError=="function"?Bd(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||c)&&(r.isReset()||(n.retryOnMount=!1))},_3=n=>{E.useEffect(()=>{n.clearReset()},[n])},T3=({result:n,errorResetBoundary:r,throwOnError:s,query:c,suspense:f})=>n.isError&&!r.isReset()&&!n.isFetching&&c&&(f&&n.data===void 0||Bd(s,[n.error,c])),N3=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))}},C3=(n,r)=>(n==null?void 0:n.suspense)&&r.isPending,w3=(n,r,s)=>r.fetchOptimistic(n).catch(()=>{s.clearReset()});function z3(n,r,s){const c=g3(),f=S3(),h=tu(),d=h.defaultQueryOptions(n),p=h.getQueryCache().get(d.queryHash),b=n.subscribed!==!1;d._optimisticResults=c?"isRestoring":b?"optimistic":void 0,N3(d),E3(d,f,p),_3(f);const[v]=E.useState(()=>new r(h,d)),x=v.getOptimisticResult(d),g=!c&&b;if(E.useSyncExternalStore(E.useCallback(w=>{const B=g?v.subscribe(ft.batchCalls(w)):Dt;return v.updateResult(),B},[v,g]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),E.useEffect(()=>{v.setOptions(d)},[d,v]),C3(d,x))throw w3(d,v,f);if(T3({result:x,errorResetBoundary:f,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw x.error;return d.notifyOnChangeProps?x:v.trackResult(x)}function ml(n,r){return z3(n,f3)}function bd(n,r){const s=tu(),[c]=E.useState(()=>new y3(s,n));E.useEffect(()=>{c.setOptions(n)},[c,n]);const f=E.useSyncExternalStore(E.useCallback(d=>c.subscribe(ft.batchCalls(d)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h=E.useCallback((...d)=>{c.mutate(d[0],d[1]).catch(Dt)},[c]);if(f.error&&Bd(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:h,mutateAsync:f.mutate}}const j3="modulepreload",O3=function(n){return"/"+n},eg={},ya=function(r,s,c){let f=Promise.resolve();if(s&&s.length>0){let d=function(v){return Promise.all(v.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),b=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));f=d(s.map(v=>{if(v=O3(v),v in eg)return;eg[v]=!0;const x=v.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${g}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":j3,x||(w.as="script"),w.crossOrigin="",w.href=v,b&&w.setAttribute("nonce",b),document.head.appendChild(w),x)return new Promise((B,Y)=>{w.addEventListener("load",B),w.addEventListener("error",()=>Y(new Error(`Unable to preload CSS for ${v}`)))})}))}function h(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return f.then(d=>{for(const p of d||[])p.status==="rejected"&&h(p.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 R3=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),d0=(...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 A3={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 M3=E.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:f="",children:h,iconNode:d,...p},b)=>E.createElement("svg",{ref:b,...A3,width:r,height:r,stroke:n,strokeWidth:c?Number(s)*24/Number(r):s,className:d0("lucide",f),...p},[...d.map(([v,x])=>E.createElement(v,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(M3,{ref:h,iconNode:r,className:d0(`lucide-${R3(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 D3=[["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"}]],U3=pe("Award",D3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k3=[["path",{d:"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"}]],H3=pe("BookOpen",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:"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"}]],L3=pe("Briefcase",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:"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"}]],Q3=pe("Building2",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:"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"}]],h0=pe("CalendarDays",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 Y3=[["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"}]],V3=pe("ChartColumn",Y3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],K3=pe("ChevronDown",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=[["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"}]],J3=pe("CircleAlert",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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$3=pe("CircleCheck",F3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W3=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],P3=pe("Cloud",W3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const I3=[["path",{d:"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"}]],eE=pe("CodeXml",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:"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"}]],lE=pe("Download",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:"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"}]],nE=pe("Dumbbell",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:"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"}]],uE=pe("FileBadge",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:"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"}]],m0=pe("FileText",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 sE=[["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"}]],cE=pe("FlaskConical",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 oE=[["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"}]],y0=pe("GraduationCap",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 fE=[["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"}]],dE=pe("HeartHandshake",fE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hE=[["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"}]],mE=pe("Image",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=[["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"}]],vE=pe("Inbox",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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],gE=pe("Info",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=[["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"}]],xE=pe("Languages",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:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],EE=pe("LoaderCircle",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:"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"}]],TE=pe("LogIn",_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:"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"}]],CE=pe("LogOut",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=[["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"}]],zE=pe("Menu",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 jE=[["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"}]],OE=pe("MicVocal",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 RE=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],AE=pe("Moon",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=[["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"}]],DE=pe("Network",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=[["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"}]],kE=pe("Palette",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=[["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"}]],Vd=pe("Paperclip",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 qE=[["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"}]],LE=pe("PenLine",qE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BE=[["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"}]],QE=pe("Pencil",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:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],YE=pe("Plus",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:"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"}]],XE=pe("Rocket",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=[["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"}]],ZE=pe("Rows3",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=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],FE=pe("Search",JE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $E=[["path",{d:"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"}]],WE=pe("Shapes",$E);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PE=[["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"}]],IE=pe("ShieldAlert",PE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e4=[["path",{d:"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"}]],t4=pe("ShieldCheck",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=[["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"}]],a4=pe("SlidersHorizontal",l4);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n4=[["path",{d:"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"}]],i4=pe("Star",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=[["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"}]],r4=pe("Sun",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=[["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"}]],v0=pe("Tag",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 c4=[["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"}]],xd=pe("Trash2",c4);/**
* @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:"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"}]],f4=pe("Trophy",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 d4=[["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"}]],h4=pe("Users",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:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],p0=pe("X",m4),Xd="fp-token";function ha(){return localStorage.getItem(Xd)}function Kd(n){localStorage.setItem(Xd,n)}function Zd(){localStorage.removeItem(Xd)}async function Jd(n,r,s){const c=s||ln(),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 Kd(h.data.token),h.data}async function Fd(n,r,s,c){const f=c||ln(),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 Kd(d.data.token),d.data}async function g0(n){const r=n||ln(),c=await(await fetch(r+"/auth/me",{headers:{Authorization:"Bearer "+ha()}})).json();if(!c.ok)throw new Error(c.error||"会话失效");return c.data}const b0="fp-server-url";function ln(){return localStorage.getItem(b0)||"https://footpr.linyux.cn"}function x0(n){localStorage.setItem(b0,n.replace(/\/+$/,""))}class Sd extends Error{constructor(r){super(r),this.name="AuthError"}}async function Ae(n,r){const s=ha();if(!s)throw new Sd("请先登录");const c=ln(),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 Zd(),window.dispatchEvent(new CustomEvent("fp-auth-required")),new Sd("登录已过期,请重新登录");const h=await f.json();if(!f.ok||!h.ok)throw new Error(h.error||"HTTP "+f.status);return h.data}const y4=()=>Ae("app_info"),v4=()=>Ae("sync_status"),uc=()=>Ae("type_list"),p4=n=>Ae("type_upsert",n),g4=n=>Ae("type_delete",{id:n}),S0=n=>Ae("taxonomy_list",{kind:n}),b4=n=>Ae("taxonomy_upsert",n),x4=n=>Ae("taxonomy_delete",{id:n}),$d=()=>Ae("dimension_list"),S4=n=>Ae("dimension_upsert",n),E4=n=>Ae("dimension_delete",{id:n}),E0=(n={})=>Ae("footprint_list",{query:n}),Wd=n=>Ae("footprint_get",{id:n}),_0=n=>Ae("footprint_upsert",{item:n}),_4=n=>Ae("footprint_delete",{id:n}),T0=(n={})=>Ae("timeline",{query:n}),T4=n=>Ae("stats_overview",{year:n}),N4=()=>Ae("metric_list"),C4=n=>Ae("metric_upsert",n),w4=n=>Ae("metric_delete",{key:n}),z4=()=>Ae("grades_overview"),j4=n=>Ae("semester_upsert",n),O4=n=>Ae("semester_delete",{id:n}),R4=n=>Ae("course_upsert",n),A4=n=>Ae("course_delete",{id:n}),M4=n=>Ae("band_upsert",n),D4=n=>Ae("band_delete",{id:n}),Ed=n=>Ae("attachment_add",n),N0=n=>Ae("attachment_list",{owner_id:n}),C0=n=>Ae("attachment_delete",{id:n}),Is=n=>Ae("attachment_read",{id:n}),w0=n=>Ae("attachment_thumb",{id:n}),U4=()=>Ae("view_list"),k4=n=>Ae("view_upsert",n),H4=n=>Ae("view_delete",{id:n});async function rc(n,r,s){const c=await fetch((s||ln())+n,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+ha()},body:JSON.stringify(r??{})}),f=await c.json().catch(()=>({ok:!1,error:"HTTP "+c.status}));if(!f.ok)throw new Error(f.error||"请求失败");return f.data}async function z0(n,r){const s=await fetch((r||ln())+n,{headers:{Authorization:"Bearer "+ha()}}),c=await s.json().catch(()=>({ok:!1,error:"HTTP "+s.status}));if(!c.ok)throw new Error(c.error||"请求失败");return c.data}const q4=n=>z0("/admin/invites",n),L4=n=>z0("/admin/users",n),B4=(n,r)=>rc("/admin/invites/generate",{count:n},r),Q4=(n,r,s)=>rc("/admin/invites/create",{code:n,remark:r},s),G4=(n,r,s)=>rc("/admin/invites/update",{id:n,...r},s),Y4=(n,r)=>rc("/admin/invites/delete",{id:n},r),V4=Object.freeze(Object.defineProperty({__proto__:null,AuthError:Sd,adminCreateInvite:Q4,adminDeleteInvite:Y4,adminGenerateInvites:B4,adminListInvites:q4,adminListUsers:L4,adminUpdateInvite:G4,appInfo:y4,attachmentAdd:Ed,attachmentDelete:C0,attachmentList:N0,attachmentRead:Is,attachmentThumb:w0,bandDelete:D4,bandUpsert:M4,clearToken:Zd,courseDelete:A4,courseUpsert:R4,deleteDimension:E4,deleteTaxonomy:x4,deleteType:g4,footprintDelete:_4,footprintGet:Wd,footprintList:E0,footprintUpsert:_0,getServerUrl:ln,getToken:ha,gradesOverview:z4,listDimensions:$d,listTaxonomy:S0,listTypes:uc,metricDelete:w4,metricList:N4,metricUpsert:C4,semesterDelete:O4,semesterUpsert:j4,serverLogin:Jd,serverMe:g0,serverRegister:Fd,setServerUrl:x0,setToken:Kd,statsOverview:T4,syncStatus:v4,timeline:T0,upsertDimension:S4,upsertTaxonomy:b4,upsertType:p4,viewDelete:H4,viewList:U4,viewUpsert:k4},Symbol.toStringTag,{value:"Module"}));function j0(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=j0(n[r]))&&(c&&(c+=" "),c+=s)}else for(s in n)n[s]&&(c&&(c+=" "),c+=s);return c}function O0(){for(var n,r,s=0,c="",f=arguments.length;s<f;s++)(n=arguments[s])&&(r=j0(n))&&(c&&(c+=" "),c+=r);return c}const tg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,lg=O0,X4=(n,r)=>s=>{var c;if((r==null?void 0:r.variants)==null)return lg(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:f,defaultVariants:h}=r,d=Object.keys(f).map(v=>{const x=s==null?void 0:s[v],g=h==null?void 0:h[v];if(x===null)return null;const w=tg(x)||tg(g);return f[v][w]}),p=s&&Object.entries(s).reduce((v,x)=>{let[g,w]=x;return w===void 0||(v[g]=w),v},{}),b=r==null||(c=r.compoundVariants)===null||c===void 0?void 0:c.reduce((v,x)=>{let{class:g,className:w,...B}=x;return Object.entries(B).every(Y=>{let[H,D]=Y;return Array.isArray(D)?D.includes({...h,...p}[H]):{...h,...p}[H]===D})?[...v,g,w]:v},[]);return lg(n,d,b,s==null?void 0:s.class,s==null?void 0:s.className)},K4=(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},Z4=(n,r)=>({classGroupId:n,validator:r}),R0=(n=new Map,r=null,s)=>({nextPart:n,validators:r,classGroupId:s}),ec="-",ag=[],J4="arbitrary..",F4=n=>{const r=W4(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return $4(d);const p=d.split(ec),b=p[0]===""&&p.length>1?1:0;return A0(p,b,r)},getConflictingClassGroupIds:(d,p)=>{if(p){const b=c[d],v=s[d];return b?v?K4(v,b):b:v||ag}return s[d]||ag}}},A0=(n,r,s)=>{if(n.length-r===0)return s.classGroupId;const f=n[r],h=s.nextPart.get(f);if(h){const v=A0(n,r+1,h);if(v)return v}const d=s.validators;if(d===null)return;const p=r===0?n.join(ec):n.slice(r).join(ec),b=d.length;for(let v=0;v<b;v++){const x=d[v];if(x.validator(p))return x.classGroupId}},$4=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?J4+c:void 0})(),W4=n=>{const{theme:r,classGroups:s}=n;return P4(s,r)},P4=(n,r)=>{const s=R0();for(const c in n){const f=n[c];Pd(f,s,c,r)}return s},Pd=(n,r,s,c)=>{const f=n.length;for(let h=0;h<f;h++){const d=n[h];I4(d,r,s,c)}},I4=(n,r,s,c)=>{if(typeof n=="string"){e_(n,r,s);return}if(typeof n=="function"){t_(n,r,s,c);return}l_(n,r,s,c)},e_=(n,r,s)=>{const c=n===""?r:M0(r,n);c.classGroupId=s},t_=(n,r,s,c)=>{if(a_(n)){Pd(n(c),r,s,c);return}r.validators===null&&(r.validators=[]),r.validators.push(Z4(s,n))},l_=(n,r,s,c)=>{const f=Object.entries(n),h=f.length;for(let d=0;d<h;d++){const[p,b]=f[d];Pd(b,M0(r,p),s,c)}},M0=(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 p=s.nextPart.get(d);p||(p=R0(),s.nextPart.set(d,p)),s=p}return s},a_=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,n_=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)}}},_d="!",ng=":",i_=[],ig=(n,r,s,c,f)=>({modifiers:n,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:c,isExternal:f}),u_=n=>{const{prefix:r,experimentalParseClassName:s}=n;let c=f=>{const h=[];let d=0,p=0,b=0,v;const x=f.length;for(let H=0;H<x;H++){const D=f[H];if(d===0&&p===0){if(D===ng){h.push(f.slice(b,H)),b=H+1;continue}if(D==="/"){v=H;continue}}D==="["?d++:D==="]"?d--:D==="("?p++:D===")"&&p--}const g=h.length===0?f:f.slice(b);let w=g,B=!1;g.endsWith(_d)?(w=g.slice(0,-1),B=!0):g.startsWith(_d)&&(w=g.slice(1),B=!0);const Y=v&&v>b?v-b:void 0;return ig(h,B,w,Y)};if(r){const f=r+ng,h=c;c=d=>d.startsWith(f)?h(d.slice(f.length)):ig(i_,!1,d,void 0,!0)}if(s){const f=c;c=h=>s({className:h,parseClassName:f})}return c},r_=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],p=d[0]==="[",b=r.has(d);p||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}},s_=n=>({cache:n_(n.cacheSize),parseClassName:u_(n),sortModifiers:r_(n),postfixLookupClassGroupIds:c_(n),...F4(n)}),c_=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},o_=/\s+/,f_=(n,r)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:f,sortModifiers:h,postfixLookupClassGroupIds:d}=r,p=[],b=n.trim().split(o_);let v="";for(let x=b.length-1;x>=0;x-=1){const g=b[x],{isExternal:w,modifiers:B,hasImportantModifier:Y,baseClassName:H,maybePostfixModifierPosition:D}=s(g);if(w){v=g+(v.length>0?" "+v:v);continue}let k=!!D,G;if(k){const Z=H.substring(0,D);G=c(Z);const U=G&&d[G]?c(H):void 0;U&&U!==G&&(G=U,k=!1)}else G=c(H);if(!G){if(!k){v=g+(v.length>0?" "+v:v);continue}if(G=c(H),!G){v=g+(v.length>0?" "+v:v);continue}k=!1}const X=B.length===0?"":B.length===1?B[0]:h(B).join(":"),K=Y?X+_d:X,V=K+G;if(p.indexOf(V)>-1)continue;p.push(V);const oe=f(G,k);for(let Z=0;Z<oe.length;++Z){const U=oe[Z];p.push(K+U)}v=g+(v.length>0?" "+v:v)}return v},d_=(...n)=>{let r=0,s,c,f="";for(;r<n.length;)(s=n[r++])&&(c=D0(s))&&(f&&(f+=" "),f+=c);return f},D0=n=>{if(typeof n=="string")return n;let r,s="";for(let c=0;c<n.length;c++)n[c]&&(r=D0(n[c]))&&(s&&(s+=" "),s+=r);return s},h_=(n,...r)=>{let s,c,f,h;const d=b=>{const v=r.reduce((x,g)=>g(x),n());return s=s_(v),c=s.cache.get,f=s.cache.set,h=p,p(b)},p=b=>{const v=c(b);if(v)return v;const x=f_(b,s);return f(b,x),x};return h=d,(...b)=>h(d_(...b))},m_=[],ct=n=>{const r=s=>s[n]||m_;return r.isThemeGetter=!0,r.themeKey=n,r},U0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,y_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,v_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p_=/\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$/,g_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,b_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ka=n=>y_.test(n),Te=n=>!!n&&!Number.isNaN(Number(n)),Gl=n=>!!n&&Number.isInteger(Number(n)),ld=n=>n.endsWith("%")&&Te(n.slice(0,-1)),sa=n=>v_.test(n),H0=()=>!0,S_=n=>p_.test(n)&&!g_.test(n),Id=()=>!1,E_=n=>b_.test(n),__=n=>x_.test(n),T_=n=>!ae(n)&&!ne(n),N_=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)),C_=n=>an(n,B0,Id),ae=n=>U0.test(n),zn=n=>an(n,Q0,S_),ug=n=>an(n,D_,Te),w_=n=>an(n,Y0,H0),z_=n=>an(n,G0,Id),rg=n=>an(n,q0,Id),j_=n=>an(n,L0,__),Xs=n=>an(n,V0,E_),ne=n=>k0.test(n),er=n=>Yn(n,Q0),O_=n=>Yn(n,G0),sg=n=>Yn(n,q0),R_=n=>Yn(n,B0),A_=n=>Yn(n,L0),Ks=n=>Yn(n,V0,!0),M_=n=>Yn(n,Y0,!0),an=(n,r,s)=>{const c=U0.exec(n);return c?c[1]?r(c[1]):s(c[2]):!1},Yn=(n,r,s=!1)=>{const c=k0.exec(n);return c?c[1]?r(c[1]):s:!1},q0=n=>n==="position"||n==="percentage",L0=n=>n==="image"||n==="url",B0=n=>n==="length"||n==="size"||n==="bg-size",Q0=n=>n==="length",D_=n=>n==="number",G0=n=>n==="family-name",Y0=n=>n==="number"||n==="weight",V0=n=>n==="shadow",U_=()=>{const n=ct("color"),r=ct("font"),s=ct("text"),c=ct("font-weight"),f=ct("tracking"),h=ct("leading"),d=ct("breakpoint"),p=ct("container"),b=ct("spacing"),v=ct("radius"),x=ct("shadow"),g=ct("inset-shadow"),w=ct("text-shadow"),B=ct("drop-shadow"),Y=ct("blur"),H=ct("perspective"),D=ct("aspect"),k=ct("ease"),G=ct("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...K(),ne,ae],oe=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],U=()=>[ne,ae,b],$=()=>[Ka,"full","auto",...U()],ve=()=>[Gl,"none","subgrid",ne,ae],Ye=()=>["auto",{span:["full",Gl,ne,ae]},Gl,ne,ae],I=()=>[Gl,"auto",ne,ae],Ne=()=>["auto","min","max","fr",ne,ae],Ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...U()],F=()=>[Ka,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],ee=()=>[p,Ka,"screen","full","dvw","lvw","svw","min","max","fit",...U()],fe=()=>[Ka,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],J=()=>[n,ne,ae],Ut=()=>[...K(),sg,rg,{position:[ne,ae]}],ll=()=>["no-repeat",{repeat:["","x","y","space","round"]}],zl=()=>["auto","cover","contain",R_,C_,{size:[ne,ae]}],C=()=>[ld,er,zn],Q=()=>["","none","full",v,ne,ae],te=()=>["",Te,er,zn],re=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Te,ld,sg,rg],Me=()=>["","none",Y,ne,ae],ie=()=>["none",Te,ne,ae],me=()=>["none",Te,ne,ae],Gt=()=>[Te,ne,ae],va=()=>[Ka,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sa],breakpoint:[sa],color:[H0],container:[sa],"drop-shadow":[sa],ease:["in","out","in-out"],font:[T_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sa],shadow:[sa],spacing:["px",Te],text:[sa],"text-shadow":[sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ka,ae,ne,D]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,ae]}],"container-named":[N_],columns:[{columns:[Te,"auto",ae,ne,p]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:V()}],overflow:[{overflow:oe()}],"overflow-x":[{"overflow-x":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Gl,"auto",ne,ae]}],basis:[{basis:[Ka,"full","auto",p,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Ka,"auto","initial","none",ae]}],grow:[{grow:["",Te,ne,ae]}],shrink:[{shrink:["",Te,ne,ae]}],order:[{order:[Gl,"first","last","none",ne,ae]}],"grid-cols":[{"grid-cols":ve()}],"col-start-end":[{col:Ye()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":ve()}],"row-start-end":[{row:Ye()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ne()}],"auto-rows":[{"auto-rows":Ne()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Ee(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...Ee()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ee()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],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:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[p,"screen",...F()]}],"min-w":[{"min-w":[p,"screen","none",...F()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh","none",...F()]}],"font-size":[{text:["base",s,er,zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,M_,w_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ld,ae]}],"font-family":[{font:[O_,z_,r]}],"font-features":[{"font-features":[ae]}],"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,ne,ae]}],"line-clamp":[{"line-clamp":[Te,"none",ne,ug]}],leading:[{leading:["none",h,...U()]}],"list-image":[{"list-image":["none",ne,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ne,zn]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Te,"auto",ne,ae]}],"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:[Gl,ne,ae]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,ae]}],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",ne,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ut()}],"bg-repeat":[{bg:ll()}],"bg-size":[{bg:zl()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gl,ne,ae],radial:["",ne,ae],conic:["",Gl,ne,ae]},A_,j_]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:C()}],"gradient-via-pos":[{via:C()}],"gradient-to-pos":[{to:C()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ne,ae]}],"outline-w":[{outline:["",Te,er,zn]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","inner","none",x,Ks,Xs]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",g,Ks,Xs]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Te,zn]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",w,Ks,Xs]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Te,ne,ae]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[ne,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"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":K()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ut()}],"mask-repeat":[{mask:ll()}],"mask-size":[{mask:zl()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,ae]}],filter:[{filter:["","none",ne,ae]}],blur:[{blur:Me()}],brightness:[{brightness:[Te,ne,ae]}],contrast:[{contrast:[Te,ne,ae]}],"drop-shadow":[{"drop-shadow":["","none",B,Ks,Xs]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Te,ne,ae]}],"hue-rotate":[{"hue-rotate":[Te,ne,ae]}],invert:[{invert:["",Te,ne,ae]}],saturate:[{saturate:[Te,ne,ae]}],sepia:[{sepia:["",Te,ne,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,ae]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ne,ae]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ne,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ne,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ne,ae]}],"backdrop-invert":[{"backdrop-invert":["",Te,ne,ae]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ne,ae]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ne,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ne,ae]}],"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",ne,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ne,ae]}],ease:[{ease:["linear","initial",k,ne,ae]}],delay:[{delay:[Te,ne,ae]}],animate:[{animate:["none",G,ne,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[H,ne,ae]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:Gt()}],"skew-x":[{"skew-x":Gt()}],"skew-y":[{"skew-y":Gt()}],transform:[{transform:[ne,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:va()}],"translate-x":[{"translate-x":va()}],"translate-y":[{"translate-y":va()}],"translate-z":[{"translate-z":va()}],"translate-none":["translate-none"],zoom:[{zoom:[Gl,ne,ae]}],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"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",ne,ae]}],"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":J()}],"scrollbar-track-color":[{"scrollbar-track":J()}],"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",ne,ae]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Te,er,zn,ug]}],stroke:[{stroke:["none",...J()]}],"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"]}},k_=h_(U_);function yl(...n){return k_(O0(n))}const H_=X4("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"}}),wt=E.forwardRef(function({className:r,variant:s,size:c,...f},h){return m.jsx("button",{ref:h,className:yl(H_({variant:s,size:c}),r),...f})}),X0="w-full rounded-md border border-line bg-surface px-2.5 text-[13px] text-ink-1 placeholder:text-ink-3 transition-colors hover:border-line-strong focus:border-brand focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed",rt=E.forwardRef(function({className:r,...s},c){return m.jsx("input",{ref:c,className:yl(X0,"h-8",r),...s})}),Td=E.forwardRef(function({className:r,...s},c){return m.jsx("textarea",{ref:c,className:yl(X0,"py-2 min-h-[72px] resize-y leading-relaxed",r),...s})});function Ue({label:n,required:r,hint:s,className:c,children:f}){return m.jsxs("div",{className:yl("flex flex-col gap-1.5",c),children:[m.jsxs("label",{className:"text-[12px] font-medium text-ink-2",children:[n,r&&m.jsx("span",{className:"text-danger ml-0.5",children:"*"}),s&&m.jsx("span",{className:"text-ink-3 font-normal ml-2",children:s})]}),f]})}const hl=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(K3,{size:14,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-ink-3"})]})});function Pi({className:n,color:r,...s}){return m.jsx("span",{className:yl("inline-flex items-center gap-1 rounded-sm border px-1.5 py-px text-[11px] leading-[18px] font-medium whitespace-nowrap",n),style:r?{color:r,borderColor:r+"44",backgroundColor:r+"14"}:void 0,...s})}function q_({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=p=>{p.key==="Escape"&&r()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[n,r]),n?VS.createPortal(m.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center overflow-y-auto p-3 pt-[6vh] sm:p-6 sm:pt-[8vh]",children:[m.jsx("div",{className:"fixed inset-0 bg-black/45",onClick:r}),m.jsxs("div",{className:"animate-in relative w-full rounded-lg border border-line bg-surface shadow-pop",style:{maxWidth:c},role:"dialog",children:[m.jsxs("div",{className:"flex h-12 items-center justify-between border-b border-line px-4",children:[m.jsx("div",{className:"text-sm font-semibold text-ink-1",children:s}),m.jsx(wt,{variant:"ghost",size:"icon-sm",onClick:r,"aria-label":"关闭",children:m.jsx(p0,{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 L_({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(vE,{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 K0=E.createContext(()=>{});function eh(){return E.useContext(K0)}const B_={success:m.jsx($3,{size:15,className:"text-success"}),error:m.jsx(J3,{size:15,className:"text-danger"}),info:m.jsx(gE,{size:15,className:"text-brand"})};function Q_({children:n}){const[r,s]=E.useState([]),c=E.useRef(0),f=E.useCallback((h,d)=>{const p=++c.current;s(b=>[...b,{id:p,kind:h,text:d}]),setTimeout(()=>s(b=>b.filter(v=>v.id!==p)),3200)},[]);return m.jsxs(K0.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:[B_[h.kind],h.text]},h.id))})]})}function G_({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(wt,{variant:"secondary",onClick:c,children:"取消"}),m.jsx(wt,{variant:"danger",onClick:f,disabled:h,children:"确认"})]}),children:m.jsx("p",{className:"text-[13px] text-ink-2",children:s??"该操作不可撤销,请确认。"})})}function Y_({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 V_({open:n,onClose:r,defaultUrl:s}){const c=tu(),f=eh(),[h,d]=E.useState("login"),[p,b]=E.useState(s||"https://footpr.linyux.cn"),[v,x]=E.useState(""),[g,w]=E.useState(""),[B,Y]=E.useState(""),[H,D]=E.useState(""),[k,G]=E.useState(!1),X=async()=>{if(!v.trim()||!g){D("请填写账号与密码");return}let K=p.trim();K&&!K.startsWith("http")&&(K="https://"+K),G(!0),D("");try{if(h==="login")await Jd(v.trim(),g,K);else{if(!B.trim())throw new Error("请填写邀请码");await Fd(v.trim(),g,B.trim(),K)}c.invalidateQueries(),f("success",h==="login"?"已登录 · 同步已开启":"已注册登录 · 同步已开启"),r(),setTimeout(()=>window.location.reload(),300)}catch(V){D(V.message)}finally{G(!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(Y_,{}),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(Ue,{label:"服务器地址",hint:"与网页版同一账号体系",children:m.jsx(rt,{value:p,onChange:K=>b(K.target.value),placeholder:"https://footpr.linyux.cn"})}),m.jsx(Ue,{label:"用户名",required:!0,children:m.jsx(rt,{value:v,onChange:K=>x(K.target.value),placeholder:"3-32 位字母数字-_"})}),m.jsx(Ue,{label:"密码",required:!0,children:m.jsx(rt,{type:"password",value:g,onChange:K=>w(K.target.value),placeholder:"至少 8 位"})}),h==="register"&&m.jsx(Ue,{label:"邀请码",required:!0,hint:"向管理员索取",children:m.jsx(rt,{value:B,onChange:K=>Y(K.target.value),placeholder:"邀请码"})}),H&&m.jsx("div",{className:"text-[12px] text-danger",children:H}),m.jsx(wt,{variant:"primary",size:"lg",onClick:()=>void X(),disabled:k,children:k?"请稍候…":h==="login"?"登录并同步":"注册并同步"}),m.jsx("p",{className:"text-center text-[11px] text-ink-3",children:"登录后本机数据将多端同步"})]})]})}):null}const X_=[{section:"工作区",items:[{to:"/timeline",label:"时间线",icon:h0},{to:"/records",label:"记录",icon:ZE},{to:"/grades",label:"成绩",icon:y0},{to:"/dashboard",label:"统计",icon:V3}]},{section:"配置",items:[{to:"/admin",label:"管理",icon:t4},{to:"/types",label:"记录类型",icon:WE},{to:"/taxonomy",label:"字典与维度",icon:a4}]}];function K_(){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 Z_({open:n,onClose:r}){const s=tu(),f=ml({queryKey:["me",ha()??""],refetchOnMount:"always",queryFn:()=>g0(),enabled:!!ha(),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(V_,{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(K_,{}),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:X_.map(p=>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:p.section}),m.jsx("div",{className:"flex flex-col gap-0.5",children:p.items.map(b=>m.jsxs(Ig,{to:b.to,onClick:r,className:({isActive:v})=>yl("relative flex h-[34px] items-center gap-3 rounded-lg px-3 text-[13px] font-medium transition-all duration-150",v?"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))})]},p.section))}),m.jsx("div",{className:"border-t border-line px-3 py-3",children:ha()&&f?m.jsxs("div",{className:"rounded-lg bg-surface-2 px-3 py-2.5",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-brand text-[10px] font-bold text-white",children:f.username.charAt(0).toUpperCase()}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"truncate text-[12px] font-semibold text-ink-1",title:f.username,children:f.username}),f.is_admin&&m.jsx("div",{className:"text-[10px] text-brand-text",children:"管理员"})]})]}),m.jsx("button",{className:"shrink-0 rounded p-1 text-ink-3 transition-colors hover:bg-surface-3 hover:text-danger",title:"退出登录",onClick:()=>{Zd(),s.clear(),window.location.reload()},children:m.jsx(CE,{size:13})})]}),m.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[10px] text-success",children:[m.jsx(P3,{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(TE,{size:14}),"登录我的档案"]})})]})}const J_={"/timeline":{title:"时间线",sub:"按学年与月份回顾全部足迹"},"/records":{title:"记录",sub:"全部足迹的检索与管理"},"/grades":{title:"成绩",sub:"学年学科成绩 · 梯度与总览"},"/dashboard":{title:"统计",sub:"量化个人成长收获"},"/types":{title:"记录类型",sub:"类型与字段模板管理"},"/taxonomy":{title:"字典与维度",sub:"级别、角色与成长维度"}};function F_({onMenu:n}){const{pathname:r}=vl(),s=ac(),[c,f]=E.useState(""),[h,d]=E.useState(document.documentElement.classList.contains("dark")),p=J_[r]??{title:""},b=()=>{const v=!h;d(v),document.documentElement.classList.toggle("dark",v),localStorage.setItem("fp-theme",v?"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(wt,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:n,"aria-label":"打开导航",children:m.jsx(zE,{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:p.title}),p.sub&&m.jsx("p",{className:"truncate text-[11px] leading-tight text-ink-3",children:p.sub})]}),m.jsxs("div",{className:"relative ml-auto hidden w-[240px] md:block lg:w-[280px]",children:[m.jsx(FE,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-ink-3"}),m.jsx(rt,{className:"pl-8",placeholder:"搜索标题、内容、结果、标签",value:c,onChange:v=>f(v.target.value),onKeyDown:v=>{v.key==="Enter"&&c.trim()&&s("/records?q="+encodeURIComponent(c.trim()))}})]}),m.jsx(wt,{variant:"ghost",size:"icon",onClick:b,"aria-label":"切换主题",children:h?m.jsx(r4,{size:15}):m.jsx(AE,{size:15})}),m.jsxs(wt,{variant:"primary",onClick:()=>s("/records?new=1"),"aria-label":"新建记录",children:[m.jsx(YE,{size:14}),m.jsx("span",{className:"hidden sm:inline",children:"新建记录"})]})]})}function $_(){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 W_(){const[n,r]=E.useState("login"),[s,c]=E.useState(""),[f,h]=E.useState(""),[d,p]=E.useState(""),[b,v]=E.useState(""),[x,g]=E.useState(!1),w="__TAURI_INTERNALS__"in window,[B,Y]=E.useState(ln()),H=k=>{Y(k),x0(k)},D=async()=>{if(!s.trim()||!f){v("请填写账号与密码");return}g(!0),v("");try{if(n==="login")await Jd(s.trim(),f,B);else{if(!d.trim())throw new Error("请填写邀请码");await Fd(s.trim(),f,d.trim(),B)}setTimeout(()=>window.location.reload(),200)}catch(k){v(k.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($_,{}),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"),v("")},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"),v("")},children:"注册"})]}),m.jsxs("div",{className:"flex flex-col gap-3",children:[w&&m.jsx(Ue,{label:"服务器地址",hint:"默认即可",children:m.jsx(rt,{value:B,onChange:k=>H(k.target.value),placeholder:"https://footpr.linyux.cn"})}),m.jsx(Ue,{label:"用户名",required:!0,children:m.jsx(rt,{value:s,onChange:k=>c(k.target.value),placeholder:"3-32 位字母数字-_",onKeyDown:k=>{k.key==="Enter"&&D()}})}),m.jsx(Ue,{label:"密码",required:!0,children:m.jsx(rt,{type:"password",value:f,onChange:k=>h(k.target.value),placeholder:"至少 8 位",onKeyDown:k=>{k.key==="Enter"&&D()}})}),n==="register"&&m.jsx(Ue,{label:"邀请码",required:!0,hint:"向管理员索取",children:m.jsx(rt,{value:d,onChange:k=>p(k.target.value),placeholder:"邀请码",onKeyDown:k=>{k.key==="Enter"&&D()}})}),b&&m.jsx("div",{className:"text-[12px] text-danger",children:b}),m.jsx(wt,{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 P_(){const[n,r]=E.useState(()=>!!ha()),[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(Q_,{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(Z_,{open:s,onClose:()=>c(!1)}),m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[m.jsx(F_,{onMenu:()=>c(!0)}),m.jsx("main",{className:"min-h-0 flex-1 overflow-y-auto",children:m.jsx(sS,{})})]})]})}):m.jsx(W_,{})}const cg={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 Z0({status:n}){const r=cg[n]??cg.draft;return m.jsx("span",{className:"inline-flex items-center rounded-sm px-1.5 py-px text-[11px] leading-[18px] font-medium whitespace-nowrap",style:{color:r.color,backgroundColor:r.bg},children:r.label})}const I_={国际级:"#7c3aed",国家级:"#dc2626",省市级:"#ea580c",区县级:"#2563eb",校级:"#16a34a",院级:"#0891b2"};function J0({level:n}){return n?m.jsx(Pi,{color:I_[n]??"var(--text-3)",children:n}):null}const e5={特等奖:"#b45309",一等奖:"#b45309",二等奖:"#ea580c",三等奖:"#2563eb",优秀奖:"#64748b"};function F0({grade:n}){return n?m.jsx(Pi,{color:e5[n]??"var(--text-3)",children:n}):null}function $0({role:n}){return n?m.jsx(q_,{children:n}):null}function W0(){return m.jsx(Pi,{color:"var(--danger)",children:"负面"})}const z5=[{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:"体育"}],t5={tag:v0,"graduation-cap":y0,trophy:f4,"flask-conical":cE,briefcase:L3,network:DE,"heart-handshake":dE,palette:kE,award:U3,"file-badge":uE,star:i4,"shield-alert":IE,"book-open":H3,"code-2":eE,languages:xE,"mic-2":OE,"pen-line":LE,rocket:XE,users:h4,"building-2":Q3,dumbbell:nE};function l5({name:n,color:r,size:s=14,className:c}){const f=t5[n]??v0;return m.jsx(f,{size:s,color:r,className:c,strokeWidth:2})}const og=new Map,a5=25*1024*1024;async function fg(n){const r=og.get(n.id);if(r)return r;const s=await Is(n.id);return(n.size??0)<=a5&&og.set(n.id,s),s}function n5(n,r){const s=Uint8Array.from(atob(n),c=>c.charCodeAt(0));return URL.createObjectURL(new Blob([s],{type:r||"application/octet-stream"}))}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 $s(n){return Uint8Array.from(atob(n),r=>r.charCodeAt(0))}function i5(n,r,s){const c=URL.createObjectURL(new Blob([$s(s)],{type:r||"application/octet-stream"})),f=document.createElement("a");f.href=c,f.download=n,f.click(),setTimeout(()=>URL.revokeObjectURL(c),6e4)}const u5={image:"图片",pdf:"PDF 文档",text:"文本文件",audio:"音频",video:"视频",docx:"Word 文档(.docx)",xlsx:"Excel 表格(.xlsx)",other:"该类型暂不支持在线预览"};function P0({att:n,onClose:r}){const[s,c]=E.useState(!1),[f,h]=E.useState(""),[d,p]=E.useState(null);E.useEffect(()=>{if(!n){p(null),h("");return}let v=!1;const x=[];return c(!0),h(""),p(null),(async()=>{try{const g=dg(n),{data_b64:w,mime:B}=await fg(n);if(v)return;if(g==="image"||g==="pdf"||g==="audio"||g==="video"){const Y=n5(w,B);if(v){URL.revokeObjectURL(Y);return}x.push(Y),p({kind:g,objectUrl:Y})}else if(g==="text"){const Y=new TextDecoder().decode($s(w));p({kind:g,text:Y.length>4e5?Y.slice(0,4e5)+`
…(已截断)`:Y})}else if(g==="docx"){const H=(await(await ya(()=>import("./mammoth.browser-BE8OvB3j.js").then(D=>D.m),[])).convertToHtml({arrayBuffer:$s(w).buffer})).value;if(v)return;p({kind:g,html:H})}else if(g==="xlsx"){const Y=await ya(()=>import("./xlsx-CbTSpprj.js"),[]),H=Y.read($s(w).buffer,{type:"array"}),D=Y.utils.sheet_to_html(H.Sheets[H.SheetNames[0]]);if(v)return;p({kind:g,html:D})}else p({kind:"other"})}catch(g){v||h(g.message||"预览加载失败")}finally{v||c(!1)}})(),()=>{v=!0,x.forEach(g=>URL.revokeObjectURL(g))}},[n==null?void 0:n.id,n==null?void 0:n.file_name]);const b=n?dg(n):"other";return m.jsxs(sc,{open:!!n,onClose:r,width:b==="image"||b==="pdf"?880:680,title:(n?"附件预览 · "+n.file_name:"附件预览")+(n?"("+u5[b]+")":""),footer:n?m.jsxs(m.Fragment,{children:[m.jsxs(wt,{variant:"secondary",className:"mr-auto",onClick:()=>{fg(n).then(v=>i5(n.file_name,n.mime,v.data_b64))},children:[m.jsx(lE,{size:13})," 下载"]}),m.jsx(wt,{variant:"primary",onClick:r,children:"关闭"})]}):null,children:[s&&m.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-[13px] text-ink-3",children:[m.jsx(EE,{className:"animate-spin",size:16})," 正在加载预览…"]}),!s&&!!f&&m.jsx("div",{className:"py-10 text-center text-[13px] text-danger",children:f}),!s&&!f&&d&&m.jsxs(m.Fragment,{children:[d.kind==="image"&&m.jsx("img",{src:d.objectUrl,alt:n==null?void 0:n.file_name,className:"mx-auto max-h-[72vh] rounded-md"}),d.kind==="pdf"&&m.jsx("iframe",{src:d.objectUrl,title:n==null?void 0:n.file_name,className:"h-[72vh] w-full rounded-md border border-line bg-white"}),d.kind==="audio"&&m.jsx("audio",{controls:!0,src:d.objectUrl,className:"w-full"}),d.kind==="video"&&m.jsx("video",{controls:!0,src:d.objectUrl,className:"max-h-[70vh] w-full rounded-md bg-black"}),d.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:d.text}),(d.kind==="docx"||d.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:d.html||""}}),d.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 r5({value:n,onChange:r,placeholder:s}){const[c,f]=E.useState(""),h=()=>{const p=c.trim();p&&!n.includes(p)&&r([...n,p]),f("")},d=p=>{p.key==="Enter"||p.key===","?(p.preventDefault(),h()):p.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(p=>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:[p,m.jsx("button",{type:"button",className:"text-ink-3 hover:text-ink-1",onClick:()=>r(n.filter(b=>b!==p)),children:m.jsx(p0,{size:11})})]},p)),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:p=>f(p.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 s5({fields:n,value:r,onChange:s,taxonomies:c}){if(!n.length)return null;const f=(d,p)=>s({...r,[d]:p}),h=d=>{const p=r[d.key],b=d.required&&(p==null||p==="")?"该项必填":"",v=x=>d.unit?m.jsxs("div",{className:"flex items-center gap-2",children:[x,m.jsx("span",{className:"text-[12px] text-ink-3 shrink-0",children:d.unit})]}):x;switch(d.widget){case"textarea":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(Td,{value:String(p??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);case"number":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:v(m.jsx(rt,{type:"number",step:"any",className:"num",value:p==null?"":String(p),onChange:x=>f(d.key,x.target.value===""?void 0:Number(x.target.value))}))},d.key);case"date":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(rt,{type:"date",value:String(p??""),onChange:x=>f(d.key,x.target.value)})},d.key);case"select":return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(hl,{value:String(p??""),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(p)?p:[];return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[x.map(w=>{const B=g.includes(w.value);return m.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(B?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>f(d.key,B?g.filter(Y=>Y!==w.value):[...g,w.value]),children:w.label},w.value)}),!x.length&&m.jsx("span",{className:"text-[12px] text-ink-3",children:"未配置选项"})]})},d.key)}case"link":return m.jsx(Ue,{label:d.label,required:d.required,hint:b||"关联记录功能规划中,暂以文本记录",children:m.jsx(rt,{value:String(p??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);default:return m.jsx(Ue,{label:d.label,required:d.required,hint:b,children:m.jsx(rt,{value:String(p??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key)}};return m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:n.map(d=>m.jsx("div",{className:d.widget==="textarea"?"col-span-2":"",children:h(d)},d.key))})}function mg(n){return n?n.slice(0,16).replace("T"," "):""}function c5(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 Nd(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/1024/1024).toFixed(1)+" MB"}function I0(n,r,s=480,c=.82){return new Promise((f,h)=>{const d=new Image;d.onload=()=>{try{const p=Math.min(1,s/Math.max(d.naturalWidth,d.naturalHeight)),b=Math.max(1,Math.round(d.naturalWidth*p)),v=Math.max(1,Math.round(d.naturalHeight*p)),x=document.createElement("canvas");x.width=b,x.height=v;const g=x.getContext("2d");if(!g)return h(new Error("canvas 不可用"));g.drawImage(d,0,0,b,v),f(x.toDataURL("image/webp",c))}catch(p){h(p instanceof Error?p:new Error(String(p)))}},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 p=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(Vd,{size:13}),"附件(",b,")"]}),m.jsx(wt,{size:"sm",variant:"secondary",disabled:d,onClick:()=>{var v;return(v=p.current)==null?void 0:v.click()},children:d?"上传中…":"添加文件"}),m.jsx("input",{ref:p,type:"file",multiple:!0,className:"hidden",onChange:v=>{var x;(x=v.target.files)!=null&&x.length&&s(v.target.files),v.target.value=""}})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[n.map(v=>m.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[m.jsx(m0,{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(v),title:v.file_name,children:v.file_name}),m.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:Nd(v.size)}),m.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>c(v.id),"aria-label":"删除附件",children:m.jsx(xd,{size:13})})]},"s"+v.id)),r.map((v,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=v.mime)!=null&&g.startsWith("image/")&&v.preview?m.jsx("img",{src:v.preview,alt:v.file_name,className:"size-7 shrink-0 rounded object-cover"}):m.jsx(mE,{size:13,className:"text-ink-3 shrink-0"}),m.jsx("span",{className:"truncate text-ink-1",children:v.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:Nd(v.size)}),m.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>f(x),"aria-label":"移除",children:m.jsx(xd,{size:13})})]},"p"+x)}),!b&&m.jsx("div",{className:"py-1 text-[12px] text-ink-3",children:"证书扫描件、照片、文档等佐证材料"})]})]})}async function vg(n){var h,d;const r=await new Promise((p,b)=>{const v=new FileReader;v.onload=()=>p(String(v.result||"")),v.onerror=()=>b(new Error("读取文件失败")),v.readAsDataURL(n)}),s=r.indexOf(","),c=s>=0?r.slice(s+1):r;let f;if((h=n.type)!=null&&h.startsWith("image/")&&!n.type.includes("gif"))try{f=(await I0(c,n.type)).split(",")[1]||void 0}catch{f=void 0}return{file_name:n.name,mime:n.type||void 0,size:n.size,data_b64:c,thumb_b64:f,preview:(d=n.type)!=null&&d.startsWith("image/")?URL.createObjectURL(n):void 0}}const pg={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:{}},o5=["特等奖","一等奖","二等奖","三等奖","优秀奖","无"],gg=80*1024*1024,f5=[{value:"draft",label:"草稿"},{value:"ongoing",label:"进行中"},{value:"submitted",label:"已提交待果"},{value:"finished",label:"已完结"}];function d5({open:n,onClose:r,footprintId:s,onSaved:c}){var Ye,I,Ne,Ee,de;const f=tu(),h=eh(),[d,p]=E.useState(pg),[b,v]=E.useState([]),[x,g]=E.useState(!1),[w,B]=E.useState(null),[Y,H]=E.useState(""),D=ml({queryKey:["types"],queryFn:uc,enabled:n}),k=ml({queryKey:["taxonomy-all"],queryFn:()=>S0(),enabled:n}),G=ml({queryKey:["dimensions"],queryFn:$d,enabled:n}),X=ml({queryKey:["footprint",s],queryFn:()=>Wd(s),enabled:n&&!!s}),K=ml({queryKey:["attachments",s],queryFn:()=>N0(s),enabled:n&&!!s}),V=E.useMemo(()=>{var N;return(N=D.data)==null?void 0:N.items.find(F=>F.id===d.type_id)},[D.data,d.type_id]),oe=ml({queryKey:["parent-candidates",d.type_id],queryFn:()=>E0({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(H(""),v([]),s&&X.data){const N=X.data.item;p({type_id:N.type_id,title:N.title,organizer:N.organizer??"",start_date:(N.start_date??"").slice(0,10),end_date:(N.end_date??"").slice(0,10),status:N.status,role:N.role??"",level:N.level??"",award_grade:N.award_grade??"",rank:N.rank!=null?String(N.rank):"",polarity:N.polarity,weight:String(N.weight??3),description:N.description??"",result:N.result??"",tags:N.tags??[],dimension_ids:N.dimensions??[],group_id:N.group_id??"",parent_id:N.parent_id!=null?String(N.parent_id):"",extras:N.extras??{}})}else p(pg)},[n,s,X.data]);const Z=E.useMemo(()=>{var F,ee;const N={};for(const fe of((F=k.data)==null?void 0:F.items)??[])(N[ee=fe.kind]??(N[ee]=[])).push({value:fe.value,label:fe.value});return N},[k.data]),U=bd({mutationFn:async()=>{if(!d.type_id)throw new Error("请选择记录类型");if(!d.title.trim())throw new Error("请填写标题");const N={};for(const fe of(V==null?void 0:V.form_template)??[])if(fe.metric&&fe.widget==="number"){const J=d.extras[fe.key];typeof J=="number"&&!Number.isNaN(J)&&(N[fe.metric]=J)}const F={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:N},ee=await _0(F);for(const fe of b)await Ed({owner_id:ee.id,file_name:fe.file_name,mime:fe.mime,size:fe.size,data_b64:fe.data_b64,thumb_b64:fe.thumb_b64});return ee.id},onSuccess:N=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),f.invalidateQueries({queryKey:["footprint"]}),f.invalidateQueries({queryKey:["attachments",N]}),f.invalidateQueries({queryKey:["types"]}),h("success",s?"记录已更新":"记录已创建"),c==null||c(N),r()},onError:N=>H(N.message)}),$=(N,F)=>p(ee=>({...ee,[N]:F})),ve=bd({mutationFn:N=>C0(N),onSuccess:()=>void f.invalidateQueries({queryKey:["attachments",s]})});return m.jsxs(sc,{open:n,onClose:r,width:760,title:s?"编辑记录":"新建记录",footer:m.jsxs(m.Fragment,{children:[Y&&m.jsx("span",{className:"mr-auto text-[12px] text-danger",children:Y}),m.jsx(wt,{variant:"secondary",onClick:r,children:"取消"}),m.jsx(wt,{variant:"primary",onClick:()=>U.mutate(),disabled:U.isPending,children:U.isPending?"保存中…":"保存"})]}),children:[m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[200px_1fr] gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"类型",required:!0,children:m.jsx(hl,{value:d.type_id!=null?String(d.type_id):"",onChange:N=>$("type_id",N.target.value?Number(N.target.value):null),options:[{value:"",label:"请选择"},...(((Ye=D.data)==null?void 0:Ye.items)??[]).map(N=>({value:String(N.id),label:N.name}))]})}),m.jsx(Ue,{label:"标题",required:!0,children:m.jsx(rt,{value:d.title,onChange:N=>$("title",N.target.value),placeholder:"事项名称,如:2025 全国大学生数学建模竞赛"})})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"组织方 / 所在组织",children:m.jsx(rt,{value:d.organizer,onChange:N=>$("organizer",N.target.value),placeholder:"如:中国工业与应用数学学会"})}),m.jsx(Ue,{label:"开始日期",children:m.jsx(rt,{type:"date",value:d.start_date,onChange:N=>$("start_date",N.target.value)})}),m.jsx(Ue,{label:"结束日期",children:m.jsx(rt,{type:"date",value:d.end_date,onChange:N=>$("end_date",N.target.value)})})]}),m.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"角色",children:m.jsx(hl,{value:d.role,onChange:N=>$("role",N.target.value),options:[{value:"",label:"未设置"},...Z.role??[]]})}),m.jsx(Ue,{label:"级别",children:m.jsx(hl,{value:d.level,onChange:N=>$("level",N.target.value),options:[{value:"",label:"未设置"},...Z.level??[]]})}),m.jsx(Ue,{label:"状态",children:m.jsx(hl,{value:d.status,onChange:N=>$("status",N.target.value),options:f5})}),m.jsx(Ue,{label:"重要度",children:m.jsx(hl,{value:d.weight,onChange:N=>$("weight",N.target.value),options:[1,2,3,4,5].map(N=>({value:String(N),label:String(N)}))})})]}),m.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"奖等",children:m.jsx(hl,{value:d.award_grade,onChange:N=>$("award_grade",N.target.value),options:[{value:"",label:"未设置"},...o5.map(N=>({value:N,label:N}))]})}),m.jsx(Ue,{label:"名次",children:m.jsx(rt,{type:"number",className:"num",value:d.rank,onChange:N=>$("rank",N.target.value),placeholder:"如 2"})}),m.jsx(Ue,{label:"性质",children:m.jsx(hl,{value:d.polarity,onChange:N=>$("polarity",N.target.value),options:[{value:"positive",label:"正面"},{value:"negative",label:"负面"}]})}),m.jsx(Ue,{label:"上级记录",hint:"晋升链",children:m.jsx(hl,{value:d.parent_id,onChange:N=>$("parent_id",N.target.value),options:[{value:"",label:"无"},...(((I=oe.data)==null?void 0:I.items)??[]).filter(N=>N.id!==s).map(N=>({value:String(N.id),label:N.title.slice(0,24)}))]})})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"工作内容 / 描述",children:m.jsx(Td,{value:d.description,onChange:N=>$("description",N.target.value),placeholder:"具体做了什么、承担什么分工"})}),m.jsx(Ue,{label:"结果 / 产出",children:m.jsx(Td,{value:d.result,onChange:N=>$("result",N.target.value),placeholder:"获奖等级、成果、最终产品等"})})]}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:[m.jsx(Ue,{label:"标签",children:m.jsx(r5,{value:d.tags,onChange:N=>$("tags",N)})}),m.jsx(Ue,{label:"成长维度",children:m.jsxs("div",{className:"flex flex-wrap gap-1.5 min-h-8 items-center",children:[(((Ne=G.data)==null?void 0:Ne.items)??[]).map(N=>{const F=d.dimension_ids.includes(N.id);return m.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(F?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>$("dimension_ids",F?d.dimension_ids.filter(ee=>ee!==N.id):[...d.dimension_ids,N.id]),children:N.name},N.id)}),!((Ee=G.data)!=null&&Ee.items.length)&&m.jsx("span",{className:"text-[12px] text-ink-3",children:"尚未配置维度(配置页可添加)"})]})})]}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3",children:m.jsx(Ue,{label:"事件组 ID",hint:"同一场事件的多条记录共享",children:m.jsx(rt,{value:d.group_id,onChange:N=>$("group_id",N.target.value),placeholder:"如 g2025001(可选)"})})}),V&&V.form_template.length>0&&m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsxs("div",{className:"mb-3 text-[12px] font-semibold text-ink-2",children:["类型字段 · ",V.name]}),m.jsx(s5,{fields:V.form_template,value:d.extras,onChange:N=>$("extras",N),taxonomies:Z})]}),s?m.jsxs("div",{className:"border-t border-line pt-4",children:[m.jsx(yg,{items:((de=K.data)==null?void 0:de.items)??[],pending:b,uploading:x,onPick:async N=>{if(s){g(!0);try{let F=0;for(const ee of Array.from(N)){if(ee.size>gg){h("error","「"+ee.name+"」超过 80MB,已跳过");continue}const fe=await vg(ee);await Ed({owner_id:s,file_name:fe.file_name,mime:fe.mime,size:fe.size,data_b64:fe.data_b64,thumb_b64:fe.thumb_b64}),F++}F>0&&(f.invalidateQueries({queryKey:["attachments",s]}),h("success","已上传 "+F+" 个附件"))}catch(F){h("error",F.message)}finally{g(!1)}}},onDeleteSaved:N=>ve.mutate(N),onDeletePending:()=>{},onOpenSaved:N=>B(N)}),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 N=>{const F=[];for(const ee of Array.from(N)){if(ee.size>gg){h("error","「"+ee.name+"」超过 80MB,已跳过");continue}F.push(await vg(ee))}v(ee=>[...ee,...F])},onDeleteSaved:()=>{},onDeletePending:N=>v(F=>F.filter((ee,fe)=>fe!==N))}),m.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"保存记录时将一并上传 · 单个文件不超过 80MB"})]})]}),m.jsx(P0,{att:w,onClose:()=>B(null)})]})}const tr=new Map;function h5({open:n,onClose:r,footprintId:s,onEdit:c}){var U,$,ve,Ye;const f=tu(),h=eh(),d=ml({queryKey:["footprint",s],queryFn:()=>Wd(s),enabled:n&&!!s}),p=ml({queryKey:["types"],queryFn:uc,enabled:n}),b=ml({queryKey:["dimensions"],queryFn:$d,enabled:n}),v=(U=d.data)==null?void 0:U.item,x=($=p.data)==null?void 0:$.items.find(I=>I.id===(v==null?void 0:v.type_id)),g=((v==null?void 0:v.dimensions)??[]).map(I=>{var Ne,Ee;return(Ee=(Ne=b.data)==null?void 0:Ne.items.find(de=>de.id===I))==null?void 0:Ee.name}).filter(Boolean),[w,B]=E.useState(!1),[Y,H]=E.useState(null),D=bd({mutationFn:()=>ya(()=>Promise.resolve().then(()=>V4),void 0).then(I=>I.footprintDelete(s)),onSuccess:()=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),h("success","记录已删除"),B(!1),r()}}),[k,G]=E.useState({}),X=(v==null?void 0:v.attachments)??[],K=X.filter(I=>{var Ne;return(Ne=I.mime)==null?void 0:Ne.startsWith("image/")}),V=X.filter(I=>{var Ne;return!((Ne=I.mime)!=null&&Ne.startsWith("image/"))}),oe=X.map(I=>I.id).join(",");E.useEffect(()=>{if(!n||!oe)return;let I=!1;const Ne=X.filter(Ee=>{var de;return(de=Ee.mime)==null?void 0:de.startsWith("image/")});return(async()=>{for(const Ee of Ne){if(I)return;if(tr.has(Ee.id)){G(de=>({...de,[Ee.id]:tr.get(Ee.id)}));continue}try{if(Ee.thumb_rel_path){const de=await w0(Ee.id);if(I)return;const N="data:"+(de.mime||"image/webp")+";base64,"+de.data_b64;tr.set(Ee.id,N),G(F=>({...F,[Ee.id]:N}))}else{const de=await Is(Ee.id);if(I)return;const N=await I0(de.data_b64,de.mime||"image/png");tr.set(Ee.id,N),G(F=>({...F,[Ee.id]:N}))}}catch{try{const de=await Is(Ee.id);if(I)return;const N="data:"+(de.mime||"image/png")+";base64,"+de.data_b64;tr.set(Ee.id,N),G(F=>({...F,[Ee.id]:N}))}catch{}}}})(),()=>{I=!0}},[n,s,oe]);const Z=[];if(v&&x)for(const I of x.form_template??[]){const Ne=(v.extras??{})[I.key];if(Ne==null||Ne==="")continue;const Ee=Array.isArray(Ne)?Ne.join("、"):String(Ne);Z.push({label:I.label,value:I.unit?Ee+" "+I.unit:Ee})}return m.jsxs(sc,{open:n,onClose:r,width:680,title:v?v.title:"记录详情",footer:v?m.jsxs(m.Fragment,{children:[m.jsxs(wt,{variant:"danger-ghost",className:"mr-auto",onClick:()=>B(!0),disabled:D.isPending,children:[m.jsx(xd,{size:13})," 删除"]}),m.jsx(wt,{variant:"secondary",onClick:r,children:"关闭"}),m.jsxs(wt,{variant:"primary",onClick:()=>s&&(c==null?void 0:c(s)),children:[m.jsx(QE,{size:13})," 编辑"]})]}):null,children:[d.isLoading||!v?m.jsx("div",{className:"py-10 text-center text-[13px] text-ink-3",children:"加载中…"}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.jsx(Pi,{color:v.type_color,children:v.type_name}),m.jsx(J0,{level:v.level}),m.jsx(F0,{grade:v.award_grade}),m.jsx($0,{role:v.role}),m.jsx(Z0,{status:v.status}),v.polarity==="negative"&&m.jsx(W0,{}),v.rank!=null&&m.jsxs(Pi,{color:"var(--text-3)",children:["第 ",v.rank," 名"]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 rounded-md border border-line bg-surface-2 px-3 py-2.5 text-[12.5px]",children:[m.jsx(jn,{label:"时间",value:c5(v.start_date,v.end_date)||"—"}),m.jsx(jn,{label:"组织方",value:v.organizer||"—"}),v.group_id&&m.jsx(jn,{label:"事件组",value:v.group_id}),v.parent_id!=null&&m.jsx(jn,{label:"上级记录",value:"#"+v.parent_id}),m.jsx(jn,{label:"创建于",value:mg(v.created_at)}),m.jsx(jn,{label:"更新于",value:mg(v.updated_at)})]}),v.description&&m.jsx(Ui,{title:"工作内容 / 描述",children:m.jsx("p",{className:"whitespace-pre-wrap text-[13px] leading-relaxed text-ink-2",children:v.description})}),v.result&&m.jsx(Ui,{title:"结果 / 产出",children:m.jsx("p",{className:"whitespace-pre-wrap rounded-md bg-success-subtle px-3 py-2 text-[13px] leading-relaxed text-success",children:v.result})}),Z.length>0&&m.jsx(Ui,{title:x?"类型字段 · "+x.name:"类型字段",children:m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-2",children:Z.map(I=>m.jsx(jn,{label:I.label,value:I.value},I.label))})}),v.metrics&&Object.keys(v.metrics).length>0&&m.jsx(Ui,{title:"量化指标",children:m.jsx("div",{className:"flex flex-wrap gap-1.5",children:Object.entries(v.metrics).map(([I,Ne])=>m.jsxs("span",{className:"num rounded-sm border border-line bg-surface-2 px-2 py-0.5 text-[12px] text-ink-2",children:[I,": ",m.jsx("span",{className:"font-medium text-ink-1",children:Ne})]},I))})}),((((ve=v.tags)==null?void 0:ve.length)??0)>0||g.length>0)&&m.jsx(Ui,{title:"标签与维度",children:m.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[v.tags.map(I=>m.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-0.5 text-[12px] text-ink-2",children:I},I)),g.map(I=>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:I},I))]})}),m.jsx(Ui,{title:"附件("+(((Ye=v.attachments)==null?void 0:Ye.length)??0)+")",children:X.length?m.jsxs("div",{className:"flex flex-col gap-2.5",children:[K.length>0&&m.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-4",children:K.map(I=>m.jsxs("button",{className:"group relative aspect-square overflow-hidden rounded-md border border-line bg-surface-2",onClick:()=>H(I),title:"点击预览:"+I.file_name,children:[k[I.id]?m.jsx("img",{src:k[I.id],alt:I.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:I.file_name})]},I.id))}),V.length>0&&m.jsx("div",{className:"flex flex-col gap-1",children:V.map(I=>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:()=>H(I),children:[m.jsx(m0,{size:14,className:"shrink-0 text-ink-3"}),m.jsx("span",{className:"truncate text-ink-1",children:I.file_name}),m.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:Nd(I.size)}),m.jsx(Vd,{size:12,className:"shrink-0 text-ink-3"})]},I.id))}),m.jsx("div",{className:"text-[11px] text-ink-3",children:"点击图片 / 文件可在线预览(图片 · PDF · 文本 · Word · Excel · 音视频)"})]}):m.jsx("p",{className:"text-[12px] text-ink-3",children:"暂无佐证附件"})})]}),m.jsx(P0,{att:Y,onClose:()=>H(null)}),m.jsx(G_,{open:w,title:"删除记录",content:v?"确定删除「"+v.title+"」吗?该操作不可撤销。":"",onCancel:()=>B(!1),onOk:()=>D.mutate(),loading:D.isPending})]})}function jn({label:n,value:r}){return m.jsxs("div",{className:"flex min-w-0 gap-2",children:[m.jsx("span",{className:"shrink-0 text-ink-3",children:n}),m.jsx("span",{className:"min-w-0 truncate font-medium text-ink-1",title:r,children:r})]})}function Ui({title:n,children:r}){return m.jsxs("div",{children:[m.jsx("div",{className:"mb-1.5 text-[12px] font-semibold text-ink-2",children:n}),r]})}function m5(){var V,oe,Z;const[n,r]=E.useState(""),[s,c]=E.useState(""),[f,h]=E.useState(""),[d,p]=E.useState(""),[b,v]=E.useState(null),[x,g]=E.useState(!1),[w,B]=E.useState(null),[Y,H]=E.useState(!1),D=ml({queryKey:["types"],queryFn:uc}),k=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]),G=ml({queryKey:["timeline",k],queryFn:()=>T0(k)}),X=E.useMemo(()=>{var $;const U=new Set;for(const ve of(($=G.data)==null?void 0:$.groups)??[])U.add(ve.year);return Array.from(U).sort((ve,Ye)=>Ye-ve)},[G.data]),K=U=>{B(U),H(!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(rt,{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:"全部类型"},...(((V=D.data)==null?void 0:V.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:"全部年份"},...X.map(U=>({value:String(U),label:U+" 年"}))]}),m.jsx(hl,{className:"w-[110px]",value:d,onChange:U=>p(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:["共 ",((oe=G.data)==null?void 0:oe.total)??0," 条"]})]}),G.isLoading?m.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"}):(Z=G.data)!=null&&Z.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}),G.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($=>m.jsxs("div",{className:"mb-3",children:[m.jsxs("div",{className:"mb-2 pl-6 text-[12px] font-medium text-ink-3",children:[$.month," 月"]}),m.jsx("div",{className:"flex flex-col gap-2",children:$.items.map(ve=>m.jsx(y5,{row:ve,onClick:()=>K(ve.id)},ve.id))})]},$.month))]},U.year))]}):m.jsx(L_,{icon:m.jsx(h0,{size:36,strokeWidth:1.5}),title:"暂无足迹",description:"点击右上角「新建记录」,开始记录你的第一段足迹。"}),m.jsx(h5,{open:Y,onClose:()=>H(!1),footprintId:w,onEdit:U=>{H(!1),v(U),g(!0)}}),m.jsx(d5,{open:x,onClose:()=>g(!1),footprintId:b})]})}function y5({row:n,onClick:r}){const s=(n.start_date??n.created_at).slice(0,10);return m.jsxs("button",{onClick:r,className:"group relative w-full rounded-lg border border-line bg-surface px-4 py-3 text-left shadow-card transition-all hover:border-line-strong hover:shadow-pop",children:[m.jsx("span",{className:"absolute left-0 top-3 bottom-3 w-[3px] rounded-full",style:{backgroundColor:n.type_color},"aria-hidden":!0}),m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsxs("div",{className:"num w-[52px] shrink-0 pt-0.5 text-[12px] leading-relaxed text-ink-3",children:[s.slice(5,7),"-",s.slice(8,10)]}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.jsx("span",{className:"text-[13.5px] font-medium text-ink-1 group-hover:text-brand-text",children:n.title}),m.jsx(Pi,{color:n.type_color,children:n.type_name}),m.jsx(J0,{level:n.level}),m.jsx(F0,{grade:n.award_grade}),m.jsx($0,{role:n.role}),m.jsx(Z0,{status:n.status}),n.polarity==="negative"&&m.jsx(W0,{})]}),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(Vd,{size:11}),n.attachment_count]})]})]}),m.jsx("div",{className:"shrink-0 pt-1 text-ink-3",children:m.jsx(l5,{name:n.type_icon,color:n.type_color,size:16})})]})]})}const v5=E.lazy(()=>ya(()=>import("./RecordsPage-CW_Hc1s4.js"),[]).then(n=>({default:n.RecordsPage}))),p5=E.lazy(()=>ya(()=>import("./DashboardPage-D8pFC_15.js"),__vite__mapDeps([0,1,2,3])).then(n=>({default:n.DashboardPage}))),g5=E.lazy(()=>ya(()=>import("./GradesPage-DC5OfFHe.js"),__vite__mapDeps([4,1,2,3])).then(n=>({default:n.GradesPage}))),b5=E.lazy(()=>ya(()=>import("./TypesPage-DwN0_6Y9.js"),__vite__mapDeps([5,1])).then(n=>({default:n.TypesPage}))),x5=E.lazy(()=>ya(()=>import("./TaxonomyPage-17vlInQu.js"),__vite__mapDeps([6,1])).then(n=>({default:n.TaxonomyPage}))),S5=E.lazy(()=>ya(()=>import("./AdminPage-B_1VIBeP.js"),__vite__mapDeps([7,1])).then(n=>({default:n.AdminPage})));function ki(){return m.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"})}function E5(){return m.jsx(oS,{children:m.jsxs(_l,{element:m.jsx(P_,{}),children:[m.jsx(_l,{path:"/",element:m.jsx(Yp,{to:"/timeline",replace:!0})}),m.jsx(_l,{path:"/timeline",element:m.jsx(m5,{})}),m.jsx(_l,{path:"/records",element:m.jsx(E.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(v5,{})})}),m.jsx(_l,{path:"/grades",element:m.jsx(E.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(g5,{})})}),m.jsx(_l,{path:"/dashboard",element:m.jsx(E.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(p5,{})})}),m.jsx(_l,{path:"/types",element:m.jsx(E.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(b5,{})})}),m.jsx(_l,{path:"/taxonomy",element:m.jsx(E.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(x5,{})})}),m.jsx(_l,{path:"/admin",element:m.jsx(E.Suspense,{fallback:m.jsx(ki,{}),children:m.jsx(S5,{})})}),m.jsx(_l,{path:"*",element:m.jsx(Yp,{to:"/timeline",replace:!0})})]})})}const _5=new p3({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0,staleTime:0,gcTime:0}}}),bg=localStorage.getItem("fp-theme");(bg==="dark"||!bg&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&document.documentElement.classList.add("dark");function e1(){var r;const n=getComputedStyle(document.documentElement).getPropertyValue("--bg").trim();n&&((r=document.querySelector('meta[name="theme-color"]'))==null||r.setAttribute("content",n))}e1();window.addEventListener("fp-theme-change",e1);"serviceWorker"in navigator&&!("__TAURI_INTERNALS__"in window)&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});r2.createRoot(document.getElementById("root")).render(m.jsx(e2.StrictMode,{children:m.jsx(XS,{client:_5,children:m.jsx(US,{children:m.jsx(E5,{})})})}));export{Nd as $,O4 as A,wt as B,G_ as C,sc as D,L_ as E,Ue as F,F0 as G,R4 as H,rt as I,z4 as J,l5 as K,J0 as L,p4 as M,z5 as N,g4 as O,YE as P,b4 as Q,$0 as R,hl as S,xd as T,x4 as U,S4 as V,E4 as W,$d as X,ln as Y,ha as Z,p0 as _,yl as a,B4 as a0,Q4 as a1,G4 as a2,Y4 as a3,ya as a4,L4 as a5,q4 as a6,N5 as a7,Rg as a8,V4 as a9,eh as b,pe as c,C5 as d,ml as e,bd as f,c5 as g,Z0 as h,mg as i,m as j,QE as k,Pi as l,h5 as m,d5 as n,_4 as o,uc as p,S0 as q,E as r,T4 as s,E0 as t,tu as u,y0 as v,M4 as w,D4 as x,A4 as y,j4 as z};