Files
root a5e976fee6 polish(ui): design language uplift - press feedback, brand gradient, header glass, route icon chips, empty states
- button: unified press scale (active:scale-[0.97]), primary gets vertical
  brand gradient + tighter shadow, secondary gains subtle hover shadow
- input/select/textarea: consistent focus border + 1.5px brand ring
- empty states: icon in circular tinted badge with soft ring, larger rhythm
- header: translucent frosted-glass surface (color-mix + backdrop blur),
  per-route lucide icon chip beside page title (desktop), subtitle hidden
  on phones to declutter
- sidebar: active nav icon tinted brand via .nav-active > svg; user card
  avatar gets brand gradient + ring
- dark theme: text-3 contrast raised (#68707e -> #747c8a)
- verified live (headless): h1/chips/glass render on dashboard/timeline/
  assessment/resume; tsc + vite build green; temp instrumentation reverted
2026-10-17 22:33:39 +08:00

338 lines
419 KiB
JavaScript
Raw Permalink 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-lHBbav-t.js","assets/card-BI024Nvz.js","assets/useChart-ZF2N_RV4.js","assets/echarts-BIWefrIc.js","assets/GradesPage-BLNIMfYp.js","assets/TypesPage-C7E9_7xq.js","assets/TaxonomyPage-Bkhw9TpJ.js","assets/AdminPage-07xjBzip.js","assets/ResumePage-Dq8wmINI.js","assets/rotate-ccw-Cm9sTuWZ.js","assets/AssessmentPage-DniR4Zwe.js"])))=>i.map(i=>d[i]);
var jv=n=>{throw TypeError(n)};var Kf=(n,u,s)=>u.has(n)||jv("Cannot "+s);var T=(n,u,s)=>(Kf(n,u,"read from private field"),s?s.call(n):u.get(n)),he=(n,u,s)=>u.has(n)?jv("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(n):u.set(n,s),P=(n,u,s,o)=>(Kf(n,u,"write to private field"),o?o.call(n,s):u.set(n,s),s),Se=(n,u,s)=>(Kf(n,u,"access private method"),s);var Ys=(n,u,s,o)=>({set _(f){P(n,u,f,s)},get _(){return T(n,u,o)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const d of m.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function s(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(f){if(f.ep)return;f.ep=!0;const m=s(f);fetch(f.href,m)}})();var K5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ug(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zf={exports:{}},Iu={};/**
* @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 zv;function o2(){if(zv)return Iu;zv=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,f,m){var d=null;if(m!==void 0&&(d=""+m),f.key!==void 0&&(d=""+f.key),"key"in f){m={};for(var p in f)p!=="key"&&(m[p]=f[p])}else m=f;return f=m.ref,{$$typeof:n,type:o,key:d,ref:f!==void 0?f:null,props:m}}return Iu.Fragment=u,Iu.jsx=s,Iu.jsxs=s,Iu}var Ov;function c2(){return Ov||(Ov=1,Zf.exports=o2()),Zf.exports}var h=c2(),Jf={exports:{}},ge={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Rv;function f2(){if(Rv)return ge;Rv=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),_=Symbol.for("react.view_transition"),k=Symbol.iterator;function K(w){return w===null||typeof w!="object"?null:(w=k&&w[k]||w["@@iterator"],typeof w=="function"?w:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,H={};function Q(w,G,W){this.props=w,this.context=G,this.refs=H,this.updater=W||q}Q.prototype.isReactComponent={},Q.prototype.setState=function(w,G){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,G,"setState")},Q.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function Z(){}Z.prototype=Q.prototype;function J(w,G,W){this.props=w,this.context=G,this.refs=H,this.updater=W||q}var Y=J.prototype=new Z;Y.constructor=J,D(Y,Q.prototype),Y.isPureReactComponent=!0;var de=Array.isArray;function F(){}var U={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function ae(w,G,W){var ce=W.ref;return{$$typeof:n,type:w,key:G,ref:ce!==void 0?ce:null,props:W}}function Ve(w,G){return ae(w.type,G,w.props)}function Fe(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function ie(w){var G={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(W){return G[W]})}var Ne=/\/+/g;function re(w,G){return typeof w=="object"&&w!==null&&w.key!=null?ie(""+w.key):G.toString(36)}function V(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(F,F):(w.status="pending",w.then(function(G){w.status==="pending"&&(w.status="fulfilled",w.value=G)},function(G){w.status==="pending"&&(w.status="rejected",w.reason=G)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function ee(w,G,W,ce,je){var me=typeof w;(me==="undefined"||me==="boolean")&&(w=null);var Ae=!1;if(w===null)Ae=!0;else switch(me){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(w.$$typeof){case n:case u:Ae=!0;break;case b:return Ae=w._init,ee(Ae(w._payload),G,W,ce,je)}}if(Ae)return je=je(w),Ae=ce===""?"."+re(w,0):ce,de(je)?(W="",Ae!=null&&(W=Ae.replace(Ne,"$&/")+"/"),ee(je,G,W,"",function(Vt){return Vt})):je!=null&&(Fe(je)&&(je=Ve(je,W+(je.key==null||w&&w.key===je.key?"":(""+je.key).replace(Ne,"$&/")+"/")+Ae)),G.push(je)),1;Ae=0;var se=ce===""?".":ce+":";if(de(w))for(var ye=0;ye<w.length;ye++)ce=w[ye],me=se+re(ce,ye),Ae+=ee(ce,G,W,me,je);else if(ye=K(w),typeof ye=="function")for(w=ye.call(w),ye=0;!(ce=w.next()).done;)ce=ce.value,me=se+re(ce,ye++),Ae+=ee(ce,G,W,me,je);else if(me==="object"){if(typeof w.then=="function")return ee(V(w),G,W,ce,je);throw G=String(w),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function R(w,G,W){if(w==null)return w;var ce=[],je=0;return ee(w,ce,"","",function(me){return G.call(W,me,je++)}),ce}function le(w){if(w._status===-1){var G=w._result,W=G();W.then(function(ce){(w._status===0||w._status===-1)&&(w._status=1,w._result=ce,W.status===void 0&&(W.status="fulfilled",W.value=ce))},function(ce){(w._status===0||w._status===-1)&&(w._status=2,w._result=ce,W.status===void 0&&(W.status="rejected",W.reason=ce))}),w._status===-1&&(w._status=0,w._result=W)}if(w._status===1)return w._result.default;throw w._result}var X=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function ke(w){var G=U.T,W={};W.types=G!==null?G.types:null,U.T=W;try{var ce=w(),je=U.S;je!==null&&je(W,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(F,X)}catch(me){X(me)}finally{G!==null&&W.types!==null&&(G.types=W.types),U.T=G}}function Nt(w){var G=U.T;if(G!==null){var W=G.types;W===null?G.types=[w]:W.indexOf(w)===-1&&W.push(w)}else ke(Nt.bind(null,w))}var Ra={map:R,forEach:function(w,G,W){R(w,function(){G.apply(this,arguments)},W)},count:function(w){var G=0;return R(w,function(){G++}),G},toArray:function(w){return R(w,function(G){return G})||[]},only:function(w){if(!Fe(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ge.Activity=g,ge.Children=Ra,ge.Component=Q,ge.Fragment=s,ge.Profiler=f,ge.PureComponent=J,ge.StrictMode=o,ge.Suspense=x,ge.ViewTransition=_,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,ge.__COMPILER_RUNTIME={__proto__:null,c:function(w){return U.H.useMemoCache(w)}},ge.addTransitionType=Nt,ge.cache=function(w){return function(){return w.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(w,G,W){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ce=D({},w.props),je=w.key;if(G!=null)for(me in G.key!==void 0&&(je=""+G.key),G)!I.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(ce[me]=G[me]);var me=arguments.length-2;if(me===1)ce.children=W;else if(1<me){for(var Ae=Array(me),se=0;se<me;se++)Ae[se]=arguments[se+2];ce.children=Ae}return ae(w.type,je,ce)},ge.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:m,_context:w},w},ge.createElement=function(w,G,W){var ce,je={},me=null;if(G!=null)for(ce in G.key!==void 0&&(me=""+G.key),G)I.call(G,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(je[ce]=G[ce]);var Ae=arguments.length-2;if(Ae===1)je.children=W;else if(1<Ae){for(var se=Array(Ae),ye=0;ye<Ae;ye++)se[ye]=arguments[ye+2];je.children=se}if(w&&w.defaultProps)for(ce in Ae=w.defaultProps,Ae)je[ce]===void 0&&(je[ce]=Ae[ce]);return ae(w,me,je)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(w){return{$$typeof:p,render:w}},ge.isValidElement=Fe,ge.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:le}},ge.memo=function(w,G){return{$$typeof:v,type:w,compare:G===void 0?null:G}},ge.startTransition=ke,ge.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ge.use=function(w){return U.H.use(w)},ge.useActionState=function(w,G,W){return U.H.useActionState(w,G,W)},ge.useCallback=function(w,G){return U.H.useCallback(w,G)},ge.useContext=function(w){return U.H.useContext(w)},ge.useDebugValue=function(){},ge.useDeferredValue=function(w,G){return U.H.useDeferredValue(w,G)},ge.useEffect=function(w,G){return U.H.useEffect(w,G)},ge.useEffectEvent=function(w){return U.H.useEffectEvent(w)},ge.useId=function(){return U.H.useId()},ge.useImperativeHandle=function(w,G,W){return U.H.useImperativeHandle(w,G,W)},ge.useInsertionEffect=function(w,G){return U.H.useInsertionEffect(w,G)},ge.useLayoutEffect=function(w,G){return U.H.useLayoutEffect(w,G)},ge.useMemo=function(w,G){return U.H.useMemo(w,G)},ge.useOptimistic=function(w,G){return U.H.useOptimistic(w,G)},ge.useReducer=function(w,G,W){return U.H.useReducer(w,G,W)},ge.useRef=function(w){return U.H.useRef(w)},ge.useState=function(w){return U.H.useState(w)},ge.useSyncExternalStore=function(w,G,W){return U.H.useSyncExternalStore(w,G,W)},ge.useTransition=function(){return U.H.useTransition()},ge.version="19.3.1",ge}var Av;function zd(){return Av||(Av=1,Jf.exports=f2()),Jf.exports}var E=zd();const d2=Ug(E);var Ff={exports:{}},er={},$f={exports:{}},Pf={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Mv;function h2(){return Mv||(Mv=1,(function(n){function u(V,ee){var R=V.length;V.push(ee);e:for(;0<R;){var le=R-1>>>1,X=V[le];if(0<f(X,ee))V[le]=ee,V[R]=X,R=le;else break e}}function s(V){return V.length===0?null:V[0]}function o(V){if(V.length===0)return null;var ee=V[0],R=V.pop();if(R!==ee){V[0]=R;e:for(var le=0,X=V.length,ke=X>>>1;le<ke;){var Nt=2*(le+1)-1,Ra=V[Nt],w=Nt+1,G=V[w];if(0>f(Ra,R))w<X&&0>f(G,Ra)?(V[le]=G,V[w]=R,le=w):(V[le]=Ra,V[Nt]=R,le=Nt);else if(w<X&&0>f(G,R))V[le]=G,V[w]=R,le=w;else break e}}return ee}function f(V,ee){var R=V.sortIndex-ee.sortIndex;return R!==0?R:V.id-ee.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var x=[],v=[],b=1,g=null,_=3,k=!1,K=!1,q=!1,D=!1,H=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function J(V){for(var ee=s(v);ee!==null;){if(ee.callback===null)o(v);else if(ee.startTime<=V)o(v),ee.sortIndex=ee.expirationTime,u(x,ee);else break;ee=s(v)}}function Y(V){if(q=!1,J(V),!K)if(s(x)!==null)K=!0,de||(de=!0,Fe());else{var ee=s(v);ee!==null&&re(Y,ee.startTime-V)}}var de=!1,F=-1,U=5,I=-1;function ae(){return D?!0:!(n.unstable_now()-I<U)}function Ve(){if(D=!1,de){var V=n.unstable_now();I=V;var ee=!0;try{e:{K=!1,q&&(q=!1,Q(F),F=-1),k=!0;var R=_;try{t:{for(J(V),g=s(x);g!==null&&!(g.expirationTime>V&&ae());){var le=g.callback;if(typeof le=="function"){g.callback=null,_=g.priorityLevel;var X=le(g.expirationTime<=V);if(V=n.unstable_now(),typeof X=="function"){g.callback=X,J(V),ee=!0;break t}g===s(x)&&o(x),J(V)}else o(x);g=s(x)}if(g!==null)ee=!0;else{var ke=s(v);ke!==null&&re(Y,ke.startTime-V),ee=!1}}break e}finally{g=null,_=R,k=!1}ee=void 0}}finally{ee?Fe():de=!1}}}var Fe;if(typeof Z=="function")Fe=function(){Z(Ve)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Ne=ie.port2;ie.port1.onmessage=Ve,Fe=function(){Ne.postMessage(null)}}else Fe=function(){H(Ve,0)};function re(V,ee){F=H(function(){V(n.unstable_now())},ee)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(V){V.callback=null},n.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<V?Math.floor(1e3/V):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_next=function(V){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var R=_;_=ee;try{return V()}finally{_=R}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var R=_;_=V;try{return ee()}finally{_=R}},n.unstable_scheduleCallback=function(V,ee,R){var le=n.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?le+R:le):R=le,V){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=R+X,V={id:b++,callback:ee,priorityLevel:V,startTime:R,expirationTime:X,sortIndex:-1},R>le?(V.sortIndex=R,u(v,V),s(x)===null&&V===s(v)&&(q?(Q(F),F=-1):q=!0,re(Y,R-le))):(V.sortIndex=X,u(x,V),K||k||(K=!0,de||(de=!0,Fe()))),V},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(V){var ee=_;return function(){var R=_;_=ee;try{return V.apply(this,arguments)}finally{_=R}}}})(Pf)),Pf}var Dv;function m2(){return Dv||(Dv=1,$f.exports=h2()),$f.exports}var Wf={exports:{}},Tt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Uv;function y2(){if(Uv)return Tt;Uv=1;var n=zd();function u(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal"),m=Symbol.for("react.recoverable"),d=Symbol.for("react.optimistic_key");function p(b,g,_){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:k==null?null:k===d?d:""+k,children:b,containerInfo:g,implementation:_}}var x=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Tt.browser=function(b){return{$$typeof:m,_reason:b}},Tt.createPortal=function(b,g){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(u(299));return p(b,g,null,_)},Tt.flushSync=function(b){var g=x.T,_=o.p;try{if(x.T=null,o.p=2,b)return b()}finally{x.T=g,o.p=_,o.d.f()}},Tt.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(b,g))},Tt.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},Tt.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var _=g.as,k=v(_,g.crossOrigin),K=typeof g.integrity=="string"?g.integrity:void 0,q=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;_==="style"?o.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:k,integrity:K,fetchPriority:q}):_==="script"&&o.d.X(b,{crossOrigin:k,integrity:K,fetchPriority:q,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Tt.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var _=v(g.as,g.crossOrigin);o.d.M(b,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&o.d.M(b)},Tt.preload=function(b,g){if(typeof b=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,k=v(_,g.crossOrigin);o.d.L(b,_,{crossOrigin:k,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Tt.preloadModule=function(b,g){if(typeof b=="string")if(g){var _=v(g.as,g.crossOrigin);o.d.m(b,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else o.d.m(b)},Tt.requestFormReset=function(b){o.d.r(b)},Tt.unstable_batchedUpdates=function(b,g){return b(g)},Tt.useFormState=function(b,g,_){return x.H.useFormState(b,g,_)},Tt.useFormStatus=function(){return x.H.useHostTransitionStatus()},Tt.version="19.3.1",Tt}var kv;function kg(){if(kv)return Wf.exports;kv=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(u){console.error(u)}}return n(),Wf.exports=y2(),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 Hv;function p2(){if(Hv)return er;Hv=1;var n=m2(),u=zd(),s=kg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=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 x(e){if(m(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var r=i.alternate;if(r===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===a)return x(i),e;if(r===l)return x(i),t;r=r.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=r;else{for(var c=!1,y=i.child;y;){if(y===a){c=!0,a=i,l=r;break}if(y===l){c=!0,l=i,a=r;break}y=y.sibling}if(!c){for(y=r.child;y;){if(y===a){c=!0,a=r,l=i;break}if(y===l){c=!0,l=r,a=i;break}y=y.sibling}if(!c)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}function g(e,t,a,l,i,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,l,i,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,a,l,i,r))return!0;e=e.sibling}return!1}function _(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function k(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function K(e){var t=[null,null],a=_(e);return a===null||q(t,e,a.child,{foundSelf:!1}),t}function q(e,t,a,l){for(;a!==null;){if(a===t)l.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(l.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&q(e,t,a.child,l))return!0;a=a.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(o(559))}}var H=null,Q=null;function Z(e,t,a){return e===a?!0:e===t?(H=e,!0):!1}function J(e,t,a){return e===a?(Q=e,!1):e===t?(Q!==null&&(H=e),!0):!1}function Y(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function de(e,t,a){for(var l=0,i=e;i;i=a(i))l++;i=0;for(var r=t;r;r=a(r))i++;for(;0<l-i;)e=a(e),l--;for(;0<i-l;)t=a(t),i--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var F=Object.assign,U=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),ae=Symbol.for("react.portal"),Ve=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),Ne=Symbol.for("react.consumer"),re=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),ke=Symbol.for("react.activity"),Nt=Symbol.for("react.legacy_hidden"),Ra=Symbol.for("react.memo_cache_sentinel"),w=Symbol.for("react.view_transition"),G=Symbol.for("react.recoverable"),W=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var je=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===je?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ve:return"Fragment";case ie:return"Profiler";case Fe:return"StrictMode";case ee:return"Suspense";case R:return"SuspenseList";case ke:return"Activity";case w:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ae:return"Portal";case re:return e.displayName||"Context";case Ne:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var Ae=Array.isArray,se=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Vt={pending:!1,data:null,method:null,action:null},gl=[],Xn=-1;function Aa(e){return{current:e}}function vt(e){0>Xn||(e.current=gl[Xn],gl[Xn]=null,Xn--)}function Ke(e,t){Xn++,gl[Xn]=e.current,e.current=t}var Ma=Aa(null),iu=Aa(null),bl=Aa(null),hr=Aa(null);function mr(e,t){switch(Ke(bl,t),Ke(iu,e),Ke(Ma,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hp(t),e=qp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}vt(Ma),Ke(Ma,e)}function Kn(){vt(Ma),vt(iu),vt(bl)}function co(e){var t=e.memoizedState;t!==null&&(Mi._currentValue=t.memoizedState,Ke(hr,e)),t=Ma.current;var a=qp(t,e.type);t!==a&&(Ke(iu,e),Ke(Ma,a))}function yr(e){iu.current===e&&(vt(Ma),vt(iu)),hr.current===e&&(vt(hr),Mi._currentValue=Vt)}var fo,nh;function xl(e){if(fo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);fo=t&&t[1]||"",nh=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fo+e+nh}var ho=!1;function mo(e,t){if(!e||ho)return"";ho=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch($){var C=$}Reflect.construct(e,[],B)}else{try{B.call()}catch($){C=$}B=!1;try{var A=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),B=!0,new e}finally{B&&(A!==void 0?Object.defineProperty(e.prototype,"props",A):delete e.prototype.props)}}}else{try{throw Error()}catch($){C=$}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch($){if($&&C&&typeof $.stack=="string")return[$.stack,C.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),c=r[0],y=r[1];if(c&&y){var S=c.split(`
`),z=y.split(`
`);for(i=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(l===S.length||i===z.length)for(l=S.length-1,i=z.length-1;1<=l&&0<=i&&S[l]!==z[i];)i--;for(;1<=l&&0<=i;l--,i--)if(S[l]!==z[i]){if(l!==1||i!==1)do if(l--,i--,0>i||S[l]!==z[i]){var M=`
`+S[l].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=l&&0<=i);break}}}finally{ho=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?xl(a):""}function h1(e,t){switch(e.tag){case 26:case 27:case 5:return xl(e.type);case 16:return xl("Lazy");case 13:return e.child!==t&&t!==null?xl("Suspense Fallback"):xl("Suspense");case 19:return xl("SuspenseList");case 0:case 15:return mo(e.type,!1);case 11:return mo(e.type.render,!1);case 1:return mo(e.type,!0);case 31:return xl("Activity");case 30:return xl("ViewTransition");default:return""}}function ih(e){try{var t="",a=null;do t+=h1(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var yo=Object.prototype.hasOwnProperty,po=n.unstable_scheduleCallback,vo=n.unstable_cancelCallback,m1=n.unstable_shouldYield,y1=n.unstable_requestPaint,Xt=n.unstable_now,p1=n.unstable_getCurrentPriorityLevel,uh=n.unstable_ImmediatePriority,rh=n.unstable_UserBlockingPriority,pr=n.unstable_NormalPriority,v1=n.unstable_LowPriority,sh=n.unstable_IdlePriority,g1=n.log,b1=n.unstable_setDisableYieldValue,uu=null,Kt=null;function Sl(e){if(typeof g1=="function"&&b1(e),Kt&&typeof Kt.setStrictMode=="function")try{Kt.setStrictMode(uu,e)}catch{}}var Zt=Math.clz32?Math.clz32:E1,x1=Math.log,S1=Math.LN2;function E1(e){return e>>>=0,e===0?32:31-(x1(e)/S1|0)|0}var vr=256,gr=262144,br=4194304;function un(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xr(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,r=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~r,l!==0?i=un(l):(c&=y,c!==0?i=un(c):a||(a=y&~e,a!==0&&(i=un(a))))):(y=l&~r,y!==0?i=un(y):c!==0?i=un(c):a||(a=l&~e,a!==0&&(i=un(a)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function ru(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function oh(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var l=31-Zt(a),i=1<<l;t|=e[l],a&=~i}return t}function _1(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 ch(){var e=br;return br<<=1,(br&62914560)===0&&(br=4194304),e}function go(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function su(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function T1(e,t,a,l,i,r){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,z=e.hiddenUpdates;for(a=c&~a;0<a;){var M=31-Zt(a),B=1<<M;y[M]=0,S[M]=-1;var C=z[M];if(C!==null)for(z[M]=null,M=0;M<C.length;M++){var A=C[M];A!==null&&(A.lane&=-536870913)}a&=~B}l!==0&&fh(e,l,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(c&~t))}function fh(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Zt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function dh(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Zt(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function hh(e,t){var a=t&-t;return a=(a&42)!==0?1:bo(a),(a&(e.suspendedLanes|t))!==0?0:a}function bo(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 xo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mh(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:Sv(e.type))}function yh(e,t){var a=ye.p;try{return ye.p=e,t()}finally{ye.p=a}}var $a=Math.random().toString(36).slice(2),gt="__reactFiber$"+$a,Ht="__reactProps$"+$a,Zn="__reactContainer$"+$a,ph="__reactEvents$"+$a,N1="__reactListeners$"+$a,w1="__reactHandles$"+$a,vh="__reactResources$"+$a,ou="__reactMarker$"+$a,Sr="__reactLoad$"+$a;function Er(e){delete e[gt],delete e[Ht],delete e[N1],delete e[w1]}function rn(e){var t;if(t=e[gt])return t;for(var a=e.parentNode;a;){if(t=a[Zn]||a[gt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=tv(e);e!==null;){if(a=e[gt])return a;e=tv(e)}return t}e=a,a=e.parentNode}return null}function Jn(e){if(e=e[gt]||e[Zn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function cu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Fn(e){var t=e[vh];return t||(t=e[vh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[ou]=!0}function gh(e){e[Sr]=void 0}var bh=new Set,xh={};function sn(e,t){$n(e,t),$n(e+"Capture",t)}function $n(e,t){for(xh[e]=t,e=0;e<t.length;e++)bh.add(t[e])}var C1=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]*$"),Sh={},Eh={};function j1(e){return yo.call(Eh,e)?!0:yo.call(Sh,e)?!1:C1.test(e)?Eh[e]=!0:(Sh[e]=!0,!1)}var Ue=!1;function _h(){var e=Ue;return Ue=!1,e}function _r(e,t,a){if(j1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function Tr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Pa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,l)}}function Jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Th(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z1(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){a=""+c,r.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function So(e){if(!e._valueTracker){var t=Th(e)?"checked":"value";e._valueTracker=z1(e,t,""+e[t])}}function Nh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Th(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}var O1=/[\n"\\]/g;function ia(e){return e.replace(O1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Eo(e,t,a,l,i,r,c,y){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?c==="number"&&e.value==t?_o(e,Jt(e.value)):_o(e,Jt(t)):a!=null?_o(e,Jt(a)):l!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Jt(y):e.removeAttribute("name")}function wh(e,t,a,l,i,r,c,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){So(e);return}a=a!=null?""+Jt(a):"",t=t!=null?""+Jt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),So(e)}function _o(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Pn(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Jt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ch(e,t,a){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Jt(a):""}function jh(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(Ae(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Jt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),So(e)}function Wn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var R1=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 zh(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||R1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Oh(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",Ue=!0);for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&(zh(e,i,l),Ue=!0)}else for(var r in t)t.hasOwnProperty(r)&&zh(e,r,t[r])}function To(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 A1=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"]]),M1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nr(e){return M1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Da(){}var No=null;function wo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var In=null,ei=null;function Rh(e){var t=Jn(e);if(t&&(e=t.stateNode)){var a=e[Ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Eo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ia(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[Ht]||null;if(!i)throw Error(o(90));Eo(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Nh(l)}break e;case"textarea":Ch(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Pn(e,!!a.multiple,t,!1)}}}var Co=!1;function Ah(e,t,a){if(Co)return e(t,a);Co=!0;try{var l=e(t);return l}finally{if(Co=!1,(In!==null||ei!==null)&&(Ns(),In&&(t=In,e=ei,ei=In=null,Rh(t),e)))for(t=0;t<e.length;t++)Rh(e[t])}}function fu(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Ht]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Wa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jo=!1;if(Wa)try{var du={};Object.defineProperty(du,"passive",{get:function(){jo=!0}}),window.addEventListener("test",du,du),window.removeEventListener("test",du,du)}catch{jo=!1}var El=null,zo=null,wr=null;function Mh(){if(wr)return wr;var e,t=zo,a=t.length,l,i="value"in El?El.value:El.textContent,r=i.length;for(e=0;e<a&&t[e]===i[e];e++);var c=a-e;for(l=1;l<=c&&t[a-l]===i[r-l];l++);return wr=i.slice(e,1<l?1-l: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 jr(){return!0}function Dh(){return!1}function Ot(e){function t(a,l,i,r,c){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=r,this.target=c,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?jr:Dh,this.isPropagationStopped=Dh,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=jr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=jr)},persist:function(){},isPersistent:jr}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zr=Ot(_l),hu=F({},_l,{view:0,detail:0}),D1=Ot(hu),Oo,Ro,mu,Or=F({},hu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,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!==mu&&(mu&&e.type==="mousemove"?(Oo=e.screenX-mu.screenX,Ro=e.screenY-mu.screenY):Ro=Oo=0,mu=e),Oo)},movementY:function(e){return"movementY"in e?e.movementY:Ro}}),Uh=Ot(Or),U1=F({},Or,{dataTransfer:0}),k1=Ot(U1),H1=F({},hu,{relatedTarget:0}),Ao=Ot(H1),q1=F({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),L1=Ot(q1),B1=F({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q1=Ot(B1),G1=F({},_l,{data:0}),kh=Ot(G1),Y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V1={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"},X1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X1[e])?!!t[e]:!1}function Mo(){return K1}var Z1=F({},hu,{key:function(e){if(e.key){var t=Y1[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"?V1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,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}}),J1=Ot(Z1),F1=F({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=Ot(F1),$1=F({},_l,{submitter:0}),P1=Ot($1),W1=F({},hu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),I1=Ot(W1),eb=F({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),tb=Ot(eb),ab=F({},Or,{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}),lb=Ot(ab),nb=F({},_l,{newState:0,oldState:0,source:0}),ib=Ot(nb),ub=[9,13,27,32],Do=Wa&&"CompositionEvent"in window,yu=null;Wa&&"documentMode"in document&&(yu=document.documentMode);var rb=Wa&&"TextEvent"in window&&!yu,qh=Wa&&(!Do||yu&&8<yu&&11>=yu),Lh=" ",Bh=!1;function Qh(e,t){switch(e){case"keyup":return ub.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function sb(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":return t.which!==32?null:(Bh=!0,Lh);case"textInput":return e=t.data,e===Lh&&Bh?null:e;default:return null}}function ob(e,t){if(ti)return e==="compositionend"||!Do&&Qh(e,t)?(e=Mh(),wr=zo=El=null,ti=!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 qh&&t.locale!=="ko"?null:t.data;default:return null}}var cb={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 Yh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cb[e.type]:t==="textarea"}function Vh(e,t,a,l){In?ei?ei.push(l):ei=[l]:In=l,t=Rs(t,"onChange"),0<t.length&&(a=new zr("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var pu=null,vu=null;function fb(e){Rp(e,0)}function Rr(e){var t=cu(e);if(Nh(t))return e}function Xh(e,t){if(e==="change")return t}var Kh=!1;if(Wa){var Uo;if(Wa){var ko="oninput"in document;if(!ko){var Zh=document.createElement("div");Zh.setAttribute("oninput","return;"),ko=typeof Zh.oninput=="function"}Uo=ko}else Uo=!1;Kh=Uo&&(!document.documentMode||9<document.documentMode)}function Jh(){pu&&(pu.detachEvent("onpropertychange",Fh),vu=pu=null)}function Fh(e){if(e.propertyName==="value"&&Rr(vu)){var t=[];Vh(t,vu,e,wo(e)),Ah(fb,t)}}function db(e,t,a){e==="focusin"?(Jh(),pu=t,vu=a,pu.attachEvent("onpropertychange",Fh)):e==="focusout"&&Jh()}function hb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rr(vu)}function mb(e,t){if(e==="click")return Rr(t)}function yb(e,t){if(e==="input"||e==="change")return Rr(t)}function pb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:pb;function gu(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!yo.call(t,i)||!Ft(e[i],t[i]))return!1}return!0}function Ho(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 $h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ph(e,t){var a=$h(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=$h(a)}}function Wh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ih(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ho(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ho(e.document)}return t}function qo(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 vb=Wa&&"documentMode"in document&&11>=document.documentMode,ai=null,Lo=null,bu=null,Bo=!1;function em(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bo||ai==null||ai!==Ho(l)||(l=ai,"selectionStart"in l&&qo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),bu&&gu(bu,l)||(bu=l,l=Rs(Lo,"onSelect"),0<l.length&&(t=new zr("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=ai)))}function on(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var li={animationend:on("Animation","AnimationEnd"),animationiteration:on("Animation","AnimationIteration"),animationstart:on("Animation","AnimationStart"),transitionrun:on("Transition","TransitionRun"),transitionstart:on("Transition","TransitionStart"),transitioncancel:on("Transition","TransitionCancel"),transitionend:on("Transition","TransitionEnd")},Qo={},tm={};Wa&&(tm=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(Qo[e])return Qo[e];if(!li[e])return e;var t=li[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in tm)return Qo[e]=t[a];return e}var am=cn("animationend"),lm=cn("animationiteration"),nm=cn("animationstart"),gb=cn("transitionrun"),bb=cn("transitionstart"),xb=cn("transitioncancel"),im=cn("transitionend"),um=new Map,Go="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(" ");Go.push("scrollEnd");function Sa(e,t){um.set(e,t),sn(t,[e])}var Sb=0;function Ia(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Na.identifierPrefix;var a=Sb++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function rm(e){if(e==null||typeof e=="string")return e;var t=null,a=_i;if(a!==null)for(var l=0;l<a.length;l++){var i=e[a[l]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function el(e,t){return e=rm(e),t=rm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Ar=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ua=[],ni=0,Yo=0;function Mr(){for(var e=ni,t=Yo=ni=0;t<e;){var a=ua[t];ua[t++]=null;var l=ua[t];ua[t++]=null;var i=ua[t];ua[t++]=null;var r=ua[t];if(ua[t++]=null,l!==null&&i!==null){var c=l.pending;c===null?i.next=i:(i.next=c.next,c.next=i),l.pending=i}r!==0&&sm(a,i,r)}}function Dr(e,t,a,l){ua[ni++]=e,ua[ni++]=t,ua[ni++]=a,ua[ni++]=l,Yo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Vo(e,t,a,l){return Dr(e,t,a,l),Ur(e)}function fn(e,t){return Dr(e,null,null,t),Ur(e)}function sm(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,r=e.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-Zt(a),e=r.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),r):null}function Ur(e){if(50<Qu)throw Qu=0,Ts=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ii={};function Eb(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(e,t,a,l){return new Eb(e,t,a,l)}function Xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tl(e,t){var a=e.alternate;return a===null?(a=qt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function om(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function kr(e,t,a,l,i,r){var c=0;if(l=e,typeof l=="function")Xo(l)&&(c=1);else if(typeof l=="string")c=$x(e,a,Ma.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case ke:return e=qt(31,a,t,i),e.elementType=ke,e.lanes=r,e;case Ve:return dn(a.children,i,r,t);case Fe:c=8,i|=24;break;case ie:return e=qt(12,a,t,i|2),e.elementType=ie,e.lanes=r,e;case ee:return e=qt(13,a,t,i),e.elementType=ee,e.lanes=r,e;case R:return e=qt(19,a,t,i),e.elementType=R,e.lanes=r,e;case Nt:case w:return e=i|32,e=qt(30,a,t,e),e.elementType=w,e.lanes=r,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case re:c=10;break e;case Ne:c=9;break e;case V:c=11;break e;case le:c=14;break e;case X:c=16,l=null;break e}c=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=qt(c,a,t,i),t.elementType=e,t.type=l,t.lanes=r,t}function dn(e,t,a,l){return e=qt(7,e,l,t),e.lanes=a,e}function Ko(e,t,a){return e=qt(6,e,null,t),e.lanes=a,e}function cm(e){var t=qt(18,null,null,0);return t.stateNode=e,t}function Zo(e,t,a){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var fm=new WeakMap;function ra(e,t){if(typeof e=="object"&&e!==null){var a=fm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ih(t)},fm.set(e,t),t)}return{value:e,source:t,stack:ih(t)}}var ui=[],ri=0,Hr=null,xu=0,sa=[],oa=0,Tl=null,Ua=1,ka="";function al(e,t){ui[ri++]=xu,ui[ri++]=Hr,Hr=e,xu=t}function dm(e,t,a){sa[oa++]=Ua,sa[oa++]=ka,sa[oa++]=Tl,Tl=e;var l=Ua;e=ka;var i=32-Zt(l)-1;l&=~(1<<i),a+=1;var r=32-Zt(t)+i;if(30<r){var c=i-i%5;r=(l&(1<<c)-1).toString(32),l>>=c,i-=c,Ua=1<<32-Zt(t)+i|a<<i|l,ka=r+e}else Ua=1<<r|a<<i|l,ka=e}function qr(e){e.return!==null&&(al(e,1),dm(e,1,0))}function Jo(e){for(;e===Hr;)Hr=ui[--ri],ui[ri]=null,xu=ui[--ri],ui[ri]=null;for(;e===Tl;)Tl=sa[--oa],sa[oa]=null,ka=sa[--oa],sa[oa]=null,Ua=sa[--oa],sa[oa]=null}function hm(e,t){sa[oa++]=Ua,sa[oa++]=ka,sa[oa++]=Tl,Ua=t.id,ka=t.overflow,Tl=e}var mt=null,Ze=null,Ee=!1,Nl=null,ca=!1,Fo=Error(o(519));function wl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Su(ra(t,e)),Fo}function mm(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[gt]=e,t[Ht]=l,a){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(a=0;a<Yu.length;a++)Ce(Yu[a],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),wh(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),jh(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Up(t.textContent,a)?(l.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),l.onScroll!=null&&Ce("scroll",t),l.onScrollEnd!=null&&Ce("scrollend",t),l.onClick!=null&&(t.onclick=Da),t=!0):t=!1,t||wl(e,!0)}function Lr(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:ca=!1;return;case 27:case 3:ca=!0;return;default:mt=mt.return}}function si(e){if(e!==mt)return!1;if(!Ee)return Lr(e),Ee=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||wf(e.type,e.memoizedProps)),a=!a),a&&Ze&&wl(e),Lr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ze=ev(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ze=ev(e)}else t===27?(t=Ze,Gl(e.type)?(e=Uf,Uf=null,Ze=e):Ze=t):Ze=mt?da(e.stateNode.nextSibling):null;return!0}function hn(){Ze=mt=null,Ee=!1}function $o(){var e=Nl;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),Nl=null),e}function Su(e){Nl===null?Nl=[e]:Nl.push(e)}var Po=Aa(null),mn=null,ll=null;function Cl(e,t,a){Ke(Po,t._currentValue),t._currentValue=a}function nl(e){e._currentValue=Po.current,vt(Po)}function Br(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Wo(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var c=i.child;r=r.firstContext;e:for(;r!==null;){var y=r;r=i;for(var S=0;S<t.length;S++)if(y.context===t[S]){r.lanes|=a,y=r.alternate,y!==null&&(y.lanes|=a),Br(r.return,a,e),l||(c=null);break e}r=y.next}}else if(i.tag===18){if(c=i.return,c===null)throw Error(o(341));c.lanes|=a,r=c.alternate,r!==null&&(r.lanes|=a),Br(c,a,e),c=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=a,c=i.alternate,c!==null&&(c.lanes|=a),Br(i.return,a,e),c=i.child,c=c!==null?c.sibling:null):c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===e){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}}function yn(e,t,a,l){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var c=i.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var y=i.type;Ft(i.pendingProps.value,c.value)||(e!==null?e.push(y):e=[y])}}else if(i===hr.current){if(c=i.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Mi):e=[Mi])}i=i.return}return e!==null&&Wo(t,e,a,l),t.flags|=262144,e!==null}function Qr(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pn(e){mn=e,ll=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return ym(mn,e)}function Gr(e,t){return mn===null&&pn(e),ym(e,t)}function ym(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ll===null){if(e===null)throw Error(o(308));ll=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ll=ll.next=t;return a}var _b=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Tb=n.unstable_scheduleCallback,Nb=n.unstable_NormalPriority,it={$$typeof:re,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new _b,data:new Map,refCount:0}}function Eu(e){e.refCount--,e.refCount===0&&Tb(Nb,function(){e.controller.abort()})}function pm(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];a.indexOf(l)===-1&&a.push(l)}}}var _u=null;function wb(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Tu=null,ec=0,vn=0,oi=null;function Cb(e,t){if(Tu===null){var a=Tu=[];ec=0,vn=vf(),oi={status:"pending",value:void 0,then:function(l){a.push(l)}}}return ec++,t.then(vm,vm),t}function vm(){if(--ec===0&&(_u=null,Tu!==null)){oi!==null&&(oi.status="fulfilled");var e=Tu;Tu=null,vn=0,oi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function jb(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var gm=se.S;se.S=function(e,t){if(cp=Xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Cb(e,t),_u!==null)for(var a=Ci;a!==null;)pm(a,_u),a=a.next;if(a=e.types,a!==null){for(var l=Ci;l!==null;)pm(l,a),l=l.next;if(vn!==0){l=_u,l===null&&(l=_u=[]);for(var i=0;i<a.length;i++){var r=a[i];l.indexOf(r)===-1&&l.push(r)}}}gm!==null&&gm(e,t)};var gn=Aa(null);function tc(){var e=gn.current;return e!==null?e:Xe.pooledCache}function Yr(e,t){t===null?Ke(gn,gn.current):Ke(gn,t.pool)}function bm(){var e=tc();return e===null?null:{parent:it._currentValue,pool:e}}var ci=Error(o(460)),ac=Error(o(474)),Vr=Error(o(542)),Xr={then:function(){}};function xm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Sm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Da,Da),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_m(e),e===void 0&&!("reason"in t)?Error(o(600)):e;default:if(typeof t.status=="string")t.then(Da,Da);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_m(e),e}throw xn=t,ci}}function bn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(xn=a,ci):a}}var xn=null;function Em(){if(xn===null)throw Error(o(459));var e=xn;return xn=null,e}function _m(e){if(e===ci||e===Vr)throw Error(o(483))}var fi=null,Nu=0;function Kr(e){var t=Nu;return Nu+=1,fi===null&&(fi=[]),Sm(fi,e,t)}function jl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zr(e,t){throw t.$$typeof===U?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Tm(e){function t(j,N){if(e){var O=j.deletions;O===null?(j.deletions=[N],j.flags|=16):O.push(N)}}function a(j,N){if(!e)return null;for(;N!==null;)t(j,N),N=N.sibling;return null}function l(j){for(var N=new Map;j!==null;)j.key===null?N.set(j.index,j):N.set(j.key,j),j=j.sibling;return N}function i(j,N){return j=tl(j,N),j.index=0,j.sibling=null,j}function r(j,N,O){return j.index=O,e?(O=j.alternate,O!==null?(O=O.index,O<N?(j.flags|=2,N):O):(j.flags|=134217730,N)):(j.flags|=1048576,N)}function c(j){return e&&j.alternate===null&&(j.flags|=134217730),j}function y(j,N,O,L){return N===null||N.tag!==6?(N=Ko(O,j.mode,L),N.return=j,N):(N=i(N,O),N.return=j,N)}function S(j,N,O,L){var te=O.type;return te===Ve?(j=M(j,N,O.props.children,L,O.key),jl(j,O),j):N!==null&&(N.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===X&&bn(te)===N.type)?(N=i(N,O.props),jl(N,O),N.return=j,N):(N=kr(O.type,O.key,O.props,null,j.mode,L),jl(N,O),N.return=j,N)}function z(j,N,O,L){return N===null||N.tag!==4||N.stateNode.containerInfo!==O.containerInfo||N.stateNode.implementation!==O.implementation?(N=Zo(O,j.mode,L),N.return=j,N):(N=i(N,O.children||[]),N.return=j,N)}function M(j,N,O,L,te){return N===null||N.tag!==7?(N=dn(O,j.mode,L,te),N.return=j,N):(N=i(N,O),N.return=j,N)}function B(j,N,O){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Ko(""+N,j.mode,O),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case I:return O=kr(N.type,N.key,N.props,null,j.mode,O),jl(O,N),O.return=j,O;case ae:return N=Zo(N,j.mode,O),N.return=j,N;case X:return N=bn(N),B(j,N,O)}if(Ae(N)||ce(N))return N=dn(N,j.mode,O,null),N.return=j,N;if(typeof N.then=="function")return B(j,Kr(N),O);if(N.$$typeof===re)return B(j,Gr(j,N),O);Zr(j,N)}return null}function C(j,N,O,L){var te=N!==null?N.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return te!==null?null:y(j,N,""+O,L);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case I:return O.key===te?S(j,N,O,L):null;case ae:return O.key===te?z(j,N,O,L):null;case X:return O=bn(O),C(j,N,O,L)}if(Ae(O)||ce(O))return te!==null?null:M(j,N,O,L,null);if(typeof O.then=="function")return C(j,N,Kr(O),L);if(O.$$typeof===re)return C(j,N,Gr(j,O),L);Zr(j,O)}return null}function A(j,N,O,L,te){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return j=j.get(O)||null,y(N,j,""+L,te);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case I:return j=j.get(L.key===null?O:L.key)||null,S(N,j,L,te);case ae:return j=j.get(L.key===null?O:L.key)||null,z(N,j,L,te);case X:return L=bn(L),A(j,N,O,L,te)}if(Ae(L)||ce(L))return j=j.get(O)||null,M(N,j,L,te,null);if(typeof L.then=="function")return A(j,N,O,Kr(L),te);if(L.$$typeof===re)return A(j,N,O,Gr(N,L),te);Zr(N,L)}return null}function $(j,N,O,L){for(var te=null,Oe=null,fe=N,ve=N=0,st=null;fe!==null&&ve<O.length;ve++){fe.index>ve?(st=fe,fe=null):st=fe.sibling;var Me=C(j,fe,O[ve],L);if(Me===null){fe===null&&(fe=st);break}e&&fe&&Me.alternate===null&&t(j,fe),N=r(Me,N,ve),Oe===null?te=Me:Oe.sibling=Me,Oe=Me,fe=st}if(ve===O.length)return a(j,fe),Ee&&al(j,ve),te;if(fe===null){for(;ve<O.length;ve++)fe=B(j,O[ve],L),fe!==null&&(N=r(fe,N,ve),Oe===null?te=fe:Oe.sibling=fe,Oe=fe);return Ee&&al(j,ve),te}for(fe=l(fe);ve<O.length;ve++)st=A(fe,j,ve,O[ve],L),st!==null&&(e&&(Me=st.alternate,Me!==null&&fe.delete(Me.key===null?ve:Me.key)),N=r(st,N,ve),Oe===null?te=st:Oe.sibling=st,Oe=st);return e&&fe.forEach(function(Zl){return t(j,Zl)}),Ee&&al(j,ve),te}function oe(j,N,O,L){if(O==null)throw Error(o(151));for(var te=null,Oe=null,fe=N,ve=N=0,st=null,Me=O.next();fe!==null&&!Me.done;ve++,Me=O.next()){fe.index>ve?(st=fe,fe=null):st=fe.sibling;var Zl=C(j,fe,Me.value,L);if(Zl===null){fe===null&&(fe=st);break}e&&fe&&Zl.alternate===null&&t(j,fe),N=r(Zl,N,ve),Oe===null?te=Zl:Oe.sibling=Zl,Oe=Zl,fe=st}if(Me.done)return a(j,fe),Ee&&al(j,ve),te;if(fe===null){for(;!Me.done;ve++,Me=O.next())Me=B(j,Me.value,L),Me!==null&&(N=r(Me,N,ve),Oe===null?te=Me:Oe.sibling=Me,Oe=Me);return Ee&&al(j,ve),te}for(fe=l(fe);!Me.done;ve++,Me=O.next())Me=A(fe,j,ve,Me.value,L),Me!==null&&(e&&(st=Me.alternate,st!==null&&fe.delete(st.key===null?ve:st.key)),N=r(Me,N,ve),Oe===null?te=Me:Oe.sibling=Me,Oe=Me);return e&&fe.forEach(function(s2){return t(j,s2)}),Ee&&al(j,ve),te}function xe(j,N,O,L){if(typeof O=="object"&&O!==null&&O.type===Ve&&O.key===null&&O.props.ref===void 0&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case I:e:{for(var te=O.key;N!==null;){if(N.key===te){if(te=O.type,te===Ve){if(N.tag===7){a(j,N.sibling),L=i(N,O.props.children),jl(L,O),L.return=j,j=L;break e}}else if(N.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===X&&bn(te)===N.type){a(j,N.sibling),L=i(N,O.props),jl(L,O),L.return=j,j=L;break e}a(j,N);break}else t(j,N);N=N.sibling}O.type===Ve?(L=dn(O.props.children,j.mode,L,O.key),jl(L,O),L.return=j,j=L):(L=kr(O.type,O.key,O.props,null,j.mode,L),jl(L,O),L.return=j,j=L)}return c(j);case ae:e:{for(te=O.key;N!==null;){if(N.key===te)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){a(j,N.sibling),L=i(N,O.children||[]),L.return=j,j=L;break e}else{a(j,N);break}else t(j,N);N=N.sibling}L=Zo(O,j.mode,L),L.return=j,j=L}return c(j);case X:return O=bn(O),xe(j,N,O,L)}if(Ae(O))return $(j,N,O,L);if(ce(O)){if(te=ce(O),typeof te!="function")throw Error(o(150));return O=te.call(O),oe(j,N,O,L)}if(typeof O.then=="function")return xe(j,N,Kr(O),L);if(O.$$typeof===re)return xe(j,N,Gr(j,O),L);Zr(j,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,N!==null&&N.tag===6?(a(j,N.sibling),L=i(N,O),L.return=j,j=L):(a(j,N),L=Ko(O,j.mode,L),L.return=j,j=L),c(j)):a(j,N)}return function(j,N,O,L){try{Nu=0;var te=xe(j,N,O,L);return fi=null,te}catch(fe){if(fe===ci||fe===Vr)throw fe;var Oe=qt(29,fe,null,j.mode);return Oe.lanes=L,Oe.return=j,Oe}finally{}}}var Sn=Tm(!0),Nm=Tm(!1),zl=!1;function lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nc(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 Ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Rl(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=Ur(e),sm(e,null,a),t}return Dr(e,l,t,a),Ur(e)}function wu(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,dh(e,a)}}function ic(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?i=r=c:r=r.next=c,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var uc=!1;function Cu(){if(uc){var e=oi;if(e!==null)throw e}}function ju(e,t,a,l){uc=!1;var i=e.updateQueue;zl=!1;var r=i.firstBaseUpdate,c=i.lastBaseUpdate,y=i.shared.pending;if(y!==null){i.shared.pending=null;var S=y,z=S.next;S.next=null,c===null?r=z:c.next=z,c=S;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==c&&(y===null?M.firstBaseUpdate=z:y.next=z,M.lastBaseUpdate=S))}if(r!==null){var B=i.baseState;c=0,M=z=S=null,y=r;do{var C=y.lane&-536870913,A=C!==y.lane;if(A?(ze&C)===C:(l&C)===C){C!==0&&C===vn&&(uc=!0),M!==null&&(M=M.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var $=e,oe=y;C=t;var xe=a;switch(oe.tag){case 1:if($=oe.payload,typeof $=="function"){B=$.call(xe,B,C);break e}B=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=oe.payload,C=typeof $=="function"?$.call(xe,B,C):$,C==null)break e;B=F({},B,C);break e;case 2:zl=!0}}C=y.callback,C!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[C]:A.push(C))}else A={lane:C,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(z=M=A,S=B):M=M.next=A,c|=C;if(y=y.next,y===null){if(y=i.shared.pending,y===null)break;A=y,y=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);M===null&&(S=B),i.baseState=S,i.firstBaseUpdate=z,i.lastBaseUpdate=M,r===null&&(i.shared.lanes=0),ql|=c,e.lanes=c,e.memoizedState=B}}function wm(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Cm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wm(a[e],t)}var Al=Aa(null),Jr=Aa(0);function jm(e,t){e=ol,Ke(Jr,e),Ke(Al,t),ol=e|t.baseLanes}function rc(){Ke(Jr,ol),Ke(Al,Al.current)}function sc(){ol=Jr.current,vt(Al),vt(Jr)}var xt=Aa(null),wt=null;function Ml(e){var t=e.alternate;Ke(St,St.current&1),Ke(xt,e),wt===null&&(t===null||Al.current!==null||t.memoizedState!==null)&&(wt=e)}function oc(e){Ke(St,St.current),Ke(xt,e),wt===null&&(wt=e)}function zm(e){e.tag===22?(Ke(St,St.current),Ke(xt,e),wt===null&&(wt=e)):Dl()}function Dl(){Ke(St,St.current),Ke(xt,xt.current)}function $t(e){vt(xt),wt===e&&(wt=null),vt(St)}var St=Aa(0);function zu(e,t){Ke(xt,xt.current),Ke(St,t)}function cc(e){vt(St),vt(xt),wt===e&&(wt=null)}function Fr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Mf(a)||Df(a)))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 il=0,be=null,Ye=null,ut=null,$r=!1,di=!1,En=!1,Pr=0,Ou=0,hi=null,zb=0;function tt(){throw Error(o(321))}function fc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ft(e[a],t[a]))return!1;return!0}function dc(e,t,a,l,i,r){return il=r,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,se.H=e===null||e.memoizedState===null?dy:hy,En=!1,r=a(l,i),En=!1,di&&(r=Rm(t,a,l,i)),Om(e),r}function Om(e){se.H=ns;var t=Ye!==null&&Ye.next!==null;if(il=0,ut=Ye=be=null,$r=!1,Ou=0,hi=null,t)throw Error(o(300));e===null||rt||(e=e.dependencies,e!==null&&Qr(e)&&(rt=!0))}function Rm(e,t,a,l){be=e;var i=0;do{if(di&&(hi=null),Ou=0,di=!1,25<=i)throw Error(o(301));if(i+=1,ut=Ye=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}se.H=Hb,r=t(a,l)}while(di);return r}function Ob(){var e=se.H,t=e.useState()[0];return t=typeof t.then=="function"?Ru(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(be.flags|=1024),t}function hc(){var e=Pr!==0;return Pr=0,e}function mc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function yc(e){if($r){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$r=!1}il=0,ut=Ye=be=null,di=!1,Ou=Pr=0,hi=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?be.memoizedState=ut=e:ut=ut.next=e,ut}function lt(){if(Ye===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=ut===null?be.memoizedState:ut.next;if(t!==null)ut=t,Ye=e;else{if(e===null)throw be.alternate===null?Error(o(467)):Error(o(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},ut===null?be.memoizedState=ut=e:ut=ut.next=e}return ut}function Wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ru(e){var t=Ou;return Ou+=1,hi===null&&(hi=[]),e=Sm(hi,e,t),t=be,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,se.H=t===null||t.memoizedState===null?dy:hy),e}function Ir(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ru(e);if(e.$$typeof===G)return;if(e.$$typeof===re)return bt(e)}throw Error(o(438,String(e)))}function pc(e){var t=null,a=be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=be.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Wr(),be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Ra;return t.index++,a}function ul(e,t){return typeof t=="function"?t(e):t}function es(e){var t=lt();return vc(t,Ye,e)}function vc(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,r=l.pending;if(r!==null){if(i!==null){var c=i.next;i.next=r.next,r.next=c}t.baseQueue=i=r,l.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var y=c=null,S=null,z=t,M=!1;do{var B=z.lane&-536870913;if(B!==z.lane?(ze&B)===B:(il&B)===B){var C=z.revertLane;if(C===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),B===vn&&(M=!0);else if((il&C)===C){z=z.next,C===vn&&(M=!0);continue}else B={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=B,c=r):S=S.next=B,be.lanes|=C,ql|=C;B=z.action,En&&a(r,B),r=z.hasEagerState?z.eagerState:a(r,B)}else C={lane:B,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=C,c=r):S=S.next=C,be.lanes|=B,ql|=B;z=z.next}while(z!==null&&z!==t);if(S===null?c=r:S.next=y,!Ft(r,e.memoizedState)&&(rt=!0,M&&(a=oi,a!==null)))throw a;e.memoizedState=r,e.baseState=c,e.baseQueue=S,l.lastRenderedState=r}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function gc(e){var t=lt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,r=t.memoizedState;if(i!==null){a.pending=null;var c=i=i.next;do r=e(r,c.action),c=c.next;while(c!==i);Ft(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,l]}function Am(e,t,a){var l=be,i=lt(),r=Ee;if(r){if(a===void 0)throw Error(o(407));a=a()}else a=t();var c=!Ft((Ye||i).memoizedState,a);if(c&&(i.memoizedState=a,rt=!0),i=i.queue,Sc(Um.bind(null,l,i,e),[e]),e=i.getSnapshot!==t||c||ut!==null&&(ut.memoizedState.tag&1)!==0,mi(e?9:8,{destroy:void 0},Dm.bind(null,l,i,a,t),null),e){if(l.flags|=2048,Xe===null)throw Error(o(349));r||(il&127)!==0||Mm(l,t,a)}return a}function Mm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t=Wr(),be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Dm(e,t,a,l){t.value=a,t.getSnapshot=l,km(t)&&Hm(e)}function Um(e,t,a){return a(function(){km(t)&&Hm(e)})}function km(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ft(e,a)}catch{return!0}}function Hm(e){var t=fn(e,2);t!==null&&Gt(t,e,2)}function bc(e){var t=Rt();if(typeof e=="function"){var a=e;if(e=a(),En){Sl(!0);try{a()}finally{Sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:e},t}function qm(e,t,a,l){return e.baseState=a,vc(e,Ye,typeof l=="function"?l:ul)}function Rb(e,t,a,l,i){if(ls(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){r.listeners.push(c)}};se.T!==null?a(!0):r.isTransition=!1,l(r),a=t.pending,a===null?(r.next=t.pending=r,Lm(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Lm(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var r=se.T,c={};c.types=r!==null?r.types:null,se.T=c;try{var y=a(i,l),S=se.S;S!==null&&S(c,y),Bm(e,t,y)}catch(z){xc(e,t,z)}finally{r!==null&&c.types!==null&&(r.types=c.types),se.T=r}}else try{r=a(i,l),Bm(e,t,r)}catch(z){xc(e,t,z)}}function Bm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Qm(e,t,l)},function(l){return xc(e,t,l)}):Qm(e,t,a)}function Qm(e,t,a){t.status="fulfilled",t.value=a,Gm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Lm(e,a)))}function xc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Gm(t),t=t.next;while(t!==l)}e.action=null}function Gm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ym(e,t){return t}function Vm(e,t){if(Ee){var a=Xe.formState;if(a!==null){e:{var l=be;if(Ee){if(Ze){t:{for(var i=Ze,r=ca;i.nodeType!==8;){if(!r){i=null;break t}if(i=da(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Ze=da(i.nextSibling),l=i.data==="F!";break e}}wl(l)}l=!1}l&&(t=a[0])}}return a=Rt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ym,lastRenderedState:t},a.queue=l,a=oy.bind(null,be,l),l.dispatch=a,l=bc(!1),r=wc.bind(null,be,!1,l.queue),l=Rt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=Rb.bind(null,be,i,r,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Xm(e){var t=lt();return Km(t,Ye,e)}function Km(e,t,a){if(t=vc(e,t,Ym)[0],e=es(ul)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ru(t)}catch(c){throw c===ci?Vr:c}else l=t;t=lt();var i=t.queue,r=i.dispatch;return a!==t.memoizedState&&(be.flags|=2048,mi(9,{destroy:void 0},Ab.bind(null,i,a),null)),[l,r,e]}function Ab(e,t){e.action=t}function Zm(e){var t=lt(),a=Ye;if(a!==null)return Km(t,a,e);lt(),t=t.memoizedState,a=lt();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function mi(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=be.updateQueue,t===null&&(t=Wr(),be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Jm(){return lt().memoizedState}function ts(e,t,a,l){var i=Rt();be.flags|=e,i.memoizedState=mi(1|t,{destroy:void 0},a,l===void 0?null:l)}function as(e,t,a,l){var i=lt();l=l===void 0?null:l;var r=i.memoizedState.inst;Ye!==null&&l!==null&&fc(l,Ye.memoizedState.deps)?i.memoizedState=mi(t,r,a,l):(be.flags|=e,i.memoizedState=mi(1|t,r,a,l))}function Fm(e,t){ts(8390656,8,e,t)}function Sc(e,t){as(2048,8,e,t)}function Mb(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=Wr(),be.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function $m(e){var t=lt().memoizedState;return Mb({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Pm(e,t){return as(4,2,e,t)}function Wm(e,t){return as(4,4,e,t)}function Im(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ey(e,t,a){a=a!=null?a.concat([e]):null,as(4,4,Im.bind(null,t,e),a)}function Ec(){}function ty(e,t){var a=lt();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&fc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function ay(e,t){var a=lt();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&fc(t,l[1]))return l[0];if(l=e(),En){Sl(!0);try{e()}finally{Sl(!1)}}return a.memoizedState=[l,t],l}function _c(e,t,a){return a===void 0||(il&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=dp(),be.lanes|=e,ql|=e,a)}function ly(e,t,a,l){return Ft(a,t)?a:Al.current!==null?(e=_c(e,a,l),Ft(e,t)||(rt=!0),e):(il&106)===0||(il&1073741824)!==0&&(ze&261930)===0?(rt=!0,e.memoizedState=a):(e=dp(),be.lanes|=e,ql|=e,t)}function ny(e,t,a,l,i){var r=ye.p;ye.p=r!==0&&8>r?r:8;var c=se.T,y={};y.types=c!==null?c.types:null,se.T=y,wc(e,!1,t,a);try{var S=i(),z=se.S;if(z!==null&&z(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var M=jb(S,l);Au(e,t,M,ea(e))}else Au(e,t,l,ea(e))}catch(B){Au(e,t,{then:function(){},status:"rejected",reason:B},ea())}finally{ye.p=r,c!==null&&y.types!==null&&(c.types=y.types),se.T=c}}function Db(){}function Tc(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=iy(e).queue;ny(e,i,t,Vt,a===null?Db:function(){return uy(e),a(l)})}function iy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vt,baseState:Vt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:Vt},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function uy(e){var t=iy(e);t.next===null&&(t=e.alternate.memoizedState),Au(e,t.next.queue,{},ea())}function Nc(){return bt(Mi)}function ry(){return lt().memoizedState}function sy(){return lt().memoizedState}function Ub(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=ea();e=Ol(a);var l=Rl(t,e,a);l!==null&&(Gt(l,t,a),wu(l,t,a)),t={cache:Io()},e.payload=t;return}t=t.return}}function kb(e,t,a){var l=ea();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ls(e)?cy(t,a):(a=Vo(e,t,a,l),a!==null&&(Gt(a,e,l),fy(a,t,l)))}function oy(e,t,a){var l=ea();Au(e,t,a,l)}function Au(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ls(e))cy(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var c=t.lastRenderedState,y=r(c,a);if(i.hasEagerState=!0,i.eagerState=y,Ft(y,c))return Dr(e,t,i,0),Xe===null&&Mr(),!1}catch{}finally{}if(a=Vo(e,t,i,l),a!==null)return Gt(a,e,l),fy(a,t,l),!0}return!1}function wc(e,t,a,l){if(l={lane:2,revertLane:vf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ls(e)){if(t)throw Error(o(479))}else t=Vo(e,a,l,2),t!==null&&Gt(t,e,2)}function ls(e){var t=e.alternate;return e===be||t!==null&&t===be}function cy(e,t){di=$r=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function fy(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,dh(e,a)}}var ns={readContext:bt,use:Ir,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt,useEffectEvent:tt},dy={readContext:bt,use:Ir,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:Fm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ts(4194308,4,Im.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var a=Rt();t=t===void 0?null:t;var l=e();if(En){Sl(!0);try{e()}finally{Sl(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Rt();if(a!==void 0){var i=a(t);if(En){Sl(!0);try{a(t)}finally{Sl(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=kb.bind(null,be,e),[l.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=bc(e);var t=e.queue,a=oy.bind(null,be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ec,useDeferredValue:function(e,t){var a=Rt();return _c(a,e,t)},useTransition:function(){var e=bc(!1);return e=ny.bind(null,be,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=be,i=Rt();if(Ee){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Xe===null)throw Error(o(349));(ze&127)!==0||Mm(l,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,Fm(Um.bind(null,l,r,e),[e]),l.flags|=2048,mi(9,{destroy:void 0},Dm.bind(null,l,r,a,t),null),a},useId:function(){var e=Rt(),t=Xe.identifierPrefix;if(Ee){var a=ka,l=Ua;a=(l&~(1<<32-Zt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Pr++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=zb++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Nc,useFormState:Vm,useActionState:Vm,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=wc.bind(null,be,!0,a),a.dispatch=t,[e,t]},useMemoCache:pc,useCacheRefresh:function(){return Rt().memoizedState=Ub.bind(null,be)},useEffectEvent:function(e){var t=Rt(),a={impl:e};return t.memoizedState=a,function(){if((He&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},hy={readContext:bt,use:Ir,useCallback:ty,useContext:bt,useEffect:Sc,useImperativeHandle:ey,useInsertionEffect:Pm,useLayoutEffect:Wm,useMemo:ay,useReducer:es,useRef:Jm,useState:function(){return es(ul)},useDebugValue:Ec,useDeferredValue:function(e,t){var a=lt();return ly(a,Ye.memoizedState,e,t)},useTransition:function(){var e=es(ul)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ru(e),t]},useSyncExternalStore:Am,useId:ry,useHostTransitionStatus:Nc,useFormState:Xm,useActionState:Xm,useOptimistic:function(e,t){var a=lt();return qm(a,Ye,e,t)},useMemoCache:pc,useCacheRefresh:sy,useEffectEvent:$m},Hb={readContext:bt,use:Ir,useCallback:ty,useContext:bt,useEffect:Sc,useImperativeHandle:ey,useInsertionEffect:Pm,useLayoutEffect:Wm,useMemo:ay,useReducer:gc,useRef:Jm,useState:function(){return gc(ul)},useDebugValue:Ec,useDeferredValue:function(e,t){var a=lt();return Ye===null?_c(a,e,t):ly(a,Ye.memoizedState,e,t)},useTransition:function(){var e=gc(ul)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ru(e),t]},useSyncExternalStore:Am,useId:ry,useHostTransitionStatus:Nc,useFormState:Zm,useActionState:Zm,useOptimistic:function(e,t){var a=lt();return Ye!==null?qm(a,Ye,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:pc,useCacheRefresh:sy,useEffectEvent:$m};function Cc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:F({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var jc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=ea(),i=Ol(l);i.payload=t,a!=null&&(i.callback=a),t=Rl(e,i,l),t!==null&&(Gt(t,e,l),wu(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=ea(),i=Ol(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Rl(e,i,l),t!==null&&(Gt(t,e,l),wu(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ea(),l=Ol(a);l.tag=2,t!=null&&(l.callback=t),t=Rl(e,l,a),t!==null&&(Gt(t,e,a),wu(t,e,a))}};function my(e,t,a,l,i,r,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,c):t.prototype&&t.prototype.isPureReactComponent?!gu(a,l)||!gu(i,r):!0}function yy(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&jc.enqueueReplaceState(t,t.state,null)}function _n(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=F({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function py(e){Ar(e)}function vy(e){console.error(e)}function gy(e){Ar(e)}function is(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function by(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function zc(e,t,a){return a=Ol(a),a.tag=3,a.payload={element:null},a.callback=function(){is(e,t)},a}function xy(e){return e=Ol(e),e.tag=3,e}function Sy(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var r=l.value;e.payload=function(){return i(r)},e.callback=function(){by(t,a,l)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){by(t,a,l),typeof i!="function"&&(Ll===null?Ll=new Set([this]):Ll.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function qb(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&yn(t,a,i,!0),a=xt.current,a!==null){switch(a.tag){case 31:case 13:case 19:return wt===null?ws():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===Xr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),mf(e,l,i)),!1;case 22:return a.flags|=65536,l===Xr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),mf(e,l,i)),!1}throw Error(o(435,a.tag))}return mf(e,l,i),ws(),!1}if(Ee)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==Fo&&(e=Error(o(422),{cause:l}),Su(ra(e,a)))):(l!==Fo&&(t=Error(o(423),{cause:l}),Su(ra(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=ra(l,a),i=zc(e.stateNode,l,i),ic(e,i),at!==4&&(at=2)),!1;var r=Error(o(520),{cause:l});if(r=ra(r,a),Bu===null?Bu=[r]:Bu.push(r),at!==4&&(at=2),t===null)return!0;l=ra(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=zc(a.stateNode,l,e),ic(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ll===null||!Ll.has(r))))return a.flags|=65536,i&=-i,a.lanes|=i,i=xy(i),Sy(i,e,a,l),ic(a,i),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var Oc=Error(o(461)),rt=!1;function ot(e,t,a,l){t.child=e===null?Nm(t,null,a,l):Sn(t,e.child,a,l)}function Ey(e,t,a,l,i){a=a.render;var r=t.ref;if("ref"in l){var c={};for(var y in l)y!=="ref"&&(c[y]=l[y])}else c=l;return pn(t),l=dc(e,t,a,c,r,i),y=hc(),e!==null&&!rt?(mc(e,t,i),rl(e,t,i)):(Ee&&y&&qr(t),t.flags|=1,ot(e,t,l,i),t.child)}function _y(e,t,a,l,i){if(e===null){var r=a.type;return typeof r=="function"&&!Xo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Ty(e,t,r,l,i)):(e=kr(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!qc(e,i)){var c=r.memoizedProps;if(a=a.compare,a=a!==null?a:gu,a(c,l)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=tl(r,l),e.ref=t.ref,e.return=t,t.child=e}function Ty(e,t,a,l,i){if(e!==null){var r=e.memoizedProps;if(gu(r,l)&&e.ref===t.ref)if(rt=!1,t.pendingProps=l=r,qc(e,i))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,rl(e,t,i)}return Rc(e,t,a,l,i)}function Ny(e,t,a,l){var i=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~r}else l=0,t.child=null;return wy(e,t,r,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,r!==null?r.cachePool:null),r!==null?jm(t,r):rc(),zm(t);else return l=t.lanes=536870912,wy(e,t,r!==null?r.baseLanes|a:a,a,l)}else r!==null?(Yr(t,r.cachePool),jm(t,r),Dl(),t.memoizedState=null):(e!==null&&Yr(t,null),rc(),Dl());return ot(e,t,i,a),t.child}function Mu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wy(e,t,a,l,i){var r=tc();return r=r===null?null:{parent:it._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yr(t,null),rc(),zm(t),e!==null&&yn(e,t,l,!0),t.childLanes=i,null}function us(e,t){return t=rs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cy(e,t,a){return Sn(t,e.child,null,a),e=us(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function Lb(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(l.mode==="hidden")return e=us(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Mu(null,e);if(oc(t),(e=Ze)?(e=Ip(e,ca),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tl!==null?{id:Ua,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},a=cm(e),a.return=t,t.child=a,mt=t,Ze=null)):e=null,e===null)throw wl(t);return t.lanes=536870912,null}return us(t,l)}var r=e.memoizedState;if(r!==null){var c=r.dehydrated;if(oc(t),i)if(t.flags&256)t.flags&=-257,t=Cy(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(rt||yn(e,t,a,!1),i=(a&e.childLanes)!==0,rt||i){if(Al.current===null){if(l=Xe,l!==null&&(c=hh(l,a),c!==0&&c!==r.retryLane))throw r.retryLane=c,fn(e,c),Gt(l,e,c),Oc;ws()}t=Cy(e,t,a)}else e=r.treeContext,Ze=da(c.nextSibling),mt=t,Ee=!0,Nl=null,ca=!1,e!==null&&hm(t,e),t=us(t,l),t.flags|=134221824;return t}return e=tl(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Rc(e,t,a,l,i){return pn(t),a=dc(e,t,a,l,void 0,i),l=hc(),e!==null&&!rt?(mc(e,t,i),rl(e,t,i)):(Ee&&l&&qr(t),t.flags|=1,ot(e,t,a,i),t.child)}function jy(e,t,a,l,i,r){return pn(t),t.updateQueue=null,a=Rm(t,l,a,i),Om(e),l=hc(),e!==null&&!rt?(mc(e,t,r),rl(e,t,r)):(Ee&&l&&qr(t),t.flags|=1,ot(e,t,a,r),t.child)}function zy(e,t,a,l,i){if(pn(t),t.stateNode===null){var r=ii,c=a.contextType;typeof c=="object"&&c!==null&&(r=bt(c)),r=new a(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=jc,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},lc(t),c=a.contextType,r.context=typeof c=="object"&&c!==null?bt(c):ii,r.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(Cc(t,a,c,l),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(c=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),c!==r.state&&jc.enqueueReplaceState(r,r.state,null),ju(t,l,r,i),Cu(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var y=t.memoizedProps,S=_n(a,y);r.props=S;var z=r.context,M=a.contextType;c=ii,typeof M=="object"&&M!==null&&(c=bt(M));var B=a.getDerivedStateFromProps;M=typeof B=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,M||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||z!==c)&&yy(t,r,l,c),zl=!1;var C=t.memoizedState;r.state=C,ju(t,l,r,i),Cu(),z=t.memoizedState,y||C!==z||zl?(typeof B=="function"&&(Cc(t,a,B,l),z=t.memoizedState),(S=zl||my(t,a,S,l,C,z,c))?(M||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),r.props=l,r.state=z,r.context=c,l=S):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,nc(e,t),c=t.memoizedProps,M=_n(a,c),r.props=M,B=t.pendingProps,C=r.context,z=a.contextType,S=ii,typeof z=="object"&&z!==null&&(S=bt(z)),y=a.getDerivedStateFromProps,(z=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(c!==B||C!==S)&&yy(t,r,l,S),zl=!1,C=t.memoizedState,r.state=C,ju(t,l,r,i),Cu();var A=t.memoizedState;c!==B||C!==A||zl||e!==null&&e.dependencies!==null&&Qr(e.dependencies)?(typeof y=="function"&&(Cc(t,a,y,l),A=t.memoizedState),(M=zl||my(t,a,M,l,C,A,S)||e!==null&&e.dependencies!==null&&Qr(e.dependencies))?(z||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,A,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,A,S)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=A),r.props=l,r.state=A,r.context=S,l=M):(typeof r.componentDidUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,yi(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=Sn(t,e.child,null,i),t.child=Sn(t,null,a,i)):ot(e,t,a,i),t.memoizedState=r.state,e=t.child):e=rl(e,t,i),e}function Oy(e,t,a,l){return hn(),t.flags|=256,ot(e,t,a,l),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mc(e){return{baseLanes:e,cachePool:bm()}}function Dc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=It),e}function Ry(e,t,a){var l=t.pendingProps,i=!1,r=(t.flags&128)!==0,c;if((c=r)||(c=e!==null&&e.memoizedState===null?!1:(St.current&2)!==0),c&&(i=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(i?Ml(t):Dl(),(e=Ze)?(e=Ip(e,ca),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tl!==null?{id:Ua,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},a=cm(e),a.return=t,t.child=a,mt=t,Ze=null)):e=null,e===null)throw wl(t);return Df(e)?t.lanes=32:t.lanes=536870912,null}return r=l.children,l=l.fallback,i?(Dl(),i=t.mode,r=rs({mode:"hidden",children:r},i),l=dn(l,i,a,null),r.return=t,l.return=t,r.sibling=l,t.child=r,l=t.child,l.memoizedState=Mc(a),l.childLanes=Dc(e,c,a),t.memoizedState=Ac,Mu(null,l)):(Ml(t),Uc(t,r))}var y=e.memoizedState;if(y!==null){var S=y.dehydrated;if(S!==null)return Bb(e,t,r,c,l,S,y,a)}return i?(Dl(),i=l.fallback,r=t.mode,y=e.child,S=y.sibling,l=tl(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&1206910976,S!==null?i=tl(S,i):(i=dn(i,r,a,null),i.flags|=2),i.return=t,l.return=t,l.sibling=i,t.child=l,Mu(null,l),l=t.child,i=e.child.memoizedState,i===null?i=Mc(a):(r=i.cachePool,r!==null?(y=it._currentValue,r=r.parent!==y?{parent:y,pool:y}:r):r=bm(),i={baseLanes:i.baseLanes|a,cachePool:r}),l.memoizedState=i,l.childLanes=Dc(e,c,a),t.memoizedState=Ac,Mu(e.child,l)):(Ml(t),a=e.child,e=a.sibling,a=tl(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function Uc(e,t){return t=rs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rs(e,t){return e=qt(22,e,null,t),e.lanes=0,e}function ss(e,t,a){return Sn(t,e.child,null,a),e=Uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bb(e,t,a,l,i,r,c,y){if(a)return t.flags&256?(Ml(t),t.flags&=-257,ss(e,t,y)):t.memoizedState!==null?(Dl(),t.child=e.child,t.flags|=128,null):(Dl(),r=i.fallback,c=t.mode,i=rs({mode:"visible",children:i.children},c),r=dn(r,c,y,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Sn(t,e.child,null,y),i=t.child,i.memoizedState=Mc(y),i.childLanes=Dc(e,l,y),t.memoizedState=Ac,Mu(null,i));if(Ml(t),Df(r)){if(l=r.nextSibling&&r.nextSibling.dataset,l)var S=l.dgst;return l=S,l!==""&&(i=Error(o(419)),i.stack="",i.digest=l,Su({value:i,source:null,stack:null})),ss(e,t,y)}if(rt||yn(e,t,y,!1),l=(y&e.childLanes)!==0,rt||l){if(Al.current!==null)return ss(e,t,y);if(l=Xe,l!==null&&(i=hh(l,y),i!==0&&i!==c.retryLane))throw c.retryLane=i,fn(e,i),Gt(l,e,i),Oc;return Mf(r)||ws(),ss(e,t,y)}return Mf(r)?(t.flags|=192,t.child=e.child,null):(e=c.treeContext,Ze=da(r.nextSibling),mt=t,Ee=!0,Nl=null,ca=!1,e!==null&&hm(t,e),t=Uc(t,i.children),t.flags|=134221824,t)}function Ay(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Br(e.return,t,a)}function My(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&Fr(a)===null&&(t=e),e=e.sibling}return t}function os(e,t,a,l,i,r){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:r}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=i,c.treeForkCount=r)}function kc(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function Hc(e,t,a){var l=t.pendingProps,i=l.revealOrder,r=l.tail;l=l.children;var c=St.current;if(t.flags&128)return zu(t,c),null;var y=(c&2)!==0;if(y?(c=c&1|2,t.flags|=128):c&=1,zu(t,c),i==="backwards"&&e!==null?(kc(e),ot(e,t,l,a),kc(e)):ot(e,t,l,a),l=Ee?xu:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ay(e,a,t);else if(e.tag===19)Ay(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":a=My(t.child),a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null,kc(t)),os(t,!0,i,null,r,l);break;case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fr(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}os(t,!0,a,null,r,l);break;case"together":os(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:a=My(t.child),a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),os(t,!1,i,a,r,l)}return t.child}function Dy(e,t,a){var l=t.pendingProps;return Cl(t,t.type,l.value),ot(e,t,l.children,a),t.child}function rl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ql|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=tl(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=tl(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function qc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qr(e)))}function Qb(e,t,a){switch(t.tag){case 3:mr(t,t.stateNode.containerInfo),Cl(t,it,e.memoizedState.cache),hn();break;case 27:case 5:co(t);break;case 4:mr(t,t.stateNode.containerInfo);break;case 10:Cl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oc(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return Ml(t),t.flags|=128,null;l=yn(e,t,a,!1);var i=t.child.childLanes;return l||(a&i)!==0?Ry(e,t,a):(Ml(t),e=rl(e,t,a),e!==null?e.sibling:null)}Ml(t);break;case 19:if(t.flags&128)return Hc(e,t,a);if(i=(e.flags&128)!==0,l=(a&t.childLanes)!==0,l||(yn(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return Hc(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),zu(t,St.current),l)break;return null;case 22:return t.lanes=0,Ny(e,t,a,t.pendingProps);case 24:Cl(t,it,e.memoizedState.cache)}return rl(e,t,a)}function Uy(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!qc(e,a)&&(t.flags&128)===0)return rt=!1,Qb(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ee&&(t.flags&1048576)!==0&&dm(t,xu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bn(t.elementType),t.type=e,typeof e=="function")Xo(e)?(l=_n(e,l),t.tag=1,t=zy(null,t,e,l,a)):(t.tag=0,t=Rc(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=Ey(null,t,e,l,a);break e}else if(i===le){t.tag=14,t=_y(null,t,e,l,a);break e}else if(i===re){t.tag=10,t.type=e,t=Dy(null,t,a);break e}}throw t=me(e)||e,Error(o(306,t,""))}}return t;case 0:return Rc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=_n(l,t.pendingProps),zy(e,t,l,i,a);case 3:e:{if(mr(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var r=t.memoizedState;i=r.element,nc(e,t),ju(t,l,null,a);var c=t.memoizedState;if(l=c.cache,Cl(t,it,l),l!==r.cache&&Wo(t,[it],a,!0),Cu(),l=c.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Oy(e,t,l,a);break e}else if(l!==i){i=ra(Error(o(424)),t),Su(i),t=Oy(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=da(e.firstChild),mt=t,Ee=!0,Nl=null,ca=!0,a=Nm(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(hn(),l===i){t=rl(e,t,a);break e}ot(e,t,l,a)}t=t.child}return t;case 26:return yi(e,t),e===null?(a=uv(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ee||(t.stateNode=Lp(t.type,t.pendingProps,bl.current,t)):t.memoizedState=uv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return co(t),e===null&&Ee&&(l=t.stateNode=av(t.type,t.pendingProps,bl.current),mt=t,ca=!0,i=Ze,Gl(t.type)?(Uf=i,Ze=da(l.firstChild)):Ze=i),ot(e,t,t.pendingProps.children,a),yi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((i=l=Ze)&&(l=Ux(l,t.type,t.pendingProps,ca),l!==null?(t.stateNode=l,mt=t,Ze=da(l.firstChild),ca=!1,i=!0):i=!1),i||wl(t)),co(t),i=t.type,r=t.pendingProps,c=e!==null?e.memoizedProps:null,l=r.children,wf(i,r)?l=null:c!==null&&wf(i,c)&&(t.flags|=32),t.memoizedState!==null&&(i=dc(e,t,Ob,null,null,a),Mi._currentValue=i),yi(e,t),ot(e,t,l,a),t.child;case 6:return e===null&&Ee&&((e=a=Ze)&&(a=kx(a,t.pendingProps,ca),a!==null?(t.stateNode=a,mt=t,Ze=null,e=!0):e=!1),e||wl(t)),null;case 13:return Ry(e,t,a);case 4:return mr(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Sn(t,null,l,a):ot(e,t,l,a),t.child;case 11:return Ey(e,t,t.type,t.pendingProps,a);case 7:return l=t.pendingProps,yi(e,t),ot(e,t,l,a),t.child;case 8:return ot(e,t,t.pendingProps.children,a),t.child;case 12:return ot(e,t,t.pendingProps.children,a),t.child;case 10:return Dy(e,t,a);case 9:return i=t.type._context,l=t.pendingProps.children,pn(t),i=bt(i),l=l(i),t.flags|=1,ot(e,t,l,a),t.child;case 14:return _y(e,t,t.type,t.pendingProps,a);case 15:return Ty(e,t,t.type,t.pendingProps,a);case 19:return Hc(e,t,a);case 31:return Lb(e,t,a);case 22:return Ny(e,t,a,t.pendingProps);case 24:return pn(t),l=bt(it),e===null?(i=tc(),i===null&&(i=Xe,r=Io(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=a),i=r),t.memoizedState={parent:l,cache:i},lc(t),Cl(t,it,i)):((e.lanes&a)!==0&&(nc(e,t),ju(t,null,null,a),Cu()),i=e.memoizedState,r=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Cl(t,it,l)):(l=r.cache,Cl(t,it,l),l!==i.cache&&Wo(t,[it],a,!0))),ot(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:Ee&&qr(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:yi(e,t),ot(e,t,l.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function sl(e){e.flags|=4}function Lc(e,t,a,l,i){var r;if((r=(e.mode&32)!==0)&&(r=a===null?cv(t,l):cv(t,l)&&(l.src!==a.src||l.srcSet!==a.srcSet)),r){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(pp())e.flags|=8192;else throw xn=Xr,ac}else e.flags&=-16777217}function ky(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fv(t))if(pp())e.flags|=8192;else throw xn=Xr,ac}function cs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ch():536870912,e.lanes|=t,xi|=t)}function Du(e,t){if(!Ee)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&1206910976,l|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Gb(e,t,a){var l=t.pendingProps;switch(Jo(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 a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),nl(it),Kn(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(si(t)?sl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$o())),Je(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(sl(t),r!==null?(Je(t),ky(t,r)):(Je(t),Lc(t,i,null,l,a))):r?r!==e.memoizedState?(sl(t),Je(t),ky(t,r)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&sl(t),Je(t),Lc(t,i,e,l,a)),null;case 27:if(yr(t),a=bl.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&sl(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Je(t),t.subtreeFlags&=-33554433,null}e=Ma.current,si(t)?mm(t):(e=av(i,l,a),t.stateNode=e,sl(t))}return Je(t),t.subtreeFlags&=-33554433,null;case 5:if(yr(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&sl(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Je(t),t.subtreeFlags&=-33554433,null}if(r=Ma.current,si(t))mm(t);else{var c=Xu(bl.current);switch(r){case 1:r=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=c.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?c.createElement(i,{is:l.is}):c.createElement(i)}}r[gt]=t,r[Ht]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)r.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=r;e:switch(_t(r,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&sl(t)}}return Je(t),t.subtreeFlags&=-33554433,Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&sl(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=bl.current,si(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=mt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[gt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Up(e.nodeValue,a)),e||wl(t,!0)}else e=Xu(e).createTextNode(l),e[gt]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=si(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[gt]=t}else hn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=$o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Je(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=si(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[gt]=t}else hn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),i=!1}else i=$o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),cs(t,t.updateQueue),Je(t),null);case 4:return Kn(),e===null&&Sf(t.stateNode.containerInfo),t.flags|=67108864,Je(t),null;case 10:return nl(t.type),Je(t),null;case 19:if(cc(t),l=t.memoizedState,l===null)return Je(t),null;if(i=(t.flags&128)!==0,r=l.rendering,r===null)if(i)Du(l,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Fr(e),r!==null){for(t.flags|=128,Du(l,!1),e=r.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)om(a,e),a=a.sibling;return zu(t,St.current&1|2),Ee&&al(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Xt()>Es&&(t.flags|=128,i=!0,Du(l,!1),t.lanes=4194304)}else{if(!i)if(e=Fr(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,cs(t,e),Du(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!r.alternate&&!Ee)return Je(t),null}else 2*Xt()-l.renderingStartTime>Es&&a!==536870912&&(t.flags|=128,i=!0,Du(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}if(l.tail!==null){e=l.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Xt(),e.sibling=null,r=St.current,r=i?r&1|2:r&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!a||Ee?zu(t,r):(a=r,Ke(xt,t),Ke(St,a),wt===null&&(wt=t)),Ee&&al(t,l.treeForkCount),e}return Je(t),null;case 22:case 23:return $t(t),sc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&cs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&vt(gn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),nl(it),Je(t),null;case 25:return null;case 30:return t.flags|=33554432,Je(t),null}throw Error(o(156,t.tag))}function Yb(e,t){switch(Jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nl(it),Kn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yr(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(o(340));hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return cc(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 Kn(),null;case 10:return nl(t.type),null;case 22:case 23:return $t(t),sc(),e!==null&&vt(gn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return nl(it),null;case 25:return null;default:return null}}function Hy(e,t){switch(Jo(t),t.tag){case 3:nl(it),Kn();break;case 26:case 27:case 5:yr(t);break;case 4:Kn();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:cc(t);break;case 10:nl(t.type);break;case 22:case 23:$t(t),sc(),e!==null&&vt(gn);break;case 24:nl(it)}}function Uu(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var r=a.create,c=a.inst;l=r(),c.destroy=l}a=a.next}while(a!==i)}}catch(y){Qe(t,t.return,y)}}function Ul(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var r=i.next;l=r;do{if((l.tag&e)===e){var c=l.inst,y=c.destroy;if(y!==void 0){c.destroy=void 0,i=t;var S=a,z=y;try{z()}catch(M){Qe(i,S,M)}}}l=l.next}while(l!==r)}}catch(M){Qe(t,t.return,M)}}function qy(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Cm(t,a)}catch(l){Qe(e,e.return,l)}}}function Ly(e,t,a){a.props=_n(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Qe(e,t,l)}}function Ha(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var i=e.stateNode,r=Ia(e.memoizedProps,i);(i.ref===null||i.ref.name!==r)&&(i.ref=Kp(r)),l=i.ref;break;case 7:if(e.stateNode===null){var c=new ta(e);g(e.child,!1,Mx,c,void 0,void 0),e.stateNode=c}l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(y){Qe(e,t,y)}}function Et(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Qe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Qe(e,t,i)}else a.current=null}function fs(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)Wp(e.stateNode,t[a])}function By(e){for(var t=e.return;t!==null&&(Qc(t)&&Wp(e.stateNode,t.stateNode),!Bc(t));)t=t.return}function ku(e){for(var t=e.return;t!==null&&(Qc(t)&&Dx(e.stateNode,t.stateNode),!Bc(t));)t=t.return}function Bc(e){return e.tag===5||e.tag===3||e.tag===27}function Qc(e){return e&&e.tag===7&&e.stateNode!==null}function Gc(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Qe(e,e.return,i)}}function Yc(e,t,a){try{var l=e.stateNode;yx(l,e.type,a,t),l[Ht]=t}catch(i){Qe(e,e.return,i)}}function Qy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Gl(e.type)||e.tag===4}function Vc(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&&Gl(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 Xc(e,t,a,l){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(i,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(i),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Da)),fs(e,l),Ue=!0;else if(i!==4&&(i===27&&(fs(e,l),l=null,Gl(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(Xc(e,t,a,l),e=e.sibling;e!==null;)Xc(e,t,a,l),e=e.sibling}function ds(e,t,a,l){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?a.insertBefore(i,t):a.appendChild(i),fs(e,l),Ue=!0;else if(i!==4&&(i===27&&(fs(e,l),l=null,Gl(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(ds(e,t,a,l),e=e.sibling;e!==null;)ds(e,t,a,l),e=e.sibling}function Gy(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);_t(t,l,a),t[gt]=e,t[Ht]=a}catch(r){Qe(e,e.return,r)}}var hs=!1,Pt=null;function Yy(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(hs=!0)}var qa=null;function Vy(){var e=qa;return qa=null,e}var Lt=0;function pi(e,t,a,l,i){return Lt=0,Xy(e.child,t,a,l,i)}function Xy(e,t,a,l,i){for(var r=!1;e!==null;){if(e.tag===5){var c=e.stateNode;if(l!==null){var y=zf(c);l.push(y),y.view&&(r=!0)}else r||zf(c).view&&(r=!0);hs=!0,Vp(c,Lt===0?t:t+"_"+Lt,a),Lt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Xy(e.child,t,a,l,i)&&(r=!0));e=e.sibling}return r}function La(e,t){for(;e!==null;)e.tag===5?Xp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||La(e.child,t)),e=e.sibling}function ms(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(ms(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(o(544));var a=t.name;t=el(t.default,t.share),t!=="none"&&(pi(e,a,t,null,!1)||La(e.child,!1))}e=e.sibling}}function Kc(e,t){if(e.tag===30){var a=e.stateNode,l=e.memoizedProps,i=Ia(l,a),r=el(l.default,a.paired?l.share:l.enter);r!=="none"?pi(e,i,r,null,!1)?(ms(e),a.paired||t||Ti(e,l.onEnter)):La(e.child,!1):ms(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Kc(e,t),e=e.sibling;else ms(e)}function Zc(e){if(Pt!==null&&Pt.size!==0){var t=Pt;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 a=e.memoizedProps,l=a.name;if(l!=null&&l!=="auto"){var i=t.get(l);if(i!==void 0){var r=el(a.default,a.share);if(r!=="none"&&(pi(e,l,r,null,!1)?(r=e.stateNode,i.paired=r,r.paired=i,Ti(e,a.onShare)):La(e.child,!1)),t.delete(l),t.size===0)break}}}Zc(e)}e=e.sibling}}}function Jc(e){if(e.tag===30){var t=e.memoizedProps,a=Ia(t,e.stateNode),l=Pt!==null?Pt.get(a):void 0,i=el(t.default,l!==void 0?t.share:t.exit);i!=="none"&&(pi(e,a,i,null,!1)?l!==void 0?(i=e.stateNode,l.paired=i,i.paired=l,Pt.delete(a),Ti(e,t.onShare)):Ti(e,t.onExit):La(e.child,!1)),Pt!==null&&Zc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Jc(e),e=e.sibling;else Pt!==null&&Zc(e)}function Ky(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=Ia(t,e.stateNode);t=el(t.default,t.update),e.flags&=-5,t!=="none"&&pi(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Ky(e);e=e.sibling}}function Fc(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,La(e.child,!1))}Fc(e)}e=e.sibling}}function ys(e){if(e.tag===30)e.stateNode.paired=null,La(e.child,!1),Fc(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ys(e),e=e.sibling;else Fc(e)}function Zy(e){for(e=e.child;e!==null;)e.tag===30?La(e.child,!1):(e.subtreeFlags&33554432)!==0&&Zy(e),e=e.sibling}function $c(e,t,a,l,i,r,c){for(var y=!1;t!==null;){if(t.tag===5){var S=t.stateNode;if(r!==null&&Lt<r.length){var z=r[Lt],M=zf(S);(z.view||M.view)&&(y=!0);var B;if(B=(e.flags&4)===0)if(M.clip)B=!0;else{B=z.rect;var C=M.rect;B=B.y!==C.y||B.x!==C.x||B.height!==C.height||B.width!==C.width}B&&(e.flags|=4),M.abs?M=!z.abs:(z=z.rect,M=M.rect,M=z.height!==M.height||z.width!==M.width),M&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Vp(S,Lt===0?a:a+"_"+Lt,i),y&&(e.flags&4)!==0||(qa===null&&(qa=[]),qa.push(S,Lt===0?l:l+"_"+Lt,t.memoizedProps)),Lt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&c?e.flags|=t.flags&32:$c(e,t.child,a,l,i,r,c)&&(y=!0));t=t.sibling}return y}function Jy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,l=e.stateNode,i=Ia(a,l),r=el(a.default,a.update),c;c=e.memoizedState,e.memoizedState=null,l=e;var y=e.child;Lt=0,i=$c(l,y,i,i,r,c,!1),(e.flags&4)!==0&&i&&Ti(e,a.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Jy(e);e=e.sibling}}var yt=!1,Le=!1,Ba=!1,Pc=!1,Fy=typeof WeakSet=="function"?WeakSet:Set,pt=null,Qa=!1,Hu=!1,ps=!1,Wc=!1;function Vb(e,t,a){if(e=e.containerInfo,Tf=Di,e=Ih(e),qo(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var r=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var y=0,S=-1,z=-1,M=0,B=0,C=e,A=null;t:for(;;){for(var $;C!==l||r!==0&&C.nodeType!==3||(S=y+r),C!==c||i!==0&&C.nodeType!==3||(z=y+i),C.nodeType===3&&(y+=C.nodeValue.length),($=C.firstChild)!==null;)A=C,C=$;for(;;){if(C===e)break t;if(A===l&&++M===r&&(S=y),A===c&&++B===i&&(z=y),($=C.nextSibling)!==null)break;C=A,A=C.parentNode}C=$}l=S===-1||z===-1?null:{start:S,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(Nf={focusedElem:e,selectionRange:l},Di=!1,a=(a&335544064)===a,pt=t,t=a?9270:1024;pt!==null;){if(e=pt,a&&(l=e.deletions,l!==null))for(r=0;r<l.length;r++)a&&Jc(l[r]);if(e.alternate===null&&(e.flags&2)!==0)a&&Yy(e),vs(a);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&a&&Jc(l),vs(a);continue}else if(l!==null&&l.memoizedState!==null){a&&Yy(e),vs(a);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,pt=l):(a&&Ky(e),vs(a))}}Pt=null}function vs(e){for(;pt!==null;){var t=pt,a=e,l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&l!==null){a=void 0,i=l.memoizedProps,l=l.memoizedState;var r=t.stateNode;try{var c=_n(t.type,i);a=r.getSnapshotBeforeUpdate(c,l),r.__reactInternalSnapshotBeforeUpdate=a}catch(y){Qe(t,t.return,y)}}break;case 3:if((i&1024)!==0){if(l=t.stateNode.containerInfo,a=l.nodeType,a===9)Af(l);else if(a===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Af(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&l!==null&&(a=Ia(l.memoizedProps,l.stateNode),i=t.memoizedProps,i=el(i.default,i.update),i!=="none"&&pi(l,a,i,l.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(o(163))}if(l=t.sibling,l!==null){l.return=t.return,pt=l;break}pt=t.return}}function $y(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ga(e,a),l&4&&Uu(5,a);break;case 1:if(Ga(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){Qe(a,a.return,c)}else{var i=_n(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Qe(a,a.return,c)}}l&64&&qy(a),l&512&&Ha(a,a.return);break;case 3:if(Ga(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Cm(e,t)}catch(c){Qe(a,a.return,c)}}break;case 27:t===null&&l&4&&Gy(a);case 26:case 5:Ga(e,a),t===null&&l&4&&Gc(a),l&512&&Ha(a,a.return);break;case 12:Ga(e,a);break;case 31:Ga(e,a),l&4&&ep(e,a);break;case 13:Ga(e,a),l&4&&tp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ax.bind(null,a),Hx(e,a))));break;case 22:if(l=a.memoizedState!==null||yt,!l){var r=t!==null&&t.memoizedState!==null||Le;t=yt,i=Le,yt=l,(Le=r)&&!i?(l=2,(a.subtreeFlags&8772)!==0&&(l|=1),Ta(e,a,l)):Ga(e,a),yt=t,Le=i}break;case 30:Ga(e,a),l&512&&Ha(a,a.return);break;case 7:l&512&&Ha(a,a.return);default:Ga(e,a)}}function Ic(e,t){for(e=e.child;e!==null;)Py(e,t),e=e.sibling}function Py(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var l=a.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var i=e.stateNode,r=e.memoizedProps.style,c=r!=null&&r.hasOwnProperty("display")?r.display:null;i.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}}catch(S){Qe(e,e.return,S)}ef(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Ue=!0}catch(S){Qe(e,e.return,S)}break;case 18:try{var y=e.stateNode;t?Yp(y,!0):Yp(e.stateNode,!1)}catch(S){Qe(e,e.return,S)}break;case 22:case 23:e.memoizedState===null&&Ic(e,t);break;default:Ic(e,t)}}function ef(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,l=t;switch(a.tag){case 4:Py(a,l);break e;case 22:a.memoizedState===null&&ef(a,l);break e;default:ef(a,l)}}e=e.sibling}}function Wy(e){var t=e.alternate;t!==null&&(e.alternate=null,Wy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Er(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $e=null,Bt=!1;function Ea(e,t,a){for(a=a.child;a!==null;)Iy(e,t,a),a=a.sibling}function Iy(e,t,a){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(uu,a)}catch{}switch(a.tag){case 26:Le||Et(a,t),Ea(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Le&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Le||Et(a,t),ku(a);var l=$e,i=Bt;Gl(a.type)&&($e=a.stateNode,Bt=!1),Ea(e,t,a),lv(a.stateNode,a.type,a.memoizedProps),$e=l,Bt=i;break;case 5:Le||Et(a,t),ku(a);case 6:if(a.tag===6&&ku(a),l=$e,i=Bt,$e=null,Ea(e,t,a),$e=l,Bt=i,$e!==null)if(Bt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(a.stateNode),Ue=!0}catch(r){Qe(a,t,r)}else try{$e.removeChild(a.stateNode),Ue=!0}catch(r){Qe(a,t,r)}break;case 18:$e!==null&&(Bt?(e=$e,Gp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ui(e)):Gp($e,a.stateNode));break;case 4:l=$e,i=Bt,$e=a.stateNode.containerInfo,Bt=!0,Ea(e,t,a),$e=l,Bt=i;break;case 0:case 11:case 14:case 15:Ul(2,a,t),Le||Ul(4,a,t),Ea(e,t,a);break;case 1:Le||(Et(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Ly(a,t,l)),Ea(e,t,a);break;case 21:Ea(e,t,a);break;case 22:Le=(l=Le)||a.memoizedState!==null,Ea(e,t,a),Le=l;break;case 30:Et(a,t),Ea(e,t,a);break;case 7:Le||Et(a,t),Ea(e,t,a);break;default:Ea(e,t,a)}}function ep(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ui(e)}catch(a){Qe(t,t.return,a)}}}function tp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ui(e)}catch(a){Qe(t,t.return,a)}}function Xb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fy),t;default:throw Error(o(435,e.tag))}}function gs(e,t){var a=Xb(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=lx.bind(null,e,l);l.then(i,i)}})}function At(e,t,a){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var r=l[i],c=e,y=t,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Gl(S.type)){$e=S.stateNode,Bt=!1;break e}break;case 5:$e=S.stateNode,Bt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,Bt=!0;break e}S=S.return}if($e===null)throw Error(o(160));Iy(c,y,r),$e=null,Bt=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ap(t,e,a),t=t.sibling}var _a=null;function ap(e,t,a){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var r=0;r<l.length;r++){var c=l[r];c.ref.impl=c.nextImpl}At(t,e,a),Mt(e),i&4&&(Ul(3,e,e.return),Uu(3,e),Ul(5,e,e.return));break;case 1:At(t,e,a),Mt(e),i&512&&(Le||l===null||Et(l,l.return)),i&64&&yt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(r=_a,At(t,e,a),Mt(e),i&512&&(Le||l===null||Et(l,l.return)),i&4)if(i=l!==null?l.memoizedState:null,a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null)if(yt)e.stateNode=Lp(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,i=r.ownerDocument||r;t:switch(t){case"title":l=i.getElementsByTagName("title")[0],(!l||l[ou]||l[gt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=i.createElement(t),i.head.insertBefore(l,i.querySelector("head > title"))),_t(l,t,a),l[gt]=e,ht(l),t=l;break e;case"link":if(r=ov("link","href",i).get(t+(a.href||""))){for(c=0;c<r.length;c++)if(l=r[c],l.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&l.getAttribute("rel")===(a.rel==null?null:a.rel)&&l.getAttribute("title")===(a.title==null?null:a.title)&&l.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){r.splice(c,1);break t}}l=i.createElement(t),_t(l,t,a),i.head.appendChild(l);break;case"meta":if(r=ov("meta","content",i).get(t+(a.content||""))){for(c=0;c<r.length;c++)if(l=r[c],l.getAttribute("content")===(a.content==null?null:""+a.content)&&l.getAttribute("name")===(a.name==null?null:a.name)&&l.getAttribute("property")===(a.property==null?null:a.property)&&l.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&l.getAttribute("charset")===(a.charSet==null?null:a.charSet)){r.splice(c,1);break t}}l=i.createElement(t),_t(l,t,a),i.head.appendChild(l);break;default:throw Error(o(468,t))}l[gt]=e,ht(l),t=l}e.stateNode=t}else yt||Lf(r,e.type,e.stateNode);else e.stateNode=sv(r,a,e.memoizedProps);else i!==a?(i===null?(t=l.stateNode,t===null||Le||t.parentNode.removeChild(t)):i.count--,a===null?yt||Lf(r,e.type,e.stateNode):sv(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,l.memoizedProps);break;case 27:At(t,e,a),Mt(e),i&512&&(Le||l===null||Et(l,l.return)),l!==null&&i&4&&Yc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(r=Ba,Ba=!1,At(t,e,a),Ba=r,Mt(e),i&512&&(Le||l===null||Et(l,l.return)),e.flags&32){t=e.stateNode;try{Wn(t,""),Ue=!0}catch(M){Qe(e,e.return,M)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Yc(e,t,l!==null?l.memoizedProps:t)),i&1024&&(Pc=!0);break;case 6:if(At(t,e,a),Mt(e),i&4){if(e.stateNode===null)throw Error(o(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,Ue=!0}catch(M){Qe(e,e.return,M)}}break;case 3:if(Ue=!1,Ms=null,r=_a,_a=Ku(t.containerInfo),At(t,e,a),_a=r,Mt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Ui(t.containerInfo)}catch(M){Qe(e,e.return,M)}Pc&&(Pc=!1,lp(e)),Ue=!1;break;case 4:i=Ba,Ba=yt,l=_h(),r=_a,_a=Ku(e.stateNode.containerInfo),At(t,e,a),Mt(e),_a=r,Ue&&Hu&&(ps=!0),Ue=l,Ba=i;break;case 12:At(t,e,a),Mt(e);break;case 31:At(t,e,a),Mt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,gs(e,t)));break;case 13:At(t,e,a),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ss=Xt()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,gs(e,t)));break;case 22:r=e.memoizedState!==null,c=l!==null&&l.memoizedState!==null;var y=yt,S=Le,z=Ba;yt=y||r,Ba=z||r,Le=S||c,At(t,e,a),Le=S,Ba=z,yt=y,Mt(e),i&8192&&(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,!r||l===null||c||yt||Le||(t=c||Le,a=yt,l=Le,yt=r||yt,Le=t,kl(e,2),yt=a,Le=l),!r&&Ba||Ic(e,r)),i&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,gs(e,a))));break;case 19:At(t,e,a),Mt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,gs(e,t)));break;case 30:i&512&&(Le||l===null||Et(l,l.return)),i=_h(),r=Hu,c=(a&335544064)===a,y=e.memoizedProps,Hu=c&&el(y.default,y.update)!=="none",At(t,e,a),Mt(e),c&&l!==null&&Ue&&(e.flags|=4),Hu=r,Ue=i;break;case 21:break;case 7:i&512&&(Le||l===null||Et(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:At(t,e,a),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Qy(l)){a=l;break}l=l.return}l=null;for(var i=e.return;i!==null;){if(Qc(i)){var r=i.stateNode;l===null?l=[r]:l.push(r)}if(Bc(i))break;i=i.return}var c=l;if(a==null)throw Error(o(160));switch(a.tag){case 27:var y=a.stateNode,S=Vc(e);ds(e,S,y,c);break;case 5:var z=a.stateNode;a.flags&32&&(Wn(z,""),a.flags&=-33);var M=Vc(e);ds(e,M,z,c);break;case 3:case 4:var B=a.stateNode.containerInfo,C=Vc(e);Xc(e,C,B,c);break;default:throw Error(o(161))}}catch(A){Qe(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lp(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Di=!0,t.reset(),Di=!1),e=e.sibling}}function vi(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)np(t,e),t=t.sibling;else Jy(t)}function np(e,t){var a=e.alternate;if(a===null)Kc(e,!1);else switch(e.tag){case 3:if(Wc=Qa=!1,Vy(),vi(t,e),!Qa&&!ps){if(e=qa,e!==null)for(var l=0;l<e.length;l+=3){a=e[l];var i=e[l+1];Xp(a,e[l+2]),a=a.ownerDocument.documentElement,a!==null&&a.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"})),Wc=!0}qa=null;break;case 5:vi(t,e);break;case 4:l=Qa,Qa=!1,vi(t,e),Qa&&(ps=!0),Qa=l;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?Kc(e,!1):vi(t,e));break;case 30:l=Qa,i=Vy(),Qa=!1,vi(t,e),Qa&&(e.flags|=4);var r=e.memoizedProps,c=e.stateNode;t=Ia(r,c),c=Ia(a.memoizedProps,c);var y=el(r.default,r.update);y==="none"?t=!1:(r=a.memoizedState,a.memoizedState=null,a=e.child,Lt=0,t=$c(e,a,t,c,y,r,!0),Lt!==(r===null?0:r.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ti(e,e.memoizedProps.onUpdate),qa=i):i!==null&&(i.push.apply(i,qa),qa=i),Qa=(e.flags&32)!==0?!0:l;break;default:vi(t,e)}}function Ga(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$y(e,t.alternate,t),t=t.sibling}function kl(e,t){for(e=e.child;e!==null;){var a=e,l=t;switch(a.tag){case 0:case 11:case 14:case 15:Ul(4,a,a.return),kl(a,l);break;case 1:Et(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&Ly(a,a.return,i),kl(a,l);break;case 27:(l&2)!==0&&lv(a.stateNode,a.type,a.memoizedProps);case 5:Et(a,a.return),a.tag!==5&&a.tag!==27||ku(a),kl(a,l);break;case 6:ku(a);break;case 26:Et(a,a.return),i=a.stateNode,a.memoizedState!==null||i===null||Le||i.parentNode.removeChild(i),kl(a,l);break;case 22:a.memoizedState===null&&kl(a,l);break;case 30:Et(a,a.return),kl(a,l);break;case 7:Et(a,a.return);default:kl(a,l)}e=e.sibling}}function Ta(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var l=t.alternate,i=e,r=t,c=r.flags,y=(a&1)!==0;switch(r.tag){case 0:case 11:case 15:Ta(i,r,a),Uu(4,r);break;case 1:if(Ta(i,r,a),l=r,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Qe(l,l.return,M)}if(l=r,i=l.updateQueue,i!==null){var S=l.stateNode;try{var z=i.shared.hiddenCallbacks;if(z!==null)for(i.shared.hiddenCallbacks=null,i=0;i<z.length;i++)wm(z[i],S)}catch(M){Qe(l,l.return,M)}}y&&c&64&&qy(r),Ha(r,r.return);break;case 27:(a&2)!==0&&Gy(r);case 5:r.tag!==5&&r.tag!==27||By(r),Ta(i,r,a),y&&l===null&&c&4&&Gc(r),Ha(r,r.return);break;case 6:By(r);break;case 26:S=r.stateNode,r.memoizedState!==null||S===null||yt||Lf(Ku(S.ownerDocument),r.type,S),Ta(i,r,a),y&&l===null&&c&4&&Gc(r),Ha(r,r.return);break;case 12:Ta(i,r,a);break;case 31:Ta(i,r,a),y&&c&4&&ep(i,r);break;case 13:Ta(i,r,a),y&&c&4&&tp(i,r);break;case 22:r.memoizedState===null&&Ta(i,r,a),Ha(r,r.return);break;case 30:Ta(i,r,a),Ha(r,r.return);break;case 7:Ha(r,r.return);default:Ta(i,r,a)}t=t.sibling}}function tf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Eu(a))}function af(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Eu(e))}function fa(e,t,a,l){var i=(a&335544064)===a;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)ip(e,t,a,l),t=t.sibling;else i&&Zy(t)}function ip(e,t,a,l){var i=(a&335544064)===a;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ys(t);var r=t.flags;switch(t.tag){case 0:case 11:case 15:fa(e,t,a,l),r&2048&&Uu(9,t);break;case 1:fa(e,t,a,l);break;case 3:fa(e,t,a,l),i&&Wc&&(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="")),r&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(t.refCount++,r!=null&&Eu(r)));break;case 12:if(r&2048){fa(e,t,a,l),r=t.stateNode;try{var c=t.memoizedProps,y=c.id,S=c.onPostCommit;typeof S=="function"&&S(y,t.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(z){Qe(t,t.return,z)}}else fa(e,t,a,l);break;case 31:fa(e,t,a,l);break;case 13:fa(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,y=t.alternate,t.memoizedState!==null?(i&&y!==null&&y.memoizedState===null&&ys(y),c._visibility&2?fa(e,t,a,l):qu(e,t)):(i&&y!==null&&y.memoizedState!==null&&ys(t),c._visibility&2?fa(e,t,a,l):(c._visibility|=2,gi(e,t,a,l,(t.subtreeFlags&10256)!==0||!1))),r&2048&&tf(y,t);break;case 24:fa(e,t,a,l),r&2048&&af(t.alternate,t);break;case 30:i&&(r=t.alternate,r!==null&&(La(r.child,!0),La(t.child,!0))),fa(e,t,a,l);break;default:fa(e,t,a,l)}}function gi(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,c=t,y=a,S=l,z=c.flags;switch(c.tag){case 0:case 11:case 15:gi(r,c,y,S,i),Uu(8,c);break;case 23:break;case 22:var M=c.stateNode;c.memoizedState!==null?M._visibility&2?gi(r,c,y,S,i):qu(r,c):(M._visibility|=2,gi(r,c,y,S,i)),i&&z&2048&&tf(c.alternate,c);break;case 24:gi(r,c,y,S,i),i&&z&2048&&af(c.alternate,c);break;default:gi(r,c,y,S,i)}t=t.sibling}}function qu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:qu(a,l),i&2048&&tf(l.alternate,l);break;case 24:qu(a,l),i&2048&&af(l.alternate,l);break;default:qu(a,l)}t=t.sibling}}var Tn=8192;function Nn(e,t,a){if(e.subtreeFlags&Tn)for(e=e.child;e!==null;)up(e,t,a),e=e.sibling}function up(e,t,a){switch(e.tag){case 26:Nn(e,t,a),e.flags&Tn&&(e.memoizedState!==null?Px(a,_a,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&hv(a,e)));break;case 5:Nn(e,t,a),e.flags&Tn&&(e=e.stateNode,(t&335544128)===t&&hv(a,e));break;case 3:case 4:var l=_a;_a=Ku(e.stateNode.containerInfo),Nn(e,t,a),_a=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Tn,Tn=16777216,Nn(e,t,a),Tn=l):Nn(e,t,a));break;case 30:if((e.flags&Tn)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var i=e.stateNode;i.paired=null,Pt===null&&(Pt=new Map),Pt.set(l,i)}Nn(e,t,a);break;default:Nn(e,t,a)}}function rp(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 Lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];pt=l,op(l,e)}rp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sp(e),e=e.sibling}function sp(e){switch(e.tag){case 0:case 11:case 15:Lu(e),e.flags&2048&&Ul(9,e,e.return);break;case 3:Lu(e);break;case 12:Lu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,bs(e)):Lu(e);break;default:Lu(e)}}function bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];pt=l,op(l,e)}rp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ul(8,t,t.return),bs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,bs(t));break;default:bs(t)}e=e.sibling}}function op(e,t){for(;pt!==null;){var a=pt;switch(a.tag){case 0:case 11:case 15:Ul(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Eu(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,pt=l;else e:for(a=e;pt!==null;){l=pt;var i=l.sibling,r=l.return;if(Wy(l),l===a){pt=null;break e}if(i!==null){i.return=r,pt=i;break e}pt=r}}}var Kb={getCacheForType:function(e){var t=bt(it),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return bt(it).controller.signal}},Zb=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,we=null,ze=0,Be=0,Wt=null,Hl=!1,bi=!1,lf=!1,ol=0,at=0,ql=0,wn=0,xs=0,It=0,xi=0,Bu=null,Qt=null,nf=!1,Ss=0,cp=0,Es=1/0,_s=null,Ll=null,Ie=0,Na=null,Cn=null,Ya=0,uf=0,rf=null,fp=null,Si=null,Ei=null,_i=null,Qu=0,Ts=null;function ea(){return(He&2)!==0&&ze!==0?ze&-ze:se.T!==null?vf():mh()}function dp(){if(It===0)if((ze&536870912)===0||Ee){var e=gr;gr<<=1,(gr&3932160)===0&&(gr=262144),It=e}else It=536870912;return e=xt.current,e!==null&&(e.flags|=32),It}function Ti(e,t){if(t!=null){var a=e.stateNode,l=a.ref;l===null&&(l=a.ref=Kp(Ia(e.memoizedProps,a))),Ei===null&&(Ei=[]),Ei.push(t.bind(null,l))}}function Gt(e,t,a){(e===Xe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Ni(e,0),Bl(e,ze,It,!1)),su(e,a),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(wn|=a),at===4&&Bl(e,ze,It,!1)),Va(e))}function hp(e,t,a){if((He&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ru(e,t),i=l?$b(e,t):of(e,t,!0),r=l;do{if(i===0){bi&&!l&&Bl(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Jb(a)){i=of(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var y=e;i=Bu;var S=y.current.memoizedState.isDehydrated;if(S&&(Ni(y,c).flags|=256),c=of(y,c,!1),c!==2&&c!==6){if(lf&&!S){y.errorRecoveryDisabledLanes|=r,wn|=r,i=4;break e}r=Qt,Qt=i,r!==null&&(Qt===null?Qt=r:Qt.push.apply(Qt,r))}i=c}if(r=!1,i!==2)continue}}if(i===1){Ni(e,0),Bl(e,t,0,!0);break}e:{switch(l=e,r=i,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Bl(l,t,It,!Hl);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Ss+300-Xt(),10<i)){if(Bl(l,t,It,!Hl),xr(l,0,!0)!==0)break e;Ya=t,l.timeoutHandle=jf(mp.bind(null,l,a,Qt,_s,nf,t,It,wn,xi,Hl,r,"Throttled",-0,0),i);break e}mp(l,a,Qt,_s,nf,t,It,wn,xi,Hl,r,null,-0,0)}}break}while(!0);Va(e)}function mp(e,t,a,l,i,r,c,y,S,z,M,B,C,A){e.timeoutHandle=-1;var $=t.subtreeFlags,oe=(r&335544064)===r;if(B=null,(oe||$&8192||($&16785408)===16785408)&&(B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Da},Pt=null,up(t,r,B),oe&&($=B,oe=e.containerInfo,oe=(oe.nodeType===9?oe:oe.ownerDocument).__reactViewTransition,oe!=null&&($.count++,$.waitingForViewTransition=!0,$=Fu.bind($),oe.finished.then($,$))),$=(r&62914560)===r?Ss-Xt():(r&4194048)===r?cp-Xt():0,$=Wx(B,$),$!==null)){Ya=r,e.cancelPendingCommit=$(Ep.bind(null,e,t,r,a,l,i,c,y,S,z,M,B,null,C,A)),Bl(e,r,c,!z);return}Ep(e,t,r,a,l,i,c,y,S,z,M,B)}function Jb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],r=i.getSnapshot;i=i.value;try{if(!Ft(r(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bl(e,t,a,l){t=oh(e,t),t&=~xs,t&=~wn,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var r=31-Zt(i),c=1<<r;l[r]=-1,i&=~c}a!==0&&fh(e,a,t)}function Ns(){return(He&6)===0?(Gu(0),!1):!0}function sf(){if(we!==null){if(Be===0)var e=we.return;else e=we,ll=mn=null,yc(e),fi=null,Nu=0,e=we;for(;e!==null;)Hy(e.alternate,e),e=e.return;we=null}}function Ni(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,gx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ya=0,sf(),Xe=e,we=a=tl(e.current,null),ze=t,Be=0,Wt=null,Hl=!1,bi=ru(e,t),lf=!1,xi=It=xs=wn=ql=at=0,Qt=Bu=null,nf=!1,ol=oh(e,t),Mr(),a}function yp(e,t){be=null,se.H=ns,t===ci||t===Vr?(t=Em(),Be=3):t===ac?(t=Em(),Be=4):Be=t===Oc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,we===null&&(at=1,is(e,ra(t,e.current)))}function pp(){var e=xt.current;return e===null?!0:(ze&4194048)===ze?wt===null:(ze&62914560)===ze||(ze&536870912)!==0?e===wt:!1}function vp(){var e=se.H;return se.H=ns,e===null?ns:e}function gp(){var e=se.A;return se.A=Kb,e}function ws(){at=4,Hl||(ze&4194048)!==ze&&xt.current!==null||(bi=!0),(ql&134217727)===0&&(wn&134217727)===0||Xe===null||Bl(Xe,ze,It,!1)}function of(e,t,a){var l=He;He|=2;var i=vp(),r=gp();(Xe!==e||ze!==t)&&(_s=null,Ni(e,t)),t=!1;var c=at;e:do try{if(Be!==0&&we!==null){var y=we,S=Wt;switch(Be){case 8:sf(),c=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var z=Be;if(Be=0,Wt=null,wi(e,y,S,z),a&&bi){c=0;break e}break;default:z=Be,Be=0,Wt=null,wi(e,y,S,z)}}Fb(),c=at;break}catch(M){yp(e,M)}while(!0);return t&&e.shellSuspendCounter++,ll=mn=null,He=l,se.H=i,se.A=r,we===null&&(Xe=null,ze=0,Mr()),c}function Fb(){for(;we!==null;)bp(we)}function $b(e,t){var a=He;He|=2;var l=vp(),i=gp();Xe!==e||ze!==t?(_s=null,Es=Xt()+500,Ni(e,t)):bi=ru(e,t);e:do try{if(Be!==0&&we!==null){t=we;var r=Wt;t:switch(Be){case 1:Be=0,Wt=null,wi(e,t,r,1);break;case 2:case 9:if(xm(r)){Be=0,Wt=null,xp(t);break}t=function(){Be!==2&&Be!==9||Xe!==e||(Be=7),Va(e)},r.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:xm(r)?(Be=0,Wt=null,xp(t)):(Be=0,Wt=null,wi(e,t,r,7));break;case 5:var c=null;switch(we.tag){case 26:c=we.memoizedState;case 5:case 27:var y=we;if(c?fv(c):y.stateNode.complete){Be=0,Wt=null;var S=y.sibling;if(S!==null)we=S;else{var z=y.return;z!==null?(we=z,Cs(z)):we=null}break t}}Be=0,Wt=null,wi(e,t,r,5);break;case 6:Be=0,Wt=null,wi(e,t,r,6);break;case 8:sf(),at=6;break e;default:throw Error(o(462))}}Pb();break}catch(M){yp(e,M)}while(!0);return ll=mn=null,se.H=l,se.A=i,He=a,we!==null?0:(Xe=null,ze=0,Mr(),at)}function Pb(){for(;we!==null&&!m1();)bp(we)}function bp(e){var t=Uy(e.alternate,e,ol);e.memoizedProps=e.pendingProps,t===null?Cs(e):we=t}function xp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=jy(a,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=jy(a,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:yc(t);var l=t;l===mt&&(Ee?(Lr(l),l.tag===5&&l.stateNode!=null&&(Ze=l.stateNode)):(Lr(l),Ee=!0));default:Hy(a,t),t=we=om(t,ol),t=Uy(a,t,ol)}e.memoizedProps=e.pendingProps,t===null?Cs(e):we=t}function wi(e,t,a,l){ll=mn=null,yc(t),fi=null,Nu=0;var i=t.return;try{if(qb(e,i,t,a,ze)){at=1,is(e,ra(a,e.current)),we=null;return}}catch(r){if(i!==null)throw we=i,r;at=1,is(e,ra(a,e.current)),we=null;return}t.flags&32768?(Ee||l===1?e=!0:bi||(ze&536870912)!==0?e=!1:(Hl=e=!0,(l===2||l===9||l===3||l===6)&&(l=xt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Sp(t,e)):Cs(t)}function Cs(e){var t=e;do{if((t.flags&32768)!==0){Sp(t,Hl);return}e=t.return;var a=Gb(t.alternate,t,ol);if(a!==null){we=a;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);at===0&&(at=5)}function Sp(e,t){do{var a=Yb(e.alternate,e);if(a!==null){a.flags&=32767,we=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=a}while(e!==null);at=6,we=null}function Ep(e,t,a,l,i,r,c,y,S,z,M,B){e.cancelPendingCommit=null;do js();while(Ie!==0);if((He&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));e===Xe&&(we=Xe=null,ze=0),Cn=t,Na=e,Ya=a,rf=i,fp=l,Wb(e,t,a,c,y,S,B)}}function Wb(e,t,a,l,i,r,c){var y=t.lanes|t.childLanes;if(uf=y,y|=Yo,T1(e,a,y,l,i,r),Ei=null,(a&335544064)===a?(_i=wb(e),l=10262):(_i=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,nx(pr,function(){return hf(),null})):(e.callbackNode=null,e.callbackPriority=0),hs=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=se.T,se.T=null,i=ye.p,ye.p=2,r=He,He|=4;try{Vb(e,t,a)}finally{He=r,ye.p=i,se.T=l}}Ie=1,hs?Si=Tx(c,e.containerInfo,_i,cf,ff,ex,df,hf,Ib):(cf(),ff(),df())}function Ib(e){if(Ie!==0){var t=Na.onRecoverableError;t(e,{componentStack:null})}}function ex(){Ie===3&&(Ie=0,np(Cn,Na),Ie=4)}function cf(){if(Ie===1){Ie=0;var e=Na,t=Cn,a=Ya,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=se.T,se.T=null;var i=ye.p;ye.p=2;var r=He;He|=4;try{Hu=ps=!1,ap(t,e,a),a=Nf;var c=Ih(e.containerInfo),y=a.focusedElem,S=a.selectionRange;if(c!==y&&y&&y.ownerDocument&&Wh(y.ownerDocument.documentElement,y)){if(S!==null&&qo(y)){var z=S.start,M=S.end;if(M===void 0&&(M=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(M,y.value.length);else{var B=y.ownerDocument||document,C=B&&B.defaultView||window;if(C.getSelection){var A=C.getSelection(),$=y.textContent.length,oe=Math.min(S.start,$),xe=S.end===void 0?oe:Math.min(S.end,$);!A.extend&&oe>xe&&(c=xe,xe=oe,oe=c);var j=Ph(y,oe),N=Ph(y,xe);if(j&&N&&(A.rangeCount!==1||A.anchorNode!==j.node||A.anchorOffset!==j.offset||A.focusNode!==N.node||A.focusOffset!==N.offset)){var O=B.createRange();O.setStart(j.node,j.offset),A.removeAllRanges(),oe>xe?(A.addRange(O),A.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),A.addRange(O))}}}}for(B=[],A=y;A=A.parentNode;)A.nodeType===1&&B.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<B.length;y++){var L=B[y];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Di=!!Tf,Nf=Tf=null}finally{He=r,ye.p=i,se.T=l}}e.current=t,Ie=2}}function ff(){if(Ie===2){Ie=0;var e=Na,t=Cn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=se.T,se.T=null;var l=ye.p;ye.p=2;var i=He;He|=4;try{$y(e,t.alternate,t)}finally{He=i,ye.p=l,se.T=a}}Ie=3}}function df(){if(Ie===4||Ie===3){Ie=0;var e=Si;Si=null,y1();var t=Na,a=Cn,l=Ya,i=fp,r=(l&335544064)===l?10262:10256;if((a.subtreeFlags&r)!==0||(a.flags&r)!==0?Ie=5:(Ie=0,Cn=Na=null,_p(t,t.pendingLanes)),r=t.pendingLanes,r===0&&(Ll=null),xo(l),a=a.stateNode,Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(uu,a,void 0,(a.current.flags&128)===128)}catch{}if(i!==null){a=se.T,r=ye.p,ye.p=2,se.T=null;try{for(var c=t.onRecoverableError,y=0;y<i.length;y++){var S=i[y];c(S.value,{componentStack:S.stack})}}finally{se.T=a,ye.p=r}}if(i=Ei,c=_i,_i=null,i!==null&&(Ei=null,c===null&&(c=[]),e!==null))for(S=0;S<i.length;S++)a=(0,i[S])(c),a!==void 0&&e.finished.finally(a);(Ya&3)!==0&&js(),Va(t),r=t.pendingLanes,(l&261930)!==0&&(r&42)!==0?t===Ts?Qu++:(Qu=0,Ts=t):(Qu=0,Ts=null),Gu(0)}}function _p(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Eu(t)))}function js(){return Si!==null&&(Si.skipTransition(),Si=null),cf(),ff(),df(),hf()}function hf(){if(Ie!==5)return!1;var e=Na,t=uf;uf=0;var a=xo(Ya),l=se.T,i=ye.p;try{ye.p=32>a?32:a,se.T=null,a=rf,rf=null;var r=Na,c=Ya;if(Ie=0,Cn=Na=null,Ya=0,(He&6)!==0)throw Error(o(331));var y=He;if(He|=4,sp(r.current),ip(r,r.current,c,a),He=y,Gu(0,!1),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(uu,r)}catch{}return!0}finally{ye.p=i,se.T=l,_p(e,t)}}function Tp(e,t,a){t=ra(a,t),t=zc(e.stateNode,t,2),e=Rl(e,t,2),e!==null&&(su(e,2),Va(e))}function Qe(e,t,a){if(e.tag===3)Tp(e,e,a);else for(;t!==null;){if(t.tag===3){Tp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ll===null||!Ll.has(l))){e=ra(a,e),a=xy(2),l=Rl(t,a,2),l!==null&&(Sy(a,l,t,e),su(l,2),Va(l));break}}t=t.return}}function mf(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Zb;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(lf=!0,i.add(a),e=tx.bind(null,e,t,a),t.then(e,e))}function tx(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Xe===e&&(ze&a)===a&&((at===4||at===3&&(ze&62914560)===ze&&300>Xt()-Ss)&&(He&2)===0?Ni(e,0):xs|=a,xi===ze&&(xi=0)),Va(e)}function Np(e,t){t===0&&(t=ch()),e=fn(e,t),e!==null&&(su(e,t),Va(e))}function ax(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Np(e,a)}function lx(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Np(e,a)}function nx(e,t){return po(e,t)}var Ci=null,ji=null,yf=!1,zs=!1,pf=!1,Ql=0;function Va(e){e!==ji&&e.next===null&&(ji===null?Ci=ji=e:ji=ji.next=e),zs=!0,yf||(yf=!0,ux())}function Gu(e,t){if(!pf&&zs){pf=!0;do for(var a=!1,l=Ci;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var r=0;else{var c=l.suspendedLanes,y=l.pingedLanes;r=(1<<31-Zt(42|e)+1)-1,r&=i&~(c&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,zp(l,r))}else r=ze,r=xr(l,l===Xe?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||ru(l,r)||(a=!0,zp(l,r));l=l.next}while(a);pf=!1}}function ix(){wp()}function wp(){zs=yf=!1;var e=0;Ql!==0&&vx()&&(e=Ql);for(var t=Xt(),a=null,l=Ci;l!==null;){var i=l.next,r=Cp(l,t);r===0?(l.next=null,a===null?Ci=i:a.next=i,i===null&&(ji=a)):(a=l,(e!==0||(r&3)!==0)&&(zs=!0)),l=i}Ie!==0&&Ie!==5||Gu(e),Ql!==0&&(Ql=0)}function Cp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var c=31-Zt(r),y=1<<c,S=i[c];S===-1?((y&a)===0||(y&l)!==0)&&(i[c]=_1(y,t)):S<=t&&(e.expiredLanes|=y),r&=~y}if(t=Xe,a=ze,a=xr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&vo(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ru(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&vo(l),xo(a)){case 2:case 8:a=rh;break;case 32:a=pr;break;case 268435456:a=sh;break;default:a=pr}return l=jp.bind(null,e),a=po(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&vo(l),e.callbackPriority=2,e.callbackNode=null,2}function jp(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(js()&&e.callbackNode!==a)return null;var l=ze;return l=xr(e,e===Xe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(hp(e,l,t),Cp(e,Xt()),e.callbackNode!=null&&e.callbackNode===a?jp.bind(null,e):null)}function zp(e,t){if(js())return null;hp(e,t,!0)}function ux(){bx(function(){(He&6)!==0?po(uh,ix):wp()})}function vf(){if(Ql===0){var e=vn;e===0&&(e=vr,vr<<=1,(vr&261888)===0&&(vr=256)),Ql=e}return Ql}function Op(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nr(e)}function rx(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var r=Op((i[Ht]||null).action),c=l.submitter;c&&(t=(t=c[Ht]||null)?Op(t.formAction):c.getAttribute("formAction"),t!==null&&(r=t,c=null));var y=new zr("action","action",null,l,i);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ql!==0){var S=new FormData(i,c);Tc(a,{pending:!0,data:S,method:i.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=new FormData(i,c),Tc(a,{pending:!0,data:S,method:i.method,action:r},r,S))},currentTarget:i}]})}}for(var gf=0;gf<Go.length;gf++){var bf=Go[gf],sx=bf.toLowerCase(),ox=bf[0].toUpperCase()+bf.slice(1);Sa(sx,"on"+ox)}Sa(am,"onAnimationEnd"),Sa(lm,"onAnimationIteration"),Sa(nm,"onAnimationStart"),Sa("dblclick","onDoubleClick"),Sa("focusin","onFocus"),Sa("focusout","onBlur"),Sa(gb,"onTransitionRun"),Sa(bb,"onTransitionStart"),Sa(xb,"onTransitionCancel"),Sa(im,"onTransitionEnd"),$n("onMouseEnter",["mouseout","mouseover"]),$n("onMouseLeave",["mouseout","mouseover"]),$n("onPointerEnter",["pointerout","pointerover"]),$n("onPointerLeave",["pointerout","pointerover"]),sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sn("onBeforeInput",["compositionend","keypress","textInput","paste"]),sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yu="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(" "),cx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yu));function Rp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var c=l.length-1;0<=c;c--){var y=l[c],S=y.instance,z=y.currentTarget;if(y=y.listener,S!==r&&i.isPropagationStopped())break e;r=y,i.currentTarget=z;try{r(i)}catch(M){Ar(M)}i.currentTarget=null,r=S}else for(c=0;c<l.length;c++){if(y=l[c],S=y.instance,z=y.currentTarget,y=y.listener,S!==r&&i.isPropagationStopped())break e;r=y,i.currentTarget=z;try{r(i)}catch(M){Ar(M)}i.currentTarget=null,r=S}}}}function Ce(e,t){var a=t[ph];a===void 0&&(a=t[ph]=new Set);var l=e+"__bubble";a.has(l)||(Ap(t,e,2,!1),a.add(l))}function xf(e,t,a){var l=0;t&&(l|=4),Ap(a,e,l,t)}var Os="_reactListening"+Math.random().toString(36).slice(2);function Sf(e){if(!e[Os]){e[Os]=!0,bh.forEach(function(a){a!=="selectionchange"&&(cx.has(a)||xf(a,!1,e),xf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Os]||(t[Os]=!0,xf("selectionchange",!1,t))}}function Ap(e,t,a,l){switch(Sv(t)){case 2:var i=a2;break;case 8:i=l2;break;default:i=Qf}a=i.bind(null,t,a,e),i=void 0,!jo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Ef(e,t,a,l,i){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var y=l.stateNode.containerInfo;if(y===i)break;if(c===4)for(c=l.return;c!==null;){var S=c.tag;if((S===3||S===4)&&c.stateNode.containerInfo===i)return;c=c.return}for(;y!==null;){if(c=rn(y),c===null)return;if(S=c.tag,S===5||S===6||S===26||S===27){l=r=c;continue e}y=y.parentNode}}l=l.return}Ah(function(){var z=r,M=wo(a),B=[];e:{var C=um.get(e);if(C!==void 0){var A=zr,$=e;switch(e){case"keypress":if(Cr(a)===0)break e;case"keydown":case"keyup":A=J1;break;case"focusin":$="focus",A=Ao;break;case"focusout":$="blur",A=Ao;break;case"beforeblur":case"afterblur":A=Ao;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=k1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=I1;break;case am:case lm:case nm:A=L1;break;case im:A=tb;break;case"scroll":case"scrollend":A=D1;break;case"wheel":A=lb;break;case"copy":case"cut":case"paste":A=Q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Hh;break;case"submit":A=P1;break;case"toggle":case"beforetoggle":A=ib}var oe=(t&4)!==0,xe=!oe&&(e==="scroll"||e==="scrollend"),j=oe?C!==null?C+"Capture":null:C;oe=[];for(var N=z,O;N!==null;){var L=N;if(O=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||O===null||j===null||(L=fu(N,j),L!=null&&oe.push(Vu(N,L,O))),xe)break;N=N.return}0<oe.length&&(C=new A(C,$,null,a,M),B.push({event:C,listeners:oe}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",A&&a!==No&&($=a.relatedTarget||a.fromElement)&&(rn($)||$[Zn]))break e;(C||A)&&($=M.window===M?M:(A=M.ownerDocument)?A.defaultView||A.parentWindow:window,C?(A=a.relatedTarget||a.toElement,C=z,A=A?rn(A):null,A!==null&&(xe=m(A),oe=A.tag,A!==xe||oe!==5&&oe!==27&&oe!==6)&&(A=null)):(C=null,A=z),C!==A&&(oe=Uh,L="onMouseLeave",j="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(oe=Hh,L="onPointerLeave",j="onPointerEnter",N="pointer"),xe=C==null?$:cu(C),O=A==null?$:cu(A),$=new oe(L,N+"leave",C,a,M),$.target=xe,$.relatedTarget=O,L=null,rn(M)===z&&(oe=new oe(j,N+"enter",A,a,M),oe.target=O,oe.relatedTarget=xe,L=oe),xe=L,oe=C&&A?de(C,A,fx):null,C!==null&&Mp(B,$,C,oe,!1),A!==null&&xe!==null&&Mp(B,xe,A,oe,!0)))}e:{if(C=z?cu(z):window,A=C.nodeName&&C.nodeName.toLowerCase(),A==="select"||A==="input"&&C.type==="file")var te=Xh;else if(Yh(C))if(Kh)te=yb;else{te=hb;var Oe=db}else A=C.nodeName,!A||A.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?z&&To(z.elementType)&&(te=Xh):te=mb;if(te&&(te=te(e,z))){Vh(B,te,a,M);break e}Oe&&Oe(e,C,z)}switch(Oe=z?cu(z):window,e){case"focusin":(Yh(Oe)||Oe.contentEditable==="true")&&(ai=Oe,Lo=z,bu=null);break;case"focusout":bu=Lo=ai=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,em(B,a,M);break;case"selectionchange":if(vb)break;case"keydown":case"keyup":em(B,a,M)}var fe;if(Do)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else ti?Qh(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(qh&&a.locale!=="ko"&&(ti||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ti&&(fe=Mh()):(El=M,zo="value"in El?El.value:El.textContent,ti=!0)),Oe=Rs(z,ve),0<Oe.length&&(ve=new kh(ve,e,null,a,M),B.push({event:ve,listeners:Oe}),fe?ve.data=fe:(fe=Gh(a),fe!==null&&(ve.data=fe)))),(fe=rb?sb(e,a):ob(e,a))&&(ve=Rs(z,"onBeforeInput"),0<ve.length&&(Oe=new kh("onBeforeInput","beforeinput",null,a,M),B.push({event:Oe,listeners:ve}),Oe.data=fe)),rx(B,e,z,a,M)}Rp(B,t)})}function Vu(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Rs(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=fu(e,a),i!=null&&l.unshift(Vu(e,i,r)),i=fu(e,t),i!=null&&l.push(Vu(e,i,r))),e.tag===3)return l;e=e.return}return[]}function fx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mp(e,t,a,l,i){for(var r=t._reactName,c=[];a!==null&&a!==l;){var y=a,S=y.alternate,z=y.stateNode;if(y=y.tag,S!==null&&S===l)break;y!==5&&y!==26&&y!==27||z===null||(S=z,i?(z=fu(a,r),z!=null&&c.unshift(Vu(a,z,S))):i||(z=fu(a,r),z!=null&&c.push(Vu(a,z,S)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var dx=/\r\n?/g,hx=/\u0000|\uFFFD/g;function Dp(e){return(typeof e=="string"?e:""+e).replace(dx,`
`).replace(hx,"")}function Up(e,t){return t=Dp(t),Dp(e)===t}function Ge(e,t,a,l,i,r){switch(a){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||Wn(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&Wn(e,""+l);else return;break;case"className":Tr(e,"class",l);break;case"tabIndex":Tr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Tr(e,a,l);break;case"style":Oh(e,l,r);return;case"data":if(t!=="object"){Tr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Nr(l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="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(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Nr(l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Da);return;case"onScroll":l!=null&&Ce("scroll",e);return;case"onScrollEnd":l!=null&&Ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));(r!=null?r.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Nr(l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),_r(e,"popover",l);break;case"xlinkActuate":Pa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Pa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Pa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Pa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Pa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Pa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Pa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Pa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Pa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_r(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=A1.get(a)||a,_r(e,a,l);else return}Ue=!0}function _f(e,t,a,l,i,r){switch(a){case"style":Oh(e,l,r);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));(r!=null?r.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"children":if(typeof l=="string")Wn(e,l);else if(typeof l=="number"||typeof l=="bigint")Wn(e,""+l);else return;break;case"onScroll":l!=null&&Ce("scroll",e);return;case"onScrollEnd":l!=null&&Ce("scrollend",e);return;case"onClick":l!=null&&(e.onclick=Da);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!xh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),r=a.slice(2,i?a.length-7:void 0),t=e[Ht]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(r,t,i),typeof l=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(r,l,i);break e}Ue=!0,a in e?e[a]=l:l===!0?e.setAttribute(a,""):_r(e,a,l)}return}Ue=!0}function _t(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var l=!1,i=!1,r;for(r in a)if(a.hasOwnProperty(r)){var c=a[r];if(c!=null)switch(r){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ge(e,t,r,c,a,null)}}i&&Ge(e,t,"srcSet",a.srcSet,a,null),l&&Ge(e,t,"src",a.src,a,null);return;case"input":Ce("invalid",e);var y=r=c=i=null,S=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var M=a[l];if(M!=null)switch(l){case"name":i=M;break;case"type":c=M;break;case"checked":S=M;break;case"defaultChecked":z=M;break;case"value":r=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:Ge(e,t,l,M,a,null)}}wh(e,r,y,S,z,c,i,!1);return;case"select":Ce("invalid",e),l=c=r=null;for(i in a)if(a.hasOwnProperty(i)&&(y=a[i],y!=null))switch(i){case"value":r=y;break;case"defaultValue":c=y;break;case"multiple":l=y;default:Ge(e,t,i,y,a,null)}t=r,a=c,e.multiple=!!l,t!=null?Pn(e,!!l,t,!1):a!=null&&Pn(e,!!l,a,!0);return;case"textarea":Ce("invalid",e),r=i=l=null;for(c in a)if(a.hasOwnProperty(c)&&(y=a[c],y!=null))switch(c){case"value":l=y;break;case"defaultValue":i=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:Ge(e,t,c,y,a,null)}jh(e,l,i,r);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,t,S,l,a,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(l=0;l<Yu.length;l++)Ce(Yu[l],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ge(e,t,z,l,a,null)}return;default:if(To(t)){for(M in a)a.hasOwnProperty(M)&&(l=a[M],l!==void 0&&_f(e,t,M,l,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(l=a[y],l!=null&&Ge(e,t,y,l,a,null))}var mx={};function yx(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,c=null,y=null,S=null,z=null,M=null;for(A in a){var B=a[A];if(a.hasOwnProperty(A)&&B!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":S=B;default:l.hasOwnProperty(A)||Ge(e,t,A,null,l,B)}}for(var C in l){var A=l[C];if(B=a[C],l.hasOwnProperty(C)&&(A!=null||B!=null))switch(C){case"type":A!==B&&(Ue=!0),r=A;break;case"name":A!==B&&(Ue=!0),i=A;break;case"checked":A!==B&&(Ue=!0),z=A;break;case"defaultChecked":A!==B&&(Ue=!0),M=A;break;case"value":A!==B&&(Ue=!0),c=A;break;case"defaultValue":A!==B&&(Ue=!0),y=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==B&&Ge(e,t,C,A,l,B)}}Eo(e,c,y,S,z,M,r,i);return;case"select":A=c=y=C=null;for(r in a)if(S=a[r],a.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":A=S;default:l.hasOwnProperty(r)||Ge(e,t,r,null,l,S)}for(i in l)if(r=l[i],S=a[i],l.hasOwnProperty(i)&&(r!=null||S!=null))switch(i){case"value":r!==S&&(Ue=!0),C=r;break;case"defaultValue":r!==S&&(Ue=!0),y=r;break;case"multiple":r!==S&&(Ue=!0),c=r;default:r!==S&&Ge(e,t,i,r,l,S)}t=y,a=c,l=A,C!=null?Pn(e,!!a,C,!1):!!l!=!!a&&(t!=null?Pn(e,!!a,t,!0):Pn(e,!!a,a?[]:"",!1));return;case"textarea":A=C=null;for(y in a)if(i=a[y],a.hasOwnProperty(y)&&i!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ge(e,t,y,null,l,i)}for(c in l)if(i=l[c],r=a[c],l.hasOwnProperty(c)&&(i!=null||r!=null))switch(c){case"value":i!==r&&(Ue=!0),C=i;break;case"defaultValue":i!==r&&(Ue=!0),A=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==r&&Ge(e,t,c,i,l,r)}Ch(e,C,A);return;case"option":for(var $ in a)if(C=a[$],a.hasOwnProperty($)&&C!=null&&!l.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Ge(e,t,$,null,l,C)}for(S in l)if(C=l[S],A=a[S],l.hasOwnProperty(S)&&C!==A&&(C!=null||A!=null))switch(S){case"selected":C!==A&&(Ue=!0),e.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Ge(e,t,S,C,l,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 oe in a)C=a[oe],a.hasOwnProperty(oe)&&C!=null&&!l.hasOwnProperty(oe)&&Ge(e,t,oe,null,l,C);for(z in l)if(C=l[z],A=a[z],l.hasOwnProperty(z)&&C!==A&&(C!=null||A!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:Ge(e,t,z,C,l,A)}return;default:if(To(t)){for(var xe in a)C=a[xe],a.hasOwnProperty(xe)&&C!==void 0&&!l.hasOwnProperty(xe)&&_f(e,t,xe,void 0,l,C);for(M in l)C=l[M],A=a[M],!l.hasOwnProperty(M)||C===A||C===void 0&&A===void 0||_f(e,t,M,C,l,A);return}}for(var j in a)C=a[j],a.hasOwnProperty(j)&&C!=null&&!l.hasOwnProperty(j)&&Ge(e,t,j,null,l,C);for(B in l)C=l[B],A=a[B],!l.hasOwnProperty(B)||C===A||C==null&&A==null||Ge(e,t,B,C,l,A)}function kp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function px(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],r=i.transferSize,c=i.initiatorType,y=i.duration;if(r&&y&&kp(c)){for(c=0,y=i.responseEnd,l+=1;l<a.length;l++){var S=a[l],z=S.startTime;if(z>y)break;var M=S.transferSize,B=S.initiatorType;M&&kp(B)&&(S=S.responseEnd,c+=M*(S<y?1:(y-z)/(S-z)))}if(--l,t+=8*(r+c)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Tf=null,Nf=null;function Xu(e){return e.nodeType===9?e:e.ownerDocument}function Hp(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 qp(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 Lp(e,t,a,l){return a=Xu(a).createElement(e),a[gt]=l,a[Ht]=t,_t(a,e,t),ht(a),a}function wf(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 vx(){var e=window.event;return e&&e.type==="popstate"?e===Cf?!1:(Cf=e,!0):(Cf=null,!1)}var jf=typeof setTimeout=="function"?setTimeout:void 0,gx=typeof clearTimeout=="function"?clearTimeout:void 0,Bp=typeof Promise=="function"?Promise:void 0,Qp=typeof requestAnimationFrame=="function"?requestAnimationFrame:jf,bx=typeof queueMicrotask=="function"?queueMicrotask:typeof Bp<"u"?function(e){return Bp.resolve(null).then(e).catch(xx)}:jf;function xx(e){setTimeout(function(){throw e})}function Gl(e){return e==="head"}function Gp(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),Ui(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")kf(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,kf(a);for(var r=a.firstChild;r;){var c=r.nextSibling,y=r.nodeName;r[ou]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=c}}else a==="body"&&kf(e.ownerDocument.body);a=i}while(a);Ui(t)}function Yp(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Vp(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var i=l=0;i<t.length;i++){var r=t[i];0<r.width&&0<r.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function Xp(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Sx(e,t,a){return a=a.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<=a.innerHeight&&e.left<=a.innerWidth}}function zf(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return Sx(t,a,e)}function Ex(e){return e.documentElement.clientHeight}function _x(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Tx(e,t,a,l,i,r,c,y,S){var z=t.nodeType===9?t:t.ownerDocument;try{var M=z.startViewTransition({update:function(){var C=z.defaultView,A=C.navigation&&C.navigation.transition,$=z.fonts.status;l();var oe=[];if($==="loaded"&&(Ex(z),z.fonts.status==="loading"&&oe.push(z.fonts.ready)),$=oe.length,e!==null)for(var xe=e.suspenseyImages,j=0,N=0;N<xe.length;N++){var O=xe[N];if(!O.complete){var L=O.getBoundingClientRect();if(0<L.bottom&&0<L.right&&L.top<C.innerHeight&&L.left<C.innerWidth){if(j+=dv(O),j>Ds){oe.length=$;break}O=new Promise(_x.bind(O)),oe.push(O)}}}if(0<oe.length)return C=Promise.race([Promise.all(oe),new Promise(function(te){return setTimeout(te,500)})]).then(i,i),(A?Promise.allSettled([A.finished,C]):C).then(r,r);if(i(),A)return A.finished.then(r,r);r()},types:a});z.__reactViewTransition=M;var B=[];return M.ready.then(function(){for(var C=z.documentElement.getAnimations({subtree:!0}),A=0;A<C.length;A++){var $=C[A],oe=$.effect,xe=oe.pseudoElement;if(xe!=null&&xe.startsWith("::view-transition")){B.push($),$=oe.getKeyframes();for(var j=xe=void 0,N=!0,O=0;O<$.length;O++){var L=$[O],te=L.width;if(xe===void 0)xe=te;else if(xe!==te){N=!1;break}if(te=L.height,j===void 0)j=te;else if(j!==te){N=!1;break}delete L.width,delete L.height,L.transform==="none"&&delete L.transform}N&&xe!==void 0&&j!==void 0&&(oe.setKeyframes($),N=getComputedStyle(oe.target,oe.pseudoElement),N.width!==xe||N.height!==j)&&(N=$[0],N.width=xe,N.height=j,N=$[$.length-1],N.width=xe,N.height=j,oe.setKeyframes($))}}c()},function(C){z.__reactViewTransition===M&&(z.__reactViewTransition=null);try{if(typeof C=="object"&&C!==null)switch(C.name){case"InvalidStateError":(C.message==="View transition was skipped because document visibility state is hidden."||C.message==="Skipping view transition because document visibility state has become hidden."||C.message==="Skipping view transition because viewport size changed."||C.message==="Transition was aborted because of invalid state")&&(C=null)}C!==null&&S(C)}finally{l(),i(),c()}}),M.finished.finally(function(){for(var C=0;C<B.length;C++)B[C].cancel();z.__reactViewTransition===M&&(z.__reactViewTransition=null),y()}),M}catch{return l(),i(),c(),null}}function jn(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}jn.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:F({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},jn.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),l=[],i=0;i<a.length;i++){var r=a[i].effect;r!==null&&r.target===e&&r.pseudoElement===t&&l.push(a[i])}return l},jn.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Kp(e){return{name:e,group:new jn("group",e),imagePair:new jn("image-pair",e),old:new jn("old",e),new:new jn("new",e)}}function ta(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}ta.prototype.addEventListener=function(e,t,a){var l=null,i=null;if(!(a!=null&&typeof a!="boolean"&&(l=a.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(Jp(r,e,t,a)===-1){var c=this,y=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(y=function(S){c.removeEventListener(e,t,a),typeof t=="function"?t.call(this,S):t.handleEvent(S)}),l!==null&&(i=c.removeEventListener.bind(c,e,t,a),l.addEventListener("abort",i,{once:!0}),i=l.removeEventListener.bind(l,"abort",i)),l=zi(a),r.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:y,cleanup:i}),g(this._fragmentFiber.child,!1,Nx,e,y,l)}this._eventListeners=r}};function Nx(e,t,a,l){return D(e).addEventListener(t,a,l),!1}ta.prototype.removeEventListener=function(e,t,a){var l=this._eventListeners;if(l!==null&&(t=Jp(l,e,t,a),t!==-1)){var i=l[t];a=i.attachedListener;var r=i.cleanup;i=zi(i.optionsOrUseCapture),g(this._fragmentFiber.child,!1,wx,e,a,i),l.splice(t,1),r!==null&&r()}};function wx(e,t,a,l){return D(e).removeEventListener(t,a,l),!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 Zp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Jp(e,t,a,l){if(e.length===0)return-1;l=Zp(l);for(var i=0;i<e.length;i++){var r=e[i];if(r.type===t&&r.listener===a&&Zp(r.optionsOrUseCapture)===l)return i}return-1}ta.prototype.dispatchEvent=function(e){var t=_(this._fragmentFiber);if(t===null)return!0;t=D(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var i=0;i<a.length;i++){var r=a[i];l.addEventListener(r.type,r.attachedListener,zi(r.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),a)for(i=0;i<a.length;i++)r=a[i],l.removeEventListener(r.type,r.attachedListener,zi(r.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)},ta.prototype.focus=function(e){g(this._fragmentFiber.child,!0,Fp,e,void 0,void 0)};function Fp(e,t){return e.tag===6?!1:(e=D(e),qx(e,t))}ta.prototype.focusLast=function(e){var t=[];g(this._fragmentFiber.child,!0,Of,t,void 0,void 0);for(var a=t.length-1;0<=a&&!Fp(t[a],e);a--);};function Of(e,t){return t.push(e),!1}ta.prototype.blur=function(){var e=_(this._fragmentFiber);e!==null&&(e=D(e),e=Xu(e).activeElement,e!==null&&g(this._fragmentFiber.child,!1,Cx,e,void 0,void 0))};function Cx(e,t){return e.tag===6?!1:(e=D(e),e===t||e.contains(t)?(t.blur(),!0):!1)}ta.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),g(this._fragmentFiber.child,!1,jx,e,void 0,void 0)};function jx(e,t){return e.tag===6||(e=D(e),t.observe(e)),!1}ta.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),g(this._fragmentFiber.child,!1,zx,e,void 0,void 0);for(var a=t=0;a<wa.length;a++){var l=wa[a];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):wa[t++]=l}wa.length=t}};function zx(e,t){return e.tag===6||(e=D(e),t.unobserve(e)),!1}var wa=[],Rf=!1;function Ox(e,t,a){wa.push({fragmentInstance:e,observer:t,instance:a}),Rf||(Rf=!0,Lx(function(){Rf=!1;var l=wa;wa=[];for(var i=0;i<l.length;i++){var r=l[i];r.observer.unobserve(r.instance)}}))}ta.prototype.getClientRects=function(){var e=[];return g(this._fragmentFiber.child,!1,Rx,e,void 0,void 0),e};function Rx(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=D(e),t.push.apply(t,e.getClientRects());return!1}ta.prototype.getRootNode=function(e){var t=_(this._fragmentFiber);return t===null?this:D(t).getRootNode(e)},ta.prototype.compareDocumentPosition=function(e){var t=_(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];g(this._fragmentFiber.child,!1,Of,a,void 0,void 0);var l=D(t);if(a.length===0){if(a=l,k(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var i=l=a.compareDocumentPosition(e);return a===e?i=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=K(t)[1],a===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=D(a).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(a[0]),i=D(a[a.length-1]);var r=k(this._fragmentFiber)?t.parentElement:l;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var c=t.compareDocumentPosition(e),y=i.compareDocumentPosition(e),S=c&Node.DOCUMENT_POSITION_CONTAINED_BY||y&Node.DOCUMENT_POSITION_CONTAINED_BY;return y=l&&r&&c&Node.DOCUMENT_POSITION_FOLLOWING&&y&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||r&&i===e||S||y?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!r&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:c,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Ax(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Ax(e,t,a,l,i){var r=rn(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!r)e:{for(;r!==null;){if(r.tag===7&&(r===t||r.alternate===t)){a=!0;break e}r=r.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=i.ownerDocument,i===r||i===r.documentElement||i===r.body;e:{for(r=t,t=_(t);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==t&&r.alternate!==t)){r=!0;break e}r=r.return}r=!1}return r}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!r)&&!(t=r===a)&&(t=de(a,r,Y),t===null?t=!1:(g(t,!0,Z,r,a),r=H,H=null,t=r!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!r)&&!(t=r===l)&&(t=de(l,r,Y),t===null?t=!1:(g(t,!0,J,r,l),r=H,Q=H=null,t=r!==null)),t):!1}function $p(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}ta.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(o(566));var t=[];g(this._fragmentFiber.child,!1,Of,t,void 0,void 0);var a=e!==!1;if(t.length===0){var l=K(this._fragmentFiber);if(l=a?l[1]||l[0]||_(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=D(l),$p(e,a);return}if(l=D(l),l.nodeType!==9){if(l.nodeType===11){a="host"in l?l.host:null,a!==null&&a.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=a?t.length-1:0;l!==(a?-1:t.length);){var i=t[l];i.tag===6?(i=D(i),$p(i,a)):D(i).scrollIntoView(e),l+=a?-1:1}};function Mx(e,t){return e=D(e),Pp(e,t),!1}function Pp(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Wp(e,t){var a=t._eventListeners;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l];e.addEventListener(i.type,i.attachedListener,zi(i.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(r){for(var c=0,y=0;y<wa.length;y++){var S=wa[y];(S.fragmentInstance!==t||S.observer!==r||S.instance!==e)&&(wa[c++]=S)}wa.length=c,r.observe(e)}),Pp(e,t))}function Dx(e,t){var a=t._eventListeners;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l];e.removeEventListener(i.type,i.attachedListener,zi(i.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(r){typeof r.rootMargin=="string"?Ox(t,r,e):r.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Af(a),Er(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Ux(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ou])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==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(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=da(e.nextSibling),e===null)break}return null}function kx(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=da(e.nextSibling),e===null))return null;return e}function Ip(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=da(e.nextSibling),e===null))return null;return e}function Mf(e){return e.data==="$?"||e.data==="$~"}function Df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Hx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function da(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Uf=null;function ev(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return da(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function tv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function qx(e,t){function a(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return l}function Lx(e){Qp(function(){Qp(function(t){return e(t)})})}function av(e,t,a){switch(t=Xu(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function lv(e,t,a){for(var l in a){var i=a[l];a.hasOwnProperty(l)&&i!=null&&Ge(e,t,l,null,mx,i)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Da&&(e.onclick=null),Er(e)}function kf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Er(e)}var ha=new Map,nv=new Set;function Ku(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 cl=ye.d;ye.d={f:Bx,r:Qx,D:Gx,C:Yx,L:Vx,m:Xx,X:Zx,S:Kx,M:Jx};function Bx(){var e=cl.f(),t=Ns();return e||t}function Qx(e){var t=Jn(e);t!==null&&t.tag===5&&t.type==="form"?uy(t):cl.r(e)}var Oi=typeof document>"u"?null:document;function iv(e,t,a){var l=Oi;if(l&&typeof t=="string"&&t){var i=ia(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),nv.has(i)||(nv.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),_t(t,"link",e),ht(t),l.head.appendChild(t)))}}function Gx(e){cl.D(e),iv("dns-prefetch",e,null)}function Yx(e,t){cl.C(e,t),iv("preconnect",e,t)}function Vx(e,t,a){cl.L(e,t,a);var l=Oi;if(l&&e&&t){var i='link[rel="preload"][as="'+ia(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+ia(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+ia(a.imageSizes)+'"]')):i+='[href="'+ia(e)+'"]';var r=i;switch(t){case"style":r=Ri(e);break;case"script":r=Ai(e)}if(!(ha.has(r)||(e=F({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ha.set(r,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Zu(r))||t==="script"&&l.querySelector(Ju(r))))){var c=l.createElement("link");_t(c,"link",e),t==="style"&&(c[Sr]=!0,c.onload=c.onerror=function(){gh(c)}),ht(c),l.head.appendChild(c)}}}function Xx(e,t){cl.m(e,t);var a=Oi;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+ia(l)+'"][href="'+ia(e)+'"]',r=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Ai(e)}if(!ha.has(r)&&(e=F({rel:"modulepreload",href:e},t),ha.set(r,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ju(r)))return}l=a.createElement("link"),_t(l,"link",e),ht(l),a.head.appendChild(l)}}}function Kx(e,t,a){cl.S(e,t,a);var l=Oi;if(l&&e){var i=Fn(l).hoistableStyles,r=Ri(e);t=t||"default";var c=i.get(r);if(!c){var y={loading:0,preload:null};if(c=l.querySelector(Zu(r)))y.loading=5;else{e=F({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ha.get(r))&&Hf(e,a);var S=c=l.createElement("link");ht(S),_t(S,"link",e),S._p=new Promise(function(z,M){S.onload=z,S.onerror=M}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,As(c,t,l)}c={type:"stylesheet",instance:c,count:1,state:y},i.set(r,c)}}}function Zx(e,t){cl.X(e,t);var a=Oi;if(a&&e){var l=Fn(a).hoistableScripts,i=Ai(e),r=l.get(i);r||(r=a.querySelector(Ju(i)),r||(e=F({src:e,async:!0},t),(t=ha.get(i))&&qf(e,t),r=a.createElement("script"),ht(r),_t(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function Jx(e,t){cl.M(e,t);var a=Oi;if(a&&e){var l=Fn(a).hoistableScripts,i=Ai(e),r=l.get(i);r||(r=a.querySelector(Ju(i)),r||(e=F({src:e,async:!0,type:"module"},t),(t=ha.get(i))&&qf(e,t),r=a.createElement("script"),ht(r),_t(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function uv(e,t,a,l){var i=(i=bl.current)?Ku(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ri(a.href),t=Fn(i).hoistableStyles,l=t.get(a),l||(l={type:"style",instance:null,count:0,state:null},t.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ri(a.href);var r=Fn(i).hoistableStyles,c=r.get(e);if(c||(i=i.ownerDocument||i,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,c),(r=i.querySelector(Zu(e)))?r._p||(c.instance=r,c.state.loading=5):(r=ha.get(e),r||(r={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ha.set(e,r)),Fx(i,e,r,c.state))),t&&l===null)throw Error(o(528,""));return c}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Ai(a),t=Fn(i).hoistableScripts,l=t.get(a),l||(l={type:"script",instance:null,count:0,state:null},t.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ri(e){return'href="'+ia(e)+'"'}function Zu(e){return'link[rel="stylesheet"]['+e+"]"}function rv(e){return F({},e,{"data-precedence":e.precedence,precedence:null})}function Fx(e,t,a,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Sr]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[Sr]=!0,t.onload=t.onerror=gh.bind(null,t),_t(t,"link",a),ht(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function Ai(e){return'[src="'+ia(e)+'"]'}function Ju(e){return"script[async]"+e}function sv(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+ia(a.href)+'"]');if(l)return t.instance=l,ht(l),l;var i=F({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ht(l),_t(l,"style",i),As(l,a.precedence,e),t.instance=l;case"stylesheet":i=Ri(a.href);var r=e.querySelector(Zu(i));if(r)return t.state.loading|=4,t.instance=r,ht(r),r;l=rv(a),(i=ha.get(i))&&Hf(l,i),r=(e.ownerDocument||e).createElement("link"),ht(r);var c=r;return c._p=new Promise(function(y,S){c.onload=y,c.onerror=S}),_t(r,"link",l),t.state.loading|=4,As(r,a.precedence,e),t.instance=r;case"script":return r=Ai(a.src),(i=e.querySelector(Ju(r)))?(t.instance=i,ht(i),i):(l=a,(i=ha.get(r))&&(l=F({},a),qf(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),ht(i),_t(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,As(l,a.precedence,e));return t.instance}function As(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,r=i,c=0;c<l.length;c++){var y=l[c];if(y.dataset.precedence===t)r=y;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Hf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ms=null;function ov(e,t,a){if(Ms===null){var l=new Map,i=Ms=new Map;i.set(a,l)}else i=Ms,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var r=a[i];if(!(r[ou]||r[gt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var c=r.getAttribute(t)||"";c=e+c;var y=l.get(c);y?y.push(r):l.set(c,[r])}}return l}function Lf(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function $x(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function cv(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function fv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function dv(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function hv(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=dv(t),e.suspenseyImages.push(t)),e=Ix.bind(e),t.decode().then(e,e))}function Px(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Ri(l.href),r=t.querySelector(Zu(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Fu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,ht(r);return}r=t.ownerDocument||t,l=rv(l),(i=ha.get(i))&&Hf(l,i),r=r.createElement("link"),ht(r);var c=r;c._p=new Promise(function(y,S){c.onload=y,c.onerror=S}),_t(r,"link",l),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Fu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ds=0;function Wx(e,t){return e.stylesheets&&e.count===0&&ks(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&ks(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&Ds===0&&(Ds=62500*px());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ks(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Ds?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function mv(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ks(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Fu(){this.count--,mv(this)}function Ix(){this.imgCount--,mv(this)}var Us=null;function ks(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Us=new Map,t.forEach(e2,e),Us=null,Fu.call(e))}function e2(e,t){if(!(t.state.loading&4)){var a=Us.get(e);if(a)var l=a.get(null);else{a=new Map,Us.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var c=i[r];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),l=c)}l&&a.set(null,l)}i=t.instance,c=i.getAttribute("data-precedence"),r=a.get(c)||l,r===l&&a.set(null,i),a.set(c,i),this.count++,l=Fu.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Mi={$$typeof:re,Provider:null,Consumer:null,_currentValue:Vt,_currentValue2:Vt,_threadCount:0};function t2(e,t,a,l,i,r,c,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=go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.hiddenUpdates=go(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.transitionTypes=null,this.incompleteTransitions=new Map}function yv(e,t,a,l,i,r,c,y,S,z,M,B){return e=new t2(e,t,a,c,S,z,M,B,y),t=1,r===!0&&(t|=24),r=qt(3,null,null,t),e.current=r,r.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:a,cache:t},lc(r),e}function pv(e){return e?(e=ii,e):ii}function vv(e,t,a,l,i,r){i=pv(i),l.context===null?l.context=i:l.pendingContext=i,l=Ol(t),l.payload={element:a},r=r===void 0?null:r,r!==null&&(l.callback=r),a=Rl(e,l,t),a!==null&&(Gt(a,e,t),wu(a,e,t))}function gv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Bf(e,t){gv(e,t),(e=e.alternate)&&gv(e,t)}function bv(e){if(e.tag===13||e.tag===31){var t=fn(e,67108864);t!==null&&Gt(t,e,67108864),Bf(e,67108864)}}function xv(e){if(e.tag===13||e.tag===31){var t=ea();t=bo(t);var a=fn(e,t);a!==null&&Gt(a,e,t),Bf(e,t)}}var Di=!0;function a2(e,t,a,l){var i=se.T;se.T=null;var r=ye.p;try{ye.p=2,Qf(e,t,a,l)}finally{ye.p=r,se.T=i}}function l2(e,t,a,l){var i=se.T;se.T=null;var r=ye.p;try{ye.p=8,Qf(e,t,a,l)}finally{ye.p=r,se.T=i}}function Qf(e,t,a,l){if(Di){var i=Gf(l);if(i===null)Ef(e,t,l,Hs,a),Ev(e,l);else if(i2(i,e,t,a,l))l.stopPropagation();else if(Ev(e,l),t&4&&-1<n2.indexOf(e)){for(;i!==null;){var r=Jn(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var c=un(r.pendingLanes);if(c!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;c;){var S=1<<31-Zt(c);y.entanglements[1]|=S,c&=~S}Va(r),(He&6)===0&&(Es=Xt()+500,Gu(0))}}break;case 31:case 13:y=fn(r,2),y!==null&&Gt(y,r,2),Ns(),Bf(r,2)}if(r=Gf(l),r===null&&Ef(e,t,l,Hs,a),r===i)break;i=r}i!==null&&l.stopPropagation()}else Ef(e,t,l,null,a)}}function Gf(e){return e=wo(e),Yf(e)}var Hs=null;function Yf(e){if(Hs=null,e=rn(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hs=e,null}function Sv(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(p1()){case uh:return 2;case rh:return 8;case pr:case v1:return 32;case sh:return 268435456;default:return 32}default:return 32}}var Vf=!1,Yl=null,Vl=null,Xl=null,$u=new Map,Pu=new Map,Kl=[],n2="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 Ev(e,t){switch(e){case"focusin":case"focusout":Yl=null;break;case"dragenter":case"dragleave":Vl=null;break;case"mouseover":case"mouseout":Xl=null;break;case"pointerover":case"pointerout":$u.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pu.delete(t.pointerId)}}function Wu(e,t,a,l,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:r,targetContainers:[i]},t!==null&&(t=Jn(t),t!==null&&bv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function i2(e,t,a,l,i){switch(t){case"focusin":return Yl=Wu(Yl,e,t,a,l,i),!0;case"dragenter":return Vl=Wu(Vl,e,t,a,l,i),!0;case"mouseover":return Xl=Wu(Xl,e,t,a,l,i),!0;case"pointerover":var r=i.pointerId;return $u.set(r,Wu($u.get(r)||null,e,t,a,l,i)),!0;case"gotpointercapture":return r=i.pointerId,Pu.set(r,Wu(Pu.get(r)||null,e,t,a,l,i)),!0}return!1}function _v(e){var t=rn(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,yh(e.priority,function(){xv(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,yh(e.priority,function(){xv(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Gf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);No=l,a.target.dispatchEvent(l),No=null}else return t=Jn(a),t!==null&&bv(t),e.blockedOn=a,!1;t.shift()}return!0}function Tv(e,t,a){qs(e)&&a.delete(t)}function u2(){Vf=!1,Yl!==null&&qs(Yl)&&(Yl=null),Vl!==null&&qs(Vl)&&(Vl=null),Xl!==null&&qs(Xl)&&(Xl=null),$u.forEach(Tv),Pu.forEach(Tv)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Vf||(Vf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,u2)))}var Bs=null;function Nv(e){Bs!==e&&(Bs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Yf(l||a)===null)continue;break}var r=Jn(a);r!==null&&(e.splice(t,3),t-=3,Tc(r,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Ui(e){function t(S){return Ls(S,e)}Yl!==null&&Ls(Yl,e),Vl!==null&&Ls(Vl,e),Xl!==null&&Ls(Xl,e),$u.forEach(t),Pu.forEach(t);for(var a=0;a<Kl.length;a++){var l=Kl[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Kl.length&&(a=Kl[0],a.blockedOn===null);)_v(a),a.blockedOn===null&&Kl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],r=a[l+1],c=i[Ht]||null;if(typeof r=="function")c||Nv(a);else if(c){var y=null;if(r&&r.hasAttribute("formAction")){if(i=r,c=r[Ht]||null)y=c.formAction;else if(Yf(i)!==null)continue}else y=c.action;typeof y=="function"?a[l+1]=y:(a.splice(l,3),l-=3),Nv(a)}}}function wv(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(c){return i=c})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Xf(e){this._internalRoot=e}Qs.prototype.render=Xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=ea();vv(a,l,e,t,null,null)},Qs.prototype.unmount=Xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vv(e.current,2,null,e,null,null),Ns(),t[Zn]=null}};function Qs(e){this._internalRoot=e}Qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=mh();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Kl.length&&t!==0&&t<Kl[a].priority;a++);Kl.splice(a,0,e),a===0&&_v(e)}};var Cv=u.version;if(Cv!=="19.3.1")throw Error(o(527,Cv,"19.3.1"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var r2={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:se,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{uu=Gs.inject(r2),Kt=Gs}catch{}}return er.createRoot=function(e,t){if(!f(e))throw Error(o(299));var a=!1,l="",i=py,r=vy,c=gy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=yv(e,1,!1,null,null,a,l,null,i,r,c,wv),e[Zn]=t.current,Sf(e),new Xf(t)},er.hydrateRoot=function(e,t,a){if(!f(e))throw Error(o(299));var l=!1,i="",r=py,c=vy,y=gy,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=yv(e,1,!0,t,a??null,l,i,S,r,c,y,wv),t.context=pv(null),a=t.current,l=ea(),l=bo(l),i=Ol(l),i.callback=null,Rl(a,i,l),a=l,t.current.lanes=a,su(t,a),Va(t),e[Zn]=t.current,Sf(e),new Qs(t)},er.version="19.3.1",er}var qv;function v2(){if(qv)return Ff.exports;qv=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(u){console.error(u)}}return n(),Ff.exports=p2(),Ff.exports}var g2=v2();const b2=Ug(g2);/**
* react-router v7.18.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Od=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Hg=/^[\\/]{2}/;function x2(n,u){return u+n.replace(/\\/g,"/")}var Lv="popstate";function Bv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function S2(n={}){function u(f,m){let{pathname:d="/",search:p="",hash:x=""}=Yn(f.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),id("",{pathname:d,search:p,hash:x},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function s(f,m){let d=f.document.querySelector("base"),p="";if(d&&d.getAttribute("href")){let x=f.location.href,v=x.indexOf("#");p=v===-1?x:x.slice(0,v)}return p+"#"+(typeof m=="string"?m:Bn(m))}function o(f,m){la(f.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(m)})`)}return _2(u,s,o,n)}function We(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function la(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function E2(){return Math.random().toString(36).substring(2,10)}function Qv(n,u){return{usr:n.state,key:n.key,idx:u,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function id(n,u,s=null,o,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?Yn(u):u,state:s,key:u&&u.key||o||E2(),mask:f}}function Bn({pathname:n="/",search:u="",hash:s=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Yn(n){let u={};if(n){let s=n.indexOf("#");s>=0&&(u.hash=n.substring(s),n=n.substring(0,s));let o=n.indexOf("?");o>=0&&(u.search=n.substring(o),n=n.substring(0,o)),n&&(u.pathname=n)}return u}function _2(n,u,s,o={}){let{window:f=document.defaultView,v5Compat:m=!1}=o,d=f.history,p="POP",x=null,v=b();v==null&&(v=0,d.replaceState({...d.state,idx:v},""));function b(){return(d.state||{idx:null}).idx}function g(){p="POP";let D=b(),H=D==null?null:D-v;v=D,x&&x({action:p,location:q.location,delta:H})}function _(D,H){p="PUSH";let Q=Bv(D)?D:id(q.location,D,H);s&&s(Q,D),v=b()+1;let Z=Qv(Q,v),J=q.createHref(Q.mask||Q);try{d.pushState(Z,"",J)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;f.location.assign(J)}m&&x&&x({action:p,location:q.location,delta:1})}function k(D,H){p="REPLACE";let Q=Bv(D)?D:id(q.location,D,H);s&&s(Q,D),v=b();let Z=Qv(Q,v),J=q.createHref(Q.mask||Q);d.replaceState(Z,"",J),m&&x&&x({action:p,location:q.location,delta:0})}function K(D){return T2(f,D)}let q={get action(){return p},get location(){return n(f,d)},listen(D){if(x)throw new Error("A history only accepts one active listener");return f.addEventListener(Lv,g),x=D,()=>{f.removeEventListener(Lv,g),x=null}},createHref(D){return u(f,D)},createURL:K,encodeLocation(D){let H=K(D);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:_,replace:k,go(D){return d.go(D)}};return q}function T2(n,u,s=!1){let o="http://localhost";n&&(o=n.location.origin!=="null"?n.location.origin:n.location.href),We(o,"No window.location.(origin|href) available to create URL");let f=typeof u=="string"?u:Bn(u);return f=f.replace(/ $/,"%20"),!s&&Hg.test(f)&&(f=o+f),new URL(f,o)}function qg(n,u,s="/"){return N2(n,u,s,!1)}function N2(n,u,s,o,f){let m=typeof u=="string"?Yn(u):u,d=vl(m.pathname||"/",s);if(d==null)return null;let p=w2(n),x=null,v=H2(d);for(let b=0;x==null&&b<p.length;++b)x=k2(p[b],v,o);return x}function w2(n){let u=Lg(n);return C2(u),u}function Lg(n,u=[],s=[],o="",f=!1){let m=(d,p,x=f,v)=>{let b={relativePath:v===void 0?d.path||"":v,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&x)return;We(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let g=za([o,b.relativePath]),_=s.concat(b);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}".`),Lg(d.children,u,_,g,x)),!(d.path==null&&!d.index)&&u.push({path:g,score:D2(g,d.index),routesMeta:_.map((k,K)=>{let[q,D]=Gg(k.relativePath,k.caseSensitive,K===_.length-1);return{...k,matcher:q,compiledParams:D}})})};return n.forEach((d,p)=>{var x;if(d.path===""||!((x=d.path)!=null&&x.includes("?")))m(d,p);else for(let v of Bg(d.path))m(d,p,!0,v)}),u}function Bg(n){let u=n.split("/");if(u.length===0)return[];let[s,...o]=u,f=s.endsWith("?"),m=s.replace(/\?$/,"");if(o.length===0)return f?[m,""]:[m];let d=Bg(o.join("/")),p=[];return p.push(...d.map(x=>x===""?m:[m,x].join("/"))),f&&p.push(...d),p.map(x=>n.startsWith("/")&&x===""?"/":x)}function C2(n){n.sort((u,s)=>u.score!==s.score?s.score-u.score:U2(u.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var j2=/^:[\w-]+$/,z2=3,O2=2,R2=1,A2=10,M2=-2,Gv=n=>n==="*";function D2(n,u){let s=n.split("/"),o=s.length;return s.some(Gv)&&(o+=M2),u&&(o+=O2),s.filter(f=>!Gv(f)).reduce((f,m)=>f+(j2.test(m)?z2:m===""?R2:A2),o)}function U2(n,u){return n.length===u.length&&n.slice(0,-1).every((o,f)=>o===u[f])?n[n.length-1]-u[u.length-1]:0}function k2(n,u,s=!1){let{routesMeta:o}=n,f={},m="/",d=[];for(let p=0;p<o.length;++p){let x=o[p],v=p===o.length-1,b=m==="/"?u:u.slice(m.length)||"/",g={path:x.relativePath,caseSensitive:x.caseSensitive,end:v},_=x.matcher&&x.compiledParams?Qg(g,b,x.matcher,x.compiledParams):Ws(g,b),k=x.route;if(!_&&v&&s&&!o[o.length-1].route.index&&(_=Ws({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},b)),!_)return null;Object.assign(f,_.params),d.push({params:f,pathname:za([m,_.pathname]),pathnameBase:B2(za([m,_.pathnameBase])),route:k}),_.pathnameBase!=="/"&&(m=za([m,_.pathnameBase]))}return d}function Ws(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,o]=Gg(n.path,n.caseSensitive,n.end);return Qg(n,u,s,o)}function Qg(n,u,s,o){let f=u.match(s);if(!f)return null;let m=f[0],d=Pi(m,1),p=f.slice(1);return{params:o.reduce((v,{paramName:b,isOptional:g},_)=>{if(b==="*"){let K=p[_]||"";d=Pi(m.slice(0,m.length-K.length),1)}const k=p[_];return g&&!k?v[b]=void 0:v[b]=(k||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:d,pattern:n}}function Gg(n,u=!1,s=!0){la(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 o=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,x,v,b)=>{if(o.push({paramName:p,isOptional:x!=null}),x){let g=b.charAt(v+d.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),o]}function H2(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return la(!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 (${u}).`),n}}function vl(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let s=u.endsWith("/")?u.length-1:u.length,o=n.charAt(s);return o&&o!=="/"?null:n.slice(s)||"/"}function q2(n,u="/"){let{pathname:s,search:o="",hash:f=""}=typeof n=="string"?Yn(n):n,m;return s?(s=Yg(s),s.startsWith("/")||s.startsWith("\\")?m=Yv(s.substring(1),"/"):m=Yv(s,u)):m=u,{pathname:m,search:Q2(o),hash:G2(f)}}function Yv(n,u){let s=Pi(u).split("/");return n.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function If(n,u,s,o){return`Cannot include a '${n}' character in a manually specified \`to.${u}\` field [${JSON.stringify(o)}]. 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 L2(n){return n.filter((u,s)=>s===0||u.route.path&&u.route.path.length>0)}function Rd(n){let u=L2(n);return u.map((s,o)=>o===u.length-1?s.pathname:s.pathnameBase)}function ao(n,u,s,o=!1){let f;typeof n=="string"?f=Yn(n):(f={...n},We(!f.pathname||!f.pathname.includes("?"),If("?","pathname","search",f)),We(!f.pathname||!f.pathname.includes("#"),If("#","pathname","hash",f)),We(!f.search||!f.search.includes("#"),If("#","search","hash",f)));let m=n===""||f.pathname==="",d=m?"/":f.pathname,p;if(d==null)p=s;else{let g=u.length-1;if(!o&&d.startsWith("..")){let _=d.split("/");for(;_[0]==="..";)_.shift(),g-=1;f.pathname=_.join("/")}p=g>=0?u[g]:"/"}let x=q2(f,p),v=d&&d!=="/"&&d.endsWith("/"),b=(m||d===".")&&s.endsWith("/");return!x.pathname.endsWith("/")&&(v||b)&&(x.pathname+="/"),x}var Yg=n=>n.replace(/[\\/]{2,}/g,"/"),za=n=>Yg(n.join("/"));function Pi(n,u=0){let s=n.length;for(;s>u&&n.charCodeAt(s-1)===47;)s--;return s===n.length?n:n.slice(0,s)}var B2=n=>Pi(n).replace(/^\/*/,"/"),Q2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,G2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Y2=class{constructor(n,u,s,o=!1){this.status=n,this.statusText=u||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function V2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function X2(n){let u=n.map(s=>s.route.path).filter(Boolean);return za(u)||"/"}var Vg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xg(n,u){let s=n;if(typeof s!="string"||!Od.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,f=!1;if(Vg)try{let m=new URL(window.location.href),d=Hg.test(s)?new URL(x2(s,m.protocol)):new URL(s),p=vl(d.pathname,u);d.origin===m.origin&&p!=null?s=p+d.search+d.hash:f=!0}catch{la(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Vv=new URL("http://localhost");function Ad(n){if(n.createURL)return n.createURL("/");try{return new URL(n.createHref("/"),Vv)}catch{return Vv}}function ed(n,u){return n.origin===u.origin&&(n.origin!=="null"||n.protocol===u.protocol&&n.host===u.host)}function K2(n,u){if(n.startsWith("//"))return!0;let s=u.protocol.toLowerCase();return n.toLowerCase().startsWith(s)?u.host===""||n.slice(s.length).startsWith("//"):!1}function Md(n,u,s,o){let f=null;try{f=n==null?null:new URL(n,s)}catch{}let m=new URL(u,s),d=f!=null&&!ed(f,s),p=!ed(m,s);if(o==="reject"){if(d||p)throw new Error("External navigation is not allowed")}else if(p&&(f==null||!K2(n,f)||!ed(f,m)))throw new Error("External navigation is not allowed")}var Kg=["POST","PUT","PATCH","DELETE"];new Set(Kg);var Z2=["GET",...Kg];new Set(Z2);var J2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function F2(n){try{return J2.includes(new URL(n).protocol)}catch{return!1}}var eu=E.createContext(null);eu.displayName="DataRouter";var lo=E.createContext(null);lo.displayName="DataRouterState";var Zg=E.createContext(!1);function $2(){return E.useContext(Zg)}var Jg=E.createContext({isTransitioning:!1});Jg.displayName="ViewTransition";var P2=E.createContext(new Map);P2.displayName="Fetchers";var W2=E.createContext(null);W2.displayName="Await";var na=E.createContext(null);na.displayName="Navigation";var fr=E.createContext(null);fr.displayName="Location";var Oa=E.createContext({outlet:null,matches:[],isDataRoute:!1});Oa.displayName="Route";var Dd=E.createContext(null);Dd.displayName="RouteError";var Fg="REACT_ROUTER_ERROR",I2="REDIRECT",eS="ROUTE_ERROR_RESPONSE";function tS(n){if(n.startsWith(`${Fg}:${I2}:{`))try{let u=JSON.parse(n.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function aS(n){if(n.startsWith(`${Fg}:${eS}:{`))try{let u=JSON.parse(n.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Y2(u.status,u.statusText,u.data)}catch{}}function lS(n,{relative:u}={}){We(tu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=E.useContext(na),{hash:f,pathname:m,search:d}=dr(n,{relative:u}),p=m;return s!=="/"&&(p=m==="/"?s:za([s,m])),o.createHref({pathname:p,search:d,hash:f})}function tu(){return E.useContext(fr)!=null}function ba(){return We(tu(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(fr).location}var $g="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Pg(n){E.useContext(na).static||E.useLayoutEffect(n)}function no(){let{isDataRoute:n}=E.useContext(Oa);return n?gS():nS()}function nS(){We(tu(),"useNavigate() may be used only in the context of a <Router> component.");let n=E.useContext(eu),{basename:u,navigator:s}=E.useContext(na),{matches:o}=E.useContext(Oa),{pathname:f}=ba(),m=JSON.stringify(Rd(o)),d=E.useRef(!1);return Pg(()=>{d.current=!0}),E.useCallback((x,v={})=>{if(la(d.current,$g),!d.current)return;if(typeof x=="number"){s.go(x);return}let b=ao(x,JSON.parse(m),f,v.relative==="path");n==null&&u!=="/"&&(b.pathname=b.pathname==="/"?u:za([u,b.pathname])),Md(typeof x=="string"?x:Bn(x),s.createHref(b),Ad(s),"reject"),(v.replace?s.replace:s.push)(b,v.state,v)},[u,s,m,f,n])}var iS=E.createContext(null);function uS(n){let u=E.useContext(Oa).outlet;return E.useMemo(()=>u&&E.createElement(iS.Provider,{value:n},u),[u,n])}function dr(n,{relative:u}={}){let{matches:s}=E.useContext(Oa),{pathname:o}=ba(),f=JSON.stringify(Rd(s));return E.useMemo(()=>ao(n,JSON.parse(f),o,u==="path"),[n,f,o,u])}function rS(n,u){return Wg(n,u)}function Wg(n,u,s){var D;We(tu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=E.useContext(na),{matches:f}=E.useContext(Oa),m=f[f.length-1],d=m?m.params:{},p=m?m.pathname:"/",x=m?m.pathnameBase:"/",v=m&&m.route;{let H=v&&v.path||"";e0(p,!v||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${H}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let b=ba(),g;if(u){let H=typeof u=="string"?Yn(u):u;We(x==="/"||((D=H.pathname)==null?void 0:D.startsWith(x)),`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 "${x}" but pathname "${H.pathname}" was given in the \`location\` prop.`),g=H}else g=b;let _=g.pathname||"/",k=_;if(x!=="/"){let H=x.replace(/^\//,"").split("/");k="/"+_.replace(/^\//,"").split("/").slice(H.length).join("/")}let K=s&&s.state.matches.length?s.state.matches.map(H=>Object.assign(H,{route:s.manifest[H.route.id]||H.route})):qg(n,{pathname:k});la(v||K!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),la(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let q=dS(K&&K.map(H=>Object.assign({},H,{params:Object.assign({},d,H.params),pathname:za([x,o.encodeLocation?o.encodeLocation(H.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?x:za([x,o.encodeLocation?o.encodeLocation(H.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),f,s);return u&&q?E.createElement(fr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},q):q}function sS(){let n=vS(),u=V2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},m={padding:"2px 4px",backgroundColor:o},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:m},"ErrorBoundary")," or"," ",E.createElement("code",{style:m},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},u),s?E.createElement("pre",{style:f},s):null,d)}var oS=E.createElement(sS,null),Ig=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,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.onError?this.props.onError(n,u):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=aS(n.digest);s&&(n=s)}let u=n!==void 0?E.createElement(Oa.Provider,{value:this.props.routeContext},E.createElement(Dd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?E.createElement(cS,{error:n},u):u}};Ig.contextType=Zg;var td=new WeakMap;function cS({children:n,error:u}){let{basename:s,navigator:o}=E.useContext(na);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let f=tS(u.digest);if(f){let m=td.get(u);if(m)throw m;let d=Xg(f.location,s),p=d.absoluteURL||d.to;if(Md(f.location,p,Ad(o),"allow-explicit"),F2(p))throw new Error("Invalid redirect location");if(Vg&&!td.get(u))if(d.isExternal||f.reloadDocument)window.location.href=p;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:f.replace}));throw td.set(u,x),x}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p}`})}}return n}function fS({routeContext:n,match:u,children:s}){let o=E.useContext(eu);return o&&o.static&&o.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=u.route.id),E.createElement(Oa.Provider,{value:n},s)}function dS(n,u=[],s){let o=s==null?void 0:s.state;if(n==null){if(!o)return null;if(o.errors)n=o.matches;else if(u.length===0&&!o.initialized&&o.matches.length>0)n=o.matches;else return null}let f=n,m=o==null?void 0:o.errors;if(m!=null){let b=f.findIndex(g=>g.route.id&&(m==null?void 0:m[g.route.id])!==void 0);We(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let d=!1,p=-1;if(s&&o){d=o.renderFallback;for(let b=0;b<f.length;b++){let g=f[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=b),g.route.id){let{loaderData:_,errors:k}=o,K=g.route.loader&&!_.hasOwnProperty(g.route.id)&&(!k||k[g.route.id]===void 0);if(g.route.lazy||K){s.isStatic&&(d=!0),p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}}let x=s==null?void 0:s.onError,v=o&&x?(b,g)=>{var _,k;x(b,{location:o.location,params:((k=(_=o.matches)==null?void 0:_[0])==null?void 0:k.params)??{},pattern:X2(o.matches),errorInfo:g})}:void 0;return f.reduceRight((b,g,_)=>{let k,K=!1,q=null,D=null;o&&(k=m&&g.route.id?m[g.route.id]:void 0,q=g.route.errorElement||oS,d&&(p<0&&_===0?(e0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,D=null):p===_&&(K=!0,D=g.route.hydrateFallbackElement||null)));let H=u.concat(f.slice(0,_+1)),Q=()=>{let Z;return k?Z=q:K?Z=D:g.route.Component?Z=E.createElement(g.route.Component,null):g.route.element?Z=g.route.element:Z=b,E.createElement(fS,{match:g,routeContext:{outlet:b,matches:H,isDataRoute:o!=null},children:Z})};return o&&(g.route.ErrorBoundary||g.route.errorElement||_===0)?E.createElement(Ig,{location:o.location,revalidation:o.revalidation,component:q,error:k,children:Q(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:v}):Q()},null)}function Ud(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hS(n){let u=E.useContext(eu);return We(u,Ud(n)),u}function mS(n){let u=E.useContext(lo);return We(u,Ud(n)),u}function yS(n){let u=E.useContext(Oa);return We(u,Ud(n)),u}function kd(n){let u=yS(n),s=u.matches[u.matches.length-1];return We(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function pS(){return kd("useRouteId")}function vS(){var o;let n=E.useContext(Dd),u=mS("useRouteError"),s=kd("useRouteError");return n!==void 0?n:(o=u.errors)==null?void 0:o[s]}function gS(){let{router:n}=hS("useNavigate"),u=kd("useNavigate"),s=E.useRef(!1);return Pg(()=>{s.current=!0}),E.useCallback(async(f,m={})=>{la(s.current,$g),s.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:u,...m}))},[n,u])}var Xv={};function e0(n,u,s){!u&&!Xv[n]&&(Xv[n]=!0,la(!1,s))}E.memo(bS);function bS({routes:n,manifest:u,future:s,state:o,isStatic:f,onError:m}){return Wg(n,void 0,{manifest:u,state:o,isStatic:f,onError:m})}function Kv({to:n,replace:u,state:s,relative:o}){We(tu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f,navigator:m}=E.useContext(na);la(!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(Oa),{pathname:p}=ba(),x=no(),v=ao(n,Rd(d),p,o==="path");Md(typeof n=="string"?n:Bn(n),m.createHref(v),Ad(m),"reject");let b=JSON.stringify(v);return E.useEffect(()=>{x(JSON.parse(b),{replace:u,state:s,relative:o})},[x,b,o,u,s]),null}function xS(n){return uS(n.context)}function Yt(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 SS({basename:n="/",children:u=null,location:s,navigationType:o="POP",navigator:f,static:m=!1,useTransitions:d}){We(!tu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),x=E.useMemo(()=>({basename:p,navigator:f,static:m,useTransitions:d,future:{}}),[p,f,m,d]);typeof s=="string"&&(s=Yn(s));let{pathname:v="/",search:b="",hash:g="",state:_=null,key:k="default",mask:K}=s,q=E.useMemo(()=>{let D=vl(v,p);return D==null?null:{location:{pathname:D,search:b,hash:g,state:_,key:k,mask:K},navigationType:o}},[p,v,b,g,_,k,o,K]);return la(q!=null,`<Router basename="${p}"> is not able to match the URL "${v}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:E.createElement(na.Provider,{value:x},E.createElement(fr.Provider,{children:u,value:q}))}function ES({children:n,location:u}){return rS(ud(n),u)}function ud(n,u=[]){let s=[];return E.Children.forEach(n,(o,f)=>{if(!E.isValidElement(o))return;let m=[...u,f];if(o.type===E.Fragment){s.push.apply(s,ud(o.props.children,m));return}We(o.type===Yt,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),We(!o.props.index||!o.props.children,"An index route cannot have child routes.");let d={id:o.props.id||m.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(d.children=ud(o.props.children,m)),s.push(d)}),s}var Js="get",Fs="application/x-www-form-urlencoded";function io(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function _S(n){return io(n)&&n.tagName.toLowerCase()==="button"}function TS(n){return io(n)&&n.tagName.toLowerCase()==="form"}function NS(n){return io(n)&&n.tagName.toLowerCase()==="input"}function wS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function CS(n,u){return n.button===0&&(!u||u==="_self")&&!wS(n)}function rd(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((u,s)=>{let o=n[s];return u.concat(Array.isArray(o)?o.map(f=>[s,f]):[[s,o]])},[]))}function jS(n,u){let s=rd(n);return u&&u.forEach((o,f)=>{s.has(f)||u.getAll(f).forEach(m=>{s.append(f,m)})}),s}var Vs=null;function zS(){if(Vs===null)try{new FormData(document.createElement("form"),0),Vs=!1}catch{Vs=!0}return Vs}var OS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ad(n){return n!=null&&!OS.has(n)?(la(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fs}"`),null):n}function RS(n,u){let s,o,f,m,d;if(TS(n)){let p=n.getAttribute("action");o=p?vl(p,u):null,s=n.getAttribute("method")||Js,f=ad(n.getAttribute("enctype"))||Fs,m=new FormData(n)}else if(_S(n)||NS(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 x=n.getAttribute("formaction")||p.getAttribute("action");if(o=x?vl(x,u):null,s=n.getAttribute("formmethod")||p.getAttribute("method")||Js,f=ad(n.getAttribute("formenctype"))||ad(p.getAttribute("enctype"))||Fs,m=new FormData(p,n),!zS()){let{name:v,type:b,value:g}=n;if(b==="image"){let _=v?`${v}.`:"";m.append(`${_}x`,"0"),m.append(`${_}y`,"0")}else v&&m.append(v,g)}}else{if(io(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Js,o=null,f=Fs,d=n}return m&&f==="text/plain"&&(d=m,m=void 0),{action:o,method:s.toLowerCase(),encType:f,formData:m,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Hd(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function t0(n,u,s,o){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}_.${o}`:f.pathname=`${f.pathname}.${o}`:f.pathname==="/"?f.pathname=`_root.${o}`:u&&vl(f.pathname,u)==="/"?f.pathname=`${Pi(u)}/_root.${o}`:f.pathname=`${Pi(f.pathname)}.${o}`,f}async function AS(n,u){if(n.id in u)return u[n.id];try{let s=await import(n.module);return u[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 MS(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 DS(n,u,s){let o=await Promise.all(n.map(async f=>{let m=u.routes[f.route.id];if(m){let d=await AS(m,s);return d.links?d.links():[]}return[]}));return qS(o.flat(1).filter(MS).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Zv(n,u,s,o,f,m){let d=(x,v)=>s[v]?x.route.id!==s[v].route.id:!0,p=(x,v)=>{var b;return s[v].pathname!==x.pathname||((b=s[v].route.path)==null?void 0:b.endsWith("*"))&&s[v].params["*"]!==x.params["*"]};return m==="assets"?u.filter((x,v)=>d(x,v)||p(x,v)):m==="data"?u.filter((x,v)=>{var g;let b=o.routes[x.route.id];if(!b||!b.hasLoader)return!1;if(d(x,v)||p(x,v))return!0;if(x.route.shouldRevalidate){let _=x.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:x.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function US(n,u,{includeHydrateFallback:s}={}){return kS(n.map(o=>{let f=u.routes[o.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function kS(n){return[...new Set(n)]}function HS(n){let u={},s=Object.keys(n).sort();for(let o of s)u[o]=n[o];return u}function qS(n,u){let s=new Set;return new Set(u),n.reduce((o,f)=>{let m=JSON.stringify(HS(f));return s.has(m)||(s.add(m),o.push({key:m,link:f})),o},[])}function qd(){let n=E.useContext(eu);return Hd(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function LS(){let n=E.useContext(lo);return Hd(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ld=E.createContext(void 0);Ld.displayName="FrameworkContext";function uo(){let n=E.useContext(Ld);return Hd(n,"You must render this element inside a <HydratedRouter> element"),n}function BS(n,u){let s=E.useContext(Ld),[o,f]=E.useState(!1),[m,d]=E.useState(!1),{onFocus:p,onBlur:x,onMouseEnter:v,onMouseLeave:b,onTouchStart:g}=u,_=E.useRef(null);E.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let q=H=>{H.forEach(Q=>{d(Q.isIntersecting)})},D=new IntersectionObserver(q,{threshold:.5});return _.current&&D.observe(_.current),()=>{D.disconnect()}}},[n]),E.useEffect(()=>{if(o){let q=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(q)}}},[o]);let k=()=>{f(!0)},K=()=>{f(!1),d(!1)};return s?n!=="intent"?[m,_,{}]:[m,_,{onFocus:tr(p,k),onBlur:tr(x,K),onMouseEnter:tr(v,k),onMouseLeave:tr(b,K),onTouchStart:tr(g,k)}]:[!1,_,{}]}function tr(n,u){return s=>{n&&n(s),s.defaultPrevented||u(s)}}function QS({page:n,...u}){let s=$2(),{nonce:o}=uo(),{router:f}=qd(),m=E.useMemo(()=>qg(f.routes,n,f.basename),[f.routes,n,f.basename]);return m?(u.nonce==null&&o&&(u={...u,nonce:o}),s?E.createElement(YS,{page:n,matches:m,...u}):E.createElement(VS,{page:n,matches:m,...u})):null}function GS(n){let{manifest:u,routeModules:s}=uo(),[o,f]=E.useState([]);return E.useEffect(()=>{let m=!1;return DS(n,u,s).then(d=>{m||f(d)}),()=>{m=!0}},[n,u,s]),o}function YS({page:n,matches:u,...s}){let o=ba(),{future:f}=uo(),{basename:m}=qd(),d=E.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let p=t0(n,m,f.v8_trailingSlashAwareDataRequests,"rsc"),x=!1,v=[];for(let b of u)typeof b.route.shouldRevalidate=="function"?x=!0:v.push(b.route.id);return x&&v.length>0&&p.searchParams.set("_routes",v.join(",")),[p.pathname+p.search]},[m,f.v8_trailingSlashAwareDataRequests,n,o,u]);return E.createElement(E.Fragment,null,d.map(p=>E.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...s})))}function VS({page:n,matches:u,...s}){let o=ba(),{future:f,manifest:m,routeModules:d}=uo(),{basename:p}=qd(),{loaderData:x,matches:v}=LS(),b=E.useMemo(()=>Zv(n,u,v,m,o,"data"),[n,u,v,m,o]),g=E.useMemo(()=>Zv(n,u,v,m,o,"assets"),[n,u,v,m,o]),_=E.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let q=new Set,D=!1;if(u.forEach(Q=>{var J;let Z=m.routes[Q.route.id];!Z||!Z.hasLoader||(!b.some(Y=>Y.route.id===Q.route.id)&&Q.route.id in x&&((J=d[Q.route.id])!=null&&J.shouldRevalidate)||Z.hasClientLoader?D=!0:q.add(Q.route.id))}),q.size===0)return[];let H=t0(n,p,f.v8_trailingSlashAwareDataRequests,"data");return D&&q.size>0&&H.searchParams.set("_routes",u.filter(Q=>q.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[H.pathname+H.search]},[p,f.v8_trailingSlashAwareDataRequests,x,o,m,b,u,n,d]),k=E.useMemo(()=>US(g,m),[g,m]),K=GS(g);return E.createElement(E.Fragment,null,_.map(q=>E.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...s})),k.map(q=>E.createElement("link",{key:q,rel:"modulepreload",href:q,...s})),K.map(({key:q,link:D})=>E.createElement("link",{key:q,nonce:s.nonce,...D,crossOrigin:D.crossOrigin??s.crossOrigin})))}function XS(...n){return u=>{n.forEach(s=>{typeof s=="function"?s(u):s!=null&&(s.current=u)})}}var KS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{KS&&(window.__reactRouterVersion="7.18.4")}catch{}function ZS({basename:n,children:u,useTransitions:s,window:o}){let f=E.useRef();f.current==null&&(f.current=S2({window:o,v5Compat:!0}));let m=f.current,[d,p]=E.useState({action:m.action,location:m.location}),x=E.useCallback(v=>{s===!1?p(v):E.startTransition(()=>p(v))},[s]);return E.useLayoutEffect(()=>m.listen(x),[m,x]),E.createElement(SS,{basename:n,children:u,location:d.location,navigationType:d.action,navigator:m,useTransitions:s})}var a0=E.forwardRef(function({onClick:u,discover:s="render",prefetch:o="none",relative:f,reloadDocument:m,replace:d,mask:p,state:x,target:v,to:b,preventScrollReset:g,viewTransition:_,defaultShouldRevalidate:k,...K},q){let{basename:D,navigator:H,useTransitions:Q}=E.useContext(na),Z=typeof b=="string"&&Od.test(b),J=Xg(b,D);b=J.to;let Y=lS(b,{relative:f}),de=ba(),F=null;if(p){let re=ao(p,[],de.mask?de.mask.pathname:"/",!0);D!=="/"&&(re.pathname=re.pathname==="/"?D:za([D,re.pathname])),F=H.createHref(re)}let[U,I,ae]=BS(o,K),Ve=$S(b,{replace:d,mask:p,state:x,target:v,preventScrollReset:g,relative:f,viewTransition:_,defaultShouldRevalidate:k,useTransitions:Q});function Fe(re){u&&u(re),re.defaultPrevented||Ve(re)}let ie=!(J.isExternal||m),Ne=E.createElement("a",{...K,...ae,href:(ie?F:void 0)||J.absoluteURL||Y,onClick:ie?Fe:u,ref:XS(q,I),target:v,"data-discover":!Z&&s==="render"?"true":void 0});return U&&!Z?E.createElement(E.Fragment,null,Ne,E.createElement(QS,{page:Y})):Ne});a0.displayName="Link";var l0=E.forwardRef(function({"aria-current":u="page",caseSensitive:s=!1,className:o="",end:f=!1,style:m,to:d,viewTransition:p,children:x,...v},b){let g=dr(d,{relative:v.relative}),_=ba(),k=E.useContext(lo),{navigator:K,basename:q}=E.useContext(na),D=k!=null&&t3(g)&&p===!0,H=K.encodeLocation?K.encodeLocation(g).pathname:g.pathname,Q=_.pathname,Z=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;s||(Q=Q.toLowerCase(),Z=Z?Z.toLowerCase():null,H=H.toLowerCase()),Z&&q&&(Z=vl(Z,q)||Z);const J=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let Y=Q===H||!f&&Q.startsWith(H)&&Q.charAt(J)==="/",de=Z!=null&&(Z===H||!f&&Z.startsWith(H)&&Z.charAt(H.length)==="/"),F={isActive:Y,isPending:de,isTransitioning:D},U=Y?u:void 0,I;typeof o=="function"?I=o(F):I=[o,Y?"active":null,de?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let ae=typeof m=="function"?m(F):m;return E.createElement(a0,{...v,"aria-current":U,className:I,ref:b,style:ae,to:d,viewTransition:p},typeof x=="function"?x(F):x)});l0.displayName="NavLink";var JS=E.forwardRef(({discover:n="render",fetcherKey:u,navigate:s,reloadDocument:o,replace:f,state:m,method:d=Js,action:p,onSubmit:x,relative:v,preventScrollReset:b,viewTransition:g,defaultShouldRevalidate:_,...k},K)=>{let{useTransitions:q}=E.useContext(na),D=IS(),H=e3(p,{relative:v}),Q=d.toLowerCase()==="get"?"get":"post",Z=typeof p=="string"&&Od.test(p),J=Y=>{if(x&&x(Y),Y.defaultPrevented)return;Y.preventDefault();let de=Y.nativeEvent.submitter,F=(de==null?void 0:de.getAttribute("formmethod"))||d,U=()=>D(de||Y.currentTarget,{fetcherKey:u,method:F,navigate:s,replace:f,state:m,relative:v,preventScrollReset:b,viewTransition:g,defaultShouldRevalidate:_});q&&s!==!1?E.startTransition(()=>U()):U()};return E.createElement("form",{ref:K,method:Q,action:H,onSubmit:o?x:J,...k,"data-discover":!Z&&n==="render"?"true":void 0})});JS.displayName="Form";function FS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n0(n){let u=E.useContext(eu);return We(u,FS(n)),u}function $S(n,{target:u,replace:s,mask:o,state:f,preventScrollReset:m,relative:d,viewTransition:p,defaultShouldRevalidate:x,useTransitions:v}={}){let b=no(),g=ba(),_=dr(n,{relative:d});return E.useCallback(k=>{if(CS(k,u)){k.preventDefault();let K=s!==void 0?s:Bn(g)===Bn(_),q=()=>b(n,{replace:K,mask:o,state:f,preventScrollReset:m,relative:d,viewTransition:p,defaultShouldRevalidate:x});v?E.startTransition(()=>q()):q()}},[g,b,_,s,o,f,u,n,m,d,p,x,v])}function Z5(n){la(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 u=E.useRef(rd(n)),s=E.useRef(!1),o=ba(),f=E.useMemo(()=>jS(o.search,s.current?null:u.current),[o.search]),m=no(),d=E.useCallback((p,x)=>{const v=rd(typeof p=="function"?p(new URLSearchParams(f)):p);s.current=!0,m("?"+v,x)},[m,f]);return[f,d]}var PS=0,WS=()=>`__${String(++PS)}__`;function IS(){let{router:n}=n0("useSubmit"),{basename:u}=E.useContext(na),s=pS(),o=n.fetch,f=n.navigate;return E.useCallback(async(m,d={})=>{let{action:p,method:x,encType:v,formData:b,body:g}=RS(m,u);if(d.navigate===!1){let _=d.fetcherKey||WS();await o(_,s,d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:g,formMethod:d.method||x,formEncType:d.encType||v,flushSync:d.flushSync})}else await f(d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:g,formMethod:d.method||x,formEncType:d.encType||v,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[o,f,u,s])}function e3(n,{relative:u}={}){let{basename:s}=E.useContext(na),o=E.useContext(Oa);We(o,"useFormAction must be used inside a RouteContext");let[f]=o.matches.slice(-1),m={...dr(n||".",{relative:u})},d=ba();if(n==null){m.search=d.search;let p=new URLSearchParams(m.search),x=p.getAll("index");if(x.some(b=>b==="")){p.delete("index"),x.filter(g=>g).forEach(g=>p.append("index",g));let b=p.toString();m.search=b?`?${b}`:""}}return(!n||n===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(m.pathname=m.pathname==="/"?s:za([s,m.pathname])),Bn(m)}function t3(n,{relative:u}={}){let s=E.useContext(Jg);We(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=n0("useViewTransitionState"),f=dr(n,{relative:u});if(!s.isTransitioning)return!1;let m=vl(s.currentLocation.pathname,o)||s.currentLocation.pathname,d=vl(s.nextLocation.pathname,o)||s.nextLocation.pathname;return Ws(f.pathname,d)!=null||Ws(f.pathname,m)!=null}var a3=kg();const i0=E.createContext(void 0),au=n=>{const u=E.useContext(i0);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},l3=({client:n,children:u})=>(E.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(i0.Provider,{value:n,children:u})),n3={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)};var $l,jd,Tg,i3=(Tg=class{constructor(){he(this,$l,n3);he(this,jd,!1)}setTimeoutProvider(n){P(this,$l,n)}setTimeout(n,u){return T(this,$l).setTimeout(n,u)}clearTimeout(n){T(this,$l).clearTimeout(n)}setInterval(n,u){return T(this,$l).setInterval(n,u)}clearInterval(n){T(this,$l).clearInterval(n)}},$l=new WeakMap,jd=new WeakMap,Tg);const On=new i3;function u3(n){setTimeout(n,0)}const r3=typeof window>"u"||"Deno"in globalThis;function kt(){}function s3(n,u){return typeof n=="function"?n(u):n}function u0(n){return typeof n=="number"&&n>=0&&n!==1/0}function r0(n,u){return Math.max(n+(u||0)-Date.now(),0)}function Pe(n,u){return typeof n=="function"?n(u):n}function Jv(n,u){const{type:s="all",exact:o,fetchStatus:f,predicate:m,queryKey:d,stale:p}=n;if(d){if(o){if(u.queryHash!==Bd(d,u.options))return!1}else if(!Wi(u.queryKey,d))return!1}if(s!=="all"){const x=u.isActive();if(s==="active"&&!x||s==="inactive"&&x)return!1}return!(typeof p=="boolean"&&u.isStale()!==p||f&&f!==u.state.fetchStatus||m&&!m(u))}function Fv(n,u){const{exact:s,status:o,predicate:f,mutationKey:m}=n;if(m){if(!u.options.mutationKey)return!1;if(s){if(Qn(u.options.mutationKey)!==Qn(m))return!1}else if(!Wi(u.options.mutationKey,m))return!1}return!(o&&u.state.status!==o||f&&!f(u))}function Bd(n,u){return((u==null?void 0:u.queryKeyHashFn)||Qn)(n)}function Qn(n){return JSON.stringify(n,(u,s)=>sd(s)?Object.keys(s).sort().reduce((o,f)=>(o[f]=s[f],o),{}):s)}function Wi(n,u){if(n===u)return!0;if(typeof n!=typeof u)return!1;if(n&&u&&typeof n=="object"&&typeof u=="object"){if(Array.isArray(n)&&Array.isArray(u)){if(u.length>n.length)return!1;for(let o=0;o<u.length;o++)if(!Wi(n[o],u[o]))return!1;return!0}const s=Object.keys(u);for(const o of s)if(!Wi(n[o],u[o]))return!1;return!0}return!1}const o3=Object.prototype.hasOwnProperty;function s0(n,u,s=0){if(n===u)return n;if(s>500)return u;const o=$v(n)&&$v(u);if(!o&&!(sd(n)&&sd(u)))return u;const f=(o?n:Object.keys(n)).length,m=o?u:Object.keys(u),d=m.length,p=o?new Array(d):{};let x=0;for(let v=0;v<d;v++){const b=o?v:m[v],g=n[b],_=u[b];if(g===_){p[b]=g,(o?v<f:o3.call(n,b))&&x++;continue}if(g===null||_===null||typeof g!="object"||typeof _!="object"){p[b]=_;continue}const k=s0(g,_,s+1);p[b]=k,k===g&&x++}return f===d&&x===f?n:p}function $s(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const s in n)if(n[s]!==u[s])return!1;return!0}function $v(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function sd(n){if(!Pv(n))return!1;const u=Object.getPrototypeOf(n),s=u==null?void 0:u.constructor;if(s===void 0)return!0;if(typeof s!="function")return!1;const o=s.prototype;return!(!Pv(o)||!o.hasOwnProperty("isPrototypeOf")||u!==Object.prototype)}function Pv(n){return Object.prototype.toString.call(n)==="[object Object]"}function c3(n){return new Promise(u=>{On.setTimeout(u,n)})}function od(n,u,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,u):s.structuralSharing!==!1?s0(n,u):u}function f3(n,u,s=0){const o=[...n,u];return s&&o.length>s?o.slice(1):o}function d3(n,u,s=0){const o=[u,...n];return s&&o.length>s?o.slice(0,-1):o}const Qd=Symbol();function o0(n,u){return!n.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!n.queryFn||n.queryFn===Qd?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Gd(n,u){return typeof n=="function"?n(...u):!!n}function h3(n,u,s){let o=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=u()),o||(o=!0,f.aborted?s():f.addEventListener("abort",s,{once:!0})),f)}),n}let m3=()=>r3;const Yd=()=>m3();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,Pl,qi,Ng,y3=(Ng=class extends lu{constructor(){super();he(this,Rn);he(this,Pl);he(this,qi);P(this,qi,u=>{if(typeof window<"u"&&window.addEventListener){const s=()=>u();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){T(this,Pl)||this.setEventListener(T(this,qi))}onUnsubscribe(){var u;this.hasListeners()||((u=T(this,Pl))==null||u.call(this),P(this,Pl,void 0))}setEventListener(u){var s;P(this,qi,u),(s=T(this,Pl))==null||s.call(this),P(this,Pl,u(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(u){T(this,Rn)!==u&&(P(this,Rn,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(s=>{s(u)})}isFocused(){var u;return typeof T(this,Rn)=="boolean"?T(this,Rn):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},Rn=new WeakMap,Pl=new WeakMap,qi=new WeakMap,Ng);const Vd=new y3,p3=u3;function v3(){let n=[],u=0,s=p=>{p()},o=p=>{p()},f=p3;const m=p=>{u?n.push(p):f(()=>{s(p)})},d=()=>{const p=n;n=[],p.length&&f(()=>{o(()=>{p.forEach(x=>{s(x)})})})};return{batch:p=>{let x;u++;try{x=p()}finally{u--,u||d()}return x},batchCalls:p=>(...x)=>{m(()=>{p(...x)})},schedule:m,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{f=p}}}const dt=v3();var Li,Wl,Bi,wg,g3=(wg=class extends lu{constructor(){super();he(this,Li,!0);he(this,Wl);he(this,Bi);P(this,Bi,u=>{if(typeof window<"u"&&window.addEventListener){const s=()=>u(!0),o=()=>u(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",o)}}})}onSubscribe(){T(this,Wl)||this.setEventListener(T(this,Bi))}onUnsubscribe(){var u;this.hasListeners()||((u=T(this,Wl))==null||u.call(this),P(this,Wl,void 0))}setEventListener(u){var s;P(this,Bi,u),(s=T(this,Wl))==null||s.call(this),P(this,Wl,u(this.setOnline.bind(this)))}setOnline(u){T(this,Li)!==u&&(P(this,Li,u),this.listeners.forEach(s=>{s(u)}))}isOnline(){return T(this,Li)}},Li=new WeakMap,Wl=new WeakMap,Bi=new WeakMap,wg);const Is=new g3;function b3(n){return Math.min(1e3*2**n,3e4)}function c0(n){return(n??"online")==="online"?Is.isOnline():!0}var cd=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function f0(n){let u=!1,s=0,o,f="pending",m,d;const p=new Promise((Q,Z)=>{m=Q,d=Z});p.catch(kt);const x=()=>f!=="pending",v=Q=>{var Z;if(!x()){const J=new cd(Q);q(J),(Z=n.onCancel)==null||Z.call(n,J)}},b=()=>{u=!0},g=()=>{u=!1},_=()=>Vd.isFocused()&&(n.networkMode==="always"||Is.isOnline())&&n.canRun(),k=()=>c0(n.networkMode)&&n.canRun(),K=Q=>{x()||(o==null||o(),f="resolved",m(Q))},q=Q=>{x()||(o==null||o(),f="rejected",d(Q))},D=Q=>new Promise(Z=>{var J;o=Y=>{(x()||Q())&&Z(Y)},(J=n.onPause)==null||J.call(n)}).then(()=>{var Z;o=void 0,x()||(Z=n.onContinue)==null||Z.call(n)}),H=()=>{if(x())return;let Q;const Z=s===0?n.initialPromise:void 0;try{Q=Z??n.fn()}catch(J){Q=Promise.reject(J)}Promise.resolve(Q).then(K).catch(J=>{var I;if(x())return;const Y=n.retry??(Yd()?0:3),de=n.retryDelay??b3,F=typeof de=="function"?de(s,J):de,U=Y===!0||typeof Y=="number"&&s<Y||typeof Y=="function"&&Y(s,J);if(u||!U){q(J);return}s++,(I=n.onFail)==null||I.call(n,s,J),c3(F).then(()=>_()?void 0:D(_)).then(()=>{u?q(J):H()})})};return{promise:p,status:()=>f,cancel:v,continue:()=>(o==null||o(),p),cancelRetry:b,continueRetry:g,canStart:k,start:()=>(k()?H():D(k).then(H),p)}}var An,Cg,d0=(Cg=class{constructor(){he(this,An)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u0(this.gcTime)&&P(this,An,On.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Yd()?1/0:3e5))}clearGcTimeout(){T(this,An)!==void 0&&(On.clearTimeout(T(this,An)),P(this,An,void 0))}},An=new WeakMap,Cg);function x3(n){return{onFetch:(u,s)=>{var b,g,_,k,K;const o=u.options,f=(_=(g=(b=u.fetchOptions)==null?void 0:b.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,m=((k=u.state.data)==null?void 0:k.pages)||[],d=((K=u.state.data)==null?void 0:K.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const v=async()=>{let q=!1;const D=Z=>{h3(Z,()=>u.signal,()=>q=!0)},H=o0(u.options,u.fetchOptions),Q=async(Z,J,Y)=>{if(q)return Promise.reject(u.signal.reason);if(J==null&&Z.pages.length)return Promise.resolve(Z);const F=(()=>{const Ve={client:u.client,queryKey:u.queryKey,pageParam:J,direction:Y?"backward":"forward",meta:u.options.meta};return D(Ve),Ve})(),U=await H(F),{maxPages:I}=u.options,ae=Y?d3:f3;return{pages:ae(Z.pages,U,I),pageParams:ae(Z.pageParams,J,I)}};if(f&&m.length){const Z=f==="backward",J=Z?S3:Wv,Y={pages:m,pageParams:d};p=await Q(Y,J(o,Y),Z)}else{const Z=n??m.length;do{const J=x===0?d[0]??o.initialPageParam:Wv(o,p);if(x>0&&J==null)break;p=await Q(p,J),x++}while(x<Z)}return p};u.options.persister?u.fetchFn=()=>{var q,D;return(D=(q=u.options).persister)==null?void 0:D.call(q,v,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},s)}:u.fetchFn=v}}}function Wv(n,{pages:u,pageParams:s}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,s[o],s):void 0}function S3(n,{pages:u,pageParams:s}){var o;return u.length>0?(o=n.getPreviousPageParam)==null?void 0:o.call(n,u[0],u,s[0],s):void 0}var Qi,Mn,Gi,ma,Dn,ft,ir,Un,Ca,hl,jg,E3=(jg=class extends d0{constructor(u){super();he(this,Ca);he(this,Qi);he(this,Mn);he(this,Gi);he(this,ma);he(this,Dn);he(this,ft);he(this,ir);he(this,Un);P(this,Un,!1),P(this,ir,u.defaultOptions),this.setOptions(u.options),this.observers=[],P(this,Dn,u.client),P(this,ma,T(this,Dn).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,P(this,Mn,eg(this.options)),this.state=u.state??T(this,Mn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,Qi)}get promise(){var u;return(u=T(this,ft))==null?void 0:u.promise}setOptions(u){if(this.options={...T(this,ir),...u},u!=null&&u._type&&P(this,Qi,u._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=eg(this.options);s.data!==void 0&&(this.setState(Iv(s.data,s.dataUpdatedAt)),P(this,Mn,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,ma).remove(this)}setData(u,s){const o=od(this.state.data,u,this.options);return Se(this,Ca,hl).call(this,{data:o,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),o}setState(u){Se(this,Ca,hl).call(this,{type:"setState",state:u})}cancel(u){var o,f;const s=(o=T(this,ft))==null?void 0:o.promise;return(f=T(this,ft))==null||f.cancel(u),s?s.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,Mn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(u=>Pe(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>Pe(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!r0(this.state.dataUpdatedAt,u)}onFocus(){var u,s;(u=this.observers.find(o=>o.shouldFetchOnWindowFocus()))==null||u.refetch({cancelRefetch:!1}),(s=T(this,ft))==null||s.continue()}onOnline(){var u,s;(u=this.observers.find(o=>o.shouldFetchOnReconnect()))==null||u.refetch({cancelRefetch:!1}),(s=T(this,ft))==null||s.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),T(this,ma).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){const s=this.observers.indexOf(u);s!==-1&&(this.observers.splice(s,1),this.observers.length||(T(this,ft)&&(T(this,Un)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?T(this,ft).cancel({revert:!0}):T(this,ft).cancelRetry()),this.scheduleGc()),T(this,ma).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Ca,hl).call(this,{type:"invalidate"})}async fetch(u,s){var v,b,g,_,k,K,q,D,H,Q,Z,J;if(this.state.fetchStatus!=="idle"&&((v=T(this,ft))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(T(this,ft))return T(this,ft).continueRetry(),T(this,ft).promise}if(u&&this.setOptions(u),!this.options.queryFn){const Y=this.observers.find(de=>de.options.queryFn);Y&&this.setOptions(Y.options)}const o=new AbortController,f=Y=>{Object.defineProperty(Y,"signal",{enumerable:!0,get:()=>(P(this,Un,!0),o.signal)})},m=()=>{const Y=o0(this.options,s),F=(()=>{const U={client:T(this,Dn),queryKey:this.queryKey,meta:this.meta};return f(U),U})();return P(this,Un,!1),this.options.persister?this.options.persister(Y,F,this):Y(F)},p=(()=>{const Y={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:T(this,Dn),state:this.state,fetchFn:m};return f(Y),Y})();(b=T(this,Qi)==="infinite"?x3(this.options.pages):this.options.behavior)==null||b.onFetch(p,this),P(this,Gi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=p.fetchOptions)==null?void 0:g.meta))&&Se(this,Ca,hl).call(this,{type:"fetch",meta:(_=p.fetchOptions)==null?void 0:_.meta});const x=P(this,ft,f0({initialPromise:s==null?void 0:s.initialPromise,fn:p.fetchFn,onCancel:Y=>{Y instanceof cd&&Y.revert&&this.setState({...T(this,Gi),fetchStatus:"idle"}),o.abort()},onFail:(Y,de)=>{Se(this,Ca,hl).call(this,{type:"failed",failureCount:Y,error:de})},onPause:()=>{Se(this,Ca,hl).call(this,{type:"pause"})},onContinue:()=>{Se(this,Ca,hl).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const Y=await x.start();if(Y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Y),(K=(k=T(this,ma).config).onSuccess)==null||K.call(k,Y,this),(D=(q=T(this,ma).config).onSettled)==null||D.call(q,Y,this.state.error,this),Y}catch(Y){if(Y instanceof cd){if(Y.silent)return T(this,ft).promise;if(Y.revert){if(this.state.data===void 0)throw Y;return this.state.data}}throw Se(this,Ca,hl).call(this,{type:"error",error:Y}),(Q=(H=T(this,ma).config).onError)==null||Q.call(H,Y,this),(J=(Z=T(this,ma).config).onSettled)==null||J.call(Z,this.state.data,Y,this),Y}finally{T(this,ft)===x&&P(this,ft,void 0),this.scheduleGc()}}},Qi=new WeakMap,Mn=new WeakMap,Gi=new WeakMap,ma=new WeakMap,Dn=new WeakMap,ft=new WeakMap,ir=new WeakMap,Un=new WeakMap,Ca=new WeakSet,hl=function(u){const s=o=>{switch(u.type){case"failed":return{...o,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...h0(o.data,this.options),fetchMeta:u.meta??null};case"success":const f={...o,...Iv(u.data,u.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return P(this,Gi,u.manual?f:void 0),f;case"error":const m=u.error;return{...o,error:m,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...u.state}}};this.state=s(this.state),dt.batch(()=>{this.observers.slice().forEach(o=>{o.onQueryUpdate()}),T(this,ma).notify({query:this,type:"updated",action:u})})},jg);function h0(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:c0(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Iv(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function eg(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,s=u!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Dt,Re,ur,Ut,kn,Yi,ml,rr,Vi,Xi,Hn,qn,Il,Ki,qe,lr,fd,dd,hd,md,yd,pd,vd,gd,zg,_3=(zg=class extends lu{constructor(u,s){super();he(this,qe);he(this,Dt);he(this,Re);he(this,ur);he(this,Ut);he(this,kn);he(this,Yi);he(this,ml);he(this,rr);he(this,Vi);he(this,Xi);he(this,Hn);he(this,qn);he(this,Il);he(this,Ki,new Set);this.options=s,P(this,Dt,u),P(this,ml,null),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Re).addObserver(this),tg(T(this,Re),this.options)?Se(this,qe,lr).call(this):this.updateResult(),Se(this,qe,yd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bd(T(this,Re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bd(T(this,Re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,qe,pd).call(this),Se(this,qe,vd).call(this),T(this,Re).removeObserver(this)}setOptions(u){const s=this.options,o=T(this,Re);if(this.options=T(this,Dt).defaultQueryOptions(u),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pe(this.options.enabled,T(this,Re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,qe,gd).call(this),T(this,Re).setOptions(this.options),s._defaulted&&!$s(this.options,s)&&T(this,Dt).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Re),observer:this});const f=this.hasListeners();f&&ag(T(this,Re),o,this.options,s)&&Se(this,qe,lr).call(this),this.updateResult(),f&&(T(this,Re)!==o||Pe(this.options.enabled,T(this,Re))!==Pe(s.enabled,T(this,Re))||Pe(this.options.staleTime,T(this,Re))!==Pe(s.staleTime,T(this,Re)))&&Se(this,qe,dd).call(this);const m=Se(this,qe,hd).call(this);f&&(T(this,Re)!==o||Pe(this.options.enabled,T(this,Re))!==Pe(s.enabled,T(this,Re))||m!==T(this,Il))&&Se(this,qe,md).call(this,m)}getOptimisticResult(u){const s=T(this,Dt).getQueryCache().build(T(this,Dt),u),o=this.createResult(s,u);return $s(this.getCurrentResult(),o)||(P(this,Ut,o),P(this,Yi,this.options),P(this,kn,T(this,Re).state)),o}getCurrentResult(){return T(this,Ut)}trackResult(u,s){return new Proxy(u,{get:(o,f)=>(this.trackProp(f),s==null||s(f),Reflect.get(o,f))})}trackProp(u){T(this,Ki).add(u)}getCurrentQuery(){return T(this,Re)}refetch({...u}={}){return this.fetch({...u})}fetchOptimistic(u){const s=T(this,Dt).defaultQueryOptions(u),o=T(this,Dt).getQueryCache().build(T(this,Dt),s);let f=()=>{},m;const d=new Promise(p=>{m=p,f=T(this,Dt).getQueryCache().subscribe(x=>{x.type==="updated"&&x.query.queryHash===o.queryHash&&o.state.data!==void 0&&(f(),p(this.createResult(o,s)))})});return Promise.race([o.fetch().then(()=>{const p=this.createResult(o,s);return m==null||m(p),p}).finally(()=>{f()}),d])}fetch(u){return Se(this,qe,lr).call(this,{...u,cancelRefetch:u.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Ut)))}createResult(u,s){var de;const o=T(this,Re),f=this.options,m=T(this,Ut),d=T(this,kn),p=T(this,Yi),x=u!==o?u.state:T(this,ur),{state:v}=u;let b={...v},g=!1,_;if(s._optimisticResults){const F=this.hasListeners(),U=!F&&tg(u,s),I=F&&ag(u,o,s,f);(U||I)&&(b={...b,...h0(v.data,u.options)}),s._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:k,errorUpdatedAt:K,status:q}=b;_=b.data;let D=!1;if(s.placeholderData!==void 0&&_===void 0&&q==="pending"){let F;m!=null&&m.isPlaceholderData&&s.placeholderData===(p==null?void 0:p.placeholderData)?(F=m.data,D=!0):F=typeof s.placeholderData=="function"?s.placeholderData((de=T(this,Xi))==null?void 0:de.state.data,T(this,Xi)):s.placeholderData,F!==void 0&&(q="success",_=od(m==null?void 0:m.data,F,s),g=!0)}if(s.select&&_!==void 0&&!D)if(m&&_===(d==null?void 0:d.data)&&s.select===T(this,rr))_=T(this,Vi);else try{P(this,rr,s.select),_=s.select(_),_=od(m==null?void 0:m.data,_,s),P(this,Vi,_),P(this,ml,null)}catch(F){P(this,ml,F)}else _===void 0&&P(this,ml,null);T(this,ml)&&(k=T(this,ml),_=T(this,Vi),K=Date.now(),q="error",g=!1);const H=b.fetchStatus==="fetching",Q=q==="pending",Z=q==="error",J=Q&&H,Y=_!==void 0;return{status:q,fetchStatus:b.fetchStatus,isPending:Q,isSuccess:q==="success",isError:Z,isInitialLoading:J,isLoading:J,data:_,dataUpdatedAt:b.dataUpdatedAt,error:k,errorUpdatedAt:K,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:u.isFetched(),isFetchedAfterMount:b.dataUpdateCount>x.dataUpdateCount||b.errorUpdateCount>x.errorUpdateCount,isFetching:H,isRefetching:H&&!Q,isLoadingError:Z&&!Y,isPaused:b.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:Z&&Y,isStale:Xd(u,s),refetch:this.refetch,isEnabled:Pe(s.enabled,u)!==!1}}updateResult(){const u=T(this,Ut),s=this.createResult(T(this,Re),this.options);if(P(this,kn,T(this,Re).state),P(this,Yi,this.options),T(this,kn).data!==void 0&&P(this,Xi,T(this,Re)),$s(s,u))return;P(this,Ut,s);const f=(()=>{if(!u)return!0;const{notifyOnChangeProps:m}=this.options,d=typeof m=="function"?m():m;if(d==="all"||!d&&!T(this,Ki).size)return!0;const p=new Set(d??T(this,Ki));return this.options.throwOnError&&p.add("error"),Object.keys(T(this,Ut)).some(x=>{const v=x;return T(this,Ut)[v]!==u[v]&&p.has(v)})})();dt.batch(()=>{f&&this.listeners.forEach(m=>{m(T(this,Ut))}),T(this,Dt).getQueryCache().notify({query:T(this,Re),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,qe,yd).call(this)}},Dt=new WeakMap,Re=new WeakMap,ur=new WeakMap,Ut=new WeakMap,kn=new WeakMap,Yi=new WeakMap,ml=new WeakMap,rr=new WeakMap,Vi=new WeakMap,Xi=new WeakMap,Hn=new WeakMap,qn=new WeakMap,Il=new WeakMap,Ki=new WeakMap,qe=new WeakSet,lr=function(u){Se(this,qe,gd).call(this);let s=T(this,Re).fetch(this.options,u);return u!=null&&u.throwOnError||(s=s.catch(kt)),s},fd=function(u){return!Yd()&&Pe(this.options.enabled,T(this,Re))!==!1&&u0(u)},dd=function(){Se(this,qe,pd).call(this);const u=Pe(this.options.staleTime,T(this,Re));if(T(this,Ut).isStale||!Se(this,qe,fd).call(this,u))return;const s=r0(T(this,Ut).dataUpdatedAt,u)+1;P(this,Hn,On.setTimeout(()=>{T(this,Ut).isStale||this.updateResult()},s))},hd=function(){return Pe(this.options.refetchInterval,T(this,Re))??!1},md=function(u){Se(this,qe,vd).call(this),P(this,Il,u),!(T(this,Il)===0||!Se(this,qe,fd).call(this,T(this,Il)))&&P(this,qn,On.setInterval(()=>{(this.options.refetchIntervalInBackground||Vd.isFocused())&&Se(this,qe,lr).call(this)},T(this,Il)))},yd=function(){Se(this,qe,dd).call(this),Se(this,qe,md).call(this,Se(this,qe,hd).call(this))},pd=function(){T(this,Hn)!==void 0&&(On.clearTimeout(T(this,Hn)),P(this,Hn,void 0))},vd=function(){T(this,qn)!==void 0&&(On.clearInterval(T(this,qn)),P(this,qn,void 0))},gd=function(){const u=T(this,Dt).getQueryCache().build(T(this,Dt),this.options);if(u===T(this,Re))return;const s=T(this,Re);P(this,Re,u),P(this,ur,u.state),this.hasListeners()&&(s==null||s.removeObserver(this),u.addObserver(this))},zg);function T3(n,u){return Pe(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&Pe(u.retryOnMount,n)===!1)}function tg(n,u){return T3(n,u)||n.state.data!==void 0&&bd(n,u,u.refetchOnMount)}function bd(n,u,s){if(Pe(u.enabled,n)!==!1&&Pe(u.staleTime,n)!=="static"){const o=Pe(s,n);return o==="always"||o!==!1&&Xd(n,u)}return!1}function ag(n,u,s,o){return(n!==u||Pe(o.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Xd(n,s)}function Xd(n,u){return Pe(u.enabled,n)!==!1&&n.isStaleByTime(Pe(u.staleTime,n))}var sr,Ka,Ct,Ln,Za,Fl,Og,N3=(Og=class extends d0{constructor(u){super();he(this,Za);he(this,sr);he(this,Ka);he(this,Ct);he(this,Ln);P(this,sr,u.client),this.mutationId=u.mutationId,P(this,Ct,u.mutationCache),P(this,Ka,[]),this.state=u.state||m0(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){T(this,Ka).includes(u)||(T(this,Ka).push(u),this.clearGcTimeout(),T(this,Ct).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){P(this,Ka,T(this,Ka).filter(s=>s!==u)),this.scheduleGc(),T(this,Ct).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){T(this,Ka).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ct).remove(this))}continue(){var u;return((u=T(this,Ln))==null?void 0:u.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(u){var p,x,v,b,g,_,k,K,q,D,H,Q,Z,J,Y,de,F,U;const s=()=>{Se(this,Za,Fl).call(this,{type:"continue"})},o={client:T(this,sr),meta:this.options.meta,mutationKey:this.options.mutationKey},f=P(this,Ln,f0({fn:()=>this.options.mutationFn?this.options.mutationFn(u,o):Promise.reject(new Error("No mutationFn found")),onFail:(I,ae)=>{Se(this,Za,Fl).call(this,{type:"failed",failureCount:I,error:ae})},onPause:()=>{Se(this,Za,Fl).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ct).canRun(this)})),m=this.state.status==="pending",d=!f.canStart();try{if(m)s();else{Se(this,Za,Fl).call(this,{type:"pending",variables:u,isPaused:d}),T(this,Ct).config.onMutate&&await T(this,Ct).config.onMutate(u,this,o);const ae=await((x=(p=this.options).onMutate)==null?void 0:x.call(p,u,o));ae!==this.state.context&&Se(this,Za,Fl).call(this,{type:"pending",context:ae,variables:u,isPaused:d})}const I=await f.start();return await((b=(v=T(this,Ct).config).onSuccess)==null?void 0:b.call(v,I,u,this.state.context,this,o)),await((_=(g=this.options).onSuccess)==null?void 0:_.call(g,I,u,this.state.context,o)),await((K=(k=T(this,Ct).config).onSettled)==null?void 0:K.call(k,I,null,this.state.variables,this.state.context,this,o)),await((D=(q=this.options).onSettled)==null?void 0:D.call(q,I,null,u,this.state.context,o)),Se(this,Za,Fl).call(this,{type:"success",data:I}),I}catch(I){try{await((Q=(H=T(this,Ct).config).onError)==null?void 0:Q.call(H,I,u,this.state.context,this,o))}catch(ae){Promise.reject(ae)}try{await((J=(Z=this.options).onError)==null?void 0:J.call(Z,I,u,this.state.context,o))}catch(ae){Promise.reject(ae)}try{await((de=(Y=T(this,Ct).config).onSettled)==null?void 0:de.call(Y,void 0,I,this.state.variables,this.state.context,this,o))}catch(ae){Promise.reject(ae)}try{await((U=(F=this.options).onSettled)==null?void 0:U.call(F,void 0,I,u,this.state.context,o))}catch(ae){Promise.reject(ae)}throw Se(this,Za,Fl).call(this,{type:"error",error:I}),I}finally{T(this,Ln)===f&&P(this,Ln,void 0),T(this,Ct).runNext(this)}}},sr=new WeakMap,Ka=new WeakMap,Ct=new WeakMap,Ln=new WeakMap,Za=new WeakSet,Fl=function(u){const s=o=>{switch(u.type){case"failed":return{...o,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...o,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:u.error,failureCount:o.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=s(this.state),dt.batch(()=>{T(this,Ka).forEach(o=>{o.onMutationUpdate(u)}),T(this,Ct).notify({mutation:this,type:"updated",action:u})})},Og);function m0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yl,ja,or,Rg,w3=(Rg=class extends lu{constructor(u={}){super();he(this,yl);he(this,ja);he(this,or);this.config=u,P(this,yl,new Set),P(this,ja,new Map),P(this,or,0)}build(u,s,o){const f=new N3({client:u,mutationCache:this,mutationId:++Ys(this,or)._,options:u.defaultMutationOptions(s),state:o});return this.add(f),f}add(u){T(this,yl).add(u);const s=Xs(u);if(typeof s=="string"){const o=T(this,ja).get(s);o?o.push(u):T(this,ja).set(s,[u])}this.notify({type:"added",mutation:u})}remove(u){if(T(this,yl).delete(u)){const s=Xs(u);if(typeof s=="string"){const o=T(this,ja).get(s);if(o)if(o.length>1){const f=o.indexOf(u);f!==-1&&o.splice(f,1)}else o[0]===u&&T(this,ja).delete(s)}}this.notify({type:"removed",mutation:u})}canRun(u){var o;const s=Xs(u);if(typeof s=="string"){const f=(o=T(this,ja).get(s))==null?void 0:o.find(m=>m.state.status==="pending");return!f||f===u}else return!0}runNext(u){var o,f;const s=Xs(u);return typeof s=="string"?((f=(o=T(this,ja).get(s))==null?void 0:o.find(m=>m!==u&&m.state.isPaused))==null?void 0:f.continue())??Promise.resolve():Promise.resolve()}clear(){dt.batch(()=>{T(this,yl).forEach(u=>{this.notify({type:"removed",mutation:u})}),T(this,yl).clear(),T(this,ja).clear()})}getAll(){return Array.from(T(this,yl))}find(u){const s={exact:!0,...u};return this.getAll().find(o=>Fv(s,o))}findAll(u={}){return this.getAll().filter(s=>Fv(u,s))}notify(u){dt.batch(()=>{this.listeners.forEach(s=>{s(u)})})}resumePausedMutations(){const u=this.getAll().filter(s=>s.state.isPaused);return dt.batch(()=>Promise.all(u.map(s=>s.continue().catch(kt))))}},yl=new WeakMap,ja=new WeakMap,or=new WeakMap,Rg);function Xs(n){var u;return(u=n.options.scope)==null?void 0:u.id}var pl,en,jt,cr,Fa,nr,xd,Ag,C3=(Ag=class extends lu{constructor(s,o){super();he(this,Fa);he(this,pl);he(this,en);he(this,jt);he(this,cr);P(this,pl,s),this.setOptions(o),this.bindMethods(),Se(this,Fa,nr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const o=this.options;this.options=T(this,pl).defaultMutationOptions(s),$s(this.options,o)||T(this,pl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,jt),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&Qn(o.mutationKey)!==Qn(this.options.mutationKey)?this.reset():((f=T(this,jt))==null?void 0:f.state.status)==="pending"&&T(this,jt).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&T(this,jt)&&(T(this,jt).addObserver(this),Se(this,Fa,nr).call(this))}onUnsubscribe(){var s;this.hasListeners()||(s=T(this,jt))==null||s.removeObserver(this)}onMutationUpdate(s){Se(this,Fa,nr).call(this),Se(this,Fa,xd).call(this,s)}getCurrentResult(){return T(this,en)}reset(){var s;(s=T(this,jt))==null||s.removeObserver(this),P(this,jt,void 0),Se(this,Fa,nr).call(this),Se(this,Fa,xd).call(this)}mutate(s,o){var f;return P(this,cr,o),(f=T(this,jt))==null||f.removeObserver(this),P(this,jt,T(this,pl).getMutationCache().build(T(this,pl),this.options)),T(this,jt).addObserver(this),T(this,jt).execute(s)}},pl=new WeakMap,en=new WeakMap,jt=new WeakMap,cr=new WeakMap,Fa=new WeakSet,nr=function(){var o;const s=((o=T(this,jt))==null?void 0:o.state)??m0();P(this,en,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},xd=function(s){dt.batch(()=>{var f,m,d,p;const o=T(this,cr);if(o&&this.hasListeners()){const x=T(this,en).variables,v=T(this,en).context,b={client:T(this,pl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(f=o.onSuccess)==null||f.call(o,s.data,x,v,b)}catch(g){Promise.reject(g)}try{(m=o.onSettled)==null||m.call(o,s.data,null,x,v,b)}catch(g){Promise.reject(g)}}else if((s==null?void 0:s.type)==="error"){try{(d=o.onError)==null||d.call(o,s.error,x,v,b)}catch(g){Promise.reject(g)}try{(p=o.onSettled)==null||p.call(o,void 0,s.error,x,v,b)}catch(g){Promise.reject(g)}}}this.listeners.forEach(x=>{x(T(this,en))})})},Ag),Ja,Mg,j3=(Mg=class extends lu{constructor(u={}){super();he(this,Ja);this.config=u,P(this,Ja,new Map)}build(u,s,o){const f=s.queryKey,m=s.queryHash??Bd(f,s);let d=this.get(m);return d||(d=new E3({client:u,queryKey:f,queryHash:m,options:u.defaultQueryOptions(s),state:o,defaultOptions:u.getQueryDefaults(f)}),this.add(d)),d}add(u){T(this,Ja).has(u.queryHash)||(T(this,Ja).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){T(this,Ja).get(u.queryHash)===u&&(u.destroy(),T(this,Ja).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){dt.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return T(this,Ja).get(u)}getAll(){return[...T(this,Ja).values()]}find(u){const s={exact:!0,...u};return this.getAll().find(o=>Jv(s,o))}findAll(u={}){const s=this.getAll();return Object.keys(u).length>0?s.filter(o=>Jv(u,o)):s}notify(u){dt.batch(()=>{this.listeners.forEach(s=>{s(u)})})}onFocus(){dt.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){dt.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},Ja=new WeakMap,Mg),et,tn,an,Zi,Ji,ln,Fi,$i,Dg,z3=(Dg=class{constructor(n={}){he(this,et);he(this,tn);he(this,an);he(this,Zi);he(this,Ji);he(this,ln);he(this,Fi);he(this,$i);P(this,et,n.queryCache||new j3),P(this,tn,n.mutationCache||new w3),P(this,an,n.defaultOptions||{}),P(this,Zi,new Map),P(this,Ji,new Map),P(this,ln,0)}mount(){Ys(this,ln)._++,T(this,ln)===1&&(P(this,Fi,Vd.subscribe(async n=>{n&&(await this.resumePausedMutations(),T(this,et).onFocus())})),P(this,$i,Is.subscribe(async n=>{n&&(await this.resumePausedMutations(),T(this,et).onOnline())})))}unmount(){var n,u;Ys(this,ln)._--,T(this,ln)===0&&((n=T(this,Fi))==null||n.call(this),P(this,Fi,void 0),(u=T(this,$i))==null||u.call(this),P(this,$i,void 0))}isFetching(n){return T(this,et).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return T(this,tn).findAll({...n,status:"pending"}).length}getQueryData(n){var s;const u=this.defaultQueryOptions({queryKey:n});return(s=T(this,et).get(u.queryHash))==null?void 0:s.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),s=T(this,et).build(this,u),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Pe(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return T(this,et).findAll(n).map(({queryKey:u,state:s})=>[u,s.data])}setQueryData(n,u,s){var d;const o=this.defaultQueryOptions({queryKey:n}),f=(d=T(this,et).get(o.queryHash))==null?void 0:d.state.data,m=s3(u,f);if(m!==void 0)return T(this,et).build(this,o).setData(m,{...s,manual:!0})}setQueriesData(n,u,s){return dt.batch(()=>T(this,et).findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,s)]))}getQueryState(n){var s;const u=this.defaultQueryOptions({queryKey:n});return(s=T(this,et).get(u.queryHash))==null?void 0:s.state}removeQueries(n){const u=T(this,et);dt.batch(()=>{u.findAll(n).forEach(s=>{u.remove(s)})})}resetQueries(n,u){const s=T(this,et);return dt.batch(()=>{const o=s.findAll(n),f=new Set(o);return o.forEach(m=>{m.reset()}),this.refetchQueries({type:"active",predicate:m=>f.has(m)},u)})}cancelQueries(n,u={}){const s={revert:!0,...u},o=dt.batch(()=>T(this,et).findAll(n).map(f=>f.cancel(s)));return Promise.all(o).then(kt).catch(kt)}invalidateQueries(n,u={}){return dt.batch(()=>(T(this,et).findAll(n).forEach(s=>{s.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},u)))}refetchQueries(n,u={}){const s={...u,cancelRefetch:u.cancelRefetch??!0},o=dt.batch(()=>T(this,et).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let m=f.fetch(void 0,s);return s.throwOnError||(m=m.catch(kt)),f.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(o).then(kt)}async query(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const s=T(this,et).build(this,u),o=s.isStaleByTime(Pe(u.staleTime,s))?await s.fetch(u):s.state.data,f=u.select;return f?f(o):o}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const s=T(this,et).build(this,u);return s.isStaleByTime(Pe(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(kt).catch(kt)}infiniteQuery(n){return n._type="infinite",this.query(n)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(kt).catch(kt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Is.isOnline()?T(this,tn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,et)}getMutationCache(){return T(this,tn)}getDefaultOptions(){return T(this,an)}setDefaultOptions(n){P(this,an,n)}setQueryDefaults(n,u){T(this,Zi).set(Qn(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...T(this,Zi).values()],s={};return u.forEach(o=>{Wi(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,u){T(this,Ji).set(Qn(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...T(this,Ji).values()],s={};return u.forEach(o=>{Wi(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const u={...T(this,an).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Bd(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Qd&&(u.enabled=!1),u}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...T(this,an).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){T(this,et).clear(),T(this,tn).clear()}},et=new WeakMap,tn=new WeakMap,an=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,ln=new WeakMap,Fi=new WeakMap,$i=new WeakMap,Dg);const y0=E.createContext(!1),O3=()=>E.useContext(y0);y0.Provider;function R3(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const A3=E.createContext(R3()),M3=()=>E.useContext(A3),D3=(n,u,s)=>{const o=s!=null&&s.state.error&&typeof n.throwOnError=="function"?Gd(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||o)&&(u.isReset()||(n.retryOnMount=!1))},U3=n=>{E.useEffect(()=>{n.clearReset()},[n])},k3=({result:n,errorResetBoundary:u,throwOnError:s,query:o,suspense:f})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(f&&n.data===void 0||Gd(s,[n.error,o])),H3=n=>{if(n.suspense){const s=f=>f==="static"?f:Math.max(f??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...f)=>s(o(...f)):s(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},q3=(n,u)=>(n==null?void 0:n.suspense)&&u.isPending,L3=(n,u,s)=>u.fetchOptimistic(n).catch(()=>{s.clearReset()});function B3(n,u,s){const o=O3(),f=M3(),m=au(),d=m.defaultQueryOptions(n),p=m.getQueryCache().get(d.queryHash),x=n.subscribed!==!1;d._optimisticResults=o?"isRestoring":x?"optimistic":void 0,H3(d),D3(d,f,p),U3(f);const[v]=E.useState(()=>new u(m,d)),b=v.getOptimisticResult(d),g=!o&&x;if(E.useSyncExternalStore(E.useCallback(_=>{const k=g?v.subscribe(dt.batchCalls(_)):kt;return v.updateResult(),k},[v,g]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),E.useEffect(()=>{v.setOptions(d)},[d,v]),q3(d,b))throw L3(d,v,f);if(k3({result:b,errorResetBoundary:f,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw b.error;return d.notifyOnChangeProps?b:v.trackResult(b)}function pa(n,u){return B3(n,_3)}function Sd(n,u){const s=au(),[o]=E.useState(()=>new C3(s,n));E.useEffect(()=>{o.setOptions(n)},[o,n]);const f=E.useSyncExternalStore(E.useCallback(d=>o.subscribe(dt.batchCalls(d)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m=E.useCallback((...d)=>{o.mutate(d[0],d[1]).catch(kt)},[o]);if(f.error&&Gd(o.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:m,mutateAsync:f.mutate}}const Q3="modulepreload",G3=function(n){return"/"+n},lg={},va=function(u,s,o){let f=Promise.resolve();if(s&&s.length>0){let d=function(v){return Promise.all(v.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),x=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));f=d(s.map(v=>{if(v=G3(v),v in lg)return;lg[v]=!0;const b=v.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${g}`))return;const _=document.createElement("link");if(_.rel=b?"stylesheet":Q3,b||(_.as="script"),_.crossOrigin="",_.href=v,x&&_.setAttribute("nonce",x),document.head.appendChild(_),b)return new Promise((k,K)=>{_.addEventListener("load",k),_.addEventListener("error",()=>K(new Error(`Unable to preload CSS for ${v}`)))})}))}function m(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"&&m(p.reason);return u().catch(m)})};/**
* @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=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),p0=(...n)=>n.filter((u,s,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===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 V3={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 X3=E.forwardRef(({color:n="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:f="",children:m,iconNode:d,...p},x)=>E.createElement("svg",{ref:x,...V3,width:u,height:u,stroke:n,strokeWidth:o?Number(s)*24/Number(u):s,className:p0("lucide",f),...p},[...d.map(([v,b])=>E.createElement(v,b)),...Array.isArray(m)?m:[m]]));/**
* @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,u)=>{const s=E.forwardRef(({className:o,...f},m)=>E.createElement(X3,{ref:m,iconNode:u,className:p0(`lucide-${Y3(n)}`,o),...f}));return s.displayName=`${n}`,s};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const K3=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Z3=pe("Award",K3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J3=[["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"}]],F3=pe("BookOpen",J3);/**
* @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 $3=[["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"}]],P3=pe("Briefcase",$3);/**
* @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:"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"}]],I3=pe("Building2",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 eE=[["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"}]],Kd=pe("CalendarDays",eE);/**
* @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:"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"}]],v0=pe("ChartColumn",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:"m6 9 6 6 6-6",key:"qrunsl"}]],lE=pe("ChevronDown",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 nE=[["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"}]],iE=pe("CircleAlert",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 uE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],rE=pe("CircleCheck",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 sE=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],g0=pe("ClipboardCheck",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:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],cE=pe("Cloud",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:"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"}]],dE=pe("CodeXml",fE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hE=[["path",{d:"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"}]],mE=pe("Download",hE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yE=[["path",{d:"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"}]],pE=pe("Dumbbell",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 vE=[["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"}]],gE=pe("FileBadge",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 bE=[["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"}]],b0=pe("FileText",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 xE=[["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"}]],SE=pe("FlaskConical",xE);/**
* @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 EE=[["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"}]],Zd=pe("GraduationCap",EE);/**
* @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:"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"}]],TE=pe("HeartHandshake",_E);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const NE=[["rect",{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"}]],wE=pe("Image",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 CE=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],jE=pe("Inbox",CE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],OE=pe("Info",zE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const RE=[["path",{d:"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"}]],AE=pe("Languages",RE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ME=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],DE=pe("LoaderCircle",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=[["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"}]],kE=pe("LogIn",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:"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"}]],qE=pe("LogOut",HE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LE=[["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"}]],BE=pe("Menu",LE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QE=[["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"}]],GE=pe("MicVocal",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 YE=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],VE=pe("Moon",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 XE=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],KE=pe("Network",XE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZE=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],JE=pe("Palette",ZE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FE=[["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"}]],Jd=pe("Paperclip",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 $E=[["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"}]],PE=pe("PenLine",$E);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WE=[["path",{d:"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"}]],IE=pe("Pencil",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 e_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],t_=pe("Plus",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 a_=[["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"}]],l_=pe("Rocket",a_);/**
* @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 n_=[["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"}]],x0=pe("Rows3",n_);/**
* @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 i_=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],S0=pe("ScrollText",i_);/**
* @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 u_=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],r_=pe("Search",u_);/**
* @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 s_=[["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"}]],E0=pe("Shapes",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 o_=[["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"}]],c_=pe("ShieldAlert",o_);/**
* @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 f_=[["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"}]],_0=pe("ShieldCheck",f_);/**
* @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 d_=[["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"}]],T0=pe("SlidersHorizontal",d_);/**
* @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 h_=[["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"}]],m_=pe("Star",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 y_=[["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"}]],p_=pe("Sun",y_);/**
* @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 v_=[["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"}]],N0=pe("Tag",v_);/**
* @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 g_=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ed=pe("Trash2",g_);/**
* @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 b_=[["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"}]],x_=pe("Trophy",b_);/**
* @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 S_=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],w0=pe("User",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 E_=[["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"}]],__=pe("Users",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 T_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],C0=pe("X",T_),Fd="fp-token";function aa(){return localStorage.getItem(Fd)}function $d(n){localStorage.setItem(Fd,n)}function Pd(){localStorage.removeItem(Fd)}async function Wd(n,u,s){const o=s||xa(),m=await(await fetch(o+"/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n,password:u,device_name:"桌面应用"})})).json();if(!m.ok)throw new Error(m.error||"登录失败");return $d(m.data.token),m.data}async function Id(n,u,s,o){const f=o||xa(),d=await(await fetch(f+"/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n,password:u,invite_code:s,device_name:"桌面应用"})})).json();if(!d.ok)throw new Error(d.error||"注册失败");return $d(d.data.token),d.data}async function j0(n){const u=n||xa(),o=await(await fetch(u+"/auth/me",{headers:{Authorization:"Bearer "+aa()}})).json();if(!o.ok)throw new Error(o.error||"会话失效");return o.data}const z0="fp-server-url";function xa(){return localStorage.getItem(z0)||"https://footpr.linyux.cn"}function O0(n){localStorage.setItem(z0,n.replace(/\/+$/,""))}async function R0(n){try{const u=aa();if(!u)return;const s=n||xa();await fetch(s+"/auth/logout",{method:"POST",headers:{Authorization:"Bearer "+u}})}catch{}}class _d extends Error{constructor(u){super(u),this.name="AuthError"}}async function Te(n,u){const s=aa();if(!s)throw new _d("请先登录");const o=xa(),f=await fetch(o+"/api/"+n,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+s},body:JSON.stringify(u??{})});if(f.status===401)throw Pd(),window.dispatchEvent(new CustomEvent("fp-auth-required")),new _d("登录已过期,请重新登录");const m=await f.json();if(!f.ok||!m.ok)throw new Error(m.error||"HTTP "+f.status);return m.data}const N_=()=>Te("app_info"),w_=()=>Te("sync_status"),ro=()=>Te("type_list"),C_=n=>Te("type_upsert",n),j_=n=>Te("type_delete",{id:n}),A0=n=>Te("taxonomy_list",{kind:n}),z_=n=>Te("taxonomy_upsert",n),O_=n=>Te("taxonomy_delete",{id:n}),eh=()=>Te("dimension_list"),R_=n=>Te("dimension_upsert",n),A_=n=>Te("dimension_delete",{id:n}),M0=(n={})=>Te("footprint_list",{query:n}),th=n=>Te("footprint_get",{id:n}),D0=n=>Te("footprint_upsert",{item:n}),M_=n=>Te("footprint_delete",{id:n}),U0=(n={})=>Te("timeline",{query:n}),D_=n=>Te("stats_overview",{year:n}),U_=()=>Te("metric_list"),k_=n=>Te("metric_upsert",n),H_=n=>Te("metric_delete",{key:n}),q_=()=>Te("grades_overview"),L_=n=>Te("semester_upsert",n),B_=n=>Te("semester_delete",{id:n}),Q_=n=>Te("course_upsert",n),G_=n=>Te("course_delete",{id:n}),Y_=n=>Te("band_upsert",n),V_=n=>Te("band_delete",{id:n}),k0=n=>Te("attachment_list",{owner_id:n}),H0=n=>Te("attachment_delete",{id:n}),eo=n=>Te("attachment_read",{id:n});async function Td(n,u,s){const o=new URLSearchParams({owner:String(n),name:u.name,mime:u.type||"application/octet-stream"}),f=await fetch(xa()+"/sync/attachment/raw?"+o,{method:"PUT",headers:{authorization:"Bearer "+aa(),"content-type":u.type||"application/octet-stream"},body:u}),m=await f.json().catch(()=>({ok:!1,error:"HTTP "+f.status}));if(!m.ok)throw new Error(m.error||"上传失败");const d=m.data.item;if(s)try{await Te("attachment_set_thumb",{id:d.id,thumb_b64:s})}catch{}return d}async function q0(n){var f;const u=await fetch(xa()+"/api/attachment_download",{method:"POST",headers:{"content-type":"application/json",authorization:"Bearer "+aa()},body:JSON.stringify({id:n})});if(!u.ok){const m=await u.json().catch(()=>null);throw new Error((m==null?void 0:m.error)||"下载失败")}const s=decodeURIComponent(u.headers.get("x-file-name")||((f=(u.headers.get("content-disposition")||"").match(/UTF-8''([^;]+)/))==null?void 0:f[1])||"file"),o=u.headers.get("content-type")||void 0;return{blob:await u.blob(),file_name:s,mime:o}}const L0=n=>Te("attachment_thumb",{id:n}),X_=()=>Te("view_list"),K_=n=>Te("view_upsert",n),Z_=n=>Te("view_delete",{id:n});async function nu(n,u,s){const o=await fetch((s||xa())+n,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+aa()},body:JSON.stringify(u??{})}),f=await o.json().catch(()=>({ok:!1,error:"HTTP "+o.status}));if(!f.ok)throw new Error(f.error||"请求失败");return f.data}async function B0(n,u){const s=await fetch((u||xa())+n,{headers:{Authorization:"Bearer "+aa()}}),o=await s.json().catch(()=>({ok:!1,error:"HTTP "+s.status}));if(!o.ok)throw new Error(o.error||"请求失败");return o.data}const J_=n=>B0("/admin/invites",n),F_=n=>B0("/admin/users",n),$_=(n,u)=>nu("/admin/invites/generate",{count:n},u),P_=(n,u,s)=>nu("/admin/invites/create",{code:n,remark:u},s),W_=(n,u,s)=>nu("/admin/invites/update",{id:n,...u},s),I_=n=>nu("/admin/demo-rebuild",{},n),e4=(n,u)=>nu("/admin/users/delete",{user_id:n},u),t4=(n,u)=>nu("/admin/invites/delete",{id:n},u),a4=()=>Te("gpa_settings_get",{}),l4=n=>Te("gpa_settings_upsert",{weights:n}),n4=()=>Te("profile_get",{}),i4=n=>Te("profile_upsert",{content:n});async function u4(n){const u=await new Promise((f,m)=>{const d=new FileReader;d.onload=()=>f(String(d.result||"").split(",")[1]||""),d.onerror=()=>m(new Error("读取文件失败")),d.readAsDataURL(n)}),o=await(await fetch(xa()+"/api/profile_photo",{method:"POST",headers:{"content-type":"application/json",authorization:"Bearer "+aa()},body:JSON.stringify({data_b64:u,file_name:n.name,mime:n.type||"image/png"})})).json().catch(()=>null);if(!(o!=null&&o.ok))throw new Error((o==null?void 0:o.error)||"证件照上传失败");return o.data.url}const r4=Object.freeze(Object.defineProperty({__proto__:null,AuthError:_d,adminCreateInvite:P_,adminDeleteInvite:t4,adminDeleteUser:e4,adminDemoRebuild:I_,adminGenerateInvites:$_,adminListInvites:J_,adminListUsers:F_,adminUpdateInvite:W_,appInfo:N_,attachmentDelete:H0,attachmentDownload:q0,attachmentList:k0,attachmentRead:eo,attachmentThumb:L0,attachmentUploadRaw:Td,bandDelete:V_,bandUpsert:Y_,clearToken:Pd,courseDelete:G_,courseUpsert:Q_,deleteDimension:A_,deleteTaxonomy:O_,deleteType:j_,footprintDelete:M_,footprintGet:th,footprintList:M0,footprintUpsert:D0,getServerUrl:xa,getToken:aa,gpaSettingsGet:a4,gpaSettingsUpsert:l4,gradesOverview:q_,listDimensions:eh,listTaxonomy:A0,listTypes:ro,metricDelete:H_,metricList:U_,metricUpsert:k_,profileGet:n4,profilePhotoUpload:u4,profileUpsert:i4,semesterDelete:B_,semesterUpsert:L_,serverLogin:Wd,serverLogout:R0,serverMe:j0,serverRegister:Id,setServerUrl:O0,setToken:$d,statsOverview:D_,syncStatus:w_,timeline:U0,upsertDimension:R_,upsertTaxonomy:z_,upsertType:C_,viewDelete:Z_,viewList:X_,viewUpsert:K_},Symbol.toStringTag,{value:"Module"}));function Q0(n){var u,s,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(u=0;u<f;u++)n[u]&&(s=Q0(n[u]))&&(o&&(o+=" "),o+=s)}else for(s in n)n[s]&&(o&&(o+=" "),o+=s);return o}function G0(){for(var n,u,s=0,o="",f=arguments.length;s<f;s++)(n=arguments[s])&&(u=Q0(n))&&(o&&(o+=" "),o+=u);return o}const ng=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ig=G0,s4=(n,u)=>s=>{var o;if((u==null?void 0:u.variants)==null)return ig(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:f,defaultVariants:m}=u,d=Object.keys(f).map(v=>{const b=s==null?void 0:s[v],g=m==null?void 0:m[v];if(b===null)return null;const _=ng(b)||ng(g);return f[v][_]}),p=s&&Object.entries(s).reduce((v,b)=>{let[g,_]=b;return _===void 0||(v[g]=_),v},{}),x=u==null||(o=u.compoundVariants)===null||o===void 0?void 0:o.reduce((v,b)=>{let{class:g,className:_,...k}=b;return Object.entries(k).every(K=>{let[q,D]=K;return Array.isArray(D)?D.includes({...m,...p}[q]):{...m,...p}[q]===D})?[...v,g,_]:v},[]);return ig(n,d,x,s==null?void 0:s.class,s==null?void 0:s.className)},o4=(n,u)=>{const s=new Array(n.length+u.length);for(let o=0;o<n.length;o++)s[o]=n[o];for(let o=0;o<u.length;o++)s[n.length+o]=u[o];return s},c4=(n,u)=>({classGroupId:n,validator:u}),Y0=(n=new Map,u=null,s)=>({nextPart:n,validators:u,classGroupId:s}),to="-",ug=[],f4="arbitrary..",d4=n=>{const u=m4(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return h4(d);const p=d.split(to),x=p[0]===""&&p.length>1?1:0;return V0(p,x,u)},getConflictingClassGroupIds:(d,p)=>{if(p){const x=o[d],v=s[d];return x?v?o4(v,x):x:v||ug}return s[d]||ug}}},V0=(n,u,s)=>{if(n.length-u===0)return s.classGroupId;const f=n[u],m=s.nextPart.get(f);if(m){const v=V0(n,u+1,m);if(v)return v}const d=s.validators;if(d===null)return;const p=u===0?n.join(to):n.slice(u).join(to),x=d.length;for(let v=0;v<x;v++){const b=d[v];if(b.validator(p))return b.classGroupId}},h4=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const u=n.slice(1,-1),s=u.indexOf(":"),o=u.slice(0,s);return o?f4+o:void 0})(),m4=n=>{const{theme:u,classGroups:s}=n;return y4(s,u)},y4=(n,u)=>{const s=Y0();for(const o in n){const f=n[o];ah(f,s,o,u)}return s},ah=(n,u,s,o)=>{const f=n.length;for(let m=0;m<f;m++){const d=n[m];p4(d,u,s,o)}},p4=(n,u,s,o)=>{if(typeof n=="string"){v4(n,u,s);return}if(typeof n=="function"){g4(n,u,s,o);return}b4(n,u,s,o)},v4=(n,u,s)=>{const o=n===""?u:X0(u,n);o.classGroupId=s},g4=(n,u,s,o)=>{if(x4(n)){ah(n(o),u,s,o);return}u.validators===null&&(u.validators=[]),u.validators.push(c4(s,n))},b4=(n,u,s,o)=>{const f=Object.entries(n),m=f.length;for(let d=0;d<m;d++){const[p,x]=f[d];ah(x,X0(u,p),s,o)}},X0=(n,u)=>{let s=n;const o=u.split(to),f=o.length;for(let m=0;m<f;m++){const d=o[m];let p=s.nextPart.get(d);p||(p=Y0(),s.nextPart.set(d,p)),s=p}return s},x4=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,S4=n=>{if(n<1)return{get:()=>{},set:()=>{}};let u=0,s=Object.create(null),o=Object.create(null);const f=(m,d)=>{s[m]=d,u++,u>n&&(u=0,o=s,s=Object.create(null))};return{get(m){let d=s[m];if(d!==void 0)return d;if((d=o[m])!==void 0)return f(m,d),d},set(m,d){m in s?s[m]=d:f(m,d)}}},Nd="!",rg=":",E4=[],sg=(n,u,s,o,f)=>({modifiers:n,hasImportantModifier:u,baseClassName:s,maybePostfixModifierPosition:o,isExternal:f}),_4=n=>{const{prefix:u,experimentalParseClassName:s}=n;let o=f=>{const m=[];let d=0,p=0,x=0,v;const b=f.length;for(let q=0;q<b;q++){const D=f[q];if(d===0&&p===0){if(D===rg){m.push(f.slice(x,q)),x=q+1;continue}if(D==="/"){v=q;continue}}D==="["?d++:D==="]"?d--:D==="("?p++:D===")"&&p--}const g=m.length===0?f:f.slice(x);let _=g,k=!1;g.endsWith(Nd)?(_=g.slice(0,-1),k=!0):g.startsWith(Nd)&&(_=g.slice(1),k=!0);const K=v&&v>x?v-x:void 0;return sg(m,k,_,K)};if(u){const f=u+rg,m=o;o=d=>d.startsWith(f)?m(d.slice(f.length)):sg(E4,!1,d,void 0,!0)}if(s){const f=o;o=m=>s({className:m,parseClassName:f})}return o},T4=n=>{const u=new Map;return n.orderSensitiveModifiers.forEach((s,o)=>{u.set(s,1e6+o)}),s=>{const o=[];let f=[];for(let m=0;m<s.length;m++){const d=s[m],p=d[0]==="[",x=u.has(d);p||x?(f.length>0&&(f.sort(),o.push(...f),f=[]),o.push(d)):f.push(d)}return f.length>0&&(f.sort(),o.push(...f)),o}},N4=n=>({cache:S4(n.cacheSize),parseClassName:_4(n),sortModifiers:T4(n),postfixLookupClassGroupIds:w4(n),...d4(n)}),w4=n=>{const u=Object.create(null),s=n.postfixLookupClassGroups;if(s)for(let o=0;o<s.length;o++)u[s[o]]=!0;return u},C4=/\s+/,j4=(n,u)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:f,sortModifiers:m,postfixLookupClassGroupIds:d}=u,p=[],x=n.trim().split(C4);let v="";for(let b=x.length-1;b>=0;b-=1){const g=x[b],{isExternal:_,modifiers:k,hasImportantModifier:K,baseClassName:q,maybePostfixModifierPosition:D}=s(g);if(_){v=g+(v.length>0?" "+v:v);continue}let H=!!D,Q;if(H){const F=q.substring(0,D);Q=o(F);const U=Q&&d[Q]?o(q):void 0;U&&U!==Q&&(Q=U,H=!1)}else Q=o(q);if(!Q){if(!H){v=g+(v.length>0?" "+v:v);continue}if(Q=o(q),!Q){v=g+(v.length>0?" "+v:v);continue}H=!1}const Z=k.length===0?"":k.length===1?k[0]:m(k).join(":"),J=K?Z+Nd:Z,Y=J+Q;if(p.indexOf(Y)>-1)continue;p.push(Y);const de=f(Q,H);for(let F=0;F<de.length;++F){const U=de[F];p.push(J+U)}v=g+(v.length>0?" "+v:v)}return v},z4=(...n)=>{let u=0,s,o,f="";for(;u<n.length;)(s=n[u++])&&(o=K0(s))&&(f&&(f+=" "),f+=o);return f},K0=n=>{if(typeof n=="string")return n;let u,s="";for(let o=0;o<n.length;o++)n[o]&&(u=K0(n[o]))&&(s&&(s+=" "),s+=u);return s},O4=(n,...u)=>{let s,o,f,m;const d=x=>{const v=u.reduce((b,g)=>g(b),n());return s=N4(v),o=s.cache.get,f=s.cache.set,m=p,p(x)},p=x=>{const v=o(x);if(v)return v;const b=j4(x,s);return f(x,b),b};return m=d,(...x)=>m(z4(...x))},R4=[],ct=n=>{const u=s=>s[n]||R4;return u.isThemeGetter=!0,u.themeKey=n,u},Z0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A4=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D4=/\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$/,U4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,k4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,H4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jl=n=>A4.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Xa=n=>!!n&&Number.isInteger(Number(n)),ld=n=>n.endsWith("%")&&_e(n.slice(0,-1)),fl=n=>M4.test(n),F0=()=>!0,q4=n=>D4.test(n)&&!U4.test(n),lh=()=>!1,L4=n=>k4.test(n),B4=n=>H4.test(n),Q4=n=>!ne(n)&&!ue(n),G4=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)),Y4=n=>nn(n,W0,lh),ne=n=>Z0.test(n),zn=n=>nn(n,I0,q4),og=n=>nn(n,P4,_e),V4=n=>nn(n,t1,F0),X4=n=>nn(n,e1,lh),cg=n=>nn(n,$0,lh),K4=n=>nn(n,P0,B4),Ks=n=>nn(n,a1,L4),ue=n=>J0.test(n),ar=n=>Vn(n,I0),Z4=n=>Vn(n,e1),fg=n=>Vn(n,$0),J4=n=>Vn(n,W0),F4=n=>Vn(n,P0),Zs=n=>Vn(n,a1,!0),$4=n=>Vn(n,t1,!0),nn=(n,u,s)=>{const o=Z0.exec(n);return o?o[1]?u(o[1]):s(o[2]):!1},Vn=(n,u,s=!1)=>{const o=J0.exec(n);return o?o[1]?u(o[1]):s:!1},$0=n=>n==="position"||n==="percentage",P0=n=>n==="image"||n==="url",W0=n=>n==="length"||n==="size"||n==="bg-size",I0=n=>n==="length",P4=n=>n==="number",e1=n=>n==="family-name",t1=n=>n==="number"||n==="weight",a1=n=>n==="shadow",W4=()=>{const n=ct("color"),u=ct("font"),s=ct("text"),o=ct("font-weight"),f=ct("tracking"),m=ct("leading"),d=ct("breakpoint"),p=ct("container"),x=ct("spacing"),v=ct("radius"),b=ct("shadow"),g=ct("inset-shadow"),_=ct("text-shadow"),k=ct("drop-shadow"),K=ct("blur"),q=ct("perspective"),D=ct("aspect"),H=ct("ease"),Q=ct("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...J(),ue,ne],de=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],U=()=>[ue,ne,x],I=()=>[Jl,"full","auto",...U()],ae=()=>[Xa,"none","subgrid",ue,ne],Ve=()=>["auto",{span:["full",Xa,ue,ne]},Xa,ue,ne],Fe=()=>[Xa,"auto",ue,ne],ie=()=>["auto","min","max","fr",ue,ne],Ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...U()],ee=()=>[Jl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],R=()=>[p,Jl,"screen","full","dvw","lvw","svw","min","max","fit",...U()],le=()=>[Jl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],X=()=>[n,ue,ne],ke=()=>[...J(),fg,cg,{position:[ue,ne]}],Nt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ra=()=>["auto","cover","contain",J4,Y4,{size:[ue,ne]}],w=()=>[ld,ar,zn],G=()=>["","none","full",v,ue,ne],W=()=>["",_e,ar,zn],ce=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[_e,ld,fg,cg],Ae=()=>["","none",K,ue,ne],se=()=>["none",_e,ue,ne],ye=()=>["none",_e,ue,ne],Vt=()=>[_e,ue,ne],gl=()=>[Jl,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fl],breakpoint:[fl],color:[F0],container:[fl],"drop-shadow":[fl],ease:["in","out","in-out"],font:[Q4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fl],shadow:[fl],spacing:["px",_e],text:[fl],"text-shadow":[fl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jl,ne,ue,D]}],container:["container"],"container-type":[{"@container":["","normal","size",ue,ne]}],"container-named":[G4],columns:[{columns:[_e,"auto",ne,ue,p]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Xa,"auto",ue,ne]}],basis:[{basis:[Jl,"full","auto",p,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Jl,"auto","initial","none",ne]}],grow:[{grow:["",_e,ue,ne]}],shrink:[{shrink:["",_e,ue,ne]}],order:[{order:[Xa,"first","last","none",ue,ne]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:Ve()}],"col-start":[{"col-start":Fe()}],"col-end":[{"col-end":Fe()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:Ve()}],"row-start":[{"row-start":Fe()}],"row-end":[{"row-end":Fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Ne(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...Ne()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ne()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...R()]}],"min-inline-size":[{"min-inline":["auto",...R()]}],"max-inline-size":[{"max-inline":["none",...R()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[p,"screen",...ee()]}],"min-w":[{"min-w":[p,"screen","none",...ee()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh","none",...ee()]}],"font-size":[{text:["base",s,ar,zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,$4,V4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ld,ne]}],"font-family":[{font:[Z4,X4,u]}],"font-features":[{"font-features":[ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[f,ue,ne]}],"line-clamp":[{"line-clamp":[_e,"none",ue,og]}],leading:[{leading:["none",m,...U()]}],"list-image":[{"list-image":["none",ue,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ue,zn]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[_e,"auto",ue,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"tab-size":[{tab:[Xa,ue,ne]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:Nt()}],"bg-size":[{bg:Ra()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xa,ue,ne],radial:["",ue,ne],conic:["",Xa,ue,ne]},F4,K4]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:w()}],"gradient-via-pos":[{via:w()}],"gradient-to-pos":[{to:w()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-bs":[{"border-bs":X()}],"border-color-be":[{"border-be":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ue,ne]}],"outline-w":[{outline:["",_e,ar,zn]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","inner","none",b,Zs,Ks]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",g,Zs,Ks]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[_e,zn]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",_,Zs,Ks]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[_e,ue,ne]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[ue,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":J()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:Nt()}],"mask-size":[{mask:Ra()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,ne]}],filter:[{filter:["","none",ue,ne]}],blur:[{blur:Ae()}],brightness:[{brightness:[_e,ue,ne]}],contrast:[{contrast:[_e,ue,ne]}],"drop-shadow":[{"drop-shadow":["","none",k,Zs,Ks]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",_e,ue,ne]}],"hue-rotate":[{"hue-rotate":[_e,ue,ne]}],invert:[{invert:["",_e,ue,ne]}],saturate:[{saturate:[_e,ue,ne]}],sepia:[{sepia:["",_e,ue,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ne]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ue,ne]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ue,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ue,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ue,ne]}],"backdrop-invert":[{"backdrop-invert":["",_e,ue,ne]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ue,ne]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ue,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ue,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ue,ne]}],ease:[{ease:["linear","initial",H,ue,ne]}],delay:[{delay:[_e,ue,ne]}],animate:[{animate:["none",Q,ue,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,ue,ne]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:Vt()}],"skew-x":[{"skew-x":Vt()}],"skew-y":[{"skew-y":Vt()}],transform:[{transform:[ue,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:gl()}],"translate-x":[{"translate-x":gl()}],"translate-y":[{"translate-y":gl()}],"translate-z":[{"translate-z":gl()}],"translate-none":["translate-none"],zoom:[{zoom:[Xa,ue,ne]}],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":X()}],"scrollbar-track-color":[{"scrollbar-track":X()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,ne]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[_e,ar,zn,og]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},I4=O4(W4);function ga(...n){return I4(G0(n))}const e5=s4("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium select-none transition-all duration-150 active:scale-[0.97] disabled:pointer-events-none disabled:opacity-45",{variants:{variant:{primary:"bg-gradient-to-b from-[#3d51e0] to-brand text-white shadow-[0_1px_2px_rgba(48,86,211,.25)] hover:brightness-110 active:brightness-95",secondary:"bg-surface text-ink-1 border border-line shadow-card hover:bg-surface-3 hover:border-line-strong hover:shadow-[0_2px_6px_rgba(0,0,0,.06)]",ghost:"text-ink-2 hover:bg-surface-3 hover:text-ink-1",subtle:"bg-brand-subtle text-brand-text hover:brightness-[0.97]",danger:"bg-danger text-white hover:brightness-110","danger-ghost":"text-danger hover:bg-danger-subtle"},size:{sm:"h-7 px-2.5 text-[12px]",md:"h-8 px-3 text-[13px]",lg:"h-9 px-4 text-sm",icon:"h-8 w-8 p-0","icon-sm":"h-7 w-7 p-0"}},defaultVariants:{variant:"secondary",size:"md"}}),zt=E.forwardRef(function({className:u,variant:s,size:o,...f},m){return h.jsx("button",{ref:m,className:ga(e5({variant:s,size:o}),u),...f})}),l1="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:ring-[1.5px] focus:ring-brand/15 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed",nt=E.forwardRef(function({className:u,...s},o){return h.jsx("input",{ref:o,className:ga(l1,"h-8",u),...s})}),wd=E.forwardRef(function({className:u,...s},o){return h.jsx("textarea",{ref:o,className:ga(l1,"py-2 min-h-[72px] resize-y leading-relaxed",u),...s})});function De({label:n,required:u,hint:s,className:o,children:f}){return h.jsxs("div",{className:ga("flex flex-col gap-1.5",o),children:[h.jsxs("label",{className:"text-[12px] font-medium text-ink-2",children:[n,u&&h.jsx("span",{className:"text-danger ml-0.5",children:"*"}),s&&h.jsx("span",{className:"text-ink-3 font-normal ml-2",children:s})]}),f]})}const ya=E.forwardRef(function({className:u,options:s,children:o,...f},m){return h.jsxs("div",{className:ga("relative",u?u.split(" ").filter(d=>/^w-|^min-w|^flex-/.test(d)).join(" "):""),children:[h.jsx("select",{ref:m,className:ga("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:ring-[1.5px] focus:ring-brand/15 focus:outline-none disabled:opacity-50",u),...f,children:s?s.map(d=>h.jsx("option",{value:d.value,children:d.label},d.value)):o}),h.jsx(lE,{size:14,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-ink-3"})]})});function Ii({className:n,color:u,...s}){return h.jsx("span",{className:ga("inline-flex items-center gap-1 rounded-sm border px-1.5 py-px text-[11px] leading-[18px] font-medium whitespace-nowrap",n),style:u?{color:u,borderColor:u+"44",backgroundColor:u+"14"}:void 0,...s})}function t5({className:n,...u}){return h.jsx("span",{className:ga("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),...u})}function so({open:n,onClose:u,title:s,width:o=560,children:f,footer:m}){return E.useEffect(()=>{if(!n)return;const d=p=>{p.key==="Escape"&&u()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[n,u]),n?a3.createPortal(h.jsxs("div",{className:"fixed inset-0 z-50 flex justify-center overflow-y-auto p-3 sm:p-6",children:[h.jsx("div",{className:"fixed inset-0 bg-black/45",onClick:u}),h.jsxs("div",{className:"animate-in relative my-auto w-full rounded-lg border border-line bg-surface shadow-pop",style:{maxWidth:o},role:"dialog",children:[h.jsxs("div",{className:"flex h-12 items-center justify-between border-b border-line px-4",children:[h.jsx("div",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-ink-1",children:s}),h.jsx(zt,{variant:"ghost",size:"icon-sm",onClick:u,"aria-label":"关闭",children:h.jsx(C0,{size:15})})]}),h.jsx("div",{className:"max-h-[70vh] overflow-y-auto px-3 py-3 sm:px-4 sm:py-4",children:f}),m&&h.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:m})]})]}),document.body):null}function a5({icon:n,title:u,description:s,action:o}){return h.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-16 text-center",children:[h.jsxs("div",{className:"relative flex size-14 items-center justify-center rounded-full border border-line bg-surface-2 text-ink-3 shadow-card",children:[h.jsx("div",{className:"absolute inset-0 rounded-full ring-1 ring-brand/5","aria-hidden":!0}),n??h.jsx(jE,{size:26,strokeWidth:1.5})]}),h.jsx("div",{className:"mt-1 text-[13px] font-medium text-ink-2",children:u}),s&&h.jsx("div",{className:"max-w-[360px] text-[12px] text-ink-3",children:s}),o&&h.jsx("div",{className:"mt-2",children:o})]})}const n1=E.createContext(()=>{});function oo(){return E.useContext(n1)}const l5={success:h.jsx(rE,{size:15,className:"text-success"}),error:h.jsx(iE,{size:15,className:"text-danger"}),info:h.jsx(OE,{size:15,className:"text-brand"})};function n5({children:n}){const[u,s]=E.useState([]),o=E.useRef(0),f=E.useCallback((m,d)=>{const p=++o.current;s(x=>[...x,{id:p,kind:m,text:d}]),setTimeout(()=>s(x=>x.filter(v=>v.id!==p)),3200)},[]);return h.jsxs(n1.Provider,{value:f,children:[n,h.jsx("div",{className:"pointer-events-none fixed bottom-5 right-5 z-[60] flex flex-col gap-2",children:u.map(m=>h.jsxs("div",{className:ga("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:[l5[m.kind],m.text]},m.id))})]})}function i5({open:n,title:u,content:s,onCancel:o,onOk:f,loading:m}){return h.jsx(so,{open:n,onClose:o,title:u,width:420,footer:h.jsxs(h.Fragment,{children:[h.jsx(zt,{variant:"secondary",onClick:o,children:"取消"}),h.jsx(zt,{variant:"danger",onClick:f,disabled:m,children:"确认"})]}),children:h.jsx("p",{className:"text-[13px] text-ink-2",children:s??"该操作不可撤销,请确认。"})})}function u5({size:n=44}){return h.jsxs("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[h.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"6",fill:"var(--brand)"}),h.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:"0.95",transform:"rotate(-18 11 10)"}),h.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:"0.7"})]})}function r5({open:n,onClose:u,defaultUrl:s}){const o=au(),f=oo(),[m,d]=E.useState("login"),[p,x]=E.useState(s||"https://footpr.linyux.cn"),[v,b]=E.useState(""),[g,_]=E.useState(""),[k,K]=E.useState(""),[q,D]=E.useState(""),[H,Q]=E.useState(!1),Z=async()=>{if(!v.trim()||!g){D("请填写账号与密码");return}let J=p.trim();J&&!J.startsWith("http")&&(J="https://"+J),Q(!0),D("");try{if(m==="login")await Wd(v.trim(),g,J);else{if(!k.trim())throw new Error("请填写邀请码");await Id(v.trim(),g,k.trim(),J)}o.invalidateQueries(),f("success",m==="login"?"已登录 · 同步已开启":"已注册登录 · 同步已开启"),u(),setTimeout(()=>window.location.reload(),300)}catch(Y){D(Y.message)}finally{Q(!1)}};return n?h.jsx("div",{className:"fixed inset-0 z-[70] flex items-center justify-center bg-bg/95",children:h.jsxs("div",{className:"w-full max-w-[380px] rounded-lg border border-line bg-surface p-6 shadow-pop",children:[h.jsxs("div",{className:"flex flex-col items-center gap-1.5 pb-5",children:[h.jsx(u5,{}),h.jsx("div",{className:"text-[17px] font-semibold tracking-tight text-ink-1",children:"足迹"}),h.jsx("div",{className:"text-[10px] font-medium tracking-[0.2em] text-ink-3",children:"FOOTPRINTS"})]}),h.jsxs("div",{className:"mb-4 flex rounded-md border border-line bg-surface-2 p-0.5 text-[12.5px]",children:[h.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(m==="login"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{d("login"),D("")},children:"登录"}),h.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(m==="register"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{d("register"),D("")},children:"注册"})]}),h.jsxs("div",{className:"flex flex-col gap-3",children:[h.jsx(De,{label:"服务器地址",hint:"与网页版同一账号体系",children:h.jsx(nt,{value:p,onChange:J=>x(J.target.value),placeholder:"https://footpr.linyux.cn"})}),h.jsx(De,{label:"用户名",required:!0,children:h.jsx(nt,{value:v,onChange:J=>b(J.target.value),placeholder:"3-32 位字母数字-_"})}),h.jsx(De,{label:"密码",required:!0,children:h.jsx(nt,{type:"password",value:g,onChange:J=>_(J.target.value),placeholder:"至少 8 位"})}),m==="register"&&h.jsx(De,{label:"邀请码",required:!0,hint:"向管理员索取",children:h.jsx(nt,{value:k,onChange:J=>K(J.target.value),placeholder:"邀请码"})}),q&&h.jsx("div",{className:"text-[12px] text-danger",children:q}),h.jsx(zt,{variant:"primary",size:"lg",onClick:()=>void Z(),disabled:H,children:H?"请稍候…":m==="login"?"登录并同步":"注册并同步"}),h.jsx("p",{className:"text-center text-[11px] text-ink-3",children:"登录后本机数据将多端同步"})]})]})}):null}const s5=[{section:"工作区",items:[{to:"/timeline",label:"时间线",icon:Kd},{to:"/records",label:"记录",icon:x0},{to:"/grades",label:"成绩",icon:Zd},{to:"/dashboard",label:"统计",icon:v0}]},{section:"个人",items:[{to:"/profile",label:"个人信息",icon:w0},{to:"/resume",label:"我的简历",icon:S0},{to:"/assessment",label:"综合测评",icon:g0}]},{section:"配置",items:[{to:"/admin",label:"管理",icon:_0},{to:"/types",label:"记录类型",icon:E0},{to:"/taxonomy",label:"字典与维度",icon:T0}]}];function o5(){return h.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[h.jsx("defs",{children:h.jsxs("linearGradient",{id:"lg",x1:"0",y1:"0",x2:"0",y2:"26",children:[h.jsx("stop",{stopColor:"#4359e8"}),h.jsx("stop",{offset:"1",stopColor:"#2a3ab8"})]})}),h.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"7",fill:"url(#lg)"}),h.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:".95",transform:"rotate(-18 11 10)"}),h.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:".7"})]})}function c5({open:n,onClose:u}){const s=au(),f=pa({queryKey:["me",aa()??""],refetchOnMount:"always",queryFn:()=>j0(),enabled:!!aa(),retry:0}).data??null,[m,d]=E.useState(!1);return h.jsxs("aside",{className:ga("no-print","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:[h.jsx(r5,{open:m,onClose:()=>d(!1),defaultUrl:"https://footpr.linyux.cn"}),h.jsxs("div",{className:"flex h-[60px] items-center gap-3 border-b border-line px-5",children:[h.jsx(o5,{}),h.jsxs("div",{className:"leading-tight",children:[h.jsx("div",{className:"text-[15px] font-bold tracking-tight text-ink-1",children:"足迹"}),h.jsx("div",{className:"text-[9px] font-medium tracking-[0.24em] text-ink-3",children:"FOOTPRINTS"})]})]}),h.jsx("nav",{className:"flex-1 overflow-y-auto px-2.5 py-4",children:s5.map(p=>h.jsxs("div",{className:"mb-5",children:[h.jsx("div",{className:"px-2.5 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-ink-3",children:p.section}),h.jsx("div",{className:"flex flex-col gap-0.5",children:p.items.map(x=>h.jsxs(l0,{to:x.to,onClick:u,className:({isActive:v})=>ga("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:[h.jsx(x.icon,{size:16,strokeWidth:1.8}),x.label]},x.to))})]},p.section))}),h.jsx("div",{className:"border-t border-line px-3 py-3",children:aa()&&f?h.jsxs("div",{className:"rounded-lg border border-line bg-surface-2 px-3 py-2.5 shadow-card",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[h.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-gradient-to-b from-[#4359e8] to-[#2a3ab8] text-[10px] font-bold text-white shadow-card",children:f.username.charAt(0).toUpperCase()}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"truncate text-[12px] font-semibold text-ink-1",title:f.username,children:f.username}),f.is_admin&&h.jsx("div",{className:"text-[10px] text-brand-text",children:"管理员"})]})]}),h.jsx("button",{className:"shrink-0 rounded p-1 text-ink-3 transition-colors hover:bg-surface-3 hover:text-danger",title:"退出登录",onClick:()=>{R0(),Pd(),s.clear(),window.location.reload()},children:h.jsx(qE,{size:13})})]}),h.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[10px] text-success",children:[h.jsx(cE,{size:10}),"云端同步已开启"]})]}):h.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:[h.jsx(kE,{size:14}),"登录我的档案"]})})]})}const f5={"/timeline":{title:"时间线",sub:"按学年与月份回顾全部足迹"},"/records":{title:"记录",sub:"全部足迹的检索与管理"},"/grades":{title:"成绩",sub:"学年学科成绩 · 梯度与总览"},"/dashboard":{title:"统计",sub:"量化个人成长收获"},"/types":{title:"记录类型",sub:"类型与字段模板管理"},"/taxonomy":{title:"字典与维度",sub:"级别、角色与成长维度"},"/profile":{title:"个人信息",sub:"学籍与联系方式维护"},"/resume":{title:"我的简历",sub:"模板配置 · Word 导出"},"/assessment":{title:"综合测评",sub:"学年素质测评与材料导出"},"/admin":{title:"管理",sub:"用户与邀请码 · 数据维护"}};function d5({onMenu:n}){const{pathname:u}=ba(),s=no(),[o,f]=E.useState(""),[m,d]=E.useState(document.documentElement.classList.contains("dark")),p=f5[u]??{title:""},v={"/timeline":Kd,"/records":x0,"/grades":Zd,"/dashboard":v0,"/types":E0,"/taxonomy":T0,"/profile":w0,"/resume":S0,"/assessment":g0,"/admin":_0}[u],b=()=>{const g=!m;d(g),document.documentElement.classList.toggle("dark",g),localStorage.setItem("fp-theme",g?"dark":"light"),window.dispatchEvent(new CustomEvent("fp-theme-change"))};return h.jsxs("header",{className:"no-print header-glass sticky top-0 z-20 flex h-14 shrink-0 items-center gap-2.5 border-b border-line px-3 sm:gap-4 sm:px-5",children:[h.jsx(zt,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:n,"aria-label":"打开导航",children:h.jsx(BE,{size:17})}),h.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[v&&h.jsx("span",{className:"hidden size-8 shrink-0 items-center justify-center rounded-lg bg-brand-subtle text-brand-text sm:flex","aria-hidden":!0,children:h.jsx(v,{size:16,strokeWidth:2})}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("h1",{className:"truncate text-[15px] font-semibold leading-tight text-ink-1",children:p.title}),p.sub&&h.jsx("p",{className:"hidden truncate text-[11px] leading-tight text-ink-3 sm:block sm:mt-[1px]",children:p.sub})]})]}),h.jsxs("div",{className:"relative ml-auto hidden w-[240px] md:block lg:w-[280px]",children:[h.jsx(r_,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-ink-3"}),h.jsx(nt,{className:"pl-8",placeholder:"搜索标题、内容、结果、标签",value:o,onChange:g=>f(g.target.value),onKeyDown:g=>{g.key==="Enter"&&o.trim()&&s("/records?q="+encodeURIComponent(o.trim()))}})]}),h.jsx(zt,{variant:"ghost",size:"icon",onClick:b,"aria-label":"切换主题",children:m?h.jsx(p_,{size:15}):h.jsx(VE,{size:15})}),h.jsxs(zt,{variant:"primary",onClick:()=>s("/records?new=1"),"aria-label":"新建记录",children:[h.jsx(t_,{size:14}),h.jsx("span",{className:"hidden sm:inline",children:"新建记录"})]})]})}function h5(){return h.jsxs("svg",{width:"44",height:"44",viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[h.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"6",fill:"var(--brand)"}),h.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:"0.95",transform:"rotate(-18 11 10)"}),h.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:"0.7"})]})}function m5(){const[n,u]=E.useState("login"),[s,o]=E.useState(""),[f,m]=E.useState(""),[d,p]=E.useState(""),[x,v]=E.useState(""),[b,g]=E.useState(!1),_="__TAURI_INTERNALS__"in window,[k,K]=E.useState(xa()),q=H=>{K(H),O0(H)},D=async()=>{if(!s.trim()||!f){v("请填写账号与密码");return}g(!0),v("");try{if(n==="login")await Wd(s.trim(),f,k);else{if(!d.trim())throw new Error("请填写邀请码");await Id(s.trim(),f,d.trim(),k)}setTimeout(()=>window.location.reload(),200)}catch(H){v(H.message)}finally{g(!1)}};return h.jsx("div",{className:"flex h-full items-center justify-center bg-bg px-4",children:h.jsxs("div",{className:"w-full max-w-[380px] rounded-lg border border-line bg-surface p-6 shadow-pop",children:[h.jsxs("div",{className:"flex flex-col items-center gap-1.5 pb-5",children:[h.jsx(h5,{}),h.jsx("div",{className:"text-[18px] font-semibold tracking-tight text-ink-1",children:"足迹"}),h.jsx("div",{className:"text-[11px] font-medium tracking-[0.2em] text-ink-3",children:"FOOTPRINTS"})]}),h.jsxs("div",{className:"mb-4 flex rounded-md border border-line bg-surface-2 p-0.5 text-[12.5px]",children:[h.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:()=>{u("login"),v("")},children:"登录"}),h.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:()=>{u("register"),v("")},children:"注册"})]}),h.jsxs("div",{className:"flex flex-col gap-3",children:[_&&h.jsx(De,{label:"服务器地址",hint:"默认即可",children:h.jsx(nt,{value:k,onChange:H=>q(H.target.value),placeholder:"https://footpr.linyux.cn"})}),h.jsx(De,{label:"用户名",required:!0,children:h.jsx(nt,{value:s,onChange:H=>o(H.target.value),placeholder:"3-32 位字母数字-_",onKeyDown:H=>{H.key==="Enter"&&D()}})}),h.jsx(De,{label:"密码",required:!0,children:h.jsx(nt,{type:"password",value:f,onChange:H=>m(H.target.value),placeholder:"至少 8 位",onKeyDown:H=>{H.key==="Enter"&&D()}})}),n==="register"&&h.jsx(De,{label:"邀请码",required:!0,hint:"向管理员索取",children:h.jsx(nt,{value:d,onChange:H=>p(H.target.value),placeholder:"邀请码",onKeyDown:H=>{H.key==="Enter"&&D()}})}),x&&h.jsx("div",{className:"text-[12px] text-danger",children:x}),h.jsx(zt,{variant:"primary",size:"lg",onClick:()=>void D(),disabled:b,children:b?"请稍候…":n==="login"?"进入我的档案":"创建我的档案"}),h.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:()=>{o("demo"),m("demo1234")},children:"演示账号:demo / demo1234(点击填充)"})]})]})})}function y5(){const[n,u]=E.useState(()=>!!aa()),[s,o]=E.useState(!1);return E.useEffect(()=>{const f=()=>u(!1);return window.addEventListener("fp-auth-required",f),()=>window.removeEventListener("fp-auth-required",f)},[]),n?h.jsx(n5,{children:h.jsxs("div",{className:"flex h-full",children:[s&&h.jsx("div",{className:"fixed inset-0 z-30 bg-black/45 lg:hidden",onClick:()=>o(!1),"aria-hidden":!0}),h.jsx(c5,{open:s,onClose:()=>o(!1)}),h.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[h.jsx(d5,{onMenu:()=>o(!0)}),h.jsx("main",{className:"app-scroll min-h-0 flex-1 overflow-y-auto",children:h.jsx(xS,{})})]})]})}):h.jsx(m5,{})}const Gn="inline-flex h-[22px] min-w-[52px] items-center justify-center gap-1 rounded-sm border px-2 text-[11.5px] font-medium whitespace-nowrap",dg={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 i1({status:n}){const u=dg[n]??dg.draft;return h.jsx("span",{className:Gn+" border-transparent",style:{color:u.color,backgroundColor:u.bg},children:u.label})}const p5={国际级:"#7c3aed",国家级:"#dc2626",省市级:"#ea580c",区县级:"#2563eb",校级:"#16a34a",院级:"#0891b2"};function u1({level:n}){return n?h.jsx(Ii,{color:p5[n]??"var(--text-3)",className:Gn,children:n}):null}const v5={特等奖:"#b45309",一等奖:"#b45309",二等奖:"#ea580c",三等奖:"#2563eb",优秀奖:"#64748b"};function r1({grade:n}){return n?h.jsx(Ii,{color:v5[n]??"var(--text-3)",className:Gn,children:n}):null}function s1({role:n}){return n?h.jsx(t5,{className:Gn,children:n}):null}function o1(){return h.jsx(Ii,{color:"var(--danger)",className:Gn,children:"负面"})}const F5=[{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:"体育"}],g5={tag:N0,"graduation-cap":Zd,trophy:x_,"flask-conical":SE,briefcase:P3,network:KE,"heart-handshake":TE,palette:JE,award:Z3,"file-badge":gE,star:m_,"shield-alert":c_,"book-open":F3,"code-2":dE,languages:AE,"mic-2":GE,"pen-line":PE,rocket:l_,users:__,"building-2":I3,dumbbell:pE};function b5({name:n,color:u,size:s=14,className:o}){const f=g5[n]??N0;return h.jsx(f,{size:s,color:u,className:o,strokeWidth:2})}const hg=new Map,x5=25*1024*1024;async function S5(n){const u=hg.get(n.id);if(u)return u;const s=await eo(n.id);return(n.size??0)<=x5&&hg.set(n.id,s),s}function mg(n){try{const u=new DOMParser().parseFromString(n,"text/html");for(const s of Array.from(u.querySelectorAll("script,style,iframe,frame,object,embed,link,meta,form,input,button,base")))s.remove();for(const s of Array.from(u.querySelectorAll("*")))for(const o of Array.from(s.attributes)){const f=o.name.toLowerCase(),m=o.value.trim().toLowerCase();(f.startsWith("on")||(f==="href"||f==="src"||f==="xlink:href")&&(m.startsWith("javascript:")||m.startsWith("data:")&&!m.startsWith("data:image/")))&&s.removeAttribute(o.name)}return u.body.innerHTML}catch{return n}}function yg(n){const u=(n.mime||"").toLowerCase(),s=(n.file_name.split(".").pop()||"").toLowerCase();return u.startsWith("image/")||["png","jpg","jpeg","gif","webp","bmp","svg"].includes(s)?"image":u==="application/pdf"||s==="pdf"?"pdf":s==="docx"||u.includes("wordprocessingml")?"docx":s==="xlsx"||s==="xls"||u.includes("spreadsheetml")||u==="application/vnd.ms-excel"?"xlsx":u.startsWith("audio/")||["mp3","wav","m4a","flac","ogg"].includes(s)?"audio":u.startsWith("video/")||["mp4","mov","webm","mkv"].includes(s)?"video":u.startsWith("text/")||["txt","md","csv","json","log","srt"].includes(s)?"text":"other"}function E5(n){return Uint8Array.from(atob(n),u=>u.charCodeAt(0))}const _5={image:"图片",pdf:"PDF 文档",text:"文本文件",audio:"音频",video:"视频",docx:"Word 文档(.docx)",xlsx:"Excel 表格(.xlsx)",other:"该类型暂不支持在线预览"};function c1({att:n,onClose:u}){const s=oo(),[o,f]=E.useState(!1),[m,d]=E.useState(""),[p,x]=E.useState(null);E.useEffect(()=>{if(!n){x(null),d("");return}let b=!1;const g=[];return f(!0),d(""),x(null),(async()=>{try{const _=yg(n),k=n.remote_url||null;if(k&&(_==="image"||_==="pdf"||_==="audio"||_==="video")){x({kind:_,objectUrl:k}),f(!1);return}let K=n.mime??void 0,q;if(k)q=new Uint8Array(await(await fetch(k)).arrayBuffer());else{const D=await S5(n);K=D.mime,q=E5(D.data_b64)}if(b)return;if(_==="text"){const D=new TextDecoder().decode(q);x({kind:_,text:D.length>4e5?D.slice(0,4e5)+`
…(已截断)`:D})}else if(_==="docx"){const H=(await(await va(()=>import("./mammoth.browser-BtNFbb7q.js").then(Q=>Q.m),[])).convertToHtml({arrayBuffer:q.buffer})).value;if(b)return;x({kind:_,html:mg(H)})}else if(_==="xlsx"){const D=await va(()=>import("./xlsx-CbTSpprj.js"),[]),H=D.read(q,{type:"array"}),Q=D.utils.sheet_to_html(H.Sheets[H.SheetNames[0]]);if(b)return;x({kind:_,html:mg(Q)})}else{const D=URL.createObjectURL(new Blob([q],{type:K||"application/octet-stream"}));if(b){URL.revokeObjectURL(D);return}g.push(D),x({kind:_,objectUrl:D})}}catch(_){b||d(_.message||"预览加载失败")}finally{b||f(!1)}})(),()=>{b=!0,g.forEach(_=>URL.revokeObjectURL(_))}},[n==null?void 0:n.id,n==null?void 0:n.file_name,n==null?void 0:n.remote_url]);const v=n?yg(n):"other";return h.jsxs(so,{open:!!n,onClose:u,width:v==="image"||v==="pdf"?880:680,title:(n?"附件预览 · "+n.file_name:"附件预览")+(n?"("+_5[v]+")":""),footer:n?h.jsxs(h.Fragment,{children:[h.jsxs(zt,{variant:"secondary",className:"mr-auto",onClick:()=>{(async()=>{try{const{blob:b,file_name:g}=await q0(n.id),_=URL.createObjectURL(b),k=document.createElement("a");k.href=_,k.download=g,k.click(),setTimeout(()=>URL.revokeObjectURL(_),6e4),s("success","已下载:"+g)}catch(b){s("error","下载失败:"+b.message)}})()},children:[h.jsx(mE,{size:13})," 下载"]}),h.jsx(zt,{variant:"primary",onClick:u,children:"关闭"})]}):null,children:[o&&h.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-[13px] text-ink-3",children:[h.jsx(DE,{className:"animate-spin",size:16})," 正在加载预览…"]}),!o&&!!m&&h.jsx("div",{className:"py-10 text-center text-[13px] text-danger",children:m}),!o&&!m&&p&&h.jsxs(h.Fragment,{children:[p.kind==="image"&&h.jsx("img",{src:p.objectUrl,alt:n==null?void 0:n.file_name,className:"mx-auto max-h-[72vh] rounded-md"}),p.kind==="pdf"&&h.jsx("iframe",{src:p.objectUrl,title:n==null?void 0:n.file_name,className:"h-[72vh] w-full rounded-md border border-line bg-white"}),p.kind==="audio"&&h.jsx("audio",{controls:!0,src:p.objectUrl,className:"w-full"}),p.kind==="video"&&h.jsx("video",{controls:!0,src:p.objectUrl,className:"max-h-[70vh] w-full rounded-md bg-black"}),p.kind==="text"&&h.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:p.text}),(p.kind==="docx"||p.kind==="xlsx")&&h.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:p.html||""}}),p.kind==="other"&&h.jsxs("div",{className:"py-10 text-center",children:[h.jsx("p",{className:"text-[13px] text-ink-2",children:"该文件类型暂不支持在线预览"}),h.jsx("p",{className:"mt-1 text-[12px] text-ink-3",children:"请点击左下角「下载」,用本地应用打开"})]})]})]})}function T5({value:n,onChange:u,placeholder:s}){const[o,f]=E.useState(""),m=()=>{const p=o.trim();p&&!n.includes(p)&&u([...n,p]),f("")},d=p=>{p.key==="Enter"||p.key===","?(p.preventDefault(),m()):p.key==="Backspace"&&!o&&n.length&&u(n.slice(0,-1))};return h.jsxs("div",{className:ga("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=>h.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,h.jsx("button",{type:"button",className:"text-ink-3 hover:text-ink-1",onClick:()=>u(n.filter(x=>x!==p)),children:h.jsx(C0,{size:11})})]},p)),h.jsx("input",{className:"min-w-[80px] flex-1 border-0 bg-transparent text-[13px] outline-none placeholder:text-ink-3",value:o,placeholder:n.length?"":s??"输入后回车添加",onChange:p=>f(p.target.value),onKeyDown:d,onBlur:m})]})}function pg(n,u){return n.options?Array.isArray(n.options)?n.options.map(s=>({value:s,label:s})):u[n.options.taxonomy]??[]:[]}function N5({fields:n,value:u,onChange:s,taxonomies:o}){if(!n.length)return null;const f=(d,p)=>s({...u,[d]:p}),m=d=>{const p=u[d.key],x=d.required&&(p==null||p==="")?"该项必填":"",v=b=>d.unit?h.jsxs("div",{className:"flex items-center gap-2",children:[b,h.jsx("span",{className:"text-[12px] text-ink-3 shrink-0",children:d.unit})]}):b;switch(d.widget){case"textarea":return h.jsx(De,{label:d.label,required:d.required,hint:x,children:h.jsx(wd,{value:String(p??""),onChange:b=>f(d.key,b.target.value),placeholder:d.placeholder})},d.key);case"number":return h.jsx(De,{label:d.label,required:d.required,hint:x,children:v(h.jsx(nt,{type:"number",step:"any",className:"num",value:p==null?"":String(p),onChange:b=>f(d.key,b.target.value===""?void 0:Number(b.target.value))}))},d.key);case"date":return h.jsx(De,{label:d.label,required:d.required,hint:x,children:h.jsx(nt,{type:"date",value:String(p??""),onChange:b=>f(d.key,b.target.value)})},d.key);case"select":return h.jsx(De,{label:d.label,required:d.required,hint:x,children:h.jsx(ya,{value:String(p??""),onChange:b=>f(d.key,b.target.value||void 0),options:[{value:"",label:"请选择"},...pg(d,o)]})},d.key);case"multiselect":{const b=pg(d,o),g=Array.isArray(p)?p:[];return h.jsx(De,{label:d.label,required:d.required,hint:x,children:h.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[b.map(_=>{const k=g.includes(_.value);return h.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(k?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>f(d.key,k?g.filter(K=>K!==_.value):[...g,_.value]),children:_.label},_.value)}),!b.length&&h.jsx("span",{className:"text-[12px] text-ink-3",children:"未配置选项"})]})},d.key)}case"link":return h.jsx(De,{label:d.label,required:d.required,hint:x||"关联记录功能规划中,暂以文本记录",children:h.jsx(nt,{value:String(p??""),onChange:b=>f(d.key,b.target.value),placeholder:d.placeholder})},d.key);default:return h.jsx(De,{label:d.label,required:d.required,hint:x,children:h.jsx(nt,{value:String(p??""),onChange:b=>f(d.key,b.target.value),placeholder:d.placeholder})},d.key)}};return h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:n.map(d=>h.jsx("div",{className:d.widget==="textarea"?"sm:col-span-2":"",children:m(d)},d.key))})}function vg(n){return n?n.slice(0,16).replace("T"," "):""}function w5(n,u){const s=n?n.slice(0,10):"",o=u?u.slice(0,10):"";return s&&o?s+" ~ "+o:s?s+(u===""?"":" 起"):o?"至 "+o:""}function Cd(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/1024/1024).toFixed(1)+" MB"}function f1(n,u,s=480,o=.82){return new Promise((f,m)=>{const d=new Image;d.onload=()=>{try{const p=Math.min(1,s/Math.max(d.naturalWidth,d.naturalHeight)),x=Math.max(1,Math.round(d.naturalWidth*p)),v=Math.max(1,Math.round(d.naturalHeight*p)),b=document.createElement("canvas");b.width=x,b.height=v;const g=b.getContext("2d");if(!g)return m(new Error("canvas 不可用"));g.drawImage(d,0,0,x,v),f(b.toDataURL("image/webp",o))}catch(p){m(p instanceof Error?p:new Error(String(p)))}},d.onerror=()=>m(new Error("图片解码失败")),d.src="data:"+u+";base64,"+n})}function gg({items:n,pending:u,onPick:s,onDeleteSaved:o,onDeletePending:f,onOpenSaved:m,uploading:d}){const p=E.useRef(null),x=n.length+u.length;return h.jsxs("div",{className:"rounded-md border border-line bg-surface-2 p-3",children:[h.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink-2",children:[h.jsx(Jd,{size:13}),"附件(",x,")"]}),h.jsx(zt,{size:"sm",variant:"secondary",disabled:d,onClick:()=>{var v;return(v=p.current)==null?void 0:v.click()},children:d?"上传中…":"添加文件"}),h.jsx("input",{ref:p,type:"file",multiple:!0,className:"hidden",onChange:v=>{var b;(b=v.target.files)!=null&&b.length&&s(v.target.files),v.target.value=""}})]}),h.jsxs("div",{className:"flex flex-col gap-1",children:[n.map(v=>h.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[h.jsx(b0,{size:13,className:"text-ink-3 shrink-0"}),h.jsx("span",{className:"truncate "+(m?"cursor-pointer text-ink-1 hover:text-brand-text hover:underline":"text-ink-1"),onClick:()=>m==null?void 0:m(v),title:v.file_name,children:v.file_name}),h.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:Cd(v.size)}),h.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>o(v.id),"aria-label":"删除附件",children:h.jsx(Ed,{size:13})})]},"s"+v.id)),u.map((v,b)=>{var g;return h.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?h.jsx("img",{src:v.preview,alt:v.file_name,className:"size-7 shrink-0 rounded object-cover"}):h.jsx(wE,{size:13,className:"text-ink-3 shrink-0"}),h.jsx("span",{className:"truncate text-ink-1",children:v.file_name}),h.jsx("span",{className:"text-[11px] text-brand-text",children:"待上传"}),h.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:Cd(v.size)}),h.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>f(b),"aria-label":"移除",children:h.jsx(Ed,{size:13})})]},"p"+b)}),!x&&h.jsx("div",{className:"py-1 text-[12px] text-ink-3",children:"证书扫描件、照片、文档等佐证材料"})]})]})}async function bg(n){var d,p,x,v;let u=n;if(n.type==="image/jpeg"&&n.size>3*1024*1024)try{const b=await createImageBitmap(n),g=Math.min(1,2560/Math.max(b.width,b.height)),_=document.createElement("canvas");_.width=Math.round(b.width*g),_.height=Math.round(b.height*g),(d=_.getContext("2d"))==null||d.drawImage(b,0,0,_.width,_.height);const k=await new Promise(K=>_.toBlob(K,"image/jpeg",.85));k&&k.size<n.size&&(u=new File([k],n.name.replace(/\.jpe?g$/i,"")+".jpg",{type:"image/jpeg"})),(p=b.close)==null||p.call(b)}catch{}const s=await new Promise((b,g)=>{const _=new FileReader;_.onload=()=>b(String(_.result||"")),_.onerror=()=>g(new Error("读取文件失败")),_.readAsDataURL(u)}),o=s.indexOf(","),f=o>=0?s.slice(o+1):s;let m;if((x=n.type)!=null&&x.startsWith("image/")&&!n.type.includes("gif"))try{m=(await f1(f,n.type)).split(",")[1]||void 0}catch{m=void 0}return{file:u,file_name:n.name,mime:u.type||void 0,size:u.size,data_b64:f,thumb_b64:m,preview:(v=n.type)!=null&&v.startsWith("image/")?URL.createObjectURL(n):void 0}}const Ps={竞赛:{core:["level","award_grade","role","organizer"]},科研:{core:["level","role","organizer"]},实习实践:{core:["organizer"]},学生工作:{core:["role","organizer"]},志愿公益:{core:["organizer"]},文体活动:{core:["level","organizer"]},证书技能:{core:["level","organizer"]},荣誉惩处:{core:["award_grade","level","organizer"]},学业:{core:["rank"]}},xg={core:["level","role","award_grade","organizer"]},$5=[{value:"",label:"通用布局(级别/角色/奖等/组织方)"},...Object.keys(Ps).map(n=>({value:n,label:n+"式布局"}))];function C5(n,u){return u&&Ps[u]?Ps[u]:n?Ps[n]??xg:xg}const Sg={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:{}},j5=["特等奖","一等奖","二等奖","三等奖","优秀奖","无"],Eg=80*1024*1024,z5=[{value:"draft",label:"草稿"},{value:"ongoing",label:"进行中"},{value:"submitted",label:"已提交待果"},{value:"finished",label:"已完结"}];function O5({open:n,onClose:u,footprintId:s,onSaved:o}){var ie,Ne,re,V,ee;const f=au(),m=oo(),[d,p]=E.useState(Sg),[x,v]=E.useState([]),[b,g]=E.useState(!1),[_,k]=E.useState(null),[K,q]=E.useState(""),D=pa({queryKey:["types"],queryFn:ro,enabled:n}),H=pa({queryKey:["taxonomy-all"],queryFn:()=>A0(),enabled:n}),Q=pa({queryKey:["dimensions"],queryFn:eh,enabled:n}),Z=pa({queryKey:["footprint",s],queryFn:()=>th(s),enabled:n&&!!s}),J=pa({queryKey:["attachments",s],queryFn:()=>k0(s),enabled:n&&!!s}),Y=E.useMemo(()=>{var R;return(R=D.data)==null?void 0:R.items.find(le=>le.id===d.type_id)},[D.data,d.type_id]),de=C5(Y==null?void 0:Y.name,Y==null?void 0:Y.profile),F=pa({queryKey:["parent-candidates",d.type_id],queryFn:()=>M0({types:d.type_id?[d.type_id]:void 0,page_size:200,sort:"date_desc"}),enabled:n&&!!d.type_id});E.useEffect(()=>{if(n)if(q(""),v([]),s&&Z.data){const R=Z.data.item;p({type_id:R.type_id,title:R.title,organizer:R.organizer??"",start_date:(R.start_date??"").slice(0,10),end_date:(R.end_date??"").slice(0,10),status:R.status,role:R.role??"",level:R.level??"",award_grade:R.award_grade??"",rank:R.rank!=null?String(R.rank):"",polarity:R.polarity,weight:String(R.weight??3),description:R.description??"",result:R.result??"",tags:R.tags??[],dimension_ids:R.dimensions??[],group_id:R.group_id??"",parent_id:R.parent_id!=null?String(R.parent_id):"",extras:R.extras??{}})}else p(Sg)},[n,s,Z.data]);const U=E.useMemo(()=>{var le,X;const R={};for(const ke of((le=H.data)==null?void 0:le.items)??[])(R[X=ke.kind]??(R[X]=[])).push({value:ke.value,label:ke.value});return R},[H.data]),I=Sd({mutationFn:async()=>{if(!d.type_id)throw new Error("请选择记录类型");if(!d.title.trim())throw new Error("请填写标题");const R={};for(const ke of(Y==null?void 0:Y.form_template)??[])if(ke.metric&&ke.widget==="number"){const Nt=d.extras[ke.key];typeof Nt=="number"&&!Number.isNaN(Nt)&&(R[ke.metric]=Nt)}const le={id:s??void 0,type_id:d.type_id,title:d.title.trim(),organizer:d.organizer||null,start_date:d.start_date||null,end_date:d.end_date||null,status:d.status,role:d.role||null,level:d.level||null,award_grade:d.award_grade&&d.award_grade!=="无"?d.award_grade:null,rank:d.rank?Number(d.rank):null,polarity:d.polarity,description:d.description,result:d.result,tags:d.tags,dimension_ids:d.dimension_ids,group_id:d.group_id||null,parent_id:d.parent_id?Number(d.parent_id):null,weight:Number(d.weight)||3,extras:d.extras,metrics:R},X=await D0(le);for(const ke of x)await Td(X.id,ke.file,ke.thumb_b64);return X.id},onSuccess:R=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),f.invalidateQueries({queryKey:["footprint"]}),f.invalidateQueries({queryKey:["attachments",R]}),f.invalidateQueries({queryKey:["types"]}),m("success",s?"记录已更新":"记录已创建"),o==null||o(R),u()},onError:R=>q(R.message)}),ae=(R,le)=>p(X=>({...X,[R]:le})),Ve=Sd({mutationFn:R=>H0(R),onSuccess:()=>void f.invalidateQueries({queryKey:["attachments",s]})}),Fe=R=>R==="organizer"?h.jsx(De,{label:"组织方 / 所在组织",children:h.jsx(nt,{value:d.organizer,onChange:le=>ae("organizer",le.target.value),placeholder:"如:中国工业与应用数学学会"})},"organizer"):R==="role"?h.jsx(De,{label:"角色",children:h.jsx(ya,{value:d.role,onChange:le=>ae("role",le.target.value),options:[{value:"",label:"未设置"},...U.role??[]]})},"role"):R==="level"?h.jsx(De,{label:"级别",children:h.jsx(ya,{value:d.level,onChange:le=>ae("level",le.target.value),options:[{value:"",label:"未设置"},...U.level??[]]})},"level"):R==="award_grade"?h.jsx(De,{label:"奖等",children:h.jsx(ya,{value:d.award_grade,onChange:le=>ae("award_grade",le.target.value),options:[{value:"",label:"未设置"},...j5.map(le=>({value:le,label:le}))]})},"award_grade"):R==="rank"?h.jsx(De,{label:"名次",children:h.jsx(nt,{type:"number",className:"num",value:d.rank,onChange:le=>ae("rank",le.target.value),placeholder:"如 2"})},"rank"):null;return h.jsxs(so,{open:n,onClose:u,width:760,title:s?"编辑记录":"新建记录",footer:h.jsxs(h.Fragment,{children:[K&&h.jsx("span",{className:"mr-auto text-[12px] text-danger",children:K}),h.jsx(zt,{variant:"secondary",onClick:u,children:"取消"}),h.jsx(zt,{variant:"primary",onClick:()=>I.mutate(),disabled:I.isPending,children:I.isPending?"保存中…":"保存"})]}),children:[h.jsxs("div",{className:"flex flex-col gap-4",children:[h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[200px_1fr] gap-x-3 gap-y-3.5",children:[h.jsx(De,{label:"类型",required:!0,children:h.jsx(ya,{value:d.type_id!=null?String(d.type_id):"",onChange:R=>ae("type_id",R.target.value?Number(R.target.value):null),options:[{value:"",label:"请选择"},...(((ie=D.data)==null?void 0:ie.items)??[]).map(R=>({value:String(R.id),label:R.name}))]})}),h.jsx(De,{label:"标题",required:!0,children:h.jsx(nt,{value:d.title,onChange:R=>ae("title",R.target.value),placeholder:"事项名称,如:2025 全国大学生数学建模竞赛"})})]}),h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-x-3 gap-y-3.5",children:[h.jsx(De,{label:"开始日期",children:h.jsx(nt,{type:"date",value:d.start_date,onChange:R=>ae("start_date",R.target.value)})}),h.jsx(De,{label:"结束日期",children:h.jsx(nt,{type:"date",value:d.end_date,onChange:R=>ae("end_date",R.target.value)})}),h.jsx(De,{label:"状态",children:h.jsx(ya,{value:d.status,onChange:R=>ae("status",R.target.value),options:z5})})]}),h.jsxs("div",{className:"border-t border-line pt-4",children:[h.jsxs("div",{className:"mb-3 flex items-center gap-2 text-[12px] font-semibold text-ink-2",children:["类型要素",Y?" · "+Y.name:""]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:de.core.map(R=>Fe(R))}),Y&&Y.form_template.length>0&&h.jsxs("div",{className:"mt-3.5",children:[h.jsx("div",{className:"mb-2 text-[11.5px] text-ink-3",children:"专项信息"}),h.jsx(N5,{fields:Y.form_template,value:d.extras,onChange:R=>ae("extras",R),taxonomies:U})]})]}),h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5 border-t border-line pt-4",children:[h.jsx(De,{label:"工作内容 / 描述",children:h.jsx(wd,{value:d.description,onChange:R=>ae("description",R.target.value),placeholder:"具体做了什么、承担什么分工"})}),h.jsx(De,{label:"结果 / 产出",children:h.jsx(wd,{value:d.result,onChange:R=>ae("result",R.target.value),placeholder:"获奖等级、成果、最终产品等"})})]}),h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5 border-t border-line pt-4",children:[h.jsx(De,{label:"标签",children:h.jsx(T5,{value:d.tags,onChange:R=>ae("tags",R)})}),h.jsx(De,{label:"成长维度",children:h.jsxs("div",{className:"flex flex-wrap gap-1.5 min-h-8 items-center",children:[(((Ne=Q.data)==null?void 0:Ne.items)??[]).map(R=>{const le=d.dimension_ids.includes(R.id);return h.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(le?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>ae("dimension_ids",le?d.dimension_ids.filter(X=>X!==R.id):[...d.dimension_ids,R.id]),children:R.name},R.id)}),!((re=Q.data)!=null&&re.items.length)&&h.jsx("span",{className:"text-[12px] text-ink-3",children:"尚未配置维度(配置页可添加)"})]})})]}),h.jsxs("details",{className:"border-t border-line pt-4",children:[h.jsx("summary",{className:"cursor-pointer select-none text-[12px] text-ink-3 transition-colors hover:text-ink-2",children:"高级选项(重要度 · 名次 · 性质 · 关联)"}),h.jsxs("div",{className:"mt-3 grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[h.jsx(De,{label:"重要度",children:h.jsx(ya,{value:d.weight,onChange:R=>ae("weight",R.target.value),options:[1,2,3,4,5].map(R=>({value:String(R),label:String(R)}))})}),!de.core.includes("rank")&&h.jsx(De,{label:"名次",children:h.jsx(nt,{type:"number",className:"num",value:d.rank,onChange:R=>ae("rank",R.target.value),placeholder:"如 2"})}),h.jsx(De,{label:"性质",children:h.jsx(ya,{value:d.polarity,onChange:R=>ae("polarity",R.target.value),options:[{value:"positive",label:"正面"},{value:"negative",label:"负面"}]})}),h.jsx(De,{label:"上级记录",hint:"晋升链",children:h.jsx(ya,{value:d.parent_id,onChange:R=>ae("parent_id",R.target.value),options:[{value:"",label:"无"},...(((V=F.data)==null?void 0:V.items)??[]).filter(R=>R.id!==s).map(R=>({value:String(R.id),label:R.title.slice(0,24)}))]})})]}),h.jsx("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-3",children:h.jsx(De,{label:"事件组 ID",hint:"同一场事件的多条记录共享",children:h.jsx(nt,{value:d.group_id,onChange:R=>ae("group_id",R.target.value),placeholder:"如 g2025001(可选)"})})})]}),s?h.jsxs("div",{className:"border-t border-line pt-4",children:[h.jsx(gg,{items:((ee=J.data)==null?void 0:ee.items)??[],pending:x,uploading:b,onPick:async R=>{if(s){g(!0);try{let le=0;for(const X of Array.from(R)){if(X.size>Eg){m("error","「"+X.name+"」超过 80MB,已跳过");continue}const ke=await bg(X);await Td(s,ke.file,ke.thumb_b64),le++}le>0&&(f.invalidateQueries({queryKey:["attachments",s]}),m("success","已上传 "+le+" 个附件"))}catch(le){m("error",le.message)}finally{g(!1)}}},onDeleteSaved:R=>Ve.mutate(R),onDeletePending:()=>{},onOpenSaved:R=>k(R)}),h.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"点击文件名可在线预览(图片 · PDF · 文本 · Word · Excel · 音视频)· 单个文件不超过 80MB"})]}):h.jsxs("div",{className:"border-t border-line pt-4",children:[h.jsx(gg,{items:[],pending:x,onPick:async R=>{const le=[];for(const X of Array.from(R)){if(X.size>Eg){m("error","「"+X.name+"」超过 80MB,已跳过");continue}le.push(await bg(X))}v(X=>[...X,...le])},onDeleteSaved:()=>{},onDeletePending:R=>v(le=>le.filter((X,ke)=>ke!==R))}),h.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"保存记录时将一并上传 · 单个文件不超过 80MB"})]})]}),h.jsx(c1,{att:_,onClose:()=>k(null)})]})}const ki=new Map;function R5({open:n,onClose:u,footprintId:s,onEdit:o}){var U,I,ae,Ve,Fe;const f=au(),m=oo(),d=pa({queryKey:["footprint",s],queryFn:()=>th(s),enabled:n&&!!s}),p=pa({queryKey:["types"],queryFn:ro,enabled:n}),x=pa({queryKey:["dimensions"],queryFn:eh,enabled:n}),v=(U=d.data)==null?void 0:U.item,b=(I=p.data)==null?void 0:I.items.find(ie=>ie.id===(v==null?void 0:v.type_id)),g=((v==null?void 0:v.dimensions)??[]).map(ie=>{var Ne,re;return(re=(Ne=x.data)==null?void 0:Ne.items.find(V=>V.id===ie))==null?void 0:re.name}).filter(Boolean),[_,k]=E.useState(!1),[K,q]=E.useState(null),D=Sd({mutationFn:()=>va(()=>Promise.resolve().then(()=>r4),void 0).then(ie=>ie.footprintDelete(s)),onSuccess:()=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),m("success","记录已删除"),k(!1),u()}}),[H,Q]=E.useState({}),Z=(v==null?void 0:v.attachments)??[],J=Z.filter(ie=>{var Ne;return(Ne=ie.mime)==null?void 0:Ne.startsWith("image/")}),Y=Z.filter(ie=>{var Ne;return!((Ne=ie.mime)!=null&&Ne.startsWith("image/"))}),de=Z.map(ie=>ie.id).join(",");E.useEffect(()=>{if(!n||!de)return;let ie=!1;const Ne=Z.filter(re=>{var V;return(V=re.mime)==null?void 0:V.startsWith("image/")});return(async()=>{for(const re of Ne){if(ie)return;if(ki.has(re.id)){Q(V=>({...V,[re.id]:ki.get(re.id)}));continue}if(re.remote_thumb){ki.set(re.id,re.remote_thumb),Q(V=>({...V,[re.id]:re.remote_thumb}));continue}try{if(re.thumb_rel_path){const V=await L0(re.id);if(ie)return;const ee="data:"+(V.mime||"image/webp")+";base64,"+V.data_b64;ki.set(re.id,ee),Q(R=>({...R,[re.id]:ee}))}else{const V=await eo(re.id);if(ie)return;const ee=await f1(V.data_b64,V.mime||"image/png");ki.set(re.id,ee),Q(R=>({...R,[re.id]:ee}))}}catch{try{const V=await eo(re.id);if(ie)return;const ee="data:"+(V.mime||"image/png")+";base64,"+V.data_b64;ki.set(re.id,ee),Q(R=>({...R,[re.id]:ee}))}catch{}}}})(),()=>{ie=!0}},[n,s,de]);const F=[];if(v&&b)for(const ie of b.form_template??[]){const Ne=(v.extras??{})[ie.key];if(Ne==null||Ne==="")continue;const re=Array.isArray(Ne)?Ne.join("、"):String(Ne);F.push({label:ie.label,value:ie.unit?re+" "+ie.unit:re})}return h.jsxs(so,{open:n,onClose:u,width:680,title:"记录详情",footer:v?h.jsxs(h.Fragment,{children:[h.jsxs(zt,{variant:"danger-ghost",className:"mr-auto",onClick:()=>k(!0),disabled:D.isPending,children:[h.jsx(Ed,{size:13})," 删除"]}),h.jsx(zt,{variant:"secondary",onClick:u,children:"关闭"}),h.jsxs(zt,{variant:"primary",onClick:()=>s&&(o==null?void 0:o(s)),children:[h.jsx(IE,{size:13})," 编辑"]})]}):null,children:[d.isLoading||!v?h.jsx("div",{className:"py-10 text-center text-[13px] text-ink-3",children:"加载中…"}):h.jsxs("div",{className:"flex flex-col gap-4",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-[20px] font-bold leading-tight tracking-tight text-ink-1",style:{textWrap:"balance"},children:v.title}),h.jsxs("div",{className:"mt-2.5 flex flex-wrap items-center gap-1.5",children:[h.jsx(Ii,{color:v.type_color,className:Gn,children:v.type_name}),h.jsx(u1,{level:v.level}),h.jsx(r1,{grade:v.award_grade}),h.jsx(s1,{role:v.role}),h.jsx(i1,{status:v.status}),v.polarity==="negative"&&h.jsx(o1,{}),v.rank!=null&&h.jsxs(Ii,{color:"var(--text-3)",className:Gn,children:["第 ",v.rank," 名"]})]})]}),h.jsx(Hi,{title:"事项要素",children:h.jsxs("div",{className:"grid grid-cols-1 gap-x-4 gap-y-2 rounded-md border border-line bg-surface-2 px-3 py-2.5 text-[12.5px] sm:grid-cols-2",children:[h.jsx(nd,{label:"时间",value:w5(v.start_date,v.end_date)||"—"}),h.jsx(nd,{label:"组织方",value:v.organizer||"—"}),F.map(ie=>h.jsx(nd,{label:ie.label,value:ie.value},ie.label))]})}),(((ae=v.attachments)==null?void 0:ae.length)??0)>0&&h.jsx(Hi,{title:"附件("+(((Ve=v.attachments)==null?void 0:Ve.length)??0)+")",children:Z.length?h.jsxs("div",{className:"flex flex-col gap-2.5",children:[J.length>0&&h.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-4",children:J.map(ie=>h.jsxs("button",{className:"group relative aspect-square overflow-hidden rounded-md border border-line bg-surface-2",onClick:()=>q(ie),title:"点击预览:"+ie.file_name,children:[H[ie.id]?h.jsx("img",{src:H[ie.id],alt:ie.file_name,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-[1.04]"}):h.jsx("div",{className:"h-full w-full animate-pulse bg-surface-3"}),h.jsx("span",{className:"absolute inset-x-0 bottom-0 truncate bg-gradient-to-t from-black/60 to-transparent px-1.5 pb-1 pt-3 text-[10px] text-white opacity-0 transition-opacity group-hover:opacity-100",children:ie.file_name})]},ie.id))}),Y.length>0&&h.jsx("div",{className:"flex flex-col gap-1",children:Y.map(ie=>h.jsxs("button",{className:"flex items-center gap-2 rounded-md border border-line bg-surface px-2.5 py-2 text-left text-[12.5px] transition-colors hover:border-line-strong",onClick:()=>q(ie),children:[h.jsx(b0,{size:14,className:"shrink-0 text-ink-3"}),h.jsx("span",{className:"truncate text-ink-1",children:ie.file_name}),h.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:Cd(ie.size)}),h.jsx(Jd,{size:12,className:"shrink-0 text-ink-3"})]},ie.id))}),h.jsx("div",{className:"text-[11px] text-ink-3",children:"点击图片 / 文件可在线预览(图片 · PDF · 文本 · Word · Excel · 音视频)"})]}):h.jsx("p",{className:"text-[12px] text-ink-3",children:"暂无佐证附件"})}),v.description&&h.jsx(Hi,{title:"工作内容 / 描述",children:h.jsx("p",{className:"whitespace-pre-wrap text-[13px] leading-relaxed text-ink-2",children:v.description})}),v.result&&h.jsx(Hi,{title:"结果 / 产出",children:h.jsx("p",{className:"whitespace-pre-wrap rounded-md bg-success-subtle px-3 py-2 text-[13px] leading-relaxed text-success",children:v.result})}),v.metrics&&Object.keys(v.metrics).length>0&&h.jsx(Hi,{title:"量化指标",children:h.jsx("div",{className:"flex flex-wrap gap-1.5",children:Object.entries(v.metrics).map(([ie,Ne])=>h.jsxs("span",{className:"num rounded-sm border border-line bg-surface-2 px-2 py-0.5 text-[12px] text-ink-2",children:[ie,": ",h.jsx("span",{className:"font-medium text-ink-1",children:Ne})]},ie))})}),((((Fe=v.tags)==null?void 0:Fe.length)??0)>0||g.length>0)&&h.jsx(Hi,{title:"标签与维度",children:h.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[v.tags.map(ie=>h.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-0.5 text-[12px] text-ink-2",children:ie},ie)),g.map(ie=>h.jsx("span",{className:"rounded-sm border border-brand/30 bg-brand-subtle px-1.5 py-0.5 text-[12px] text-brand-text",children:ie},ie))]})}),h.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 border-t border-line pt-3 text-[11.5px] text-ink-3",children:[h.jsxs("span",{children:["创建于 ",vg(v.created_at)]}),h.jsxs("span",{children:["更新于 ",vg(v.updated_at)]}),v.group_id&&h.jsxs("span",{children:["事件组 ",v.group_id]}),v.parent_id!=null&&h.jsxs("span",{children:["上级 #",v.parent_id]})]})]}),h.jsx(c1,{att:K,onClose:()=>q(null)}),h.jsx(i5,{open:_,title:"删除记录",content:v?"确定删除「"+v.title+"」吗?该操作不可撤销。":"",onCancel:()=>k(!1),onOk:()=>D.mutate(),loading:D.isPending})]})}function nd({label:n,value:u}){return h.jsxs("div",{className:"grid min-w-0 grid-cols-[76px_1fr] gap-x-2.5",children:[h.jsx("span",{className:"shrink-0 text-right text-ink-3",children:n}),h.jsx("span",{className:"min-w-0 truncate font-medium text-ink-1",title:u,children:u})]})}function Hi({title:n,children:u}){return h.jsxs("div",{children:[h.jsx("div",{className:"mb-1.5 text-[12px] font-semibold text-ink-2",children:n}),u]})}function A5(){var Y,de,F;const[n,u]=E.useState(""),[s,o]=E.useState(""),[f,m]=E.useState(""),[d,p]=E.useState(""),[x,v]=E.useState(null),[b,g]=E.useState(!1),[_,k]=E.useState(null),[K,q]=E.useState(!1),D=pa({queryKey:["types"],queryFn:ro}),H=E.useMemo(()=>({q:n||void 0,types:s?[Number(s)]:void 0,year:f?Number(f):void 0,polarity:d||void 0,sort:"date_desc",page_size:2e3}),[n,s,f,d]),Q=pa({queryKey:["timeline",H],queryFn:()=>U0(H)}),Z=E.useMemo(()=>{var I;const U=new Set;for(const ae of((I=Q.data)==null?void 0:I.groups)??[])U.add(ae.year);return Array.from(U).sort((ae,Ve)=>Ve-ae)},[Q.data]),J=U=>{k(U),q(!0)};return h.jsxs("div",{className:"mx-auto max-w-[880px] px-3 py-4 sm:px-6 sm:py-5",children:[h.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[h.jsx(nt,{className:"w-full sm:w-[220px]",placeholder:"搜索足迹…",value:n,onChange:U=>u(U.target.value)}),h.jsxs("div",{className:"grid w-full grid-cols-2 gap-2 sm:flex sm:w-auto sm:items-center sm:gap-2",children:[h.jsx(ya,{className:"w-full sm:w-[130px]",value:s,onChange:U=>o(U.target.value),options:[{value:"",label:"全部类型"},...(((Y=D.data)==null?void 0:Y.items)??[]).map(U=>({value:String(U.id),label:U.name}))]}),h.jsx(ya,{className:"w-full sm:w-[120px]",value:f,onChange:U=>m(U.target.value),options:[{value:"",label:"全部年份"},...Z.map(U=>({value:String(U),label:U+" 年"}))]}),h.jsx(ya,{className:"w-full sm:w-[110px]",value:d,onChange:U=>p(U.target.value),options:[{value:"",label:"全部性质"},{value:"positive",label:"正面"},{value:"negative",label:"负面"}]})]}),h.jsxs("span",{className:"num ml-auto text-[12px] text-ink-3",children:["共 ",((de=Q.data)==null?void 0:de.total)??0," 条"]})]}),Q.isLoading?h.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"}):(F=Q.data)!=null&&F.groups.length?h.jsxs("div",{className:"relative",children:[h.jsx("div",{className:"absolute bottom-0 left-[7px] top-0 w-px bg-line","aria-hidden":!0}),Q.data.groups.map(U=>h.jsxs("section",{className:"mb-2",children:[h.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:[h.jsx("span",{className:"num text-[16px] font-semibold text-ink-1",children:U.year}),h.jsxs("span",{className:"text-[12px] text-ink-3",children:[U.count," 条记录"]})]}),U.months.map(I=>h.jsxs("div",{className:"mb-3",children:[h.jsxs("div",{className:"mb-2 pl-6 text-[12px] font-medium text-ink-3",children:[I.month," 月"]}),h.jsx("div",{className:"flex flex-col gap-2",children:I.items.map(ae=>h.jsx(M5,{row:ae,onClick:()=>J(ae.id)},ae.id))})]},I.month))]},U.year))]}):h.jsx(a5,{icon:h.jsx(Kd,{size:36,strokeWidth:1.5}),title:"暂无足迹",description:"点击右上角「新建记录」,开始记录你的第一段足迹。"}),h.jsx(R5,{open:K,onClose:()=>q(!1),footprintId:_,onEdit:U=>{q(!1),v(U),g(!0)}}),h.jsx(O5,{open:b,onClose:()=>g(!1),footprintId:x})]})}function M5({row:n,onClick:u}){const s=(n.start_date??n.created_at).slice(0,10);return h.jsxs("button",{onClick:u,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:[h.jsx("span",{className:"absolute left-0 top-3 bottom-3 w-[3px] rounded-full",style:{backgroundColor:n.type_color},"aria-hidden":!0}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.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)]}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[h.jsx("span",{className:"text-[13.5px] font-medium text-ink-1 group-hover:text-brand-text",children:n.title}),h.jsx(Ii,{color:n.type_color,children:n.type_name}),h.jsx(u1,{level:n.level}),h.jsx(r1,{grade:n.award_grade}),h.jsx(s1,{role:n.role}),h.jsx(i1,{status:n.status}),n.polarity==="negative"&&h.jsx(o1,{})]}),n.organizer&&h.jsx("div",{className:"mt-0.5 text-[12px] text-ink-3",children:n.organizer}),n.description&&h.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)&&h.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&&h.jsxs("span",{className:"text-success",children:["结果:",n.result]}),n.tags.map(o=>h.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-px",children:o},o)),n.attachment_count>0&&h.jsxs("span",{className:"inline-flex items-center gap-1",children:[h.jsx(Jd,{size:11}),n.attachment_count]})]})]}),h.jsx("div",{className:"shrink-0 pt-1 text-ink-3",children:h.jsx(b5,{name:n.type_icon,color:n.type_color,size:16})})]})]})}const D5=E.lazy(()=>va(()=>import("./RecordsPage-CYTmHZ1M.js"),[]).then(n=>({default:n.RecordsPage}))),U5=E.lazy(()=>va(()=>import("./DashboardPage-lHBbav-t.js"),__vite__mapDeps([0,1,2,3])).then(n=>({default:n.DashboardPage}))),k5=E.lazy(()=>va(()=>import("./GradesPage-BLNIMfYp.js"),__vite__mapDeps([4,1,2,3])).then(n=>({default:n.GradesPage}))),H5=E.lazy(()=>va(()=>import("./TypesPage-C7E9_7xq.js"),__vite__mapDeps([5,1])).then(n=>({default:n.TypesPage}))),q5=E.lazy(()=>va(()=>import("./TaxonomyPage-Bkhw9TpJ.js"),__vite__mapDeps([6,1])).then(n=>({default:n.TaxonomyPage}))),L5=E.lazy(()=>va(()=>import("./AdminPage-07xjBzip.js"),__vite__mapDeps([7,1])).then(n=>({default:n.AdminPage}))),B5=E.lazy(()=>va(()=>import("./ProfilePage-DDkdHaC_.js"),[]).then(n=>({default:n.ProfilePage}))),Q5=E.lazy(()=>va(()=>import("./ResumePage-Dq8wmINI.js"),__vite__mapDeps([8,1,9])).then(n=>({default:n.ResumePage}))),G5=E.lazy(()=>va(()=>import("./AssessmentPage-DniR4Zwe.js"),__vite__mapDeps([10,9])).then(n=>({default:n.AssessmentPage})));function dl(){return h.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"})}function Y5(){return h.jsx(ES,{children:h.jsxs(Yt,{element:h.jsx(y5,{}),children:[h.jsx(Yt,{path:"/",element:h.jsx(Kv,{to:"/timeline",replace:!0})}),h.jsx(Yt,{path:"/timeline",element:h.jsx(A5,{})}),h.jsx(Yt,{path:"/records",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(D5,{})})}),h.jsx(Yt,{path:"/grades",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(k5,{})})}),h.jsx(Yt,{path:"/dashboard",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(U5,{})})}),h.jsx(Yt,{path:"/types",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(H5,{})})}),h.jsx(Yt,{path:"/taxonomy",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(q5,{})})}),h.jsx(Yt,{path:"/admin",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(L5,{})})}),h.jsx(Yt,{path:"/profile",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(B5,{})})}),h.jsx(Yt,{path:"/resume",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(Q5,{})})}),h.jsx(Yt,{path:"/assessment",element:h.jsx(E.Suspense,{fallback:h.jsx(dl,{}),children:h.jsx(G5,{})})}),h.jsx(Yt,{path:"*",element:h.jsx(Kv,{to:"/timeline",replace:!0})})]})})}const V5=new z3({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0,staleTime:0,gcTime:0}}}),_g=localStorage.getItem("fp-theme");(_g==="dark"||!_g&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&document.documentElement.classList.add("dark");function d1(){var u;const n=getComputedStyle(document.documentElement).getPropertyValue("--bg").trim();n&&((u=document.querySelector('meta[name="theme-color"]'))==null||u.setAttribute("content",n))}d1();window.addEventListener("fp-theme-change",d1);"serviceWorker"in navigator&&!("__TAURI_INTERNALS__"in window)&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});b2.createRoot(document.getElementById("root")).render(h.jsx(d2.StrictMode,{children:h.jsx(l3,{client:V5,children:h.jsx(ZS,{children:h.jsx(Y5,{})})})}));export{xa as $,G_ as A,zt as B,i5 as C,L_ as D,a5 as E,B_ as F,r1 as G,so as H,nt as I,De as J,Q_ as K,u1 as L,q_ as M,b5 as N,C_ as O,t_ as P,F5 as Q,s1 as R,ya as S,Ed as T,$5 as U,j_ as V,z_ as W,O_ as X,R_ as Y,A_ as Z,eh as _,ga as a,aa as a0,C0 as a1,Cd as a2,$_ as a3,P_ as a4,W_ as a5,t4 as a6,e4 as a7,I_ as a8,va as a9,F_ as aa,J_ as ab,w0 as ac,wd as ad,u4 as ae,i4 as af,n4 as ag,mE as ah,k0 as ai,L0 as aj,b0 as ak,K5 as al,Ug as am,r4 as an,a3 as b,pe as c,oo as d,Z5 as e,pa as f,Sd as g,w5 as h,i1 as i,h as j,vg as k,IE as l,Ii as m,R5 as n,O5 as o,M_ as p,ro as q,E as r,A0 as s,D_ as t,au as u,M0 as v,Zd as w,Y_ as x,V_ as y,l4 as z};