-
Notifications
You must be signed in to change notification settings - Fork 234
Expand file tree
/
Copy pathindex-Bs6kvTlV.js
More file actions
92 lines (89 loc) · 339 KB
/
Copy pathindex-Bs6kvTlV.js
File metadata and controls
92 lines (89 loc) · 339 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
////////////////////////////////
// THIS FILE IS AUTOGENERATED //
// DO NOT MANUALLY EDIT //
////////////////////////////////
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function wg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Wr={exports:{}},Za={};/**
* @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 Kh;function qv(){if(Kh)return Za;Kh=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(s,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:l,type:s,key:h,ref:c!==void 0?c:null,props:f}}return Za.Fragment=u,Za.jsx=i,Za.jsxs=i,Za}var Jh;function Gv(){return Jh||(Jh=1,Wr.exports=qv()),Wr.exports}var G=Gv(),eo={exports:{}},te={};/**
* @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 Ph;function Fv(){if(Ph)return te;Ph=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),R=Symbol.iterator;function S(_){return _===null||typeof _!="object"?null:(_=R&&_[R]||_["@@iterator"],typeof _=="function"?_:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,N={};function H(_,q,Y){this.props=_,this.context=q,this.refs=N,this.updater=Y||T}H.prototype.isReactComponent={},H.prototype.setState=function(_,q){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,q,"setState")},H.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=H.prototype;function F(_,q,Y){this.props=_,this.context=q,this.refs=N,this.updater=Y||T}var ne=F.prototype=new j;ne.constructor=F,w(ne,H.prototype),ne.isPureReactComponent=!0;var ee=Array.isArray;function pe(){}var K={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function ye(_,q,Y){var X=Y.ref;return{$$typeof:l,type:_,key:q,ref:X!==void 0?X:null,props:Y}}function Ae(_,q){return ye(_.type,q,_.props)}function He(_){return typeof _=="object"&&_!==null&&_.$$typeof===l}function tt(_){var q={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Y){return q[Y]})}var Fn=/\/+/g;function $t(_,q){return typeof _=="object"&&_!==null&&_.key!=null?tt(""+_.key):q.toString(36)}function Nt(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(pe,pe):(_.status="pending",_.then(function(q){_.status==="pending"&&(_.status="fulfilled",_.value=q)},function(q){_.status==="pending"&&(_.status="rejected",_.reason=q)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function V(_,q,Y,X,le){var ue=typeof _;(ue==="undefined"||ue==="boolean")&&(_=null);var ve=!1;if(_===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(_.$$typeof){case l:case u:ve=!0;break;case y:return ve=_._init,V(ve(_._payload),q,Y,X,le)}}if(ve)return le=le(_),ve=X===""?"."+$t(_,0):X,ee(le)?(Y="",ve!=null&&(Y=ve.replace(Fn,"$&/")+"/"),V(le,q,Y,"",function(ea){return ea})):le!=null&&(He(le)&&(le=Ae(le,Y+(le.key==null||_&&_.key===le.key?"":(""+le.key).replace(Fn,"$&/")+"/")+ve)),q.push(le)),1;ve=0;var We=X===""?".":X+":";if(ee(_))for(var Ue=0;Ue<_.length;Ue++)X=_[Ue],ue=We+$t(X,Ue),ve+=V(X,q,Y,ue,le);else if(Ue=S(_),typeof Ue=="function")for(_=Ue.call(_),Ue=0;!(X=_.next()).done;)X=X.value,ue=We+$t(X,Ue++),ve+=V(X,q,Y,ue,le);else if(ue==="object"){if(typeof _.then=="function")return V(Nt(_),q,Y,X,le);throw q=String(_),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Q(_,q,Y){if(_==null)return _;var X=[],le=0;return V(_,X,"","",function(ue){return q.call(Y,ue,le++)}),X}function W(_){if(_._status===-1){var q=_._result;q=q(),q.then(function(Y){(_._status===0||_._status===-1)&&(_._status=1,_._result=Y)},function(Y){(_._status===0||_._status===-1)&&(_._status=2,_._result=Y)}),_._status===-1&&(_._status=0,_._result=q)}if(_._status===1)return _._result.default;throw _._result}var Ce=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},Me={map:Q,forEach:function(_,q,Y){Q(_,function(){q.apply(this,arguments)},Y)},count:function(_){var q=0;return Q(_,function(){q++}),q},toArray:function(_){return Q(_,function(q){return q})||[]},only:function(_){if(!He(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return te.Activity=b,te.Children=Me,te.Component=H,te.Fragment=i,te.Profiler=c,te.PureComponent=F,te.StrictMode=s,te.Suspense=p,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,te.__COMPILER_RUNTIME={__proto__:null,c:function(_){return K.H.useMemoCache(_)}},te.cache=function(_){return function(){return _.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(_,q,Y){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var X=w({},_.props),le=_.key;if(q!=null)for(ue in q.key!==void 0&&(le=""+q.key),q)!fe.call(q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&q.ref===void 0||(X[ue]=q[ue]);var ue=arguments.length-2;if(ue===1)X.children=Y;else if(1<ue){for(var ve=Array(ue),We=0;We<ue;We++)ve[We]=arguments[We+2];X.children=ve}return ye(_.type,le,X)},te.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},te.createElement=function(_,q,Y){var X,le={},ue=null;if(q!=null)for(X in q.key!==void 0&&(ue=""+q.key),q)fe.call(q,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(le[X]=q[X]);var ve=arguments.length-2;if(ve===1)le.children=Y;else if(1<ve){for(var We=Array(ve),Ue=0;Ue<ve;Ue++)We[Ue]=arguments[Ue+2];le.children=We}if(_&&_.defaultProps)for(X in ve=_.defaultProps,ve)le[X]===void 0&&(le[X]=ve[X]);return ye(_,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(_){return{$$typeof:g,render:_}},te.isValidElement=He,te.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:W}},te.memo=function(_,q){return{$$typeof:m,type:_,compare:q===void 0?null:q}},te.startTransition=function(_){var q=K.T,Y={};K.T=Y;try{var X=_(),le=K.S;le!==null&&le(Y,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(pe,Ce)}catch(ue){Ce(ue)}finally{q!==null&&Y.types!==null&&(q.types=Y.types),K.T=q}},te.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},te.use=function(_){return K.H.use(_)},te.useActionState=function(_,q,Y){return K.H.useActionState(_,q,Y)},te.useCallback=function(_,q){return K.H.useCallback(_,q)},te.useContext=function(_){return K.H.useContext(_)},te.useDebugValue=function(){},te.useDeferredValue=function(_,q){return K.H.useDeferredValue(_,q)},te.useEffect=function(_,q){return K.H.useEffect(_,q)},te.useEffectEvent=function(_){return K.H.useEffectEvent(_)},te.useId=function(){return K.H.useId()},te.useImperativeHandle=function(_,q,Y){return K.H.useImperativeHandle(_,q,Y)},te.useInsertionEffect=function(_,q){return K.H.useInsertionEffect(_,q)},te.useLayoutEffect=function(_,q){return K.H.useLayoutEffect(_,q)},te.useMemo=function(_,q){return K.H.useMemo(_,q)},te.useOptimistic=function(_,q){return K.H.useOptimistic(_,q)},te.useReducer=function(_,q,Y){return K.H.useReducer(_,q,Y)},te.useRef=function(_){return K.H.useRef(_)},te.useState=function(_){return K.H.useState(_)},te.useSyncExternalStore=function(_,q,Y){return K.H.useSyncExternalStore(_,q,Y)},te.useTransition=function(){return K.H.useTransition()},te.version="19.2.0",te}var kh;function Oo(){return kh||(kh=1,eo.exports=Fv()),eo.exports}var z=Oo();const Qv=wg(z);var to={exports:{}},Ka={},no={exports:{}},lo={};/**
* @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 Ih;function Yv(){return Ih||(Ih=1,(function(l){function u(V,Q){var W=V.length;V.push(Q);e:for(;0<W;){var Ce=W-1>>>1,Me=V[Ce];if(0<c(Me,Q))V[Ce]=Q,V[W]=Me,W=Ce;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Q=V[0],W=V.pop();if(W!==Q){V[0]=W;e:for(var Ce=0,Me=V.length,_=Me>>>1;Ce<_;){var q=2*(Ce+1)-1,Y=V[q],X=q+1,le=V[X];if(0>c(Y,W))X<Me&&0>c(le,Y)?(V[Ce]=le,V[X]=W,Ce=X):(V[Ce]=Y,V[q]=W,Ce=q);else if(X<Me&&0>c(le,W))V[Ce]=le,V[X]=W,Ce=X;else break e}}return Q}function c(V,Q){var W=V.sortIndex-Q.sortIndex;return W!==0?W:V.id-Q.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var p=[],m=[],y=1,b=null,R=3,S=!1,T=!1,w=!1,N=!1,H=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ne(V){for(var Q=i(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=V)s(m),Q.sortIndex=Q.expirationTime,u(p,Q);else break;Q=i(m)}}function ee(V){if(w=!1,ne(V),!T)if(i(p)!==null)T=!0,pe||(pe=!0,tt());else{var Q=i(m);Q!==null&&Nt(ee,Q.startTime-V)}}var pe=!1,K=-1,fe=5,ye=-1;function Ae(){return N?!0:!(l.unstable_now()-ye<fe)}function He(){if(N=!1,pe){var V=l.unstable_now();ye=V;var Q=!0;try{e:{T=!1,w&&(w=!1,j(K),K=-1),S=!0;var W=R;try{t:{for(ne(V),b=i(p);b!==null&&!(b.expirationTime>V&&Ae());){var Ce=b.callback;if(typeof Ce=="function"){b.callback=null,R=b.priorityLevel;var Me=Ce(b.expirationTime<=V);if(V=l.unstable_now(),typeof Me=="function"){b.callback=Me,ne(V),Q=!0;break t}b===i(p)&&s(p),ne(V)}else s(p);b=i(p)}if(b!==null)Q=!0;else{var _=i(m);_!==null&&Nt(ee,_.startTime-V),Q=!1}}break e}finally{b=null,R=W,S=!1}Q=void 0}}finally{Q?tt():pe=!1}}}var tt;if(typeof F=="function")tt=function(){F(He)};else if(typeof MessageChannel<"u"){var Fn=new MessageChannel,$t=Fn.port2;Fn.port1.onmessage=He,tt=function(){$t.postMessage(null)}}else tt=function(){H(He,0)};function Nt(V,Q){K=H(function(){V(l.unstable_now())},Q)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(V){V.callback=null},l.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"):fe=0<V?Math.floor(1e3/V):5},l.unstable_getCurrentPriorityLevel=function(){return R},l.unstable_next=function(V){switch(R){case 1:case 2:case 3:var Q=3;break;default:Q=R}var W=R;R=Q;try{return V()}finally{R=W}},l.unstable_requestPaint=function(){N=!0},l.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var W=R;R=V;try{return Q()}finally{R=W}},l.unstable_scheduleCallback=function(V,Q,W){var Ce=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Ce+W:Ce):W=Ce,V){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=W+Me,V={id:y++,callback:Q,priorityLevel:V,startTime:W,expirationTime:Me,sortIndex:-1},W>Ce?(V.sortIndex=W,u(m,V),i(p)===null&&V===i(m)&&(w?(j(K),K=-1):w=!0,Nt(ee,W-Ce))):(V.sortIndex=Me,u(p,V),T||S||(T=!0,pe||(pe=!0,tt()))),V},l.unstable_shouldYield=Ae,l.unstable_wrapCallback=function(V){var Q=R;return function(){var W=R;R=Q;try{return V.apply(this,arguments)}finally{R=W}}}})(lo)),lo}var Wh;function $v(){return Wh||(Wh=1,no.exports=Yv()),no.exports}var ao={exports:{}},ke={};/**
* @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 eg;function Xv(){if(eg)return ke;eg=1;var l=Oo();function u(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(u(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,m,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:p,containerInfo:m,implementation:y}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ke.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(u(299));return f(p,m,null,y)},ke.flushSync=function(p){var m=h.T,y=s.p;try{if(h.T=null,s.p=2,p)return p()}finally{h.T=m,s.p=y,s.d.f()}},ke.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(p,m))},ke.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},ke.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,b=g(y,m.crossOrigin),R=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?s.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:R,fetchPriority:S}):y==="script"&&s.d.X(p,{crossOrigin:b,integrity:R,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ke.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=g(m.as,m.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(p)},ke.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,b=g(y,m.crossOrigin);s.d.L(p,y,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ke.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=g(m.as,m.crossOrigin);s.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(p)},ke.requestFormReset=function(p){s.d.r(p)},ke.unstable_batchedUpdates=function(p,m){return p(m)},ke.useFormState=function(p,m,y){return h.H.useFormState(p,m,y)},ke.useFormStatus=function(){return h.H.useHostTransitionStatus()},ke.version="19.2.0",ke}var tg;function zg(){if(tg)return ao.exports;tg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),ao.exports=Xv(),ao.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 ng;function Zv(){if(ng)return Ka;ng=1;var l=$v(),u=Oo(),i=zg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return p(r),e;if(o===a)return p(r),t;o=o.sibling}throw Error(s(188))}if(n.return!==a.return)n=r,a=o;else{for(var d=!1,v=r.child;v;){if(v===n){d=!0,n=r,a=o;break}if(v===a){d=!0,a=r,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,a=r;break}if(v===a){d=!0,a=o,n=r;break}v=v.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,R=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),He=Symbol.iterator;function tt(e){return e===null||typeof e!="object"?null:(e=He&&e[He]||e["@@iterator"],typeof e=="function"?e:null)}var Fn=Symbol.for("react.client.reference");function $t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Fn?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case H:return"Profiler";case N:return"StrictMode";case ee:return"Suspense";case pe:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case F:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:$t(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return $t(e(t))}catch{}}return null}var Nt=Array.isArray,V=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},Ce=[],Me=-1;function _(e){return{current:e}}function q(e){0>Me||(e.current=Ce[Me],Ce[Me]=null,Me--)}function Y(e,t){Me++,Ce[Me]=e.current,e.current=t}var X=_(null),le=_(null),ue=_(null),ve=_(null);function We(e,t){switch(Y(ue,t),Y(le,e),Y(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vh(t),e=yh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(X),Y(X,e)}function Ue(){q(X),q(le),q(ue)}function ea(e){e.memoizedState!==null&&Y(ve,e);var t=X.current,n=yh(t,e.type);t!==n&&(Y(le,e),Y(X,n))}function ai(e){le.current===e&&(q(X),q(le)),ve.current===e&&(q(ve),Qa._currentValue=W)}var Uu,Xo;function Qn(e){if(Uu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Uu=t&&t[1]||"",Xo=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Uu+e+Xo}var ju=!1;function Vu(e,t){if(!e||ju)return"";ju=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(D){var A=D}Reflect.construct(e,[],B)}else{try{B.call()}catch(D){A=D}e.call(B.prototype)}}else{try{throw Error()}catch(D){A=D}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(D){if(D&&A&&typeof D.stack=="string")return[D.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var C=d.split(`
`),O=v.split(`
`);for(r=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(a===C.length||r===O.length)for(a=C.length-1,r=O.length-1;1<=a&&0<=r&&C[a]!==O[r];)r--;for(;1<=a&&0<=r;a--,r--)if(C[a]!==O[r]){if(a!==1||r!==1)do if(a--,r--,0>r||C[a]!==O[r]){var U=`
`+C[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=r);break}}}finally{ju=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Qn(n):""}function vm(e,t){switch(e.tag){case 26:case 27:case 5:return Qn(e.type);case 16:return Qn("Lazy");case 13:return e.child!==t&&t!==null?Qn("Suspense Fallback"):Qn("Suspense");case 19:return Qn("SuspenseList");case 0:case 15:return Vu(e.type,!1);case 11:return Vu(e.type.render,!1);case 1:return Vu(e.type,!0);case 31:return Qn("Activity");default:return""}}function Zo(e){try{var t="",n=null;do t+=vm(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Lu=Object.prototype.hasOwnProperty,Bu=l.unstable_scheduleCallback,qu=l.unstable_cancelCallback,ym=l.unstable_shouldYield,Sm=l.unstable_requestPaint,ct=l.unstable_now,Rm=l.unstable_getCurrentPriorityLevel,Ko=l.unstable_ImmediatePriority,Jo=l.unstable_UserBlockingPriority,ii=l.unstable_NormalPriority,Cm=l.unstable_LowPriority,Po=l.unstable_IdlePriority,bm=l.log,Em=l.unstable_setDisableYieldValue,ta=null,ft=null;function gn(e){if(typeof bm=="function"&&Em(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(ta,e)}catch{}}var dt=Math.clz32?Math.clz32:Tm,_m=Math.log,Mm=Math.LN2;function Tm(e){return e>>>=0,e===0?32:31-(_m(e)/Mm|0)|0}var ui=256,si=262144,ri=4194304;function Yn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function oi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?r=Yn(a):(d&=v,d!==0?r=Yn(d):n||(n=v&~e,n!==0&&(r=Yn(n))))):(v=a&~o,v!==0?r=Yn(v):d!==0?r=Yn(d):n||(n=a&~e,n!==0&&(r=Yn(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function na(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wm(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 ko(){var e=ri;return ri<<=1,(ri&62914560)===0&&(ri=4194304),e}function Gu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function la(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zm(e,t,n,a,r,o){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,C=e.expirationTimes,O=e.hiddenUpdates;for(n=d&~n;0<n;){var U=31-dt(n),B=1<<U;v[U]=0,C[U]=-1;var A=O[U];if(A!==null)for(O[U]=null,U=0;U<A.length;U++){var D=A[U];D!==null&&(D.lane&=-536870913)}n&=~B}a!==0&&Io(e,a,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function Io(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Wo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-dt(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function ec(e,t){var n=t&-t;return n=(n&42)!==0?1:Fu(n),(n&(e.suspendedLanes|t))!==0?0:n}function Fu(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 Qu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function tc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Gh(e.type))}function nc(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var mn=Math.random().toString(36).slice(2),$e="__reactFiber$"+mn,nt="__reactProps$"+mn,fl="__reactContainer$"+mn,Yu="__reactEvents$"+mn,xm="__reactListeners$"+mn,Om="__reactHandles$"+mn,lc="__reactResources$"+mn,aa="__reactMarker$"+mn;function $u(e){delete e[$e],delete e[nt],delete e[Yu],delete e[xm],delete e[Om]}function dl(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fl]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mh(e);e!==null;){if(n=e[$e])return n;e=Mh(e)}return t}e=n,n=e.parentNode}return null}function hl(e){if(e=e[$e]||e[fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function gl(e){var t=e[lc];return t||(t=e[lc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[aa]=!0}var ac=new Set,ic={};function $n(e,t){ml(e,t),ml(e+"Capture",t)}function ml(e,t){for(ic[e]=t,e=0;e<t.length;e++)ac.add(t[e])}var Am=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]*$"),uc={},sc={};function Dm(e){return Lu.call(sc,e)?!0:Lu.call(uc,e)?!1:Am.test(e)?sc[e]=!0:(uc[e]=!0,!1)}function ci(e,t,n){if(Dm(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function fi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Xt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nm(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xu(e){if(!e._valueTracker){var t=rc(e)?"checked":"value";e._valueTracker=Nm(e,t,""+e[t])}}function oc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=rc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function di(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Hm=/[\n"\\]/g;function Et(e){return e.replace(Hm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zu(e,t,n,a,r,o,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+bt(t)):e.value!==""+bt(t)&&(e.value=""+bt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Ku(e,d,bt(t)):n!=null?Ku(e,d,bt(n)):a!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+bt(v):e.removeAttribute("name")}function cc(e,t,n,a,r,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Xu(e);return}n=n!=null?""+bt(n):"",t=t!=null?""+bt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Xu(e)}function Ku(e,t,n){t==="number"&&di(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pl(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function fc(e,t,n){if(t!=null&&(t=""+bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+bt(n):""}function dc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Nt(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=bt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Xu(e)}function vl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Um=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 hc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Um.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function gc(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&hc(e,r,a)}else for(var o in t)t.hasOwnProperty(o)&&hc(e,o,t[o])}function Ju(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 jm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Vm=/^[\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 hi(e){return Vm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Pu=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yl=null,Sl=null;function mc(e){var t=hl(e);if(t&&(e=t.stateNode)){var n=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[nt]||null;if(!r)throw Error(s(90));Zu(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&oc(a)}break e;case"textarea":fc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pl(e,!!n.multiple,t,!1)}}}var Iu=!1;function pc(e,t,n){if(Iu)return e(t,n);Iu=!0;try{var a=e(t);return a}finally{if(Iu=!1,(yl!==null||Sl!==null)&&(eu(),yl&&(t=yl,e=Sl,Sl=yl=null,mc(t),e)))for(t=0;t<e.length;t++)mc(e[t])}}function ua(e,t){var n=e.stateNode;if(n===null)return null;var a=n[nt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(Kt)try{var sa={};Object.defineProperty(sa,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",sa,sa),window.removeEventListener("test",sa,sa)}catch{Wu=!1}var pn=null,es=null,gi=null;function vc(){if(gi)return gi;var e,t=es,n=t.length,a,r="value"in pn?pn.value:pn.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===r[o-a];a++);return gi=r.slice(e,1<a?1-a:void 0)}function mi(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 pi(){return!0}function yc(){return!1}function lt(e){function t(n,a,r,o,d){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?pi:yc,this.isPropagationStopped=yc,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),t}var Xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vi=lt(Xn),ra=b({},Xn,{view:0,detail:0}),Lm=lt(ra),ts,ns,oa,yi=b({},ra,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:as,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!==oa&&(oa&&e.type==="mousemove"?(ts=e.screenX-oa.screenX,ns=e.screenY-oa.screenY):ns=ts=0,oa=e),ts)},movementY:function(e){return"movementY"in e?e.movementY:ns}}),Sc=lt(yi),Bm=b({},yi,{dataTransfer:0}),qm=lt(Bm),Gm=b({},ra,{relatedTarget:0}),ls=lt(Gm),Fm=b({},Xn,{animationName:0,elapsedTime:0,pseudoElement:0}),Qm=lt(Fm),Ym=b({},Xn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$m=lt(Ym),Xm=b({},Xn,{data:0}),Rc=lt(Xm),Zm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Km={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"},Jm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jm[e])?!!t[e]:!1}function as(){return Pm}var km=b({},ra,{key:function(e){if(e.key){var t=Zm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Km[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:as,charCode:function(e){return e.type==="keypress"?mi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Im=lt(km),Wm=b({},yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cc=lt(Wm),ep=b({},ra,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:as}),tp=lt(ep),np=b({},Xn,{propertyName:0,elapsedTime:0,pseudoElement:0}),lp=lt(np),ap=b({},yi,{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}),ip=lt(ap),up=b({},Xn,{newState:0,oldState:0}),sp=lt(up),rp=[9,13,27,32],is=Kt&&"CompositionEvent"in window,ca=null;Kt&&"documentMode"in document&&(ca=document.documentMode);var op=Kt&&"TextEvent"in window&&!ca,bc=Kt&&(!is||ca&&8<ca&&11>=ca),Ec=" ",_c=!1;function Mc(e,t){switch(e){case"keyup":return rp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rl=!1;function cp(e,t){switch(e){case"compositionend":return Tc(t);case"keypress":return t.which!==32?null:(_c=!0,Ec);case"textInput":return e=t.data,e===Ec&&_c?null:e;default:return null}}function fp(e,t){if(Rl)return e==="compositionend"||!is&&Mc(e,t)?(e=vc(),gi=es=pn=null,Rl=!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 bc&&t.locale!=="ko"?null:t.data;default:return null}}var dp={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 wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dp[e.type]:t==="textarea"}function zc(e,t,n,a){yl?Sl?Sl.push(a):Sl=[a]:yl=a,t=su(t,"onChange"),0<t.length&&(n=new vi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var fa=null,da=null;function hp(e){fh(e,0)}function Si(e){var t=ia(e);if(oc(t))return e}function xc(e,t){if(e==="change")return t}var Oc=!1;if(Kt){var us;if(Kt){var ss="oninput"in document;if(!ss){var Ac=document.createElement("div");Ac.setAttribute("oninput","return;"),ss=typeof Ac.oninput=="function"}us=ss}else us=!1;Oc=us&&(!document.documentMode||9<document.documentMode)}function Dc(){fa&&(fa.detachEvent("onpropertychange",Nc),da=fa=null)}function Nc(e){if(e.propertyName==="value"&&Si(da)){var t=[];zc(t,da,e,ku(e)),pc(hp,t)}}function gp(e,t,n){e==="focusin"?(Dc(),fa=t,da=n,fa.attachEvent("onpropertychange",Nc)):e==="focusout"&&Dc()}function mp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Si(da)}function pp(e,t){if(e==="click")return Si(t)}function vp(e,t){if(e==="input"||e==="change")return Si(t)}function yp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:yp;function ha(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!Lu.call(t,r)||!ht(e[r],t[r]))return!1}return!0}function Hc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uc(e,t){var n=Hc(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hc(n)}}function jc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=di(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=di(e.document)}return t}function rs(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 Sp=Kt&&"documentMode"in document&&11>=document.documentMode,Cl=null,os=null,ga=null,cs=!1;function Lc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cs||Cl==null||Cl!==di(a)||(a=Cl,"selectionStart"in a&&rs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ga&&ha(ga,a)||(ga=a,a=su(os,"onSelect"),0<a.length&&(t=new vi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Cl)))}function Zn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bl={animationend:Zn("Animation","AnimationEnd"),animationiteration:Zn("Animation","AnimationIteration"),animationstart:Zn("Animation","AnimationStart"),transitionrun:Zn("Transition","TransitionRun"),transitionstart:Zn("Transition","TransitionStart"),transitioncancel:Zn("Transition","TransitionCancel"),transitionend:Zn("Transition","TransitionEnd")},fs={},Bc={};Kt&&(Bc=document.createElement("div").style,"AnimationEvent"in window||(delete bl.animationend.animation,delete bl.animationiteration.animation,delete bl.animationstart.animation),"TransitionEvent"in window||delete bl.transitionend.transition);function Kn(e){if(fs[e])return fs[e];if(!bl[e])return e;var t=bl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bc)return fs[e]=t[n];return e}var qc=Kn("animationend"),Gc=Kn("animationiteration"),Fc=Kn("animationstart"),Rp=Kn("transitionrun"),Cp=Kn("transitionstart"),bp=Kn("transitioncancel"),Qc=Kn("transitionend"),Yc=new Map,ds="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ds.push("scrollEnd");function Ht(e,t){Yc.set(e,t),$n(t,[e])}var Ri=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)},_t=[],El=0,hs=0;function Ci(){for(var e=El,t=hs=El=0;t<e;){var n=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var r=_t[t];_t[t++]=null;var o=_t[t];if(_t[t++]=null,a!==null&&r!==null){var d=a.pending;d===null?r.next=r:(r.next=d.next,d.next=r),a.pending=r}o!==0&&$c(n,r,o)}}function bi(e,t,n,a){_t[El++]=e,_t[El++]=t,_t[El++]=n,_t[El++]=a,hs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function gs(e,t,n,a){return bi(e,t,n,a),Ei(e)}function Jn(e,t){return bi(e,null,null,t),Ei(e)}function $c(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-dt(n),e=o.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),o):null}function Ei(e){if(50<ja)throw ja=0,Er=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _l={};function Ep(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,n,a){return new Ep(e,t,n,a)}function ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var n=e.alternate;return n===null?(n=gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Xc(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _i(e,t,n,a,r,o){var d=0;if(a=e,typeof e=="function")ms(e)&&(d=1);else if(typeof e=="string")d=zv(e,n,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=gt(31,n,t,r),e.elementType=ye,e.lanes=o,e;case w:return Pn(n.children,r,o,t);case N:d=8,r|=24;break;case H:return e=gt(12,n,t,r|2),e.elementType=H,e.lanes=o,e;case ee:return e=gt(13,n,t,r),e.elementType=ee,e.lanes=o,e;case pe:return e=gt(19,n,t,r),e.elementType=pe,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:d=10;break e;case j:d=9;break e;case ne:d=11;break e;case K:d=14;break e;case fe:d=16,a=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=gt(d,n,t,r),t.elementType=e,t.type=a,t.lanes=o,t}function Pn(e,t,n,a){return e=gt(7,e,a,t),e.lanes=n,e}function ps(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function Zc(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function vs(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kc=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var n=Kc.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Zo(t)},Kc.set(e,t),t)}return{value:e,source:t,stack:Zo(t)}}var Ml=[],Tl=0,Mi=null,ma=0,Tt=[],wt=0,vn=null,qt=1,Gt="";function Pt(e,t){Ml[Tl++]=ma,Ml[Tl++]=Mi,Mi=e,ma=t}function Jc(e,t,n){Tt[wt++]=qt,Tt[wt++]=Gt,Tt[wt++]=vn,vn=e;var a=qt;e=Gt;var r=32-dt(a)-1;a&=~(1<<r),n+=1;var o=32-dt(t)+r;if(30<o){var d=r-r%5;o=(a&(1<<d)-1).toString(32),a>>=d,r-=d,qt=1<<32-dt(t)+r|n<<r|a,Gt=o+e}else qt=1<<o|n<<r|a,Gt=e}function ys(e){e.return!==null&&(Pt(e,1),Jc(e,1,0))}function Ss(e){for(;e===Mi;)Mi=Ml[--Tl],Ml[Tl]=null,ma=Ml[--Tl],Ml[Tl]=null;for(;e===vn;)vn=Tt[--wt],Tt[wt]=null,Gt=Tt[--wt],Tt[wt]=null,qt=Tt[--wt],Tt[wt]=null}function Pc(e,t){Tt[wt++]=qt,Tt[wt++]=Gt,Tt[wt++]=vn,qt=t.id,Gt=t.overflow,vn=e}var Xe=null,we=null,de=!1,yn=null,zt=!1,Rs=Error(s(519));function Sn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pa(Mt(t,e)),Rs}function kc(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[$e]=e,t[nt]=a,n){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(n=0;n<La.length;n++)re(La[n],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),cc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),dc(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||mh(t.textContent,n)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||Sn(e,!0)}function Ic(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:zt=!1;return;case 27:case 3:zt=!0;return;default:Xe=Xe.return}}function wl(e){if(e!==Xe)return!1;if(!de)return Ic(e),de=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lr(e.type,e.memoizedProps)),n=!n),n&&we&&Sn(e),Ic(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));we=_h(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));we=_h(e)}else t===27?(t=we,Nn(e.type)?(e=Qr,Qr=null,we=e):we=t):we=Xe?Ot(e.stateNode.nextSibling):null;return!0}function kn(){we=Xe=null,de=!1}function Cs(){var e=yn;return e!==null&&(st===null?st=e:st.push.apply(st,e),yn=null),e}function pa(e){yn===null?yn=[e]:yn.push(e)}var bs=_(null),In=null,kt=null;function Rn(e,t,n){Y(bs,t._currentValue),t._currentValue=n}function It(e){e._currentValue=bs.current,q(bs)}function Es(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function _s(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var d=r.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=r;for(var C=0;C<t.length;C++)if(v.context===t[C]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Es(o.return,n,e),a||(d=null);break e}o=v.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Es(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function zl(e,t,n,a){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var v=r.type;ht(r.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(r===ve.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Qa):e=[Qa])}r=r.return}e!==null&&_s(t,e,n,a),t.flags|=262144}function Ti(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wn(e){In=e,kt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ze(e){return Wc(In,e)}function wi(e,t){return In===null&&Wn(e),Wc(e,t)}function Wc(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},kt===null){if(e===null)throw Error(s(308));kt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kt=kt.next=t;return n}var _p=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Mp=l.unstable_scheduleCallback,Tp=l.unstable_NormalPriority,Le={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ms(){return{controller:new _p,data:new Map,refCount:0}}function va(e){e.refCount--,e.refCount===0&&Mp(Tp,function(){e.controller.abort()})}var ya=null,Ts=0,xl=0,Ol=null;function wp(e,t){if(ya===null){var n=ya=[];Ts=0,xl=xr(),Ol={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Ts++,t.then(ef,ef),t}function ef(){if(--Ts===0&&ya!==null){Ol!==null&&(Ol.status="fulfilled");var e=ya;ya=null,xl=0,Ol=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zp(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var tf=V.S;V.S=function(e,t){Bd=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&wp(e,t),tf!==null&&tf(e,t)};var el=_(null);function ws(){var e=el.current;return e!==null?e:Te.pooledCache}function zi(e,t){t===null?Y(el,el.current):Y(el,t.pool)}function nf(){var e=ws();return e===null?null:{parent:Le._currentValue,pool:e}}var Al=Error(s(460)),zs=Error(s(474)),xi=Error(s(542)),Oi={then:function(){}};function lf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function af(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Zt,Zt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw nl=t,Al}}function tl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(nl=n,Al):n}}var nl=null;function uf(){if(nl===null)throw Error(s(459));var e=nl;return nl=null,e}function sf(e){if(e===Al||e===xi)throw Error(s(483))}var Dl=null,Sa=0;function Ai(e){var t=Sa;return Sa+=1,Dl===null&&(Dl=[]),af(Dl,e,t)}function Ra(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Di(e,t){throw t.$$typeof===R?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rf(e){function t(M,E){if(e){var x=M.deletions;x===null?(M.deletions=[E],M.flags|=16):x.push(E)}}function n(M,E){if(!e)return null;for(;E!==null;)t(M,E),E=E.sibling;return null}function a(M){for(var E=new Map;M!==null;)M.key!==null?E.set(M.key,M):E.set(M.index,M),M=M.sibling;return E}function r(M,E){return M=Jt(M,E),M.index=0,M.sibling=null,M}function o(M,E,x){return M.index=x,e?(x=M.alternate,x!==null?(x=x.index,x<E?(M.flags|=67108866,E):x):(M.flags|=67108866,E)):(M.flags|=1048576,E)}function d(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,E,x,L){return E===null||E.tag!==6?(E=ps(x,M.mode,L),E.return=M,E):(E=r(E,x),E.return=M,E)}function C(M,E,x,L){var J=x.type;return J===w?U(M,E,x.props.children,L,x.key):E!==null&&(E.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&tl(J)===E.type)?(E=r(E,x.props),Ra(E,x),E.return=M,E):(E=_i(x.type,x.key,x.props,null,M.mode,L),Ra(E,x),E.return=M,E)}function O(M,E,x,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==x.containerInfo||E.stateNode.implementation!==x.implementation?(E=vs(x,M.mode,L),E.return=M,E):(E=r(E,x.children||[]),E.return=M,E)}function U(M,E,x,L,J){return E===null||E.tag!==7?(E=Pn(x,M.mode,L,J),E.return=M,E):(E=r(E,x),E.return=M,E)}function B(M,E,x){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=ps(""+E,M.mode,x),E.return=M,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case S:return x=_i(E.type,E.key,E.props,null,M.mode,x),Ra(x,E),x.return=M,x;case T:return E=vs(E,M.mode,x),E.return=M,E;case fe:return E=tl(E),B(M,E,x)}if(Nt(E)||tt(E))return E=Pn(E,M.mode,x,null),E.return=M,E;if(typeof E.then=="function")return B(M,Ai(E),x);if(E.$$typeof===F)return B(M,wi(M,E),x);Di(M,E)}return null}function A(M,E,x,L){var J=E!==null?E.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return J!==null?null:v(M,E,""+x,L);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case S:return x.key===J?C(M,E,x,L):null;case T:return x.key===J?O(M,E,x,L):null;case fe:return x=tl(x),A(M,E,x,L)}if(Nt(x)||tt(x))return J!==null?null:U(M,E,x,L,null);if(typeof x.then=="function")return A(M,E,Ai(x),L);if(x.$$typeof===F)return A(M,E,wi(M,x),L);Di(M,x)}return null}function D(M,E,x,L,J){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return M=M.get(x)||null,v(E,M,""+L,J);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return M=M.get(L.key===null?x:L.key)||null,C(E,M,L,J);case T:return M=M.get(L.key===null?x:L.key)||null,O(E,M,L,J);case fe:return L=tl(L),D(M,E,x,L,J)}if(Nt(L)||tt(L))return M=M.get(x)||null,U(E,M,L,J,null);if(typeof L.then=="function")return D(M,E,x,Ai(L),J);if(L.$$typeof===F)return D(M,E,x,wi(E,L),J);Di(E,L)}return null}function $(M,E,x,L){for(var J=null,he=null,Z=E,ie=E=0,ce=null;Z!==null&&ie<x.length;ie++){Z.index>ie?(ce=Z,Z=null):ce=Z.sibling;var ge=A(M,Z,x[ie],L);if(ge===null){Z===null&&(Z=ce);break}e&&Z&&ge.alternate===null&&t(M,Z),E=o(ge,E,ie),he===null?J=ge:he.sibling=ge,he=ge,Z=ce}if(ie===x.length)return n(M,Z),de&&Pt(M,ie),J;if(Z===null){for(;ie<x.length;ie++)Z=B(M,x[ie],L),Z!==null&&(E=o(Z,E,ie),he===null?J=Z:he.sibling=Z,he=Z);return de&&Pt(M,ie),J}for(Z=a(Z);ie<x.length;ie++)ce=D(Z,M,ie,x[ie],L),ce!==null&&(e&&ce.alternate!==null&&Z.delete(ce.key===null?ie:ce.key),E=o(ce,E,ie),he===null?J=ce:he.sibling=ce,he=ce);return e&&Z.forEach(function(Ln){return t(M,Ln)}),de&&Pt(M,ie),J}function P(M,E,x,L){if(x==null)throw Error(s(151));for(var J=null,he=null,Z=E,ie=E=0,ce=null,ge=x.next();Z!==null&&!ge.done;ie++,ge=x.next()){Z.index>ie?(ce=Z,Z=null):ce=Z.sibling;var Ln=A(M,Z,ge.value,L);if(Ln===null){Z===null&&(Z=ce);break}e&&Z&&Ln.alternate===null&&t(M,Z),E=o(Ln,E,ie),he===null?J=Ln:he.sibling=Ln,he=Ln,Z=ce}if(ge.done)return n(M,Z),de&&Pt(M,ie),J;if(Z===null){for(;!ge.done;ie++,ge=x.next())ge=B(M,ge.value,L),ge!==null&&(E=o(ge,E,ie),he===null?J=ge:he.sibling=ge,he=ge);return de&&Pt(M,ie),J}for(Z=a(Z);!ge.done;ie++,ge=x.next())ge=D(Z,M,ie,ge.value,L),ge!==null&&(e&&ge.alternate!==null&&Z.delete(ge.key===null?ie:ge.key),E=o(ge,E,ie),he===null?J=ge:he.sibling=ge,he=ge);return e&&Z.forEach(function(Bv){return t(M,Bv)}),de&&Pt(M,ie),J}function _e(M,E,x,L){if(typeof x=="object"&&x!==null&&x.type===w&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case S:e:{for(var J=x.key;E!==null;){if(E.key===J){if(J=x.type,J===w){if(E.tag===7){n(M,E.sibling),L=r(E,x.props.children),L.return=M,M=L;break e}}else if(E.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&tl(J)===E.type){n(M,E.sibling),L=r(E,x.props),Ra(L,x),L.return=M,M=L;break e}n(M,E);break}else t(M,E);E=E.sibling}x.type===w?(L=Pn(x.props.children,M.mode,L,x.key),L.return=M,M=L):(L=_i(x.type,x.key,x.props,null,M.mode,L),Ra(L,x),L.return=M,M=L)}return d(M);case T:e:{for(J=x.key;E!==null;){if(E.key===J)if(E.tag===4&&E.stateNode.containerInfo===x.containerInfo&&E.stateNode.implementation===x.implementation){n(M,E.sibling),L=r(E,x.children||[]),L.return=M,M=L;break e}else{n(M,E);break}else t(M,E);E=E.sibling}L=vs(x,M.mode,L),L.return=M,M=L}return d(M);case fe:return x=tl(x),_e(M,E,x,L)}if(Nt(x))return $(M,E,x,L);if(tt(x)){if(J=tt(x),typeof J!="function")throw Error(s(150));return x=J.call(x),P(M,E,x,L)}if(typeof x.then=="function")return _e(M,E,Ai(x),L);if(x.$$typeof===F)return _e(M,E,wi(M,x),L);Di(M,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,E!==null&&E.tag===6?(n(M,E.sibling),L=r(E,x),L.return=M,M=L):(n(M,E),L=ps(x,M.mode,L),L.return=M,M=L),d(M)):n(M,E)}return function(M,E,x,L){try{Sa=0;var J=_e(M,E,x,L);return Dl=null,J}catch(Z){if(Z===Al||Z===xi)throw Z;var he=gt(29,Z,null,M.mode);return he.lanes=L,he.return=M,he}finally{}}}var ll=rf(!0),of=rf(!1),Cn=!1;function xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Os(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 bn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function En(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Ei(e),$c(e,null,n),t}return bi(e,a,t,n),Ei(e)}function Ca(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Wo(e,n)}}function As(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ds=!1;function ba(){if(Ds){var e=Ol;if(e!==null)throw e}}function Ea(e,t,n,a){Ds=!1;var r=e.updateQueue;Cn=!1;var o=r.firstBaseUpdate,d=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var C=v,O=C.next;C.next=null,d===null?o=O:d.next=O,d=C;var U=e.alternate;U!==null&&(U=U.updateQueue,v=U.lastBaseUpdate,v!==d&&(v===null?U.firstBaseUpdate=O:v.next=O,U.lastBaseUpdate=C))}if(o!==null){var B=r.baseState;d=0,U=O=C=null,v=o;do{var A=v.lane&-536870913,D=A!==v.lane;if(D?(oe&A)===A:(a&A)===A){A!==0&&A===xl&&(Ds=!0),U!==null&&(U=U.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var $=e,P=v;A=t;var _e=n;switch(P.tag){case 1:if($=P.payload,typeof $=="function"){B=$.call(_e,B,A);break e}B=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=P.payload,A=typeof $=="function"?$.call(_e,B,A):$,A==null)break e;B=b({},B,A);break e;case 2:Cn=!0}}A=v.callback,A!==null&&(e.flags|=64,D&&(e.flags|=8192),D=r.callbacks,D===null?r.callbacks=[A]:D.push(A))}else D={lane:A,tag:v.tag,payload:v.payload,callback:v.callback,next:null},U===null?(O=U=D,C=B):U=U.next=D,d|=A;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;D=v,v=D.next,D.next=null,r.lastBaseUpdate=D,r.shared.pending=null}}while(!0);U===null&&(C=B),r.baseState=C,r.firstBaseUpdate=O,r.lastBaseUpdate=U,o===null&&(r.shared.lanes=0),zn|=d,e.lanes=d,e.memoizedState=B}}function cf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ff(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)cf(n[e],t)}var Nl=_(null),Ni=_(0);function df(e,t){e=rn,Y(Ni,e),Y(Nl,t),rn=e|t.baseLanes}function Ns(){Y(Ni,rn),Y(Nl,Nl.current)}function Hs(){rn=Ni.current,q(Nl),q(Ni)}var mt=_(null),xt=null;function _n(e){var t=e.alternate;Y(je,je.current&1),Y(mt,e),xt===null&&(t===null||Nl.current!==null||t.memoizedState!==null)&&(xt=e)}function Us(e){Y(je,je.current),Y(mt,e),xt===null&&(xt=e)}function hf(e){e.tag===22?(Y(je,je.current),Y(mt,e),xt===null&&(xt=e)):Mn()}function Mn(){Y(je,je.current),Y(mt,mt.current)}function pt(e){q(mt),xt===e&&(xt=null),q(je)}var je=_(0);function Hi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Gr(n)||Fr(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wt=0,ae=null,be=null,Be=null,Ui=!1,Hl=!1,al=!1,ji=0,_a=0,Ul=null,xp=0;function De(){throw Error(s(321))}function js(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ht(e[n],t[n]))return!1;return!0}function Vs(e,t,n,a,r,o){return Wt=o,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?Pf:Is,al=!1,o=n(a,r),al=!1,Hl&&(o=mf(t,n,a,r)),gf(e),o}function gf(e){V.H=wa;var t=be!==null&&be.next!==null;if(Wt=0,Be=be=ae=null,Ui=!1,_a=0,Ul=null,t)throw Error(s(300));e===null||qe||(e=e.dependencies,e!==null&&Ti(e)&&(qe=!0))}function mf(e,t,n,a){ae=e;var r=0;do{if(Hl&&(Ul=null),_a=0,Hl=!1,25<=r)throw Error(s(301));if(r+=1,Be=be=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=kf,o=t(n,a)}while(Hl);return o}function Op(){var e=V.H,t=e.useState()[0];return t=typeof t.then=="function"?Ma(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(ae.flags|=1024),t}function Ls(){var e=ji!==0;return ji=0,e}function Bs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function qs(e){if(Ui){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ui=!1}Wt=0,Be=be=ae=null,Hl=!1,_a=ji=0,Ul=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ae.memoizedState=Be=e:Be=Be.next=e,Be}function Ve(){if(be===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Be===null?ae.memoizedState:Be.next;if(t!==null)Be=t,be=e;else{if(e===null)throw ae.alternate===null?Error(s(467)):Error(s(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Be===null?ae.memoizedState=Be=e:Be=Be.next=e}return Be}function Vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ma(e){var t=_a;return _a+=1,Ul===null&&(Ul=[]),e=af(Ul,e,t),t=ae,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?Pf:Is),e}function Li(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ma(e);if(e.$$typeof===F)return Ze(e)}throw Error(s(438,String(e)))}function Gs(e){var t=null,n=ae.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Vi(),ae.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Ae;return t.index++,n}function en(e,t){return typeof t=="function"?t(e):t}function Bi(e){var t=Ve();return Fs(t,be,e)}function Fs(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var r=e.baseQueue,o=a.pending;if(o!==null){if(r!==null){var d=r.next;r.next=o.next,o.next=d}t.baseQueue=r=o,a.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var v=d=null,C=null,O=t,U=!1;do{var B=O.lane&-536870913;if(B!==O.lane?(oe&B)===B:(Wt&B)===B){var A=O.revertLane;if(A===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),B===xl&&(U=!0);else if((Wt&A)===A){O=O.next,A===xl&&(U=!0);continue}else B={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},C===null?(v=C=B,d=o):C=C.next=B,ae.lanes|=A,zn|=A;B=O.action,al&&n(o,B),o=O.hasEagerState?O.eagerState:n(o,B)}else A={lane:B,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},C===null?(v=C=A,d=o):C=C.next=A,ae.lanes|=B,zn|=B;O=O.next}while(O!==null&&O!==t);if(C===null?d=o:C.next=v,!ht(o,e.memoizedState)&&(qe=!0,U&&(n=Ol,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=C,a.lastRenderedState=o}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Qs(e){var t=Ve(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do o=e(o,d.action),d=d.next;while(d!==r);ht(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function pf(e,t,n){var a=ae,r=Ve(),o=de;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!ht((be||r).memoizedState,n);if(d&&(r.memoizedState=n,qe=!0),r=r.queue,Xs(Sf.bind(null,a,r,e),[e]),r.getSnapshot!==t||d||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,jl(9,{destroy:void 0},yf.bind(null,a,r,n,t),null),Te===null)throw Error(s(349));o||(Wt&127)!==0||vf(a,t,n)}return n}function vf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t=Vi(),ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yf(e,t,n,a){t.value=n,t.getSnapshot=a,Rf(t)&&Cf(e)}function Sf(e,t,n){return n(function(){Rf(t)&&Cf(e)})}function Rf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ht(e,n)}catch{return!0}}function Cf(e){var t=Jn(e,2);t!==null&&rt(t,e,2)}function Ys(e){var t=et();if(typeof e=="function"){var n=e;if(e=n(),al){gn(!0);try{n()}finally{gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:e},t}function bf(e,t,n,a){return e.baseState=n,Fs(e,be,typeof a=="function"?a:en)}function Ap(e,t,n,a,r){if(Fi(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};V.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Ef(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ef(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var o=V.T,d={};V.T=d;try{var v=n(r,a),C=V.S;C!==null&&C(d,v),_f(e,t,v)}catch(O){$s(e,t,O)}finally{o!==null&&d.types!==null&&(o.types=d.types),V.T=o}}else try{o=n(r,a),_f(e,t,o)}catch(O){$s(e,t,O)}}function _f(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Mf(e,t,a)},function(a){return $s(e,t,a)}):Mf(e,t,n)}function Mf(e,t,n){t.status="fulfilled",t.value=n,Tf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ef(e,n)))}function $s(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Tf(t),t=t.next;while(t!==a)}e.action=null}function Tf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wf(e,t){return t}function zf(e,t){if(de){var n=Te.formState;if(n!==null){e:{var a=ae;if(de){if(we){t:{for(var r=we,o=zt;r.nodeType!==8;){if(!o){r=null;break t}if(r=Ot(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){we=Ot(r.nextSibling),a=r.data==="F!";break e}}Sn(a)}a=!1}a&&(t=n[0])}}return n=et(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wf,lastRenderedState:t},n.queue=a,n=Zf.bind(null,ae,a),a.dispatch=n,a=Ys(!1),o=ks.bind(null,ae,!1,a.queue),a=et(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=Ap.bind(null,ae,r,o,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function xf(e){var t=Ve();return Of(t,be,e)}function Of(e,t,n){if(t=Fs(e,t,wf)[0],e=Bi(en)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ma(t)}catch(d){throw d===Al?xi:d}else a=t;t=Ve();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(ae.flags|=2048,jl(9,{destroy:void 0},Dp.bind(null,r,n),null)),[a,o,e]}function Dp(e,t){e.action=t}function Af(e){var t=Ve(),n=be;if(n!==null)return Of(t,n,e);Ve(),t=t.memoizedState,n=Ve();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function jl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=Vi(),ae.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Df(){return Ve().memoizedState}function qi(e,t,n,a){var r=et();ae.flags|=e,r.memoizedState=jl(1|t,{destroy:void 0},n,a===void 0?null:a)}function Gi(e,t,n,a){var r=Ve();a=a===void 0?null:a;var o=r.memoizedState.inst;be!==null&&a!==null&&js(a,be.memoizedState.deps)?r.memoizedState=jl(t,o,n,a):(ae.flags|=e,r.memoizedState=jl(1|t,o,n,a))}function Nf(e,t){qi(8390656,8,e,t)}function Xs(e,t){Gi(2048,8,e,t)}function Np(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=Vi(),ae.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Hf(e){var t=Ve().memoizedState;return Np({ref:t,nextImpl:e}),function(){if((me&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Uf(e,t){return Gi(4,2,e,t)}function jf(e,t){return Gi(4,4,e,t)}function Vf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lf(e,t,n){n=n!=null?n.concat([e]):null,Gi(4,4,Vf.bind(null,t,e),n)}function Zs(){}function Bf(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&js(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function qf(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&js(t,a[1]))return a[0];if(a=e(),al){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a}function Ks(e,t,n){return n===void 0||(Wt&1073741824)!==0&&(oe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Gd(),ae.lanes|=e,zn|=e,n)}function Gf(e,t,n,a){return ht(n,t)?n:Nl.current!==null?(e=Ks(e,n,a),ht(e,t)||(qe=!0),e):(Wt&42)===0||(Wt&1073741824)!==0&&(oe&261930)===0?(qe=!0,e.memoizedState=n):(e=Gd(),ae.lanes|=e,zn|=e,t)}function Ff(e,t,n,a,r){var o=Q.p;Q.p=o!==0&&8>o?o:8;var d=V.T,v={};V.T=v,ks(e,!1,t,n);try{var C=r(),O=V.S;if(O!==null&&O(v,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var U=zp(C,a);Ta(e,t,U,St(e))}else Ta(e,t,a,St(e))}catch(B){Ta(e,t,{then:function(){},status:"rejected",reason:B},St())}finally{Q.p=o,d!==null&&v.types!==null&&(d.types=v.types),V.T=d}}function Hp(){}function Js(e,t,n,a){if(e.tag!==5)throw Error(s(476));var r=Qf(e).queue;Ff(e,r,t,W,n===null?Hp:function(){return Yf(e),n(a)})}function Qf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:W},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yf(e){var t=Qf(e);t.next===null&&(t=e.alternate.memoizedState),Ta(e,t.next.queue,{},St())}function Ps(){return Ze(Qa)}function $f(){return Ve().memoizedState}function Xf(){return Ve().memoizedState}function Up(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=St();e=bn(n);var a=En(t,e,n);a!==null&&(rt(a,t,n),Ca(a,t,n)),t={cache:Ms()},e.payload=t;return}t=t.return}}function jp(e,t,n){var a=St();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fi(e)?Kf(t,n):(n=gs(e,t,n,a),n!==null&&(rt(n,e,a),Jf(n,t,a)))}function Zf(e,t,n){var a=St();Ta(e,t,n,a)}function Ta(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fi(e))Kf(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,v=o(d,n);if(r.hasEagerState=!0,r.eagerState=v,ht(v,d))return bi(e,t,r,0),Te===null&&Ci(),!1}catch{}finally{}if(n=gs(e,t,r,a),n!==null)return rt(n,e,a),Jf(n,t,a),!0}return!1}function ks(e,t,n,a){if(a={lane:2,revertLane:xr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fi(e)){if(t)throw Error(s(479))}else t=gs(e,n,a,2),t!==null&&rt(t,e,2)}function Fi(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function Kf(e,t){Hl=Ui=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jf(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Wo(e,n)}}var wa={readContext:Ze,use:Li,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};wa.useEffectEvent=De;var Pf={readContext:Ze,use:Li,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Nf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,qi(4194308,4,Vf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qi(4194308,4,e,t)},useInsertionEffect:function(e,t){qi(4,2,e,t)},useMemo:function(e,t){var n=et();t=t===void 0?null:t;var a=e();if(al){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=et();if(n!==void 0){var r=n(t);if(al){gn(!0);try{n(t)}finally{gn(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=jp.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=Ys(e);var t=e.queue,n=Zf.bind(null,ae,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Zs,useDeferredValue:function(e,t){var n=et();return Ks(n,e,t)},useTransition:function(){var e=Ys(!1);return e=Ff.bind(null,ae,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ae,r=et();if(de){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Te===null)throw Error(s(349));(oe&127)!==0||vf(a,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Nf(Sf.bind(null,a,o,e),[e]),a.flags|=2048,jl(9,{destroy:void 0},yf.bind(null,a,o,n,t),null),n},useId:function(){var e=et(),t=Te.identifierPrefix;if(de){var n=Gt,a=qt;n=(a&~(1<<32-dt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ji++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=xp++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ps,useFormState:zf,useActionState:zf,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ks.bind(null,ae,!0,n),n.dispatch=t,[e,t]},useMemoCache:Gs,useCacheRefresh:function(){return et().memoizedState=Up.bind(null,ae)},useEffectEvent:function(e){var t=et(),n={impl:e};return t.memoizedState=n,function(){if((me&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Is={readContext:Ze,use:Li,useCallback:Bf,useContext:Ze,useEffect:Xs,useImperativeHandle:Lf,useInsertionEffect:Uf,useLayoutEffect:jf,useMemo:qf,useReducer:Bi,useRef:Df,useState:function(){return Bi(en)},useDebugValue:Zs,useDeferredValue:function(e,t){var n=Ve();return Gf(n,be.memoizedState,e,t)},useTransition:function(){var e=Bi(en)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ma(e),t]},useSyncExternalStore:pf,useId:$f,useHostTransitionStatus:Ps,useFormState:xf,useActionState:xf,useOptimistic:function(e,t){var n=Ve();return bf(n,be,e,t)},useMemoCache:Gs,useCacheRefresh:Xf};Is.useEffectEvent=Hf;var kf={readContext:Ze,use:Li,useCallback:Bf,useContext:Ze,useEffect:Xs,useImperativeHandle:Lf,useInsertionEffect:Uf,useLayoutEffect:jf,useMemo:qf,useReducer:Qs,useRef:Df,useState:function(){return Qs(en)},useDebugValue:Zs,useDeferredValue:function(e,t){var n=Ve();return be===null?Ks(n,e,t):Gf(n,be.memoizedState,e,t)},useTransition:function(){var e=Qs(en)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ma(e),t]},useSyncExternalStore:pf,useId:$f,useHostTransitionStatus:Ps,useFormState:Af,useActionState:Af,useOptimistic:function(e,t){var n=Ve();return be!==null?bf(n,be,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Gs,useCacheRefresh:Xf};kf.useEffectEvent=Hf;function Ws(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var er={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=St(),r=bn(a);r.payload=t,n!=null&&(r.callback=n),t=En(e,r,a),t!==null&&(rt(t,e,a),Ca(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=St(),r=bn(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=En(e,r,a),t!==null&&(rt(t,e,a),Ca(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=St(),a=bn(n);a.tag=2,t!=null&&(a.callback=t),t=En(e,a,n),t!==null&&(rt(t,e,n),Ca(t,e,n))}};function If(e,t,n,a,r,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,d):t.prototype&&t.prototype.isPureReactComponent?!ha(n,a)||!ha(r,o):!0}function Wf(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&er.enqueueReplaceState(t,t.state,null)}function il(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function ed(e){Ri(e)}function td(e){console.error(e)}function nd(e){Ri(e)}function Qi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ld(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function tr(e,t,n){return n=bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Qi(e,t)},n}function ad(e){return e=bn(e),e.tag=3,e}function id(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=a.value;e.payload=function(){return r(o)},e.callback=function(){ld(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){ld(t,n,a),typeof r!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Vp(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&zl(t,n,r,!0),n=mt.current,n!==null){switch(n.tag){case 31:case 13:return xt===null?tu():n.alternate===null&&Ne===0&&(Ne=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===Oi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Tr(e,a,r)),!1;case 22:return n.flags|=65536,a===Oi?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Tr(e,a,r)),!1}throw Error(s(435,n.tag))}return Tr(e,a,r),tu(),!1}if(de)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==Rs&&(e=Error(s(422),{cause:a}),pa(Mt(e,n)))):(a!==Rs&&(t=Error(s(423),{cause:a}),pa(Mt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Mt(a,n),r=tr(e.stateNode,a,r),As(e,r),Ne!==4&&(Ne=2)),!1;var o=Error(s(520),{cause:a});if(o=Mt(o,n),Ua===null?Ua=[o]:Ua.push(o),Ne!==4&&(Ne=2),t===null)return!0;a=Mt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=tr(n.stateNode,a,e),As(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(xn===null||!xn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ad(r),id(r,e,n,a),As(n,r),!1}n=n.return}while(n!==null);return!1}var nr=Error(s(461)),qe=!1;function Ke(e,t,n,a){t.child=e===null?of(t,null,n,a):ll(t,e.child,n,a)}function ud(e,t,n,a,r){n=n.render;var o=t.ref;if("ref"in a){var d={};for(var v in a)v!=="ref"&&(d[v]=a[v])}else d=a;return Wn(t),a=Vs(e,t,n,d,o,r),v=Ls(),e!==null&&!qe?(Bs(e,t,r),tn(e,t,r)):(de&&v&&ys(t),t.flags|=1,Ke(e,t,a,r),t.child)}function sd(e,t,n,a,r){if(e===null){var o=n.type;return typeof o=="function"&&!ms(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,rd(e,t,o,a,r)):(e=_i(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!cr(e,r)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:ha,n(d,a)&&e.ref===t.ref)return tn(e,t,r)}return t.flags|=1,e=Jt(o,a),e.ref=t.ref,e.return=t,t.child=e}function rd(e,t,n,a,r){if(e!==null){var o=e.memoizedProps;if(ha(o,a)&&e.ref===t.ref)if(qe=!1,t.pendingProps=a=o,cr(e,r))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,tn(e,t,r)}return lr(e,t,n,a,r)}function od(e,t,n,a){var r=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~o}else a=0,t.child=null;return cd(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zi(t,o!==null?o.cachePool:null),o!==null?df(t,o):Ns(),hf(t);else return a=t.lanes=536870912,cd(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(zi(t,o.cachePool),df(t,o),Mn(),t.memoizedState=null):(e!==null&&zi(t,null),Ns(),Mn());return Ke(e,t,r,n),t.child}function za(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cd(e,t,n,a,r){var o=ws();return o=o===null?null:{parent:Le._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&zi(t,null),Ns(),hf(t),e!==null&&zl(e,t,a,!0),t.childLanes=r,null}function Yi(e,t){return t=Xi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fd(e,t,n){return ll(t,e.child,null,n),e=Yi(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function Lp(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=Yi(t,a),t.lanes=536870912,za(null,e);if(Us(t),(e=we)?(e=Eh(e,zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vn!==null?{id:qt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},n=Zc(e),n.return=t,t.child=n,Xe=t,we=null)):e=null,e===null)throw Sn(t);return t.lanes=536870912,null}return Yi(t,a)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(Us(t),r)if(t.flags&256)t.flags&=-257,t=fd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(qe||zl(e,t,n,!1),r=(n&e.childLanes)!==0,qe||r){if(a=Te,a!==null&&(d=ec(a,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,Jn(e,d),rt(a,e,d),nr;tu(),t=fd(e,t,n)}else e=o.treeContext,we=Ot(d.nextSibling),Xe=t,de=!0,yn=null,zt=!1,e!==null&&Pc(t,e),t=Yi(t,a),t.flags|=4096;return t}return e=Jt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function $i(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lr(e,t,n,a,r){return Wn(t),n=Vs(e,t,n,a,void 0,r),a=Ls(),e!==null&&!qe?(Bs(e,t,r),tn(e,t,r)):(de&&a&&ys(t),t.flags|=1,Ke(e,t,n,r),t.child)}function dd(e,t,n,a,r,o){return Wn(t),t.updateQueue=null,n=mf(t,a,n,r),gf(e),a=Ls(),e!==null&&!qe?(Bs(e,t,o),tn(e,t,o)):(de&&a&&ys(t),t.flags|=1,Ke(e,t,n,o),t.child)}function hd(e,t,n,a,r){if(Wn(t),t.stateNode===null){var o=_l,d=n.contextType;typeof d=="object"&&d!==null&&(o=Ze(d)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=er,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},xs(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?Ze(d):_l,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Ws(t,n,d,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&er.enqueueReplaceState(o,o.state,null),Ea(t,a,o,r),ba(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,C=il(n,v);o.props=C;var O=o.context,U=n.contextType;d=_l,typeof U=="object"&&U!==null&&(d=Ze(U));var B=n.getDerivedStateFromProps;U=typeof B=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,U||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||O!==d)&&Wf(t,o,a,d),Cn=!1;var A=t.memoizedState;o.state=A,Ea(t,a,o,r),ba(),O=t.memoizedState,v||A!==O||Cn?(typeof B=="function"&&(Ws(t,n,B,a),O=t.memoizedState),(C=Cn||If(t,n,C,a,A,O,d))?(U||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=O),o.props=a,o.state=O,o.context=d,a=C):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Os(e,t),d=t.memoizedProps,U=il(n,d),o.props=U,B=t.pendingProps,A=o.context,O=n.contextType,C=_l,typeof O=="object"&&O!==null&&(C=Ze(O)),v=n.getDerivedStateFromProps,(O=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==B||A!==C)&&Wf(t,o,a,C),Cn=!1,A=t.memoizedState,o.state=A,Ea(t,a,o,r),ba();var D=t.memoizedState;d!==B||A!==D||Cn||e!==null&&e.dependencies!==null&&Ti(e.dependencies)?(typeof v=="function"&&(Ws(t,n,v,a),D=t.memoizedState),(U=Cn||If(t,n,U,a,A,D,C)||e!==null&&e.dependencies!==null&&Ti(e.dependencies))?(O||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,D,C),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,D,C)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),o.props=a,o.state=D,o.context=C,a=U):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,$i(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=ll(t,e.child,null,r),t.child=ll(t,null,n,r)):Ke(e,t,n,r),t.memoizedState=o.state,e=t.child):e=tn(e,t,r),e}function gd(e,t,n,a){return kn(),t.flags|=256,Ke(e,t,n,a),t.child}var ar={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ir(e){return{baseLanes:e,cachePool:nf()}}function ur(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=yt),e}function md(e,t,n){var a=t.pendingProps,r=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(je.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(r?_n(t):Mn(),(e=we)?(e=Eh(e,zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vn!==null?{id:qt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},n=Zc(e),n.return=t,t.child=n,Xe=t,we=null)):e=null,e===null)throw Sn(t);return Fr(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,r?(Mn(),r=t.mode,v=Xi({mode:"hidden",children:v},r),a=Pn(a,r,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=ir(n),a.childLanes=ur(e,d,n),t.memoizedState=ar,za(null,a)):(_n(t),sr(t,v))}var C=e.memoizedState;if(C!==null&&(v=C.dehydrated,v!==null)){if(o)t.flags&256?(_n(t),t.flags&=-257,t=rr(e,t,n)):t.memoizedState!==null?(Mn(),t.child=e.child,t.flags|=128,t=null):(Mn(),v=a.fallback,r=t.mode,a=Xi({mode:"visible",children:a.children},r),v=Pn(v,r,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,ll(t,e.child,null,n),a=t.child,a.memoizedState=ir(n),a.childLanes=ur(e,d,n),t.memoizedState=ar,t=za(null,a));else if(_n(t),Fr(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var O=d.dgst;d=O,a=Error(s(419)),a.stack="",a.digest=d,pa({value:a,source:null,stack:null}),t=rr(e,t,n)}else if(qe||zl(e,t,n,!1),d=(n&e.childLanes)!==0,qe||d){if(d=Te,d!==null&&(a=ec(d,n),a!==0&&a!==C.retryLane))throw C.retryLane=a,Jn(e,a),rt(d,e,a),nr;Gr(v)||tu(),t=rr(e,t,n)}else Gr(v)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,we=Ot(v.nextSibling),Xe=t,de=!0,yn=null,zt=!1,e!==null&&Pc(t,e),t=sr(t,a.children),t.flags|=4096);return t}return r?(Mn(),v=a.fallback,r=t.mode,C=e.child,O=C.sibling,a=Jt(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,O!==null?v=Jt(O,v):(v=Pn(v,r,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,za(null,a),a=t.child,v=e.child.memoizedState,v===null?v=ir(n):(r=v.cachePool,r!==null?(C=Le._currentValue,r=r.parent!==C?{parent:C,pool:C}:r):r=nf(),v={baseLanes:v.baseLanes|n,cachePool:r}),a.memoizedState=v,a.childLanes=ur(e,d,n),t.memoizedState=ar,za(e.child,a)):(_n(t),n=e.child,e=n.sibling,n=Jt(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function sr(e,t){return t=Xi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xi(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function rr(e,t,n){return ll(t,e.child,null,n),e=sr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Es(e.return,t,n)}function or(e,t,n,a,r,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=r,d.treeForkCount=o)}function vd(e,t,n){var a=t.pendingProps,r=a.revealOrder,o=a.tail;a=a.children;var d=je.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,Y(je,d),Ke(e,t,a,n),a=de?ma:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pd(e,n,t);else if(e.tag===19)pd(e,n,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(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Hi(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),or(t,!1,r,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Hi(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}or(t,!0,n,null,o,a);break;case"together":or(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(zl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ti(e)))}function Bp(e,t,n){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),Rn(t,Le,e.memoizedState.cache),kn();break;case 27:case 5:ea(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Us(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(_n(t),t.flags|=128,null):(n&t.child.childLanes)!==0?md(e,t,n):(_n(t),e=tn(e,t,n),e!==null?e.sibling:null);_n(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(zl(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return vd(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Y(je,je.current),a)break;return null;case 22:return t.lanes=0,od(e,t,n,t.pendingProps);case 24:Rn(t,Le,e.memoizedState.cache)}return tn(e,t,n)}function yd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!cr(e,n)&&(t.flags&128)===0)return qe=!1,Bp(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,de&&(t.flags&1048576)!==0&&Jc(t,ma,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=tl(t.elementType),t.type=e,typeof e=="function")ms(e)?(a=il(e,a),t.tag=1,t=hd(null,t,e,a,n)):(t.tag=0,t=lr(null,t,e,a,n));else{if(e!=null){var r=e.$$typeof;if(r===ne){t.tag=11,t=ud(null,t,e,a,n);break e}else if(r===K){t.tag=14,t=sd(null,t,e,a,n);break e}}throw t=$t(e)||e,Error(s(306,t,""))}}return t;case 0:return lr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=il(a,t.pendingProps),hd(e,t,a,r,n);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var o=t.memoizedState;r=o.element,Os(e,t),Ea(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Rn(t,Le,a),a!==o.cache&&_s(t,[Le],n,!0),ba(),a=d.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gd(e,t,a,n);break e}else if(a!==r){r=Mt(Error(s(424)),t),pa(r),t=gd(e,t,a,n);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(we=Ot(e.firstChild),Xe=t,de=!0,yn=null,zt=!0,n=of(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(kn(),a===r){t=tn(e,t,n);break e}Ke(e,t,a,n)}t=t.child}return t;case 26:return $i(e,t),e===null?(n=xh(t.type,null,t.pendingProps,null))?t.memoizedState=n:de||(n=t.type,e=t.pendingProps,a=ru(ue.current).createElement(n),a[$e]=t,a[nt]=e,Je(a,n,e),Qe(a),t.stateNode=a):t.memoizedState=xh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ea(t),e===null&&de&&(a=t.stateNode=Th(t.type,t.pendingProps,ue.current),Xe=t,zt=!0,r=we,Nn(t.type)?(Qr=r,we=Ot(a.firstChild)):we=r),Ke(e,t,t.pendingProps.children,n),$i(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((r=a=we)&&(a=mv(a,t.type,t.pendingProps,zt),a!==null?(t.stateNode=a,Xe=t,we=Ot(a.firstChild),zt=!1,r=!0):r=!1),r||Sn(t)),ea(t),r=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,a=o.children,Lr(r,o)?a=null:d!==null&&Lr(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Vs(e,t,Op,null,null,n),Qa._currentValue=r),$i(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&de&&((e=n=we)&&(n=pv(n,t.pendingProps,zt),n!==null?(t.stateNode=n,Xe=t,we=null,e=!0):e=!1),e||Sn(t)),null;case 13:return md(e,t,n);case 4:return We(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ll(t,null,a,n):Ke(e,t,a,n),t.child;case 11:return ud(e,t,t.type,t.pendingProps,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Rn(t,t.type,a.value),Ke(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,Wn(t),r=Ze(r),a=a(r),t.flags|=1,Ke(e,t,a,n),t.child;case 14:return sd(e,t,t.type,t.pendingProps,n);case 15:return rd(e,t,t.type,t.pendingProps,n);case 19:return vd(e,t,n);case 31:return Lp(e,t,n);case 22:return od(e,t,n,t.pendingProps);case 24:return Wn(t),a=Ze(Le),e===null?(r=ws(),r===null&&(r=Te,o=Ms(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:a,cache:r},xs(t),Rn(t,Le,r)):((e.lanes&n)!==0&&(Os(e,t),Ea(t,null,null,n),ba()),r=e.memoizedState,o=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Rn(t,Le,a)):(a=o.cache,Rn(t,Le,a),a!==r.cache&&_s(t,[Le],n,!0))),Ke(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function nn(e){e.flags|=4}function fr(e,t,n,a,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if($d())e.flags|=8192;else throw nl=Oi,zs}else e.flags&=-16777217}function Sd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hh(t))if($d())e.flags|=8192;else throw nl=Oi,zs}function Zi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ko():536870912,e.lanes|=t,ql|=t)}function xa(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function qp(e,t,n){var a=t.pendingProps;switch(Ss(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Le),Ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wl(t)?nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Cs())),ze(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(nn(t),o!==null?(ze(t),Sd(t,o)):(ze(t),fr(t,r,null,a,n))):o?o!==e.memoizedState?(nn(t),ze(t),Sd(t,o)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&nn(t),ze(t),fr(t,r,e,a,n)),null;case 27:if(ai(t),n=ue.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}e=X.current,wl(t)?kc(t):(e=Th(r,a,n),t.stateNode=e,nn(t))}return ze(t),null;case 5:if(ai(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}if(o=X.current,wl(t))kc(t);else{var d=ru(ue.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}o[$e]=t,o[nt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(Je(o,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&nn(t)}}return ze(t),fr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,wl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=Xe,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||mh(e.nodeValue,n)),e||Sn(t,!0)}else e=ru(e).createTextNode(a),e[$e]=t,t.stateNode=e}return ze(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=wl(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[$e]=t}else kn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else n=Cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=wl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[$e]=t}else kn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),r=!1}else r=Cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Zi(t,t.updateQueue),ze(t),null);case 4:return Ue(),e===null&&Nr(t.stateNode.containerInfo),ze(t),null;case 10:return It(t.type),ze(t),null;case 19:if(q(je),a=t.memoizedState,a===null)return ze(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)xa(a,!1);else{if(Ne!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Hi(e),o!==null){for(t.flags|=128,xa(a,!1),e=o.updateQueue,t.updateQueue=e,Zi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Xc(n,e),n=n.sibling;return Y(je,je.current&1|2),de&&Pt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ct()>Ii&&(t.flags|=128,r=!0,xa(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hi(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Zi(t,e),xa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!de)return ze(t),null}else 2*ct()-a.renderingStartTime>Ii&&n!==536870912&&(t.flags|=128,r=!0,xa(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ct(),e.sibling=null,n=je.current,Y(je,r?n&1|2:n&1),de&&Pt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return pt(t),Hs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),n=t.updateQueue,n!==null&&Zi(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&q(el),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),It(Le),ze(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Gp(e,t){switch(Ss(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Le),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ai(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(s(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(je),null;case 4:return Ue(),null;case 10:return It(t.type),null;case 22:case 23:return pt(t),Hs(),e!==null&&q(el),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Le),null;case 25:return null;default:return null}}function Rd(e,t){switch(Ss(t),t.tag){case 3:It(Le),Ue();break;case 26:case 27:case 5:ai(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:q(je);break;case 10:It(t.type);break;case 22:case 23:pt(t),Hs(),e!==null&&q(el);break;case 24:It(Le)}}function Oa(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var o=n.create,d=n.inst;a=o(),d.destroy=a}n=n.next}while(n!==r)}}catch(v){Re(t,t.return,v)}}function Tn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){var d=a.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,r=t;var C=n,O=v;try{O()}catch(U){Re(r,C,U)}}}a=a.next}while(a!==o)}}catch(U){Re(t,t.return,U)}}function Cd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ff(t,n)}catch(a){Re(e,e.return,a)}}}function bd(e,t,n){n.props=il(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Re(e,t,a)}}function Aa(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){Re(e,t,r)}}function Ft(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){Re(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Ed(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){Re(e,e.return,r)}}function dr(e,t,n){try{var a=e.stateNode;ov(a,e.type,n,t),a[nt]=t}catch(r){Re(e,e.return,r)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nn(e.type)||e.tag===4}function hr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(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&&Nn(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 gr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zt));else if(a!==4&&(a===27&&Nn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(gr(e,t,n),e=e.sibling;e!==null;)gr(e,t,n),e=e.sibling}function Ki(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Nn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ki(e,t,n),e=e.sibling;e!==null;)Ki(e,t,n),e=e.sibling}function Md(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Je(t,a,n),t[$e]=e,t[nt]=n}catch(o){Re(e,e.return,o)}}var ln=!1,Ge=!1,mr=!1,Td=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Fp(e,t){if(e=e.containerInfo,jr=mu,e=Vc(e),rs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,v=-1,C=-1,O=0,U=0,B=e,A=null;t:for(;;){for(var D;B!==n||r!==0&&B.nodeType!==3||(v=d+r),B!==o||a!==0&&B.nodeType!==3||(C=d+a),B.nodeType===3&&(d+=B.nodeValue.length),(D=B.firstChild)!==null;)A=B,B=D;for(;;){if(B===e)break t;if(A===n&&++O===r&&(v=d),A===o&&++U===a&&(C=d),(D=B.nextSibling)!==null)break;B=A,A=B.parentNode}B=D}n=v===-1||C===-1?null:{start:v,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vr={focusedElem:e,selectionRange:n},mu=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,r=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var $=il(n.type,r);e=a.getSnapshotBeforeUpdate($,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){Re(n,n.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)qr(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":qr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function wd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:un(e,n),a&4&&Oa(5,n);break;case 1:if(un(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Re(n,n.return,d)}else{var r=il(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Re(n,n.return,d)}}a&64&&Cd(n),a&512&&Aa(n,n.return);break;case 3:if(un(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ff(e,t)}catch(d){Re(n,n.return,d)}}break;case 27:t===null&&a&4&&Md(n);case 26:case 5:un(e,n),t===null&&a&4&&Ed(n),a&512&&Aa(n,n.return);break;case 12:un(e,n);break;case 31:un(e,n),a&4&&Od(e,n);break;case 13:un(e,n),a&4&&Ad(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=kp.bind(null,n),vv(e,n))));break;case 22:if(a=n.memoizedState!==null||ln,!a){t=t!==null&&t.memoizedState!==null||Ge,r=ln;var o=Ge;ln=a,(Ge=t)&&!o?sn(e,n,(n.subtreeFlags&8772)!==0):un(e,n),ln=r,Ge=o}break;case 30:break;default:un(e,n)}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$u(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 xe=null,at=!1;function an(e,t,n){for(n=n.child;n!==null;)xd(e,t,n),n=n.sibling}function xd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(ta,n)}catch{}switch(n.tag){case 26:Ge||Ft(n,t),an(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ge||Ft(n,t);var a=xe,r=at;Nn(n.type)&&(xe=n.stateNode,at=!1),an(e,t,n),qa(n.stateNode),xe=a,at=r;break;case 5:Ge||Ft(n,t);case 6:if(a=xe,r=at,xe=null,an(e,t,n),xe=a,at=r,xe!==null)if(at)try{(xe.nodeType===9?xe.body:xe.nodeName==="HTML"?xe.ownerDocument.body:xe).removeChild(n.stateNode)}catch(o){Re(n,t,o)}else try{xe.removeChild(n.stateNode)}catch(o){Re(n,t,o)}break;case 18:xe!==null&&(at?(e=xe,Ch(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Kl(e)):Ch(xe,n.stateNode));break;case 4:a=xe,r=at,xe=n.stateNode.containerInfo,at=!0,an(e,t,n),xe=a,at=r;break;case 0:case 11:case 14:case 15:Tn(2,n,t),Ge||Tn(4,n,t),an(e,t,n);break;case 1:Ge||(Ft(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&bd(n,t,a)),an(e,t,n);break;case 21:an(e,t,n);break;case 22:Ge=(a=Ge)||n.memoizedState!==null,an(e,t,n),Ge=a;break;default:an(e,t,n)}}function Od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kl(e)}catch(n){Re(t,t.return,n)}}}function Ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kl(e)}catch(n){Re(t,t.return,n)}}function Qp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Td),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Td),t;default:throw Error(s(435,e.tag))}}function Ji(e,t){var n=Qp(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var r=Ip.bind(null,e,a);a.then(r,r)}})}function it(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a],o=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Nn(v.type)){xe=v.stateNode,at=!1;break e}break;case 5:xe=v.stateNode,at=!1;break e;case 3:case 4:xe=v.stateNode.containerInfo,at=!0;break e}v=v.return}if(xe===null)throw Error(s(160));xd(o,d,r),xe=null,at=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dd(t,e),t=t.sibling}var Ut=null;function Dd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ut(e),a&4&&(Tn(3,e,e.return),Oa(3,e),Tn(5,e,e.return));break;case 1:it(t,e),ut(e),a&512&&(Ge||n===null||Ft(n,n.return)),a&64&&ln&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var r=Ut;if(it(t,e),ut(e),a&512&&(Ge||n===null||Ft(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":o=r.getElementsByTagName("title")[0],(!o||o[aa]||o[$e]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(a),r.head.insertBefore(o,r.querySelector("head > title"))),Je(o,a,n),o[$e]=e,Qe(o),a=o;break e;case"link":var d=Dh("link","href",r).get(a+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break t}}o=r.createElement(a),Je(o,a,n),r.head.appendChild(o);break;case"meta":if(d=Dh("meta","content",r).get(a+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break t}}o=r.createElement(a),Je(o,a,n),r.head.appendChild(o);break;default:throw Error(s(468,a))}o[$e]=e,Qe(o),a=o}e.stateNode=a}else Nh(r,e.type,e.stateNode);else e.stateNode=Ah(r,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Nh(r,e.type,e.stateNode):Ah(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&dr(e,e.memoizedProps,n.memoizedProps)}break;case 27:it(t,e),ut(e),a&512&&(Ge||n===null||Ft(n,n.return)),n!==null&&a&4&&dr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(it(t,e),ut(e),a&512&&(Ge||n===null||Ft(n,n.return)),e.flags&32){r=e.stateNode;try{vl(r,"")}catch($){Re(e,e.return,$)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,dr(e,r,n!==null?n.memoizedProps:r)),a&1024&&(mr=!0);break;case 6:if(it(t,e),ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch($){Re(e,e.return,$)}}break;case 3:if(fu=null,r=Ut,Ut=ou(t.containerInfo),it(t,e),Ut=r,ut(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Kl(t.containerInfo)}catch($){Re(e,e.return,$)}mr&&(mr=!1,Nd(e));break;case 4:a=Ut,Ut=ou(e.stateNode.containerInfo),it(t,e),ut(e),Ut=a;break;case 12:it(t,e),ut(e);break;case 31:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ji(e,a)));break;case 13:it(t,e),ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ki=ct()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ji(e,a)));break;case 22:r=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,O=ln,U=Ge;if(ln=O||r,Ge=U||C,it(t,e),Ge=U,ln=O,ut(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||C||ln||Ge||ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(o=C.stateNode,r)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=C.stateNode;var B=C.memoizedProps.style,A=B!=null&&B.hasOwnProperty("display")?B.display:null;v.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch($){Re(C,C.return,$)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=r?"":C.memoizedProps}catch($){Re(C,C.return,$)}}}else if(t.tag===18){if(n===null){C=t;try{var D=C.stateNode;r?bh(D,!0):bh(C.stateNode,!1)}catch($){Re(C,C.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ji(e,n))));break;case 19:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ji(e,a)));break;case 30:break;case 21:break;default:it(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(_d(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,o=hr(e);Ki(e,o,r);break;case 5:var d=n.stateNode;n.flags&32&&(vl(d,""),n.flags&=-33);var v=hr(e);Ki(e,v,d);break;case 3:case 4:var C=n.stateNode.containerInfo,O=hr(e);gr(e,O,C);break;default:throw Error(s(161))}}catch(U){Re(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wd(e,t.alternate,t),t=t.sibling}function ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tn(4,t,t.return),ul(t);break;case 1:Ft(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bd(t,t.return,n),ul(t);break;case 27:qa(t.stateNode);case 26:case 5:Ft(t,t.return),ul(t);break;case 22:t.memoizedState===null&&ul(t);break;case 30:ul(t);break;default:ul(t)}e=e.sibling}}function sn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:sn(r,o,n),Oa(4,o);break;case 1:if(sn(r,o,n),a=o,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Re(a,a.return,O)}if(a=o,r=a.updateQueue,r!==null){var v=a.stateNode;try{var C=r.shared.hiddenCallbacks;if(C!==null)for(r.shared.hiddenCallbacks=null,r=0;r<C.length;r++)cf(C[r],v)}catch(O){Re(a,a.return,O)}}n&&d&64&&Cd(o),Aa(o,o.return);break;case 27:Md(o);case 26:case 5:sn(r,o,n),n&&a===null&&d&4&&Ed(o),Aa(o,o.return);break;case 12:sn(r,o,n);break;case 31:sn(r,o,n),n&&d&4&&Od(r,o);break;case 13:sn(r,o,n),n&&d&4&&Ad(r,o);break;case 22:o.memoizedState===null&&sn(r,o,n),Aa(o,o.return);break;case 30:break;default:sn(r,o,n)}t=t.sibling}}function pr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&va(n))}function vr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&va(e))}function jt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hd(e,t,n,a),t=t.sibling}function Hd(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:jt(e,t,n,a),r&2048&&Oa(9,t);break;case 1:jt(e,t,n,a);break;case 3:jt(e,t,n,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&va(e)));break;case 12:if(r&2048){jt(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Re(t,t.return,C)}}else jt(e,t,n,a);break;case 31:jt(e,t,n,a);break;case 13:jt(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?jt(e,t,n,a):Da(e,t):o._visibility&2?jt(e,t,n,a):(o._visibility|=2,Vl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&pr(d,t);break;case 24:jt(e,t,n,a),r&2048&&vr(t.alternate,t);break;default:jt(e,t,n,a)}}function Vl(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,v=n,C=a,O=d.flags;switch(d.tag){case 0:case 11:case 15:Vl(o,d,v,C,r),Oa(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?Vl(o,d,v,C,r):Da(o,d):(U._visibility|=2,Vl(o,d,v,C,r)),r&&O&2048&&pr(d.alternate,d);break;case 24:Vl(o,d,v,C,r),r&&O&2048&&vr(d.alternate,d);break;default:Vl(o,d,v,C,r)}t=t.sibling}}function Da(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:Da(n,a),r&2048&&pr(a.alternate,a);break;case 24:Da(n,a),r&2048&&vr(a.alternate,a);break;default:Da(n,a)}t=t.sibling}}var Na=8192;function Ll(e,t,n){if(e.subtreeFlags&Na)for(e=e.child;e!==null;)Ud(e,t,n),e=e.sibling}function Ud(e,t,n){switch(e.tag){case 26:Ll(e,t,n),e.flags&Na&&e.memoizedState!==null&&xv(n,Ut,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,n);break;case 3:case 4:var a=Ut;Ut=ou(e.stateNode.containerInfo),Ll(e,t,n),Ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Na,Na=16777216,Ll(e,t,n),Na=a):Ll(e,t,n));break;default:Ll(e,t,n)}}function jd(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 Ha(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,Ld(a,e)}jd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vd(e),e=e.sibling}function Vd(e){switch(e.tag){case 0:case 11:case 15:Ha(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:Ha(e);break;case 12:Ha(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pi(e)):Ha(e);break;default:Ha(e)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,Ld(a,e)}jd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),Pi(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pi(t));break;default:Pi(t)}e=e.sibling}}function Ld(e,t){for(;Ye!==null;){var n=Ye;switch(n.tag){case 0:case 11:case 15:Tn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:va(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ye=a;else e:for(n=e;Ye!==null;){a=Ye;var r=a.sibling,o=a.return;if(zd(a),a===n){Ye=null;break e}if(r!==null){r.return=o,Ye=r;break e}Ye=o}}}var Yp={getCacheForType:function(e){var t=Ze(Le),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ze(Le).controller.signal}},$p=typeof WeakMap=="function"?WeakMap:Map,me=0,Te=null,se=null,oe=0,Se=0,vt=null,wn=!1,Bl=!1,yr=!1,rn=0,Ne=0,zn=0,sl=0,Sr=0,yt=0,ql=0,Ua=null,st=null,Rr=!1,ki=0,Bd=0,Ii=1/0,Wi=null,xn=null,Fe=0,On=null,Gl=null,on=0,Cr=0,br=null,qd=null,ja=0,Er=null;function St(){return(me&2)!==0&&oe!==0?oe&-oe:V.T!==null?xr():tc()}function Gd(){if(yt===0)if((oe&536870912)===0||de){var e=si;si<<=1,(si&3932160)===0&&(si=262144),yt=e}else yt=536870912;return e=mt.current,e!==null&&(e.flags|=32),yt}function rt(e,t,n){(e===Te&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(Fl(e,0),An(e,oe,yt,!1)),la(e,n),((me&2)===0||e!==Te)&&(e===Te&&((me&2)===0&&(sl|=n),Ne===4&&An(e,oe,yt,!1)),Qt(e))}function Fd(e,t,n){if((me&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||na(e,t),r=a?Kp(e,t):Mr(e,t,!0),o=a;do{if(r===0){Bl&&!a&&An(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Xp(n)){r=Mr(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;r=Ua;var C=v.current.memoizedState.isDehydrated;if(C&&(Fl(v,d).flags|=256),d=Mr(v,d,!1),d!==2){if(yr&&!C){v.errorRecoveryDisabledLanes|=o,sl|=o,r=4;break e}o=st,st=r,o!==null&&(st===null?st=o:st.push.apply(st,o))}r=d}if(o=!1,r!==2)continue}}if(r===1){Fl(e,0),An(e,t,0,!0);break}e:{switch(a=e,o=r,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:An(a,t,yt,!wn);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=ki+300-ct(),10<r)){if(An(a,t,yt,!wn),oi(a,0,!0)!==0)break e;on=t,a.timeoutHandle=Sh(Qd.bind(null,a,n,st,Wi,Rr,t,yt,sl,ql,wn,o,"Throttled",-0,0),r);break e}Qd(a,n,st,Wi,Rr,t,yt,sl,ql,wn,o,null,-0,0)}}break}while(!0);Qt(e)}function Qd(e,t,n,a,r,o,d,v,C,O,U,B,A,D){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},Ud(t,o,B);var $=(o&62914560)===o?ki-ct():(o&4194048)===o?Bd-ct():0;if($=Ov(B,$),$!==null){on=o,e.cancelPendingCommit=$(kd.bind(null,e,t,o,n,a,r,d,v,C,U,B,null,A,D)),An(e,o,d,!O);return}}kd(e,t,o,n,a,r,d,v,C)}function Xp(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var r=n[a],o=r.getSnapshot;r=r.value;try{if(!ht(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 An(e,t,n,a){t&=~Sr,t&=~sl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var o=31-dt(r),d=1<<o;a[o]=-1,r&=~d}n!==0&&Io(e,n,t)}function eu(){return(me&6)===0?(Va(0),!1):!0}function _r(){if(se!==null){if(Se===0)var e=se.return;else e=se,kt=In=null,qs(e),Dl=null,Sa=0,e=se;for(;e!==null;)Rd(e.alternate,e),e=e.return;se=null}}function Fl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,dv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),on=0,_r(),Te=e,se=n=Jt(e.current,null),oe=t,Se=0,vt=null,wn=!1,Bl=na(e,t),yr=!1,ql=yt=Sr=sl=zn=Ne=0,st=Ua=null,Rr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var r=31-dt(a),o=1<<r;t|=e[r],a&=~o}return rn=t,Ci(),n}function Yd(e,t){ae=null,V.H=wa,t===Al||t===xi?(t=uf(),Se=3):t===zs?(t=uf(),Se=4):Se=t===nr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,se===null&&(Ne=1,Qi(e,Mt(t,e.current)))}function $d(){var e=mt.current;return e===null?!0:(oe&4194048)===oe?xt===null:(oe&62914560)===oe||(oe&536870912)!==0?e===xt:!1}function Xd(){var e=V.H;return V.H=wa,e===null?wa:e}function Zd(){var e=V.A;return V.A=Yp,e}function tu(){Ne=4,wn||(oe&4194048)!==oe&&mt.current!==null||(Bl=!0),(zn&134217727)===0&&(sl&134217727)===0||Te===null||An(Te,oe,yt,!1)}function Mr(e,t,n){var a=me;me|=2;var r=Xd(),o=Zd();(Te!==e||oe!==t)&&(Wi=null,Fl(e,t)),t=!1;var d=Ne;e:do try{if(Se!==0&&se!==null){var v=se,C=vt;switch(Se){case 8:_r(),d=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var O=Se;if(Se=0,vt=null,Ql(e,v,C,O),n&&Bl){d=0;break e}break;default:O=Se,Se=0,vt=null,Ql(e,v,C,O)}}Zp(),d=Ne;break}catch(U){Yd(e,U)}while(!0);return t&&e.shellSuspendCounter++,kt=In=null,me=a,V.H=r,V.A=o,se===null&&(Te=null,oe=0,Ci()),d}function Zp(){for(;se!==null;)Kd(se)}function Kp(e,t){var n=me;me|=2;var a=Xd(),r=Zd();Te!==e||oe!==t?(Wi=null,Ii=ct()+500,Fl(e,t)):Bl=na(e,t);e:do try{if(Se!==0&&se!==null){t=se;var o=vt;t:switch(Se){case 1:Se=0,vt=null,Ql(e,t,o,1);break;case 2:case 9:if(lf(o)){Se=0,vt=null,Jd(t);break}t=function(){Se!==2&&Se!==9||Te!==e||(Se=7),Qt(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:lf(o)?(Se=0,vt=null,Jd(t)):(Se=0,vt=null,Ql(e,t,o,7));break;case 5:var d=null;switch(se.tag){case 26:d=se.memoizedState;case 5:case 27:var v=se;if(d?Hh(d):v.stateNode.complete){Se=0,vt=null;var C=v.sibling;if(C!==null)se=C;else{var O=v.return;O!==null?(se=O,nu(O)):se=null}break t}}Se=0,vt=null,Ql(e,t,o,5);break;case 6:Se=0,vt=null,Ql(e,t,o,6);break;case 8:_r(),Ne=6;break e;default:throw Error(s(462))}}Jp();break}catch(U){Yd(e,U)}while(!0);return kt=In=null,V.H=a,V.A=r,me=n,se!==null?0:(Te=null,oe=0,Ci(),Ne)}function Jp(){for(;se!==null&&!ym();)Kd(se)}function Kd(e){var t=yd(e.alternate,e,rn);e.memoizedProps=e.pendingProps,t===null?nu(e):se=t}function Jd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dd(n,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=dd(n,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:qs(t);default:Rd(n,t),t=se=Xc(t,rn),t=yd(n,t,rn)}e.memoizedProps=e.pendingProps,t===null?nu(e):se=t}function Ql(e,t,n,a){kt=In=null,qs(t),Dl=null,Sa=0;var r=t.return;try{if(Vp(e,r,t,n,oe)){Ne=1,Qi(e,Mt(n,e.current)),se=null;return}}catch(o){if(r!==null)throw se=r,o;Ne=1,Qi(e,Mt(n,e.current)),se=null;return}t.flags&32768?(de||a===1?e=!0:Bl||(oe&536870912)!==0?e=!1:(wn=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Pd(t,e)):nu(t)}function nu(e){var t=e;do{if((t.flags&32768)!==0){Pd(t,wn);return}e=t.return;var n=qp(t.alternate,t,rn);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Ne===0&&(Ne=5)}function Pd(e,t){do{var n=Gp(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);Ne=6,se=null}function kd(e,t,n,a,r,o,d,v,C){e.cancelPendingCommit=null;do lu();while(Fe!==0);if((me&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=hs,zm(e,n,o,d,v,C),e===Te&&(se=Te=null,oe=0),Gl=t,On=e,on=n,Cr=o,br=r,qd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wp(ii,function(){return nh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=V.T,V.T=null,r=Q.p,Q.p=2,d=me,me|=4;try{Fp(e,t,n)}finally{me=d,Q.p=r,V.T=a}}Fe=1,Id(),Wd(),eh()}}function Id(){if(Fe===1){Fe=0;var e=On,t=Gl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var a=Q.p;Q.p=2;var r=me;me|=4;try{Dd(t,e);var o=Vr,d=Vc(e.containerInfo),v=o.focusedElem,C=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&jc(v.ownerDocument.documentElement,v)){if(C!==null&&rs(v)){var O=C.start,U=C.end;if(U===void 0&&(U=O),"selectionStart"in v)v.selectionStart=O,v.selectionEnd=Math.min(U,v.value.length);else{var B=v.ownerDocument||document,A=B&&B.defaultView||window;if(A.getSelection){var D=A.getSelection(),$=v.textContent.length,P=Math.min(C.start,$),_e=C.end===void 0?P:Math.min(C.end,$);!D.extend&&P>_e&&(d=_e,_e=P,P=d);var M=Uc(v,P),E=Uc(v,_e);if(M&&E&&(D.rangeCount!==1||D.anchorNode!==M.node||D.anchorOffset!==M.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var x=B.createRange();x.setStart(M.node,M.offset),D.removeAllRanges(),P>_e?(D.addRange(x),D.extend(E.node,E.offset)):(x.setEnd(E.node,E.offset),D.addRange(x))}}}}for(B=[],D=v;D=D.parentNode;)D.nodeType===1&&B.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<B.length;v++){var L=B[v];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}mu=!!jr,Vr=jr=null}finally{me=r,Q.p=a,V.T=n}}e.current=t,Fe=2}}function Wd(){if(Fe===2){Fe=0;var e=On,t=Gl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var a=Q.p;Q.p=2;var r=me;me|=4;try{wd(e,t.alternate,t)}finally{me=r,Q.p=a,V.T=n}}Fe=3}}function eh(){if(Fe===4||Fe===3){Fe=0,Sm();var e=On,t=Gl,n=on,a=qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Gl=On=null,th(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(xn=null),Qu(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(ta,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=V.T,r=Q.p,Q.p=2,V.T=null;try{for(var o=e.onRecoverableError,d=0;d<a.length;d++){var v=a[d];o(v.value,{componentStack:v.stack})}}finally{V.T=t,Q.p=r}}(on&3)!==0&&lu(),Qt(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Er?ja++:(ja=0,Er=e):ja=0,Va(0)}}function th(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,va(t)))}function lu(){return Id(),Wd(),eh(),nh()}function nh(){if(Fe!==5)return!1;var e=On,t=Cr;Cr=0;var n=Qu(on),a=V.T,r=Q.p;try{Q.p=32>n?32:n,V.T=null,n=br,br=null;var o=On,d=on;if(Fe=0,Gl=On=null,on=0,(me&6)!==0)throw Error(s(331));var v=me;if(me|=4,Vd(o.current),Hd(o,o.current,d,n),me=v,Va(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(ta,o)}catch{}return!0}finally{Q.p=r,V.T=a,th(e,t)}}function lh(e,t,n){t=Mt(n,t),t=tr(e.stateNode,t,2),e=En(e,t,2),e!==null&&(la(e,2),Qt(e))}function Re(e,t,n){if(e.tag===3)lh(e,e,n);else for(;t!==null;){if(t.tag===3){lh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(xn===null||!xn.has(a))){e=Mt(n,e),n=ad(2),a=En(t,n,2),a!==null&&(id(n,a,t,e),la(a,2),Qt(a));break}}t=t.return}}function Tr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new $p;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(yr=!0,r.add(n),e=Pp.bind(null,e,t,n),t.then(e,e))}function Pp(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Te===e&&(oe&n)===n&&(Ne===4||Ne===3&&(oe&62914560)===oe&&300>ct()-ki?(me&2)===0&&Fl(e,0):Sr|=n,ql===oe&&(ql=0)),Qt(e)}function ah(e,t){t===0&&(t=ko()),e=Jn(e,t),e!==null&&(la(e,t),Qt(e))}function kp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ah(e,n)}function Ip(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),ah(e,n)}function Wp(e,t){return Bu(e,t)}var au=null,Yl=null,wr=!1,iu=!1,zr=!1,Dn=0;function Qt(e){e!==Yl&&e.next===null&&(Yl===null?au=Yl=e:Yl=Yl.next=e),iu=!0,wr||(wr=!0,tv())}function Va(e,t){if(!zr&&iu){zr=!0;do for(var n=!1,a=au;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var o=0;else{var d=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-dt(42|e)+1)-1,o&=r&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,rh(a,o))}else o=oe,o=oi(a,a===Te?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||na(a,o)||(n=!0,rh(a,o));a=a.next}while(n);zr=!1}}function ev(){ih()}function ih(){iu=wr=!1;var e=0;Dn!==0&&fv()&&(e=Dn);for(var t=ct(),n=null,a=au;a!==null;){var r=a.next,o=uh(a,t);o===0?(a.next=null,n===null?au=r:n.next=r,r===null&&(Yl=n)):(n=a,(e!==0||(o&3)!==0)&&(iu=!0)),a=r}Fe!==0&&Fe!==5||Va(e),Dn!==0&&(Dn=0)}function uh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-dt(o),v=1<<d,C=r[d];C===-1?((v&n)===0||(v&a)!==0)&&(r[d]=wm(v,t)):C<=t&&(e.expiredLanes|=v),o&=~v}if(t=Te,n=oe,n=oi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&qu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||na(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&qu(a),Qu(n)){case 2:case 8:n=Jo;break;case 32:n=ii;break;case 268435456:n=Po;break;default:n=ii}return a=sh.bind(null,e),n=Bu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&qu(a),e.callbackPriority=2,e.callbackNode=null,2}function sh(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(lu()&&e.callbackNode!==n)return null;var a=oe;return a=oi(e,e===Te?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Fd(e,a,t),uh(e,ct()),e.callbackNode!=null&&e.callbackNode===n?sh.bind(null,e):null)}function rh(e,t){if(lu())return null;Fd(e,t,!0)}function tv(){hv(function(){(me&6)!==0?Bu(Ko,ev):ih()})}function xr(){if(Dn===0){var e=xl;e===0&&(e=ui,ui<<=1,(ui&261888)===0&&(ui=256)),Dn=e}return Dn}function oh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hi(""+e)}function ch(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function nv(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var o=oh((r[nt]||null).action),d=a.submitter;d&&(t=(t=d[nt]||null)?oh(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var v=new vi("action","action",null,a,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Dn!==0){var C=d?ch(r,d):new FormData(r);Js(n,{pending:!0,data:C,method:r.method,action:o},null,C)}}else typeof o=="function"&&(v.preventDefault(),C=d?ch(r,d):new FormData(r),Js(n,{pending:!0,data:C,method:r.method,action:o},o,C))},currentTarget:r}]})}}for(var Or=0;Or<ds.length;Or++){var Ar=ds[Or],lv=Ar.toLowerCase(),av=Ar[0].toUpperCase()+Ar.slice(1);Ht(lv,"on"+av)}Ht(qc,"onAnimationEnd"),Ht(Gc,"onAnimationIteration"),Ht(Fc,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Rp,"onTransitionRun"),Ht(Cp,"onTransitionStart"),Ht(bp,"onTransitionCancel"),Ht(Qc,"onTransitionEnd"),ml("onMouseEnter",["mouseout","mouseover"]),ml("onMouseLeave",["mouseout","mouseover"]),ml("onPointerEnter",["pointerout","pointerover"]),ml("onPointerLeave",["pointerout","pointerover"]),$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$n("onBeforeInput",["compositionend","keypress","textInput","paste"]),$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var La="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(" "),iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(La));function fh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var d=a.length-1;0<=d;d--){var v=a[d],C=v.instance,O=v.currentTarget;if(v=v.listener,C!==o&&r.isPropagationStopped())break e;o=v,r.currentTarget=O;try{o(r)}catch(U){Ri(U)}r.currentTarget=null,o=C}else for(d=0;d<a.length;d++){if(v=a[d],C=v.instance,O=v.currentTarget,v=v.listener,C!==o&&r.isPropagationStopped())break e;o=v,r.currentTarget=O;try{o(r)}catch(U){Ri(U)}r.currentTarget=null,o=C}}}}function re(e,t){var n=t[Yu];n===void 0&&(n=t[Yu]=new Set);var a=e+"__bubble";n.has(a)||(dh(t,e,2,!1),n.add(a))}function Dr(e,t,n){var a=0;t&&(a|=4),dh(n,e,a,t)}var uu="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){if(!e[uu]){e[uu]=!0,ac.forEach(function(n){n!=="selectionchange"&&(iv.has(n)||Dr(n,!1,e),Dr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uu]||(t[uu]=!0,Dr("selectionchange",!1,t))}}function dh(e,t,n,a){switch(Gh(t)){case 2:var r=Nv;break;case 8:r=Hv;break;default:r=Kr}n=r.bind(null,t,n,e),r=void 0,!Wu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Hr(e,t,n,a,r){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var v=a.stateNode.containerInfo;if(v===r)break;if(d===4)for(d=a.return;d!==null;){var C=d.tag;if((C===3||C===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;v!==null;){if(d=dl(v),d===null)return;if(C=d.tag,C===5||C===6||C===26||C===27){a=o=d;continue e}v=v.parentNode}}a=a.return}pc(function(){var O=o,U=ku(n),B=[];e:{var A=Yc.get(e);if(A!==void 0){var D=vi,$=e;switch(e){case"keypress":if(mi(n)===0)break e;case"keydown":case"keyup":D=Im;break;case"focusin":$="focus",D=ls;break;case"focusout":$="blur",D=ls;break;case"beforeblur":case"afterblur":D=ls;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Sc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=qm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=tp;break;case qc:case Gc:case Fc:D=Qm;break;case Qc:D=lp;break;case"scroll":case"scrollend":D=Lm;break;case"wheel":D=ip;break;case"copy":case"cut":case"paste":D=$m;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Cc;break;case"toggle":case"beforetoggle":D=sp}var P=(t&4)!==0,_e=!P&&(e==="scroll"||e==="scrollend"),M=P?A!==null?A+"Capture":null:A;P=[];for(var E=O,x;E!==null;){var L=E;if(x=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||x===null||M===null||(L=ua(E,M),L!=null&&P.push(Ba(E,L,x))),_e)break;E=E.return}0<P.length&&(A=new D(A,$,null,n,U),B.push({event:A,listeners:P}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",A&&n!==Pu&&($=n.relatedTarget||n.fromElement)&&(dl($)||$[fl]))break e;if((D||A)&&(A=U.window===U?U:(A=U.ownerDocument)?A.defaultView||A.parentWindow:window,D?($=n.relatedTarget||n.toElement,D=O,$=$?dl($):null,$!==null&&(_e=f($),P=$.tag,$!==_e||P!==5&&P!==27&&P!==6)&&($=null)):(D=null,$=O),D!==$)){if(P=Sc,L="onMouseLeave",M="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(P=Cc,L="onPointerLeave",M="onPointerEnter",E="pointer"),_e=D==null?A:ia(D),x=$==null?A:ia($),A=new P(L,E+"leave",D,n,U),A.target=_e,A.relatedTarget=x,L=null,dl(U)===O&&(P=new P(M,E+"enter",$,n,U),P.target=x,P.relatedTarget=_e,L=P),_e=L,D&&$)t:{for(P=uv,M=D,E=$,x=0,L=M;L;L=P(L))x++;L=0;for(var J=E;J;J=P(J))L++;for(;0<x-L;)M=P(M),x--;for(;0<L-x;)E=P(E),L--;for(;x--;){if(M===E||E!==null&&M===E.alternate){P=M;break t}M=P(M),E=P(E)}P=null}else P=null;D!==null&&hh(B,A,D,P,!1),$!==null&&_e!==null&&hh(B,_e,$,P,!0)}}e:{if(A=O?ia(O):window,D=A.nodeName&&A.nodeName.toLowerCase(),D==="select"||D==="input"&&A.type==="file")var he=xc;else if(wc(A))if(Oc)he=vp;else{he=mp;var Z=gp}else D=A.nodeName,!D||D.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?O&&Ju(O.elementType)&&(he=xc):he=pp;if(he&&(he=he(e,O))){zc(B,he,n,U);break e}Z&&Z(e,A,O),e==="focusout"&&O&&A.type==="number"&&O.memoizedProps.value!=null&&Ku(A,"number",A.value)}switch(Z=O?ia(O):window,e){case"focusin":(wc(Z)||Z.contentEditable==="true")&&(Cl=Z,os=O,ga=null);break;case"focusout":ga=os=Cl=null;break;case"mousedown":cs=!0;break;case"contextmenu":case"mouseup":case"dragend":cs=!1,Lc(B,n,U);break;case"selectionchange":if(Sp)break;case"keydown":case"keyup":Lc(B,n,U)}var ie;if(is)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Rl?Mc(e,n)&&(ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ce="onCompositionStart");ce&&(bc&&n.locale!=="ko"&&(Rl||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Rl&&(ie=vc()):(pn=U,es="value"in pn?pn.value:pn.textContent,Rl=!0)),Z=su(O,ce),0<Z.length&&(ce=new Rc(ce,e,null,n,U),B.push({event:ce,listeners:Z}),ie?ce.data=ie:(ie=Tc(n),ie!==null&&(ce.data=ie)))),(ie=op?cp(e,n):fp(e,n))&&(ce=su(O,"onBeforeInput"),0<ce.length&&(Z=new Rc("onBeforeInput","beforeinput",null,n,U),B.push({event:Z,listeners:ce}),Z.data=ie)),nv(B,e,O,n,U)}fh(B,t)})}function Ba(e,t,n){return{instance:e,listener:t,currentTarget:n}}function su(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=ua(e,n),r!=null&&a.unshift(Ba(e,r,o)),r=ua(e,t),r!=null&&a.push(Ba(e,r,o))),e.tag===3)return a;e=e.return}return[]}function uv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hh(e,t,n,a,r){for(var o=t._reactName,d=[];n!==null&&n!==a;){var v=n,C=v.alternate,O=v.stateNode;if(v=v.tag,C!==null&&C===a)break;v!==5&&v!==26&&v!==27||O===null||(C=O,r?(O=ua(n,o),O!=null&&d.unshift(Ba(n,O,C))):r||(O=ua(n,o),O!=null&&d.push(Ba(n,O,C)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var sv=/\r\n?/g,rv=/\u0000|\uFFFD/g;function gh(e){return(typeof e=="string"?e:""+e).replace(sv,`
`).replace(rv,"")}function mh(e,t){return t=gh(t),gh(e)===t}function Ee(e,t,n,a,r,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||vl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&vl(e,""+a);break;case"className":fi(e,"class",a);break;case"tabIndex":fi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fi(e,n,a);break;case"style":gc(e,a,o);break;case"data":if(t!=="object"){fi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=hi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&Ee(e,t,"name",r.name,r,null),Ee(e,t,"formEncType",r.formEncType,r,null),Ee(e,t,"formMethod",r.formMethod,r,null),Ee(e,t,"formTarget",r.formTarget,r,null)):(Ee(e,t,"encType",r.encType,r,null),Ee(e,t,"method",r.method,r,null),Ee(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=hi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=hi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":re("beforetoggle",e),re("toggle",e),ci(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ci(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=jm.get(n)||n,ci(e,n,a))}}function Ur(e,t,n,a,r,o){switch(n){case"style":gc(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?vl(e,a):(typeof a=="number"||typeof a=="bigint")&&vl(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ic.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[nt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):ci(e,n,a)}}}function Je(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,o,d,n,null)}}r&&Ee(e,t,"srcSet",n.srcSet,n,null),a&&Ee(e,t,"src",n.src,n,null);return;case"input":re("invalid",e);var v=o=d=r=null,C=null,O=null;for(a in n)if(n.hasOwnProperty(a)){var U=n[a];if(U!=null)switch(a){case"name":r=U;break;case"type":d=U;break;case"checked":C=U;break;case"defaultChecked":O=U;break;case"value":o=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:Ee(e,t,a,U,n,null)}}cc(e,o,v,C,O,d,r,!1);return;case"select":re("invalid",e),a=d=o=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":a=v;default:Ee(e,t,r,v,n,null)}t=o,n=d,e.multiple=!!a,t!=null?pl(e,!!a,t,!1):n!=null&&pl(e,!!a,n,!0);return;case"textarea":re("invalid",e),o=r=a=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":a=v;break;case"defaultValue":r=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ee(e,t,d,v,n,null)}dc(e,a,r,o);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ee(e,t,C,a,n,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<La.length;a++)re(La[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(a=n[O],a!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,O,a,n,null)}return;default:if(Ju(t)){for(U in n)n.hasOwnProperty(U)&&(a=n[U],a!==void 0&&Ur(e,t,U,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ee(e,t,v,a,n,null))}function ov(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,d=null,v=null,C=null,O=null,U=null;for(D in n){var B=n[D];if(n.hasOwnProperty(D)&&B!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":C=B;default:a.hasOwnProperty(D)||Ee(e,t,D,null,a,B)}}for(var A in a){var D=a[A];if(B=n[A],a.hasOwnProperty(A)&&(D!=null||B!=null))switch(A){case"type":o=D;break;case"name":r=D;break;case"checked":O=D;break;case"defaultChecked":U=D;break;case"value":d=D;break;case"defaultValue":v=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:D!==B&&Ee(e,t,A,D,a,B)}}Zu(e,d,v,C,O,U,o,r);return;case"select":D=d=v=A=null;for(o in n)if(C=n[o],n.hasOwnProperty(o)&&C!=null)switch(o){case"value":break;case"multiple":D=C;default:a.hasOwnProperty(o)||Ee(e,t,o,null,a,C)}for(r in a)if(o=a[r],C=n[r],a.hasOwnProperty(r)&&(o!=null||C!=null))switch(r){case"value":A=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==C&&Ee(e,t,r,o,a,C)}t=v,n=d,a=D,A!=null?pl(e,!!n,A,!1):!!a!=!!n&&(t!=null?pl(e,!!n,t,!0):pl(e,!!n,n?[]:"",!1));return;case"textarea":D=A=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ee(e,t,v,null,a,r)}for(d in a)if(r=a[d],o=n[d],a.hasOwnProperty(d)&&(r!=null||o!=null))switch(d){case"value":A=r;break;case"defaultValue":D=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Ee(e,t,d,r,a,o)}fc(e,A,D);return;case"option":for(var $ in n)if(A=n[$],n.hasOwnProperty($)&&A!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Ee(e,t,$,null,a,A)}for(C in a)if(A=a[C],D=n[C],a.hasOwnProperty(C)&&A!==D&&(A!=null||D!=null))switch(C){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Ee(e,t,C,A,a,D)}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 P in n)A=n[P],n.hasOwnProperty(P)&&A!=null&&!a.hasOwnProperty(P)&&Ee(e,t,P,null,a,A);for(O in a)if(A=a[O],D=n[O],a.hasOwnProperty(O)&&A!==D&&(A!=null||D!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,t));break;default:Ee(e,t,O,A,a,D)}return;default:if(Ju(t)){for(var _e in n)A=n[_e],n.hasOwnProperty(_e)&&A!==void 0&&!a.hasOwnProperty(_e)&&Ur(e,t,_e,void 0,a,A);for(U in a)A=a[U],D=n[U],!a.hasOwnProperty(U)||A===D||A===void 0&&D===void 0||Ur(e,t,U,A,a,D);return}}for(var M in n)A=n[M],n.hasOwnProperty(M)&&A!=null&&!a.hasOwnProperty(M)&&Ee(e,t,M,null,a,A);for(B in a)A=a[B],D=n[B],!a.hasOwnProperty(B)||A===D||A==null&&D==null||Ee(e,t,B,A,a,D)}function ph(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],o=r.transferSize,d=r.initiatorType,v=r.duration;if(o&&v&&ph(d)){for(d=0,v=r.responseEnd,a+=1;a<n.length;a++){var C=n[a],O=C.startTime;if(O>v)break;var U=C.transferSize,B=C.initiatorType;U&&ph(B)&&(C=C.responseEnd,d+=U*(C<v?1:(v-O)/(C-O)))}if(--a,t+=8*(o+d)/(r.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 jr=null,Vr=null;function ru(e){return e.nodeType===9?e:e.ownerDocument}function vh(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 yh(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 Lr(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 Br=null;function fv(){var e=window.event;return e&&e.type==="popstate"?e===Br?!1:(Br=e,!0):(Br=null,!1)}var Sh=typeof setTimeout=="function"?setTimeout:void 0,dv=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=typeof Promise=="function"?Promise:void 0,hv=typeof queueMicrotask=="function"?queueMicrotask:typeof Rh<"u"?function(e){return Rh.resolve(null).then(e).catch(gv)}:Sh;function gv(e){setTimeout(function(){throw e})}function Nn(e){return e==="head"}function Ch(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(r),Kl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")qa(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,qa(n);for(var o=n.firstChild;o;){var d=o.nextSibling,v=o.nodeName;o[aa]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&qa(e.ownerDocument.body);n=r}while(n);Kl(t)}function bh(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function qr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":qr(n),$u(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function mv(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[aa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Ot(e.nextSibling),e===null)break}return null}function pv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ot(e.nextSibling),e===null))return null;return e}function Eh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ot(e.nextSibling),e===null))return null;return e}function Gr(e){return e.data==="$?"||e.data==="$~"}function Fr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function vv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ot(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 Qr=null;function _h(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ot(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Mh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Th(e,t,n){switch(t=ru(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function qa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$u(e)}var At=new Map,wh=new Set;function ou(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cn=Q.d;Q.d={f:yv,r:Sv,D:Rv,C:Cv,L:bv,m:Ev,X:Mv,S:_v,M:Tv};function yv(){var e=cn.f(),t=eu();return e||t}function Sv(e){var t=hl(e);t!==null&&t.tag===5&&t.type==="form"?Yf(t):cn.r(e)}var $l=typeof document>"u"?null:document;function zh(e,t,n){var a=$l;if(a&&typeof t=="string"&&t){var r=Et(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),wh.has(r)||(wh.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Je(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Rv(e){cn.D(e),zh("dns-prefetch",e,null)}function Cv(e,t){cn.C(e,t),zh("preconnect",e,t)}function bv(e,t,n){cn.L(e,t,n);var a=$l;if(a&&e&&t){var r='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Et(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Et(n.imageSizes)+'"]')):r+='[href="'+Et(e)+'"]';var o=r;switch(t){case"style":o=Xl(e);break;case"script":o=Zl(e)}At.has(o)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),At.set(o,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Ga(o))||t==="script"&&a.querySelector(Fa(o))||(t=a.createElement("link"),Je(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ev(e,t){cn.m(e,t);var n=$l;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',o=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Zl(e)}if(!At.has(o)&&(e=b({rel:"modulepreload",href:e},t),At.set(o,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fa(o)))return}a=n.createElement("link"),Je(a,"link",e),Qe(a),n.head.appendChild(a)}}}function _v(e,t,n){cn.S(e,t,n);var a=$l;if(a&&e){var r=gl(a).hoistableStyles,o=Xl(e);t=t||"default";var d=r.get(o);if(!d){var v={loading:0,preload:null};if(d=a.querySelector(Ga(o)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=At.get(o))&&Yr(e,n);var C=d=a.createElement("link");Qe(C),Je(C,"link",e),C._p=new Promise(function(O,U){C.onload=O,C.onerror=U}),C.addEventListener("load",function(){v.loading|=1}),C.addEventListener("error",function(){v.loading|=2}),v.loading|=4,cu(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:v},r.set(o,d)}}}function Mv(e,t){cn.X(e,t);var n=$l;if(n&&e){var a=gl(n).hoistableScripts,r=Zl(e),o=a.get(r);o||(o=n.querySelector(Fa(r)),o||(e=b({src:e,async:!0},t),(t=At.get(r))&&$r(e,t),o=n.createElement("script"),Qe(o),Je(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function Tv(e,t){cn.M(e,t);var n=$l;if(n&&e){var a=gl(n).hoistableScripts,r=Zl(e),o=a.get(r);o||(o=n.querySelector(Fa(r)),o||(e=b({src:e,async:!0,type:"module"},t),(t=At.get(r))&&$r(e,t),o=n.createElement("script"),Qe(o),Je(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function xh(e,t,n,a){var r=(r=ue.current)?ou(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Xl(n.href),n=gl(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Xl(n.href);var o=gl(r).hoistableStyles,d=o.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=r.querySelector(Ga(e)))&&!o._p&&(d.instance=o,d.state.loading=5),At.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},At.set(e,n),o||wv(r,e,n,d.state))),t&&a===null)throw Error(s(528,""));return d}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zl(n),n=gl(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Xl(e){return'href="'+Et(e)+'"'}function Ga(e){return'link[rel="stylesheet"]['+e+"]"}function Oh(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function wv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Je(t,"link",n),Qe(t),e.head.appendChild(t))}function Zl(e){return'[src="'+Et(e)+'"]'}function Fa(e){return"script[async]"+e}function Ah(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(n.href)+'"]');if(a)return t.instance=a,Qe(a),a;var r=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),Je(a,"style",r),cu(a,n.precedence,e),t.instance=a;case"stylesheet":r=Xl(n.href);var o=e.querySelector(Ga(r));if(o)return t.state.loading|=4,t.instance=o,Qe(o),o;a=Oh(n),(r=At.get(r))&&Yr(a,r),o=(e.ownerDocument||e).createElement("link"),Qe(o);var d=o;return d._p=new Promise(function(v,C){d.onload=v,d.onerror=C}),Je(o,"link",a),t.state.loading|=4,cu(o,n.precedence,e),t.instance=o;case"script":return o=Zl(n.src),(r=e.querySelector(Fa(o)))?(t.instance=r,Qe(r),r):(a=n,(r=At.get(o))&&(a=b({},n),$r(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Qe(r),Je(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,cu(a,n.precedence,e));return t.instance}function cu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,o=r,d=0;d<a.length;d++){var v=a[d];if(v.dataset.precedence===t)o=v;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Yr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $r(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var fu=null;function Dh(e,t,n){if(fu===null){var a=new Map,r=fu=new Map;r.set(n,a)}else r=fu,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[aa]||o[$e]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var v=a.get(d);v?v.push(o):a.set(d,[o])}}return a}function Nh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function zv(e,t,n){if(n===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 Hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Xl(a.href),o=t.querySelector(Ga(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=du.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Qe(o);return}o=t.ownerDocument||t,a=Oh(a),(r=At.get(r))&&Yr(a,r),o=o.createElement("link"),Qe(o);var d=o;d._p=new Promise(function(v,C){d.onload=v,d.onerror=C}),Je(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=du.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xr=0;function Ov(e,t){return e.stylesheets&&e.count===0&&gu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Xr===0&&(Xr=62500*cv());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Xr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function du(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hu=null;function gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hu=new Map,t.forEach(Av,e),hu=null,du.call(e))}function Av(e,t){if(!(t.state.loading&4)){var n=hu.get(e);if(n)var a=n.get(null);else{n=new Map,hu.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var d=r[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}r=t.instance,d=r.getAttribute("data-precedence"),o=n.get(d)||a,o===a&&n.set(null,r),n.set(d,r),this.count++,a=du.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Qa={$$typeof:F,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Dv(e,t,n,a,r,o,d,v,C){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=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Uh(e,t,n,a,r,o,d,v,C,O,U,B){return e=new Dv(e,t,n,d,C,O,U,B,v),t=1,o===!0&&(t|=24),o=gt(3,null,null,t),e.current=o,o.stateNode=e,t=Ms(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},xs(o),e}function jh(e){return e?(e=_l,e):_l}function Vh(e,t,n,a,r,o){r=jh(r),a.context===null?a.context=r:a.pendingContext=r,a=bn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=En(e,a,t),n!==null&&(rt(n,e,t),Ca(n,e,t))}function Lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zr(e,t){Lh(e,t),(e=e.alternate)&&Lh(e,t)}function Bh(e){if(e.tag===13||e.tag===31){var t=Jn(e,67108864);t!==null&&rt(t,e,67108864),Zr(e,67108864)}}function qh(e){if(e.tag===13||e.tag===31){var t=St();t=Fu(t);var n=Jn(e,t);n!==null&&rt(n,e,t),Zr(e,t)}}var mu=!0;function Nv(e,t,n,a){var r=V.T;V.T=null;var o=Q.p;try{Q.p=2,Kr(e,t,n,a)}finally{Q.p=o,V.T=r}}function Hv(e,t,n,a){var r=V.T;V.T=null;var o=Q.p;try{Q.p=8,Kr(e,t,n,a)}finally{Q.p=o,V.T=r}}function Kr(e,t,n,a){if(mu){var r=Jr(a);if(r===null)Hr(e,t,a,pu,n),Fh(e,a);else if(jv(r,e,t,n,a))a.stopPropagation();else if(Fh(e,a),t&4&&-1<Uv.indexOf(e)){for(;r!==null;){var o=hl(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=Yn(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var C=1<<31-dt(d);v.entanglements[1]|=C,d&=~C}Qt(o),(me&6)===0&&(Ii=ct()+500,Va(0))}}break;case 31:case 13:v=Jn(o,2),v!==null&&rt(v,o,2),eu(),Zr(o,2)}if(o=Jr(a),o===null&&Hr(e,t,a,pu,n),o===r)break;r=o}r!==null&&a.stopPropagation()}else Hr(e,t,a,null,n)}}function Jr(e){return e=ku(e),Pr(e)}var pu=null;function Pr(e){if(pu=null,e=dl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pu=e,null}function Gh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rm()){case Ko:return 2;case Jo:return 8;case ii:case Cm:return 32;case Po:return 268435456;default:return 32}default:return 32}}var kr=!1,Hn=null,Un=null,jn=null,Ya=new Map,$a=new Map,Vn=[],Uv="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 Fh(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Un=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":Ya.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$a.delete(t.pointerId)}}function Xa(e,t,n,a,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[r]},t!==null&&(t=hl(t),t!==null&&Bh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function jv(e,t,n,a,r){switch(t){case"focusin":return Hn=Xa(Hn,e,t,n,a,r),!0;case"dragenter":return Un=Xa(Un,e,t,n,a,r),!0;case"mouseover":return jn=Xa(jn,e,t,n,a,r),!0;case"pointerover":var o=r.pointerId;return Ya.set(o,Xa(Ya.get(o)||null,e,t,n,a,r)),!0;case"gotpointercapture":return o=r.pointerId,$a.set(o,Xa($a.get(o)||null,e,t,n,a,r)),!0}return!1}function Qh(e){var t=dl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,nc(e.priority,function(){qh(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,nc(e.priority,function(){qh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jr(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Pu=a,n.target.dispatchEvent(a),Pu=null}else return t=hl(n),t!==null&&Bh(t),e.blockedOn=n,!1;t.shift()}return!0}function Yh(e,t,n){vu(e)&&n.delete(t)}function Vv(){kr=!1,Hn!==null&&vu(Hn)&&(Hn=null),Un!==null&&vu(Un)&&(Un=null),jn!==null&&vu(jn)&&(jn=null),Ya.forEach(Yh),$a.forEach(Yh)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,kr||(kr=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Vv)))}var Su=null;function $h(e){Su!==e&&(Su=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Su===e&&(Su=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(Pr(a||n)===null)continue;break}var o=hl(n);o!==null&&(e.splice(t,3),t-=3,Js(o,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function Kl(e){function t(C){return yu(C,e)}Hn!==null&&yu(Hn,e),Un!==null&&yu(Un,e),jn!==null&&yu(jn,e),Ya.forEach(t),$a.forEach(t);for(var n=0;n<Vn.length;n++){var a=Vn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Vn.length&&(n=Vn[0],n.blockedOn===null);)Qh(n),n.blockedOn===null&&Vn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],o=n[a+1],d=r[nt]||null;if(typeof o=="function")d||$h(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(r=o,d=o[nt]||null)v=d.formAction;else if(Pr(r)!==null)continue}else v=d.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),$h(n)}}}function Xh(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Ir(e){this._internalRoot=e}Ru.prototype.render=Ir.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=St();Vh(n,a,e,t,null,null)},Ru.prototype.unmount=Ir.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vh(e.current,2,null,e,null,null),eu(),t[fl]=null}};function Ru(e){this._internalRoot=e}Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=tc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vn.length&&t!==0&&t<Vn[n].priority;n++);Vn.splice(n,0,e),n===0&&Qh(e)}};var Zh=u.version;if(Zh!=="19.2.0")throw Error(s(527,Zh,"19.2.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Lv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{ta=Cu.inject(Lv),ft=Cu}catch{}}return Ka.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",r=ed,o=td,d=nd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Uh(e,1,!1,null,null,n,a,null,r,o,d,Xh),e[fl]=t.current,Nr(e),new Ir(t)},Ka.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,r="",o=ed,d=td,v=nd,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Uh(e,1,!0,t,n??null,a,r,C,o,d,v,Xh),t.context=jh(null),n=t.current,a=St(),a=Fu(a),r=bn(a),r.callback=null,En(n,r,a),n=a,t.current.lanes=n,la(t,n),Qt(t),e[fl]=t.current,Nr(e),new Ru(t)},Ka.version="19.2.0",Ka}var lg;function Kv(){if(lg)return to.exports;lg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),to.exports=Zv(),to.exports}var Jv=Kv();const Pv=wg(Jv);/**
* react-router v7.9.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 ag="popstate";function kv(l={}){function u(c,f){let{pathname:h="/",search:g="",hash:p=""}=cl(c.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),mo("",{pathname:h,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(c,f){let h=c.document.querySelector("base"),g="";if(h&&h.getAttribute("href")){let p=c.location.href,m=p.indexOf("#");g=m===-1?p:p.slice(0,m)}return g+"#"+(typeof f=="string"?f:Ia(f))}function s(c,f){Rt(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return Wv(u,i,s,l)}function Oe(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function Rt(l,u){if(!l){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Iv(){return Math.random().toString(36).substring(2,10)}function ig(l,u){return{usr:l.state,key:l.key,idx:u}}function mo(l,u,i=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof u=="string"?cl(u):u,state:i,key:u&&u.key||s||Iv()}}function Ia({pathname:l="/",search:u="",hash:i=""}){return u&&u!=="?"&&(l+=u.charAt(0)==="?"?u:"?"+u),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function cl(l){let u={};if(l){let i=l.indexOf("#");i>=0&&(u.hash=l.substring(i),l=l.substring(0,i));let s=l.indexOf("?");s>=0&&(u.search=l.substring(s),l=l.substring(0,s)),l&&(u.pathname=l)}return u}function Wv(l,u,i,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,h=c.history,g="POP",p=null,m=y();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function y(){return(h.state||{idx:null}).idx}function b(){g="POP";let N=y(),H=N==null?null:N-m;m=N,p&&p({action:g,location:w.location,delta:H})}function R(N,H){g="PUSH";let j=mo(w.location,N,H);i&&i(j,N),m=y()+1;let F=ig(j,m),ne=w.createHref(j);try{h.pushState(F,"",ne)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;c.location.assign(ne)}f&&p&&p({action:g,location:w.location,delta:1})}function S(N,H){g="REPLACE";let j=mo(w.location,N,H);i&&i(j,N),m=y();let F=ig(j,m),ne=w.createHref(j);h.replaceState(F,"",ne),f&&p&&p({action:g,location:w.location,delta:0})}function T(N){return ey(N)}let w={get action(){return g},get location(){return l(c,h)},listen(N){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(ag,b),p=N,()=>{c.removeEventListener(ag,b),p=null}},createHref(N){return u(c,N)},createURL:T,encodeLocation(N){let H=T(N);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:R,replace:S,go(N){return h.go(N)}};return w}function ey(l,u=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Oe(i,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:Ia(l);return s=s.replace(/ $/,"%20"),!u&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function xg(l,u,i="/"){return ty(l,u,i,!1)}function ty(l,u,i,s){let c=typeof u=="string"?cl(u):u,f=hn(c.pathname||"/",i);if(f==null)return null;let h=Og(l);ny(h);let g=null;for(let p=0;g==null&&p<h.length;++p){let m=hy(f);g=fy(h[p],m,s)}return g}function Og(l,u=[],i=[],s="",c=!1){let f=(h,g,p=c,m)=>{let y={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&p)return;Oe(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let b=dn([s,y.relativePath]),R=i.concat(y);h.children&&h.children.length>0&&(Oe(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Og(h.children,u,R,b,p)),!(h.path==null&&!h.index)&&u.push({path:b,score:oy(b,h.index),routesMeta:R})};return l.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))f(h,g);else for(let p of Ag(h.path))f(h,g,!0,p)}),u}function Ag(l){let u=l.split("/");if(u.length===0)return[];let[i,...s]=u,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let h=Ag(s.join("/")),g=[];return g.push(...h.map(p=>p===""?f:[f,p].join("/"))),c&&g.push(...h),g.map(p=>l.startsWith("/")&&p===""?"/":p)}function ny(l){l.sort((u,i)=>u.score!==i.score?i.score-u.score:cy(u.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var ly=/^:[\w-]+$/,ay=3,iy=2,uy=1,sy=10,ry=-2,ug=l=>l==="*";function oy(l,u){let i=l.split("/"),s=i.length;return i.some(ug)&&(s+=ry),u&&(s+=iy),i.filter(c=>!ug(c)).reduce((c,f)=>c+(ly.test(f)?ay:f===""?uy:sy),s)}function cy(l,u){return l.length===u.length&&l.slice(0,-1).every((s,c)=>s===u[c])?l[l.length-1]-u[u.length-1]:0}function fy(l,u,i=!1){let{routesMeta:s}=l,c={},f="/",h=[];for(let g=0;g<s.length;++g){let p=s[g],m=g===s.length-1,y=f==="/"?u:u.slice(f.length)||"/",b=Ou({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},y),R=p.route;if(!b&&m&&i&&!s[s.length-1].route.index&&(b=Ou({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(c,b.params),h.push({params:c,pathname:dn([f,b.pathname]),pathnameBase:vy(dn([f,b.pathnameBase])),route:R}),b.pathnameBase!=="/"&&(f=dn([f,b.pathnameBase]))}return h}function Ou(l,u){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,s]=dy(l.path,l.caseSensitive,l.end),c=u.match(i);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:s.reduce((m,{paramName:y,isOptional:b},R)=>{if(y==="*"){let T=g[R]||"";h=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const S=g[R];return b&&!S?m[y]=void 0:m[y]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:l}}function dy(l,u=!1,i=!0){Rt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,p)=>(s.push({paramName:g,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,u?void 0:"i"),s]}function hy(l){try{return l.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Rt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),l}}function hn(l,u){if(u==="/")return l;if(!l.toLowerCase().startsWith(u.toLowerCase()))return null;let i=u.endsWith("/")?u.length-1:u.length,s=l.charAt(i);return s&&s!=="/"?null:l.slice(i)||"/"}function gy(l,u="/"){let{pathname:i,search:s="",hash:c=""}=typeof l=="string"?cl(l):l;return{pathname:i?i.startsWith("/")?i:my(i,u):u,search:yy(s),hash:Sy(c)}}function my(l,u){let i=u.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function io(l,u,i,s){return`Cannot include a '${l}' character in a manually specified \`to.${u}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function py(l){return l.filter((u,i)=>i===0||u.route.path&&u.route.path.length>0)}function Ao(l){let u=py(l);return u.map((i,s)=>s===u.length-1?i.pathname:i.pathnameBase)}function Do(l,u,i,s=!1){let c;typeof l=="string"?c=cl(l):(c={...l},Oe(!c.pathname||!c.pathname.includes("?"),io("?","pathname","search",c)),Oe(!c.pathname||!c.pathname.includes("#"),io("#","pathname","hash",c)),Oe(!c.search||!c.search.includes("#"),io("#","search","hash",c)));let f=l===""||c.pathname==="",h=f?"/":c.pathname,g;if(h==null)g=i;else{let b=u.length-1;if(!s&&h.startsWith("..")){let R=h.split("/");for(;R[0]==="..";)R.shift(),b-=1;c.pathname=R.join("/")}g=b>=0?u[b]:"/"}let p=gy(c,g),m=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}var dn=l=>l.join("/").replace(/\/\/+/g,"/"),vy=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),yy=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Sy=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function Ry(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Dg=["POST","PUT","PATCH","DELETE"];new Set(Dg);var Cy=["GET",...Dg];new Set(Cy);var kl=z.createContext(null);kl.displayName="DataRouter";var Du=z.createContext(null);Du.displayName="DataRouterState";z.createContext(!1);var Ng=z.createContext({isTransitioning:!1});Ng.displayName="ViewTransition";var by=z.createContext(new Map);by.displayName="Fetchers";var Ey=z.createContext(null);Ey.displayName="Await";var Lt=z.createContext(null);Lt.displayName="Navigation";var ti=z.createContext(null);ti.displayName="Location";var Bt=z.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var No=z.createContext(null);No.displayName="RouteError";function _y(l,{relative:u}={}){Oe(Il(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=z.useContext(Lt),{hash:c,pathname:f,search:h}=ni(l,{relative:u}),g=f;return i!=="/"&&(g=f==="/"?i:dn([i,f])),s.createHref({pathname:g,search:h,hash:c})}function Il(){return z.useContext(ti)!=null}function Yt(){return Oe(Il(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(ti).location}var Hg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ug(l){z.useContext(Lt).static||z.useLayoutEffect(l)}function Wl(){let{isDataRoute:l}=z.useContext(Bt);return l?Ly():My()}function My(){Oe(Il(),"useNavigate() may be used only in the context of a <Router> component.");let l=z.useContext(kl),{basename:u,navigator:i}=z.useContext(Lt),{matches:s}=z.useContext(Bt),{pathname:c}=Yt(),f=JSON.stringify(Ao(s)),h=z.useRef(!1);return Ug(()=>{h.current=!0}),z.useCallback((p,m={})=>{if(Rt(h.current,Hg),!h.current)return;if(typeof p=="number"){i.go(p);return}let y=Do(p,JSON.parse(f),c,m.relative==="path");l==null&&u!=="/"&&(y.pathname=y.pathname==="/"?u:dn([u,y.pathname])),(m.replace?i.replace:i.push)(y,m.state,m)},[u,i,f,c,l])}z.createContext(null);function Ty(){let{matches:l}=z.useContext(Bt),u=l[l.length-1];return u?u.params:{}}function ni(l,{relative:u}={}){let{matches:i}=z.useContext(Bt),{pathname:s}=Yt(),c=JSON.stringify(Ao(i));return z.useMemo(()=>Do(l,JSON.parse(c),s,u==="path"),[l,c,s,u])}function wy(l,u){return jg(l,u)}function jg(l,u,i,s,c){Oe(Il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=z.useContext(Lt),{matches:h}=z.useContext(Bt),g=h[h.length-1],p=g?g.params:{},m=g?g.pathname:"/",y=g?g.pathnameBase:"/",b=g&&g.route;{let j=b&&b.path||"";Vg(m,!b||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let R=Yt(),S;if(u){let j=typeof u=="string"?cl(u):u;Oe(y==="/"||j.pathname?.startsWith(y),`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 "${y}" but pathname "${j.pathname}" was given in the \`location\` prop.`),S=j}else S=R;let T=S.pathname||"/",w=T;if(y!=="/"){let j=y.replace(/^\//,"").split("/");w="/"+T.replace(/^\//,"").split("/").slice(j.length).join("/")}let N=xg(l,{pathname:w});Rt(b||N!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Rt(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let H=Dy(N&&N.map(j=>Object.assign({},j,{params:Object.assign({},p,j.params),pathname:dn([y,f.encodeLocation?f.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?y:dn([y,f.encodeLocation?f.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),h,i,s,c);return u&&H?z.createElement(ti.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},H):H}function zy(){let l=Vy(),u=Ry(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=z.createElement(z.Fragment,null,z.createElement("p",null,"💿 Hey developer 👋"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:f},"ErrorBoundary")," or"," ",z.createElement("code",{style:f},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},u),i?z.createElement("pre",{style:c},i):null,h)}var xy=z.createElement(zy,null),Oy=class extends z.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,u){return u.location!==l.location||u.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:u.error,location:u.location,revalidation:l.revalidation||u.revalidation}}componentDidCatch(l,u){this.props.unstable_onError?this.props.unstable_onError(l,u):console.error("React Router caught the following error during render",l)}render(){return this.state.error!==void 0?z.createElement(Bt.Provider,{value:this.props.routeContext},z.createElement(No.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ay({routeContext:l,match:u,children:i}){let s=z.useContext(kl);return s&&s.static&&s.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=u.route.id),z.createElement(Bt.Provider,{value:l},i)}function Dy(l,u=[],i=null,s=null,c=null){if(l==null){if(!i)return null;if(i.errors)l=i.matches;else if(u.length===0&&!i.initialized&&i.matches.length>0)l=i.matches;else return null}let f=l,h=i?.errors;if(h!=null){let m=f.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);Oe(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,m+1))}let g=!1,p=-1;if(i)for(let m=0;m<f.length;m++){let y=f[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=m),y.route.id){let{loaderData:b,errors:R}=i,S=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!R||R[y.route.id]===void 0);if(y.route.lazy||S){g=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}return f.reduceRight((m,y,b)=>{let R,S=!1,T=null,w=null;i&&(R=h&&y.route.id?h[y.route.id]:void 0,T=y.route.errorElement||xy,g&&(p<0&&b===0?(Vg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):p===b&&(S=!0,w=y.route.hydrateFallbackElement||null)));let N=u.concat(f.slice(0,b+1)),H=()=>{let j;return R?j=T:S?j=w:y.route.Component?j=z.createElement(y.route.Component,null):y.route.element?j=y.route.element:j=m,z.createElement(Ay,{match:y,routeContext:{outlet:m,matches:N,isDataRoute:i!=null},children:j})};return i&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?z.createElement(Oy,{location:i.location,revalidation:i.revalidation,component:T,error:R,children:H(),routeContext:{outlet:null,matches:N,isDataRoute:!0},unstable_onError:s}):H()},null)}function Ho(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ny(l){let u=z.useContext(kl);return Oe(u,Ho(l)),u}function Hy(l){let u=z.useContext(Du);return Oe(u,Ho(l)),u}function Uy(l){let u=z.useContext(Bt);return Oe(u,Ho(l)),u}function Uo(l){let u=Uy(l),i=u.matches[u.matches.length-1];return Oe(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function jy(){return Uo("useRouteId")}function Vy(){let l=z.useContext(No),u=Hy("useRouteError"),i=Uo("useRouteError");return l!==void 0?l:u.errors?.[i]}function Ly(){let{router:l}=Ny("useNavigate"),u=Uo("useNavigate"),i=z.useRef(!1);return Ug(()=>{i.current=!0}),z.useCallback(async(c,f={})=>{Rt(i.current,Hg),i.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:u,...f}))},[l,u])}var sg={};function Vg(l,u,i){!u&&!sg[l]&&(sg[l]=!0,Rt(!1,i))}z.memo(By);function By({routes:l,future:u,state:i,unstable_onError:s}){return jg(l,void 0,i,s,u)}function qy({to:l,replace:u,state:i,relative:s}){Oe(Il(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=z.useContext(Lt);Rt(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=z.useContext(Bt),{pathname:h}=Yt(),g=Wl(),p=Do(l,Ao(f),h,s==="path"),m=JSON.stringify(p);return z.useEffect(()=>{g(JSON.parse(m),{replace:u,state:i,relative:s})},[g,m,s,u,i]),null}function wu(l){Oe(!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 Gy({basename:l="/",children:u=null,location:i,navigationType:s="POP",navigator:c,static:f=!1}){Oe(!Il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=l.replace(/^\/*/,"/"),g=z.useMemo(()=>({basename:h,navigator:c,static:f,future:{}}),[h,c,f]);typeof i=="string"&&(i=cl(i));let{pathname:p="/",search:m="",hash:y="",state:b=null,key:R="default"}=i,S=z.useMemo(()=>{let T=hn(p,h);return T==null?null:{location:{pathname:T,search:m,hash:y,state:b,key:R},navigationType:s}},[h,p,m,y,b,R,s]);return Rt(S!=null,`<Router basename="${h}"> is not able to match the URL "${p}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:z.createElement(Lt.Provider,{value:g},z.createElement(ti.Provider,{children:u,value:S}))}function Fy({children:l,location:u}){return wy(po(l),u)}function po(l,u=[]){let i=[];return z.Children.forEach(l,(s,c)=>{if(!z.isValidElement(s))return;let f=[...u,c];if(s.type===z.Fragment){i.push.apply(i,po(s.props.children,f));return}Oe(s.type===wu,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Oe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=po(s.props.children,f)),i.push(h)}),i}var zu="get",xu="application/x-www-form-urlencoded";function Nu(l){return l!=null&&typeof l.tagName=="string"}function Qy(l){return Nu(l)&&l.tagName.toLowerCase()==="button"}function Yy(l){return Nu(l)&&l.tagName.toLowerCase()==="form"}function $y(l){return Nu(l)&&l.tagName.toLowerCase()==="input"}function Xy(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Zy(l,u){return l.button===0&&(!u||u==="_self")&&!Xy(l)}function vo(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((u,i)=>{let s=l[i];return u.concat(Array.isArray(s)?s.map(c=>[i,c]):[[i,s]])},[]))}function Ky(l,u){let i=vo(l);return u&&u.forEach((s,c)=>{i.has(c)||u.getAll(c).forEach(f=>{i.append(c,f)})}),i}var bu=null;function Jy(){if(bu===null)try{new FormData(document.createElement("form"),0),bu=!1}catch{bu=!0}return bu}var Py=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function uo(l){return l!=null&&!Py.has(l)?(Rt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xu}"`),null):l}function ky(l,u){let i,s,c,f,h;if(Yy(l)){let g=l.getAttribute("action");s=g?hn(g,u):null,i=l.getAttribute("method")||zu,c=uo(l.getAttribute("enctype"))||xu,f=new FormData(l)}else if(Qy(l)||$y(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=l.getAttribute("formaction")||g.getAttribute("action");if(s=p?hn(p,u):null,i=l.getAttribute("formmethod")||g.getAttribute("method")||zu,c=uo(l.getAttribute("formenctype"))||uo(g.getAttribute("enctype"))||xu,f=new FormData(g,l),!Jy()){let{name:m,type:y,value:b}=l;if(y==="image"){let R=m?`${m}.`:"";f.append(`${R}x`,"0"),f.append(`${R}y`,"0")}else m&&f.append(m,b)}}else{if(Nu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=zu,s=null,c=xu,h=l}return f&&c==="text/plain"&&(h=f,f=void 0),{action:s,method:i.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jo(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function Iy(l,u,i){let s=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s.pathname==="/"?s.pathname=`_root.${i}`:u&&hn(s.pathname,u)==="/"?s.pathname=`${u.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function Wy(l,u){if(l.id in u)return u[l.id];try{let i=await import(l.module);return u[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function e0(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function t0(l,u,i){let s=await Promise.all(l.map(async c=>{let f=u.routes[c.route.id];if(f){let h=await Wy(f,i);return h.links?h.links():[]}return[]}));return i0(s.flat(1).filter(e0).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function rg(l,u,i,s,c,f){let h=(p,m)=>i[m]?p.route.id!==i[m].route.id:!0,g=(p,m)=>i[m].pathname!==p.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==p.params["*"];return f==="assets"?u.filter((p,m)=>h(p,m)||g(p,m)):f==="data"?u.filter((p,m)=>{let y=s.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,m)||g(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function n0(l,u,{includeHydrateFallback:i}={}){return l0(l.map(s=>{let c=u.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function l0(l){return[...new Set(l)]}function a0(l){let u={},i=Object.keys(l).sort();for(let s of i)u[s]=l[s];return u}function i0(l,u){let i=new Set;return new Set(u),l.reduce((s,c)=>{let f=JSON.stringify(a0(c));return i.has(f)||(i.add(f),s.push({key:f,link:c})),s},[])}function Lg(){let l=z.useContext(kl);return jo(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function u0(){let l=z.useContext(Du);return jo(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Vo=z.createContext(void 0);Vo.displayName="FrameworkContext";function Bg(){let l=z.useContext(Vo);return jo(l,"You must render this element inside a <HydratedRouter> element"),l}function s0(l,u){let i=z.useContext(Vo),[s,c]=z.useState(!1),[f,h]=z.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:m,onMouseLeave:y,onTouchStart:b}=u,R=z.useRef(null);z.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let w=H=>{H.forEach(j=>{h(j.isIntersecting)})},N=new IntersectionObserver(w,{threshold:.5});return R.current&&N.observe(R.current),()=>{N.disconnect()}}},[l]),z.useEffect(()=>{if(s){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[s]);let S=()=>{c(!0)},T=()=>{c(!1),h(!1)};return i?l!=="intent"?[f,R,{}]:[f,R,{onFocus:Ja(g,S),onBlur:Ja(p,T),onMouseEnter:Ja(m,S),onMouseLeave:Ja(y,T),onTouchStart:Ja(b,S)}]:[!1,R,{}]}function Ja(l,u){return i=>{l&&l(i),i.defaultPrevented||u(i)}}function r0({page:l,...u}){let{router:i}=Lg(),s=z.useMemo(()=>xg(i.routes,l,i.basename),[i.routes,l,i.basename]);return s?z.createElement(c0,{page:l,matches:s,...u}):null}function o0(l){let{manifest:u,routeModules:i}=Bg(),[s,c]=z.useState([]);return z.useEffect(()=>{let f=!1;return t0(l,u,i).then(h=>{f||c(h)}),()=>{f=!0}},[l,u,i]),s}function c0({page:l,matches:u,...i}){let s=Yt(),{manifest:c,routeModules:f}=Bg(),{basename:h}=Lg(),{loaderData:g,matches:p}=u0(),m=z.useMemo(()=>rg(l,u,p,c,s,"data"),[l,u,p,c,s]),y=z.useMemo(()=>rg(l,u,p,c,s,"assets"),[l,u,p,c,s]),b=z.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let T=new Set,w=!1;if(u.forEach(H=>{let j=c.routes[H.route.id];!j||!j.hasLoader||(!m.some(F=>F.route.id===H.route.id)&&H.route.id in g&&f[H.route.id]?.shouldRevalidate||j.hasClientLoader?w=!0:T.add(H.route.id))}),T.size===0)return[];let N=Iy(l,h,"data");return w&&T.size>0&&N.searchParams.set("_routes",u.filter(H=>T.has(H.route.id)).map(H=>H.route.id).join(",")),[N.pathname+N.search]},[h,g,s,c,m,u,l,f]),R=z.useMemo(()=>n0(y,c),[y,c]),S=o0(y);return z.createElement(z.Fragment,null,b.map(T=>z.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...i})),R.map(T=>z.createElement("link",{key:T,rel:"modulepreload",href:T,...i})),S.map(({key:T,link:w})=>z.createElement("link",{key:T,nonce:i.nonce,...w})))}function f0(...l){return u=>{l.forEach(i=>{typeof i=="function"?i(u):i!=null&&(i.current=u)})}}var qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qg&&(window.__reactRouterVersion="7.9.4")}catch{}function d0({basename:l,children:u,window:i}){let s=z.useRef();s.current==null&&(s.current=kv({window:i,v5Compat:!0}));let c=s.current,[f,h]=z.useState({action:c.action,location:c.location}),g=z.useCallback(p=>{z.startTransition(()=>h(p))},[h]);return z.useLayoutEffect(()=>c.listen(g),[c,g]),z.createElement(Gy,{basename:l,children:u,location:f.location,navigationType:f.action,navigator:c})}var Gg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pl=z.forwardRef(function({onClick:u,discover:i="render",prefetch:s="none",relative:c,reloadDocument:f,replace:h,state:g,target:p,to:m,preventScrollReset:y,viewTransition:b,...R},S){let{basename:T}=z.useContext(Lt),w=typeof m=="string"&&Gg.test(m),N,H=!1;if(typeof m=="string"&&w&&(N=m,qg))try{let ye=new URL(window.location.href),Ae=m.startsWith("//")?new URL(ye.protocol+m):new URL(m),He=hn(Ae.pathname,T);Ae.origin===ye.origin&&He!=null?m=He+Ae.search+Ae.hash:H=!0}catch{Rt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=_y(m,{relative:c}),[F,ne,ee]=s0(s,R),pe=p0(m,{replace:h,state:g,target:p,preventScrollReset:y,relative:c,viewTransition:b});function K(ye){u&&u(ye),ye.defaultPrevented||pe(ye)}let fe=z.createElement("a",{...R,...ee,href:N||j,onClick:H||f?u:K,ref:f0(S,ne),target:p,"data-discover":!w&&i==="render"?"true":void 0});return F&&!w?z.createElement(z.Fragment,null,fe,z.createElement(r0,{page:j})):fe});Pl.displayName="Link";var h0=z.forwardRef(function({"aria-current":u="page",caseSensitive:i=!1,className:s="",end:c=!1,style:f,to:h,viewTransition:g,children:p,...m},y){let b=ni(h,{relative:m.relative}),R=Yt(),S=z.useContext(Du),{navigator:T,basename:w}=z.useContext(Lt),N=S!=null&&b0(b)&&g===!0,H=T.encodeLocation?T.encodeLocation(b).pathname:b.pathname,j=R.pathname,F=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(j=j.toLowerCase(),F=F?F.toLowerCase():null,H=H.toLowerCase()),F&&w&&(F=hn(F,w)||F);const ne=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let ee=j===H||!c&&j.startsWith(H)&&j.charAt(ne)==="/",pe=F!=null&&(F===H||!c&&F.startsWith(H)&&F.charAt(H.length)==="/"),K={isActive:ee,isPending:pe,isTransitioning:N},fe=ee?u:void 0,ye;typeof s=="function"?ye=s(K):ye=[s,ee?"active":null,pe?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let Ae=typeof f=="function"?f(K):f;return z.createElement(Pl,{...m,"aria-current":fe,className:ye,ref:y,style:Ae,to:h,viewTransition:g},typeof p=="function"?p(K):p)});h0.displayName="NavLink";var g0=z.forwardRef(({discover:l="render",fetcherKey:u,navigate:i,reloadDocument:s,replace:c,state:f,method:h=zu,action:g,onSubmit:p,relative:m,preventScrollReset:y,viewTransition:b,...R},S)=>{let T=R0(),w=C0(g,{relative:m}),N=h.toLowerCase()==="get"?"get":"post",H=typeof g=="string"&&Gg.test(g),j=F=>{if(p&&p(F),F.defaultPrevented)return;F.preventDefault();let ne=F.nativeEvent.submitter,ee=ne?.getAttribute("formmethod")||h;T(ne||F.currentTarget,{fetcherKey:u,method:ee,navigate:i,replace:c,state:f,relative:m,preventScrollReset:y,viewTransition:b})};return z.createElement("form",{ref:S,method:N,action:w,onSubmit:s?p:j,...R,"data-discover":!H&&l==="render"?"true":void 0})});g0.displayName="Form";function m0(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fg(l){let u=z.useContext(kl);return Oe(u,m0(l)),u}function p0(l,{target:u,replace:i,state:s,preventScrollReset:c,relative:f,viewTransition:h}={}){let g=Wl(),p=Yt(),m=ni(l,{relative:f});return z.useCallback(y=>{if(Zy(y,u)){y.preventDefault();let b=i!==void 0?i:Ia(p)===Ia(m);g(l,{replace:b,state:s,preventScrollReset:c,relative:f,viewTransition:h})}},[p,g,m,i,s,u,l,c,f,h])}function v0(l){Rt(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=z.useRef(vo(l)),i=z.useRef(!1),s=Yt(),c=z.useMemo(()=>Ky(s.search,i.current?null:u.current),[s.search]),f=Wl(),h=z.useCallback((g,p)=>{const m=vo(typeof g=="function"?g(new URLSearchParams(c)):g);i.current=!0,f("?"+m,p)},[f,c]);return[c,h]}var y0=0,S0=()=>`__${String(++y0)}__`;function R0(){let{router:l}=Fg("useSubmit"),{basename:u}=z.useContext(Lt),i=jy();return z.useCallback(async(s,c={})=>{let{action:f,method:h,encType:g,formData:p,body:m}=ky(s,u);if(c.navigate===!1){let y=c.fetcherKey||S0();await l.fetch(y,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:m,formMethod:c.method||h,formEncType:c.encType||g,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:m,formMethod:c.method||h,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,u,i])}function C0(l,{relative:u}={}){let{basename:i}=z.useContext(Lt),s=z.useContext(Bt);Oe(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...ni(l||".",{relative:u})},h=Yt();if(l==null){f.search=h.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(y=>y==="")){g.delete("index"),p.filter(b=>b).forEach(b=>g.append("index",b));let y=g.toString();f.search=y?`?${y}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:dn([i,f.pathname])),Ia(f)}function b0(l,{relative:u}={}){let i=z.useContext(Ng);Oe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fg("useViewTransitionState"),c=ni(l,{relative:u});if(!i.isTransitioning)return!1;let f=hn(i.currentLocation.pathname,s)||i.currentLocation.pathname,h=hn(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Ou(c.pathname,h)!=null||Ou(c.pathname,f)!=null}var Qg=zg(),li=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},E0={setTimeout:(l,u)=>setTimeout(l,u),clearTimeout:l=>clearTimeout(l),setInterval:(l,u)=>setInterval(l,u),clearInterval:l=>clearInterval(l)},_0=class{#e=E0;#t=!1;setTimeoutProvider(l){this.#e=l}setTimeout(l,u){return this.#e.setTimeout(l,u)}clearTimeout(l){this.#e.clearTimeout(l)}setInterval(l,u){return this.#e.setInterval(l,u)}clearInterval(l){this.#e.clearInterval(l)}},rl=new _0;function M0(l){setTimeout(l,0)}var ol=typeof window>"u"||"Deno"in globalThis;function ot(){}function T0(l,u){return typeof l=="function"?l(u):l}function yo(l){return typeof l=="number"&&l>=0&&l!==1/0}function Yg(l,u){return Math.max(l+(u||0)-Date.now(),0)}function qn(l,u){return typeof l=="function"?l(u):l}function Dt(l,u){return typeof l=="function"?l(u):l}function og(l,u){const{type:i="all",exact:s,fetchStatus:c,predicate:f,queryKey:h,stale:g}=l;if(h){if(s){if(u.queryHash!==Lo(h,u.options))return!1}else if(!ei(u.queryKey,h))return!1}if(i!=="all"){const p=u.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof g=="boolean"&&u.isStale()!==g||c&&c!==u.state.fetchStatus||f&&!f(u))}function cg(l,u){const{exact:i,status:s,predicate:c,mutationKey:f}=l;if(f){if(!u.options.mutationKey)return!1;if(i){if(Wa(u.options.mutationKey)!==Wa(f))return!1}else if(!ei(u.options.mutationKey,f))return!1}return!(s&&u.state.status!==s||c&&!c(u))}function Lo(l,u){return(u?.queryKeyHashFn||Wa)(l)}function Wa(l){return JSON.stringify(l,(u,i)=>Ro(i)?Object.keys(i).sort().reduce((s,c)=>(s[c]=i[c],s),{}):i)}function ei(l,u){return l===u?!0:typeof l!=typeof u?!1:l&&u&&typeof l=="object"&&typeof u=="object"?Object.keys(u).every(i=>ei(l[i],u[i])):!1}var w0=Object.prototype.hasOwnProperty;function $g(l,u){if(l===u)return l;const i=fg(l)&&fg(u);if(!i&&!(Ro(l)&&Ro(u)))return u;const c=(i?l:Object.keys(l)).length,f=i?u:Object.keys(u),h=f.length,g=i?new Array(h):{};let p=0;for(let m=0;m<h;m++){const y=i?m:f[m],b=l[y],R=u[y];if(b===R){g[y]=b,(i?m<c:w0.call(l,y))&&p++;continue}if(b===null||R===null||typeof b!="object"||typeof R!="object"){g[y]=R;continue}const S=$g(b,R);g[y]=S,S===b&&p++}return c===h&&p===c?l:g}function So(l,u){if(!u||Object.keys(l).length!==Object.keys(u).length)return!1;for(const i in l)if(l[i]!==u[i])return!1;return!0}function fg(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Ro(l){if(!dg(l))return!1;const u=l.constructor;if(u===void 0)return!0;const i=u.prototype;return!(!dg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function dg(l){return Object.prototype.toString.call(l)==="[object Object]"}function z0(l){return new Promise(u=>{rl.setTimeout(u,l)})}function Co(l,u,i){return typeof i.structuralSharing=="function"?i.structuralSharing(l,u):i.structuralSharing!==!1?$g(l,u):u}function x0(l,u,i=0){const s=[...l,u];return i&&s.length>i?s.slice(1):s}function O0(l,u,i=0){const s=[u,...l];return i&&s.length>i?s.slice(0,-1):s}var Bo=Symbol();function Xg(l,u){return!l.queryFn&&u?.initialPromise?()=>u.initialPromise:!l.queryFn||l.queryFn===Bo?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function A0(l,u){return typeof l=="function"?l(...u):!!l}var D0=class extends li{#e;#t;#n;constructor(){super(),this.#n=l=>{if(!ol&&window.addEventListener){const u=()=>l();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(l){this.#n=l,this.#t?.(),this.#t=l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(l){this.#e!==l&&(this.#e=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(u=>{u(l)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qo=new D0;function bo(){let l,u;const i=new Promise((c,f)=>{l=c,u=f});i.status="pending",i.catch(()=>{});function s(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{s({status:"fulfilled",value:c}),l(c)},i.reject=c=>{s({status:"rejected",reason:c}),u(c)},i}var N0=M0;function H0(){let l=[],u=0,i=g=>{g()},s=g=>{g()},c=N0;const f=g=>{u?l.push(g):c(()=>{i(g)})},h=()=>{const g=l;l=[],g.length&&c(()=>{s(()=>{g.forEach(p=>{i(p)})})})};return{batch:g=>{let p;u++;try{p=g()}finally{u--,u||h()}return p},batchCalls:g=>(...p)=>{f(()=>{g(...p)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{s=g},setScheduler:g=>{c=g}}}var Pe=H0(),U0=class extends li{#e=!0;#t;#n;constructor(){super(),this.#n=l=>{if(!ol&&window.addEventListener){const u=()=>l(!0),i=()=>l(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(l){this.#n=l,this.#t?.(),this.#t=l(this.setOnline.bind(this))}setOnline(l){this.#e!==l&&(this.#e=l,this.listeners.forEach(i=>{i(l)}))}isOnline(){return this.#e}},Au=new U0;function j0(l){return Math.min(1e3*2**l,3e4)}function Zg(l){return(l??"online")==="online"?Au.isOnline():!0}var Eo=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function Kg(l){let u=!1,i=0,s;const c=bo(),f=()=>c.status!=="pending",h=w=>{if(!f()){const N=new Eo(w);R(N),l.onCancel?.(N)}},g=()=>{u=!0},p=()=>{u=!1},m=()=>qo.isFocused()&&(l.networkMode==="always"||Au.isOnline())&&l.canRun(),y=()=>Zg(l.networkMode)&&l.canRun(),b=w=>{f()||(s?.(),c.resolve(w))},R=w=>{f()||(s?.(),c.reject(w))},S=()=>new Promise(w=>{s=N=>{(f()||m())&&w(N)},l.onPause?.()}).then(()=>{s=void 0,f()||l.onContinue?.()}),T=()=>{if(f())return;let w;const N=i===0?l.initialPromise:void 0;try{w=N??l.fn()}catch(H){w=Promise.reject(H)}Promise.resolve(w).then(b).catch(H=>{if(f())return;const j=l.retry??(ol?0:3),F=l.retryDelay??j0,ne=typeof F=="function"?F(i,H):F,ee=j===!0||typeof j=="number"&&i<j||typeof j=="function"&&j(i,H);if(u||!ee){R(H);return}i++,l.onFail?.(i,H),z0(ne).then(()=>m()?void 0:S()).then(()=>{u?R(H):T()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(s?.(),c),cancelRetry:g,continueRetry:p,canStart:y,start:()=>(y()?T():S().then(T),c)}}var Jg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yo(this.gcTime)&&(this.#e=rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ol?1/0:300*1e3))}clearGcTimeout(){this.#e&&(rl.clearTimeout(this.#e),this.#e=void 0)}},V0=class extends Jg{#e;#t;#n;#a;#l;#s;#u;constructor(l){super(),this.#u=!1,this.#s=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#a=l.client,this.#n=this.#a.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#e=hg(this.options),this.state=l.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(l){if(this.options={...this.#s,...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=hg(this.options);u.data!==void 0&&(this.setData(u.data,{updatedAt:u.dataUpdatedAt,manual:!0}),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(l,u){const i=Co(this.state.data,l,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),i}setState(l,u){this.#i({type:"setState",state:l,setStateOptions:u})}cancel(l){const u=this.#l?.promise;return this.#l?.cancel(l),u?u.then(ot).catch(ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(l=>Dt(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>qn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!Yg(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(u=>u!==l),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(l,u){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(l&&this.setOptions(l),!this.options.queryFn){const g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}const i=new AbortController,s=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#u=!0,i.signal)})},c=()=>{const g=Xg(this.options,u),m=(()=>{const y={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#u=!1,this.options.persister?this.options.persister(g,m,this):g(m)},h=(()=>{const g={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:c};return s(g),g})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#l=Kg({initialPromise:u?.initialPromise,fn:h.fetchFn,onCancel:g=>{g instanceof Eo&&g.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(g,p)=>{this.#i({type:"failed",failureCount:g,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const g=await this.#l.start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#n.config.onSuccess?.(g,this),this.#n.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof Eo){if(g.silent)return this.#l.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#i({type:"error",error:g}),this.#n.config.onError?.(g,this),this.#n.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#i(l){const u=i=>{switch(l.type){case"failed":return{...i,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Pg(i.data,this.options),fetchMeta:l.meta??null};case"success":const s={...i,data:l.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:l.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=l.manual?s:void 0,s;case"error":const c=l.error;return{...i,error:c,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...l.state}}};this.state=u(this.state),Pe.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function Pg(l,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zg(u.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function hg(l){const u=typeof l.initialData=="function"?l.initialData():l.initialData,i=u!==void 0,s=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var L0=class extends li{constructor(l,u){super(),this.options=u,this.#e=l,this.#i=null,this.#u=bo(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#n=void 0;#a=void 0;#l;#s;#u;#i;#m;#d;#h;#o;#c;#r;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),gg(this.#t,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _o(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _o(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#C(),this.#t.removeObserver(this)}setOptions(l){const u=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#t.setOptions(this.options),u._defaulted&&!So(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&mg(this.#t,i,this.options,u)&&this.#f(),this.updateResult(),s&&(this.#t!==i||Dt(this.options.enabled,this.#t)!==Dt(u.enabled,this.#t)||qn(this.options.staleTime,this.#t)!==qn(u.staleTime,this.#t))&&this.#p();const c=this.#v();s&&(this.#t!==i||Dt(this.options.enabled,this.#t)!==Dt(u.enabled,this.#t)||c!==this.#r)&&this.#y(c)}getOptimisticResult(l){const u=this.#e.getQueryCache().build(this.#e,l),i=this.createResult(u,l);return q0(this,i)&&(this.#a=i,this.#s=this.options,this.#l=this.#t.state),i}getCurrentResult(){return this.#a}trackResult(l,u){return new Proxy(l,{get:(i,s)=>(this.trackProp(s),u?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(l){this.#g.add(l)}getCurrentQuery(){return this.#t}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const u=this.#e.defaultQueryOptions(l),i=this.#e.getQueryCache().build(this.#e,u);return i.fetch().then(()=>this.createResult(i,u))}fetch(l){return this.#f({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(l){this.#b();let u=this.#t.fetch(this.options,l);return l?.throwOnError||(u=u.catch(ot)),u}#p(){this.#R();const l=qn(this.options.staleTime,this.#t);if(ol||this.#a.isStale||!yo(l))return;const i=Yg(this.#a.dataUpdatedAt,l)+1;this.#o=rl.setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(l){this.#C(),this.#r=l,!(ol||Dt(this.options.enabled,this.#t)===!1||!yo(this.#r)||this.#r===0)&&(this.#c=rl.setInterval(()=>{(this.options.refetchIntervalInBackground||qo.isFocused())&&this.#f()},this.#r))}#S(){this.#p(),this.#y(this.#v())}#R(){this.#o&&(rl.clearTimeout(this.#o),this.#o=void 0)}#C(){this.#c&&(rl.clearInterval(this.#c),this.#c=void 0)}createResult(l,u){const i=this.#t,s=this.options,c=this.#a,f=this.#l,h=this.#s,p=l!==i?l.state:this.#n,{state:m}=l;let y={...m},b=!1,R;if(u._optimisticResults){const fe=this.hasListeners(),ye=!fe&&gg(l,u),Ae=fe&&mg(l,i,u,s);(ye||Ae)&&(y={...y,...Pg(m.data,l.options)}),u._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:T,status:w}=y;R=y.data;let N=!1;if(u.placeholderData!==void 0&&R===void 0&&w==="pending"){let fe;c?.isPlaceholderData&&u.placeholderData===h?.placeholderData?(fe=c.data,N=!0):fe=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,fe!==void 0&&(w="success",R=Co(c?.data,fe,u),b=!0)}if(u.select&&R!==void 0&&!N)if(c&&R===f?.data&&u.select===this.#m)R=this.#d;else try{this.#m=u.select,R=u.select(R),R=Co(c?.data,R,u),this.#d=R,this.#i=null}catch(fe){this.#i=fe}this.#i&&(S=this.#i,R=this.#d,T=Date.now(),w="error");const H=y.fetchStatus==="fetching",j=w==="pending",F=w==="error",ne=j&&H,ee=R!==void 0,K={status:w,fetchStatus:y.fetchStatus,isPending:j,isSuccess:w==="success",isError:F,isInitialLoading:ne,isLoading:ne,data:R,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:T,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:H,isRefetching:H&&!j,isLoadingError:F&&!ee,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:F&&ee,isStale:Go(l,u),refetch:this.refetch,promise:this.#u,isEnabled:Dt(u.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const fe=He=>{K.status==="error"?He.reject(K.error):K.data!==void 0&&He.resolve(K.data)},ye=()=>{const He=this.#u=K.promise=bo();fe(He)},Ae=this.#u;switch(Ae.status){case"pending":l.queryHash===i.queryHash&&fe(Ae);break;case"fulfilled":(K.status==="error"||K.data!==Ae.value)&&ye();break;case"rejected":(K.status!=="error"||K.error!==Ae.reason)&&ye();break}}return K}updateResult(){const l=this.#a,u=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#s=this.options,this.#l.data!==void 0&&(this.#h=this.#t),So(u,l))return;this.#a=u;const i=()=>{if(!l)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#g.size)return!0;const f=new Set(c??this.#g);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(h=>{const g=h;return this.#a[g]!==l[g]&&f.has(g)})};this.#E({listeners:i()})}#b(){const l=this.#e.getQueryCache().build(this.#e,this.options);if(l===this.#t)return;const u=this.#t;this.#t=l,this.#n=l.state,this.hasListeners()&&(u?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Pe.batch(()=>{l.listeners&&this.listeners.forEach(u=>{u(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function B0(l,u){return Dt(u.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&u.retryOnMount===!1)}function gg(l,u){return B0(l,u)||l.state.data!==void 0&&_o(l,u,u.refetchOnMount)}function _o(l,u,i){if(Dt(u.enabled,l)!==!1&&qn(u.staleTime,l)!=="static"){const s=typeof i=="function"?i(l):i;return s==="always"||s!==!1&&Go(l,u)}return!1}function mg(l,u,i,s){return(l!==u||Dt(s.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Go(l,i)}function Go(l,u){return Dt(u.enabled,l)!==!1&&l.isStaleByTime(qn(u.staleTime,l))}function q0(l,u){return!So(l.getCurrentResult(),u)}function pg(l){return{onFetch:(u,i)=>{const s=u.options,c=u.fetchOptions?.meta?.fetchMore?.direction,f=u.state.data?.pages||[],h=u.state.data?.pageParams||[];let g={pages:[],pageParams:[]},p=0;const m=async()=>{let y=!1;const b=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(u.signal.aborted?y=!0:u.signal.addEventListener("abort",()=>{y=!0}),u.signal)})},R=Xg(u.options,u.fetchOptions),S=async(T,w,N)=>{if(y)return Promise.reject();if(w==null&&T.pages.length)return Promise.resolve(T);const j=(()=>{const pe={client:u.client,queryKey:u.queryKey,pageParam:w,direction:N?"backward":"forward",meta:u.options.meta};return b(pe),pe})(),F=await R(j),{maxPages:ne}=u.options,ee=N?O0:x0;return{pages:ee(T.pages,F,ne),pageParams:ee(T.pageParams,w,ne)}};if(c&&f.length){const T=c==="backward",w=T?G0:vg,N={pages:f,pageParams:h},H=w(s,N);g=await S(N,H,T)}else{const T=l??f.length;do{const w=p===0?h[0]??s.initialPageParam:vg(s,g);if(p>0&&w==null)break;g=await S(g,w),p++}while(p<T)}return g};u.options.persister?u.fetchFn=()=>u.options.persister?.(m,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},i):u.fetchFn=m}}}function vg(l,{pages:u,pageParams:i}){const s=u.length-1;return u.length>0?l.getNextPageParam(u[s],u,i[s],i):void 0}function G0(l,{pages:u,pageParams:i}){return u.length>0?l.getPreviousPageParam?.(u[0],u,i[0],i):void 0}var F0=class extends Jg{#e;#t;#n;#a;constructor(l){super(),this.#e=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#t=[],this.state=l.state||Q0(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#t.includes(l)||(this.#t.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#t=this.#t.filter(u=>u!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(l){const u=()=>{this.#l({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=Kg({fn:()=>this.options.mutationFn?this.options.mutationFn(l,i):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#l({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#a.canStart();try{if(s)u();else{this.#l({type:"pending",variables:l,isPaused:c}),await this.#n.config.onMutate?.(l,this,i);const h=await this.options.onMutate?.(l,i);h!==this.state.context&&this.#l({type:"pending",context:h,variables:l,isPaused:c})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,l,this.state.context,this,i),await this.options.onSuccess?.(f,l,this.state.context,i),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(f,null,l,this.state.context,i),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,l,this.state.context,this,i),await this.options.onError?.(f,l,this.state.context,i),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(void 0,f,l,this.state.context,i),f}finally{this.#l({type:"error",error:f})}}finally{this.#n.runNext(this)}}#l(l){const u=i=>{switch(l.type){case"failed":return{...i,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...i,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:l.error,failureCount:i.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Pe.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function Q0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Y0=class extends li{constructor(l={}){super(),this.config=l,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(l,u,i){const s=new F0({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(u),state:i});return this.add(s),s}add(l){this.#e.add(l);const u=Eu(l);if(typeof u=="string"){const i=this.#t.get(u);i?i.push(l):this.#t.set(u,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#e.delete(l)){const u=Eu(l);if(typeof u=="string"){const i=this.#t.get(u);if(i)if(i.length>1){const s=i.indexOf(l);s!==-1&&i.splice(s,1)}else i[0]===l&&this.#t.delete(u)}}this.notify({type:"removed",mutation:l})}canRun(l){const u=Eu(l);if(typeof u=="string"){const s=this.#t.get(u)?.find(c=>c.state.status==="pending");return!s||s===l}else return!0}runNext(l){const u=Eu(l);return typeof u=="string"?this.#t.get(u)?.find(s=>s!==l&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Pe.batch(()=>{this.#e.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(l){const u={exact:!0,...l};return this.getAll().find(i=>cg(u,i))}findAll(l={}){return this.getAll().filter(u=>cg(l,u))}notify(l){Pe.batch(()=>{this.listeners.forEach(u=>{u(l)})})}resumePausedMutations(){const l=this.getAll().filter(u=>u.state.isPaused);return Pe.batch(()=>Promise.all(l.map(u=>u.continue().catch(ot))))}};function Eu(l){return l.options.scope?.id}var $0=class extends li{constructor(l={}){super(),this.config=l,this.#e=new Map}#e;build(l,u,i){const s=u.queryKey,c=u.queryHash??Lo(s,u);let f=this.get(c);return f||(f=new V0({client:l,queryKey:s,queryHash:c,options:l.defaultQueryOptions(u),state:i,defaultOptions:l.getQueryDefaults(s)}),this.add(f)),f}add(l){this.#e.has(l.queryHash)||(this.#e.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const u=this.#e.get(l.queryHash);u&&(l.destroy(),u===l&&this.#e.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Pe.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#e.get(l)}getAll(){return[...this.#e.values()]}find(l){const u={exact:!0,...l};return this.getAll().find(i=>og(u,i))}findAll(l={}){const u=this.getAll();return Object.keys(l).length>0?u.filter(i=>og(l,i)):u}notify(l){Pe.batch(()=>{this.listeners.forEach(u=>{u(l)})})}onFocus(){Pe.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Pe.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},X0=class{#e;#t;#n;#a;#l;#s;#u;#i;constructor(l={}){this.#e=l.queryCache||new $0,this.#t=l.mutationCache||new Y0,this.#n=l.defaultOptions||{},this.#a=new Map,this.#l=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=qo.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Au.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(l){return this.#e.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#t.findAll({...l,status:"pending"}).length}getQueryData(l){const u=this.defaultQueryOptions({queryKey:l});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(l){const u=this.defaultQueryOptions(l),i=this.#e.build(this,u),s=i.state.data;return s===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(qn(u.staleTime,i))&&this.prefetchQuery(u),Promise.resolve(s))}getQueriesData(l){return this.#e.findAll(l).map(({queryKey:u,state:i})=>{const s=i.data;return[u,s]})}setQueryData(l,u,i){const s=this.defaultQueryOptions({queryKey:l}),f=this.#e.get(s.queryHash)?.state.data,h=T0(u,f);if(h!==void 0)return this.#e.build(this,s).setData(h,{...i,manual:!0})}setQueriesData(l,u,i){return Pe.batch(()=>this.#e.findAll(l).map(({queryKey:s})=>[s,this.setQueryData(s,u,i)]))}getQueryState(l){const u=this.defaultQueryOptions({queryKey:l});return this.#e.get(u.queryHash)?.state}removeQueries(l){const u=this.#e;Pe.batch(()=>{u.findAll(l).forEach(i=>{u.remove(i)})})}resetQueries(l,u){const i=this.#e;return Pe.batch(()=>(i.findAll(l).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...l},u)))}cancelQueries(l,u={}){const i={revert:!0,...u},s=Pe.batch(()=>this.#e.findAll(l).map(c=>c.cancel(i)));return Promise.all(s).then(ot).catch(ot)}invalidateQueries(l,u={}){return Pe.batch(()=>(this.#e.findAll(l).forEach(i=>{i.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},u)))}refetchQueries(l,u={}){const i={...u,cancelRefetch:u.cancelRefetch??!0},s=Pe.batch(()=>this.#e.findAll(l).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(ot)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(ot)}fetchQuery(l){const u=this.defaultQueryOptions(l);u.retry===void 0&&(u.retry=!1);const i=this.#e.build(this,u);return i.isStaleByTime(qn(u.staleTime,i))?i.fetch(u):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ot).catch(ot)}fetchInfiniteQuery(l){return l.behavior=pg(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ot).catch(ot)}ensureInfiniteQueryData(l){return l.behavior=pg(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Au.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,u){this.#a.set(Wa(l),{queryKey:l,defaultOptions:u})}getQueryDefaults(l){const u=[...this.#a.values()],i={};return u.forEach(s=>{ei(l,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(l,u){this.#l.set(Wa(l),{mutationKey:l,defaultOptions:u})}getMutationDefaults(l){const u=[...this.#l.values()],i={};return u.forEach(s=>{ei(l,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const u={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return u.queryHash||(u.queryHash=Lo(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===Bo&&(u.enabled=!1),u}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},kg=z.createContext(void 0),Z0=l=>{const u=z.useContext(kg);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},K0=({client:l,children:u})=>(z.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),G.jsx(kg.Provider,{value:l,children:u})),Ig=z.createContext(!1),J0=()=>z.useContext(Ig);Ig.Provider;function P0(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var k0=z.createContext(P0()),I0=()=>z.useContext(k0),W0=(l,u)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(u.isReset()||(l.retryOnMount=!1))},eS=l=>{z.useEffect(()=>{l.clearReset()},[l])},tS=({result:l,errorResetBoundary:u,throwOnError:i,query:s,suspense:c})=>l.isError&&!u.isReset()&&!l.isFetching&&s&&(c&&l.data===void 0||A0(i,[l.error,s])),nS=l=>{if(l.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=l.staleTime;l.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},lS=(l,u)=>l.isLoading&&l.isFetching&&!u,aS=(l,u)=>l?.suspense&&u.isPending,yg=(l,u,i)=>u.fetchOptimistic(l).catch(()=>{i.clearReset()});function iS(l,u,i){const s=J0(),c=I0(),f=Z0(),h=f.defaultQueryOptions(l);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=s?"isRestoring":"optimistic",nS(h),W0(h,c),eS(c);const g=!f.getQueryCache().get(h.queryHash),[p]=z.useState(()=>new u(f,h)),m=p.getOptimisticResult(h),y=!s&&l.subscribed!==!1;if(z.useSyncExternalStore(z.useCallback(b=>{const R=y?p.subscribe(Pe.batchCalls(b)):ot;return p.updateResult(),R},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),z.useEffect(()=>{p.setOptions(h)},[h,p]),aS(h,m))throw yg(h,p,c);if(tS({result:m,errorResetBoundary:c,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw m.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(h,m),h.experimental_prefetchInRender&&!ol&&lS(m,s)&&(g?yg(h,p,c):f.getQueryCache().get(h.queryHash)?.promise)?.catch(ot).finally(()=>{p.updateResult()}),h.notifyOnChangeProps?m:p.trackResult(m)}function Wg(l,u){return iS(l,L0)}const uS="https://api.github.com/repos/microsoft/openvmm/pulls/",sS="https://api.github.com/repos/microsoft/openvmm/pulls?state=all&sort=updated&direction=desc",rS=50;async function em(){try{const l=[1,2,3,4].map(s=>oS(s,rS).catch(()=>({}))),u=await Promise.all(l),i={};for(const s of u)for(const c in s)Object.prototype.hasOwnProperty.call(i,c)||(i[c]=s[c]);return i}catch(l){return console.warn("[getGithubPullRequests] Failed to aggregate pages",l),{}}}async function oS(l,u){const i=`${sS}&per_page=${u}&page=${l}`;try{const s=await fetch(i,{headers:{Accept:"application/vnd.github+json"}});if(!s.ok)return console.warn("[getGithubPullRequests] Non-OK response",s.status,s.statusText),{};const c=await s.json();if(!Array.isArray(c))return{};const f={};for(const h of c)h&&typeof h.title=="string"&&typeof h.number=="number"&&(f[h.number]=h.title);return f}catch(s){return console.warn("[getGithubPullRequests] Failed to fetch PRs",s),{}}}async function cS(l,u){console.warn("[fetchMissingPRTitles] Fetching missing PR titles individually:",l);const i=Array.from(new Set(l)),s=await Promise.all(i.map(async c=>{const f=await u.ensureQueryData({queryKey:["prTitle",c],queryFn:()=>fS(c),staleTime:1/0,gcTime:1/0});return[c,f]}));return new Map(s)}async function fS(l){try{const u=await fetch(`${uS}${l}`);if(u.status===403)return null;if(u.ok){const i=await u.json();return typeof i.title=="string"?i.title:null}}catch{}return null}const dS="https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&include=metadata&prefix=runs/";function hS(l){l.prefetchQuery({queryKey:["runs"],queryFn:()=>tm(l),staleTime:180*1e3,gcTime:1/0}),l.prefetchQuery({queryKey:["prs"],queryFn:()=>em(),staleTime:1/0,gcTime:1/0}),setInterval(()=>{l.refetchQueries({queryKey:["runs"],type:"all"})},120*1e3)}async function tm(l){try{const i=await(await fetch(dS)).text(),s=gS(i,l);if(s.map(f=>f.metadata.ghPr).filter(f=>f!==void 0).length>0){const f=await l.ensureQueryData({queryKey:["prs"],queryFn:()=>em(),staleTime:1/0,gcTime:1/0}),h=[];if(s.forEach(g=>{const p=g.metadata.ghPr;p&&(f[p]?g.metadata.prTitle=f[p]:h.push(p))}),h.length>0){const g=await cS(h,l);s.forEach(p=>{const m=p.metadata.ghPr;if(m&&g.has(m)){const y=g.get(m);y&&(p.metadata.prTitle=y)}})}}return s}catch(u){throw console.error("Error fetching run data:",u),u}}function gS(l,u){const c=new DOMParser().parseFromString(l,"text/xml").getElementsByTagName("Blob"),f=[];for(const h of c){const g=h.getElementsByTagName("Name")[0]?.textContent||"",p=new Date(h.getElementsByTagName("Creation-Time")[0]?.textContent||""),m=new Date(h.getElementsByTagName("Last-Modified")[0]?.textContent||""),y=h.getElementsByTagName("Etag")[0]?.textContent||"",b=parseInt(h.getElementsByTagName("Content-Length")[0]?.textContent||"0"),R=h.getElementsByTagName("Metadata")[0],S={petriFailed:parseInt(R?.getElementsByTagName("petrifailed")[0]?.textContent||"0"),petriPassed:parseInt(R?.getElementsByTagName("petripassed")[0]?.textContent||"0"),ghBranch:R?.getElementsByTagName("ghbranch")[0]?.textContent||"",ghPr:R?.getElementsByTagName("ghpr")[0]?.textContent||void 0};f.push({name:g,creationTime:p,lastModified:m,etag:y,contentLength:b,metadata:S})}return mS(f,u),f}function mS(l,u){try{const i=[...l].sort((c,f)=>f.creationTime.getTime()-c.creationTime.getTime()),s=c=>c.replace(/^runs\//,"").split("/")[0];(async()=>{const c=new Set,f=[],g=i.filter(R=>R.metadata.petriFailed>0).slice(0,7);for(const R of g){const S=s(R.name);S&&(f.push(S),c.add(S))}const p=i.slice(0,10);for(const R of p){const S=s(R.name);S&&!c.has(S)&&(f.push(S),c.add(S))}const m=i.filter(R=>R.metadata.ghBranch==="main").slice(0,7);for(const R of m){const S=s(R.name);S&&!c.has(S)&&(f.push(S),c.add(S))}const y=5,b=async R=>{const S=["runDetails",R];if(!u.getQueryData(S))try{await u.prefetchQuery({queryKey:S,queryFn:()=>nm(R,u),staleTime:1/0,gcTime:1/0})}catch(T){console.warn(`[opportunisticPrefetching] Prefetch failed for run ${R}`,T)}};for(let R=0;R<f.length;R+=y){const S=f.slice(R,R+y);await Promise.allSettled(S.map(T=>b(T)))}})()}catch(i){console.warn("[opportunisticPrefetching] Failed to schedule runDetails prefetch",i)}}function pS(l,u,i){const s=new Map;let c=null;try{const p=l.match(/<Creation-Time>([^<]+)<\/Creation-Time>/);if(p){const m=new Date(p[1]);isNaN(m.getTime())||(c=m)}}catch{}const f=/<Name>([^<]+)<\/Name>/g;let h;for(;(h=f.exec(l))!==null;){const m=h[1].split("/"),y=m[m.length-1];if(y!=="petri.jsonl"&&y!=="petri.passed")continue;const b=m.slice(0,-1).join("/");s.has(b)||s.set(b,{hasJsonl:!1,hasPassed:!1});const R=s.get(b);y==="petri.jsonl"?R.hasJsonl=!0:y==="petri.passed"&&(R.hasPassed=!0)}const g=[];for(const[p,m]of s){if(!m.hasJsonl)continue;const y=p.split("/");if(y.length>=2){const b=y.slice(1);if(b.length>=2){const R=b[0],S=b.slice(1).join("/"),T=m.hasPassed?"passed":"failed",w=`${R}/${S}`;g.push({name:w,status:T,path:p})}}}return g.sort((p,m)=>p.name.localeCompare(m.name)),{creationTime:c??void 0,runNumber:u,tests:g}}async function nm(l,u){try{let i=[],s=null,c=null;do{let f=`https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&prefix=${encodeURIComponent(l)}`;s&&(f+=`&marker=${encodeURIComponent(s)}`);const h=await fetch(f);if(!h.ok)throw new Error(`Failed to fetch run details: ${h.status} ${h.statusText}`);const g=await h.text(),p=pS(g,l,u);!c&&p.creationTime&&(c=p.creationTime),i.push(...p.tests);const m=g.match(/<NextMarker>([^<]+)<\/NextMarker>/);s=m?m[1]:null}while(s);return i.sort((f,h)=>f.name.localeCompare(h.name)),{creationTime:c??void 0,runNumber:l,tests:i}}catch(i){throw console.error("Error fetching run details",i),i}}function lm(){const[l,u]=z.useState(!1),i=Wl(),s=z.useCallback(()=>u(f=>!f),[]);z.useEffect(()=>{if(l){const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=f}}},[l]);function c(f){i(f),s()}return G.jsxs(G.Fragment,{children:[G.jsx("button",{type:"button","aria-label":l?"Close navigation menu":"Open navigation menu",className:"menu-trigger",onClick:s,children:G.jsxs("span",{className:"menu-lines","aria-hidden":"true",children:[G.jsx("span",{}),G.jsx("span",{}),G.jsx("span",{})]})}),l&&Qg.createPortal(G.jsxs(G.Fragment,{children:[G.jsx("div",{className:"menu-overlay",onClick:s,role:"presentation"}),G.jsxs("nav",{className:l?"menu-drawer open":"menu-drawer","aria-hidden":!l,"aria-label":"Primary",children:[G.jsx("div",{className:"menu-drawer-header",children:"Petri Test Viewer"}),G.jsxs("ul",{className:"menu-nav-list",role:"list",children:[G.jsx("li",{children:G.jsx("button",{className:"drawer-link",onClick:()=>c("/runs"),children:"Runs"})}),G.jsx("li",{children:G.jsx("button",{className:"drawer-link",children:"Tests"})}),G.jsx("li",{className:"drawer-separator","aria-hidden":"true"}),G.jsx("li",{children:G.jsx("a",{className:"drawer-link external",href:"https://github.com/microsoft/openvmm",target:"_blank",rel:"noopener noreferrer",children:"Repo"})}),G.jsx("li",{children:G.jsx("a",{className:"drawer-link external",href:"http://openvmm.dev/",target:"_blank",rel:"noopener noreferrer",children:"Guide"})})]})]})]}),document.body)]})}function Jl(l,u,i){let s=i.initialDeps??[],c;function f(){var h,g,p,m;let y;i.key&&((h=i.debug)!=null&&h.call(i))&&(y=Date.now());const b=l();if(!(b.length!==s.length||b.some((T,w)=>s[w]!==T)))return c;s=b;let S;if(i.key&&((g=i.debug)!=null&&g.call(i))&&(S=Date.now()),c=u(...b),i.key&&((p=i.debug)!=null&&p.call(i))){const T=Math.round((Date.now()-y)*100)/100,w=Math.round((Date.now()-S)*100)/100,N=w/16,H=(j,F)=>{for(j=String(j);j.length<F;)j=" "+j;return j};console.info(`%c⏱ ${H(w,5)} /${H(T,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*N,120))}deg 100% 31%);`,i?.key)}return(m=i?.onChange)==null||m.call(i,c),c}return f.updateDeps=h=>{s=h},f}function Sg(l,u){if(l===void 0)throw new Error("Unexpected undefined");return l}const vS=(l,u)=>Math.abs(l-u)<1.01,yS=(l,u,i)=>{let s;return function(...c){l.clearTimeout(s),s=l.setTimeout(()=>u.apply(this,c),i)}},Rg=l=>{const{offsetWidth:u,offsetHeight:i}=l;return{width:u,height:i}},SS=l=>l,RS=l=>{const u=Math.max(l.startIndex-l.overscan,0),i=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let c=u;c<=i;c++)s.push(c);return s},CS=(l,u)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;const c=h=>{const{width:g,height:p}=h;u({width:Math.round(g),height:Math.round(p)})};if(c(Rg(i)),!s.ResizeObserver)return()=>{};const f=new s.ResizeObserver(h=>{const g=()=>{const p=h[0];if(p?.borderBoxSize){const m=p.borderBoxSize[0];if(m){c({width:m.inlineSize,height:m.blockSize});return}}c(Rg(i))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(g):g()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},Cg={passive:!0},bg=typeof window>"u"?!0:"onscrollend"in window,bS=(l,u)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;let c=0;const f=l.options.useScrollendEvent&&bg?()=>{}:yS(s,()=>{u(c,!1)},l.options.isScrollingResetDelay),h=y=>()=>{const{horizontal:b,isRtl:R}=l.options;c=b?i.scrollLeft*(R&&-1||1):i.scrollTop,f(),u(c,y)},g=h(!0),p=h(!1);p(),i.addEventListener("scroll",g,Cg);const m=l.options.useScrollendEvent&&bg;return m&&i.addEventListener("scrollend",p,Cg),()=>{i.removeEventListener("scroll",g),m&&i.removeEventListener("scrollend",p)}},ES=(l,u,i)=>{if(u?.borderBoxSize){const s=u.borderBoxSize[0];if(s)return Math.round(s[i.options.horizontal?"inlineSize":"blockSize"])}return l[i.options.horizontal?"offsetWidth":"offsetHeight"]},_S=(l,{adjustments:u=0,behavior:i},s)=>{var c,f;const h=l+u;(f=(c=s.scrollElement)==null?void 0:c.scrollTo)==null||f.call(c,{[s.options.horizontal?"left":"top"]:h,behavior:i})};class MS{constructor(u){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const s=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(c=>{c.forEach(f=>{const h=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()})}));return{disconnect:()=>{var c;(c=s())==null||c.disconnect(),i=null},observe:c=>{var f;return(f=s())==null?void 0:f.observe(c,{box:"border-box"})},unobserve:c=>{var f;return(f=s())==null?void 0:f.unobserve(c)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([s,c])=>{typeof c>"u"&&delete i[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:SS,rangeExtractor:RS,onChange:()=>{},measureElement:ES,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var s,c;(c=(s=this.options).onChange)==null||c.call(s,this,i)},this.maybeNotify=Jl(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(c=>{this.observer.observe(c)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,c=>{this.scrollRect=c,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(c,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<c?"forward":"backward":null,this.scrollOffset=c,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,s)=>{const c=new Map,f=new Map;for(let h=s-1;h>=0;h--){const g=i[h];if(c.has(g.lane))continue;const p=f.get(g.lane);if(p==null||g.end>p.end?f.set(g.lane,g):g.end<p.end&&c.set(g.lane,!0),c.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((h,g)=>h.end===g.end?h.index-g.index:h.end-g.end)[0]:void 0},this.getMeasurementOptions=Jl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,s,c,f,h)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:h}),{key:!1}),this.getMeasurements=Jl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:h},g)=>{if(!h)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(y=>{this.itemSizeCache.set(y.key,y.size)}));const p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const m=this.measurementsCache.slice(0,p);for(let y=p;y<i;y++){const b=f(y),R=this.options.lanes===1?m[y-1]:this.getFurthestMeasurement(m,y),S=R?R.end+this.options.gap:s+c,T=g.get(b),w=typeof T=="number"?T:this.options.estimateSize(y),N=S+w,H=R?R.lane:y%this.options.lanes;m[y]={index:y,start:S,size:w,end:N,key:b,lane:H}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Jl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,s,c,f)=>this.range=i.length>0&&s>0?TS({measurements:i,outerSize:s,scrollOffset:c,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Jl(()=>{let i=null,s=null;const c=this.calculateRange();return c&&(i=c.startIndex,s=c.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,s]},(i,s,c,f,h)=>f===null||h===null?[]:i({startIndex:f,endIndex:h,overscan:s,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const s=this.options.indexAttribute,c=i.getAttribute(s);return c?parseInt(c,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(i,s)=>{const c=this.indexFromElement(i),f=this.measurementsCache[c];if(!f)return;const h=f.key,g=this.elementsCache.get(h);g!==i&&(g&&this.observer.unobserve(g),this.observer.observe(i),this.elementsCache.set(h,i)),i.isConnected&&this.resizeItem(c,this.options.measureElement(i,s,this))},this.resizeItem=(i,s)=>{const c=this.measurementsCache[i];if(!c)return;const f=this.itemSizeCache.get(c.key)??c.size,h=s-f;h!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(c,h,this):c.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=h,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(c.index),this.itemSizeCache=new Map(this.itemSizeCache.set(c.key,s)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,c)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(c))});return}this._measureElement(i,void 0)},this.getVirtualItems=Jl(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,s)=>{const c=[];for(let f=0,h=i.length;f<h;f++){const g=i[f],p=s[g];c.push(p)}return c},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const s=this.getMeasurements();if(s.length!==0)return Sg(s[am(0,s.length-1,c=>Sg(s[c]).start,i)])},this.getOffsetForAlignment=(i,s,c=0)=>{const f=this.getSize(),h=this.getScrollOffset();s==="auto"&&(s=i>=h+f?"end":"start"),s==="center"?i+=(c-f)/2:s==="end"&&(i-=f);const g=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(g,i),0)},this.getOffsetForIndex=(i,s="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const c=this.measurementsCache[i];if(!c)return;const f=this.getSize(),h=this.getScrollOffset();if(s==="auto")if(c.end>=h+f-this.options.scrollPaddingEnd)s="end";else if(c.start<=h+this.options.scrollPaddingStart)s="start";else return[h,s];const g=s==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(g,s,c.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:s="start",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,s),{adjustments:void 0,behavior:c})},this.scrollToIndex=(i,{align:s="auto",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1));let f=0;const h=10,g=m=>{if(!this.targetWindow)return;const y=this.getOffsetForIndex(i,m);if(!y){console.warn("Failed to get offset for index:",i);return}const[b,R]=y;this._scrollToOffset(b,{adjustments:void 0,behavior:c}),this.targetWindow.requestAnimationFrame(()=>{const S=this.getScrollOffset(),T=this.getOffsetForIndex(i,R);if(!T){console.warn("Failed to get offset for index:",i);return}vS(T[0],S)||p(R)})},p=m=>{this.targetWindow&&(f++,f<h?this.targetWindow.requestAnimationFrame(()=>g(m)):console.warn(`Failed to scroll to index ${i} after ${h} attempts.`))};g(s)},this.scrollBy=(i,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var i;const s=this.getMeasurements();let c;if(s.length===0)c=this.options.paddingStart;else if(this.options.lanes===1)c=((i=s[s.length-1])==null?void 0:i.end)??0;else{const f=Array(this.options.lanes).fill(null);let h=s.length-1;for(;h>=0&&f.some(g=>g===null);){const g=s[h];f[g.lane]===null&&(f[g.lane]=g.end),h--}c=Math.max(...f.filter(g=>g!==null))}return Math.max(c-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:s,behavior:c})=>{this.options.scrollToFn(i,{behavior:c,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(u)}}const am=(l,u,i,s)=>{for(;l<=u;){const c=(l+u)/2|0,f=i(c);if(f<s)l=c+1;else if(f>s)u=c-1;else return c}return l>0?l-1:0};function TS({measurements:l,outerSize:u,scrollOffset:i,lanes:s}){const c=l.length-1,f=p=>l[p].start;if(l.length<=s)return{startIndex:0,endIndex:c};let h=am(0,c,f,i),g=h;if(s===1)for(;g<c&&l[g].end<i+u;)g++;else if(s>1){const p=Array(s).fill(0);for(;g<c&&p.some(y=>y<i+u);){const y=l[g];p[y.lane]=y.end,g++}const m=Array(s).fill(i+u);for(;h>=0&&m.some(y=>y>=i);){const y=l[h];m[y.lane]=y.start,h--}h=Math.max(0,h-h%s),g=Math.min(c,g+(s-1-g%s))}return{startIndex:h,endIndex:g}}const Eg=typeof document<"u"?z.useLayoutEffect:z.useEffect;function wS(l){const u=z.useReducer(()=>({}),{})[1],i={...l,onChange:(c,f)=>{var h;f?Qg.flushSync(u):u(),(h=l.onChange)==null||h.call(l,c,f)}},[s]=z.useState(()=>new MS(i));return s.setOptions(i),Eg(()=>s._didMount(),[]),Eg(()=>s._willUpdate()),s}function zS(l){return wS({observeElementRect:CS,observeElementOffset:bS,scrollToFn:_S,...l})}/**
* table-core
*
* Copyright (c) TanStack
*
* 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
*/function Bn(l,u){return typeof l=="function"?l(u):l}function Ct(l,u){return i=>{u.setState(s=>({...s,[l]:Bn(i,s[l])}))}}function Hu(l){return l instanceof Function}function xS(l){return Array.isArray(l)&&l.every(u=>typeof u=="number")}function OS(l,u){const i=[],s=c=>{c.forEach(f=>{i.push(f);const h=u(f);h!=null&&h.length&&s(h)})};return s(l),i}function k(l,u,i){let s=[],c;return f=>{let h;i.key&&i.debug&&(h=Date.now());const g=l(f);if(!(g.length!==s.length||g.some((y,b)=>s[b]!==y)))return c;s=g;let m;if(i.key&&i.debug&&(m=Date.now()),c=u(...g),i==null||i.onChange==null||i.onChange(c),i.key&&i.debug&&i!=null&&i.debug()){const y=Math.round((Date.now()-h)*100)/100,b=Math.round((Date.now()-m)*100)/100,R=b/16,S=(T,w)=>{for(T=String(T);T.length<w;)T=" "+T;return T};console.info(`%c⏱ ${S(b,5)} /${S(y,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,i?.key)}return c}}function I(l,u,i,s){return{debug:()=>{var c;return(c=l?.debugAll)!=null?c:l[u]},key:!1,onChange:s}}function AS(l,u,i,s){const c=()=>{var h;return(h=f.getValue())!=null?h:l.options.renderFallbackValue},f={id:`${u.id}_${i.id}`,row:u,column:i,getValue:()=>u.getValue(s),renderValue:c,getContext:k(()=>[l,i,u,f],(h,g,p,m)=>({table:h,column:g,row:p,cell:m,getValue:m.getValue,renderValue:m.renderValue}),I(l.options,"debugCells"))};return l._features.forEach(h=>{h.createCell==null||h.createCell(f,i,u,l)},{}),f}function DS(l,u,i,s){var c,f;const g={...l._getDefaultColumnDef(),...u},p=g.accessorKey;let m=(c=(f=g.id)!=null?f:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?c:typeof g.header=="string"?g.header:void 0,y;if(g.accessorFn?y=g.accessorFn:p&&(p.includes(".")?y=R=>{let S=R;for(const w of p.split(".")){var T;S=(T=S)==null?void 0:T[w]}return S}:y=R=>R[g.accessorKey]),!m)throw new Error;let b={id:`${String(m)}`,accessorFn:y,parent:s,depth:i,columnDef:g,columns:[],getFlatColumns:k(()=>[!0],()=>{var R;return[b,...(R=b.columns)==null?void 0:R.flatMap(S=>S.getFlatColumns())]},I(l.options,"debugColumns")),getLeafColumns:k(()=>[l._getOrderColumnsFn()],R=>{var S;if((S=b.columns)!=null&&S.length){let T=b.columns.flatMap(w=>w.getLeafColumns());return R(T)}return[b]},I(l.options,"debugColumns"))};for(const R of l._features)R.createColumn==null||R.createColumn(b,l);return b}const Ie="debugHeaders";function _g(l,u,i){var s;let f={id:(s=i.id)!=null?s:u.id,column:u,index:i.index,isPlaceholder:!!i.isPlaceholder,placeholderId:i.placeholderId,depth:i.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const h=[],g=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(g),h.push(p)};return g(f),h},getContext:()=>({table:l,header:f,column:u})};return l._features.forEach(h=>{h.createHeader==null||h.createHeader(f,l)}),f}const NS={createTable:l=>{l.getHeaderGroups=k(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.left,l.getState().columnPinning.right],(u,i,s,c)=>{var f,h;const g=(f=s?.map(b=>i.find(R=>R.id===b)).filter(Boolean))!=null?f:[],p=(h=c?.map(b=>i.find(R=>R.id===b)).filter(Boolean))!=null?h:[],m=i.filter(b=>!(s!=null&&s.includes(b.id))&&!(c!=null&&c.includes(b.id)));return _u(u,[...g,...m,...p],l)},I(l.options,Ie)),l.getCenterHeaderGroups=k(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.left,l.getState().columnPinning.right],(u,i,s,c)=>(i=i.filter(f=>!(s!=null&&s.includes(f.id))&&!(c!=null&&c.includes(f.id))),_u(u,i,l,"center")),I(l.options,Ie)),l.getLeftHeaderGroups=k(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.left],(u,i,s)=>{var c;const f=(c=s?.map(h=>i.find(g=>g.id===h)).filter(Boolean))!=null?c:[];return _u(u,f,l,"left")},I(l.options,Ie)),l.getRightHeaderGroups=k(()=>[l.getAllColumns(),l.getVisibleLeafColumns(),l.getState().columnPinning.right],(u,i,s)=>{var c;const f=(c=s?.map(h=>i.find(g=>g.id===h)).filter(Boolean))!=null?c:[];return _u(u,f,l,"right")},I(l.options,Ie)),l.getFooterGroups=k(()=>[l.getHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getLeftFooterGroups=k(()=>[l.getLeftHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getCenterFooterGroups=k(()=>[l.getCenterHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getRightFooterGroups=k(()=>[l.getRightHeaderGroups()],u=>[...u].reverse(),I(l.options,Ie)),l.getFlatHeaders=k(()=>[l.getHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getLeftFlatHeaders=k(()=>[l.getLeftHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getCenterFlatHeaders=k(()=>[l.getCenterHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getRightFlatHeaders=k(()=>[l.getRightHeaderGroups()],u=>u.map(i=>i.headers).flat(),I(l.options,Ie)),l.getCenterLeafHeaders=k(()=>[l.getCenterFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),I(l.options,Ie)),l.getLeftLeafHeaders=k(()=>[l.getLeftFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),I(l.options,Ie)),l.getRightLeafHeaders=k(()=>[l.getRightFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),I(l.options,Ie)),l.getLeafHeaders=k(()=>[l.getLeftHeaderGroups(),l.getCenterHeaderGroups(),l.getRightHeaderGroups()],(u,i,s)=>{var c,f,h,g,p,m;return[...(c=(f=u[0])==null?void 0:f.headers)!=null?c:[],...(h=(g=i[0])==null?void 0:g.headers)!=null?h:[],...(p=(m=s[0])==null?void 0:m.headers)!=null?p:[]].map(y=>y.getLeafHeaders()).flat()},I(l.options,Ie))}};function _u(l,u,i,s){var c,f;let h=0;const g=function(R,S){S===void 0&&(S=1),h=Math.max(h,S),R.filter(T=>T.getIsVisible()).forEach(T=>{var w;(w=T.columns)!=null&&w.length&&g(T.columns,S+1)},0)};g(l);let p=[];const m=(R,S)=>{const T={depth:S,id:[s,`${S}`].filter(Boolean).join("_"),headers:[]},w=[];R.forEach(N=>{const H=[...w].reverse()[0],j=N.column.depth===T.depth;let F,ne=!1;if(j&&N.column.parent?F=N.column.parent:(F=N.column,ne=!0),H&&H?.column===F)H.subHeaders.push(N);else{const ee=_g(i,F,{id:[s,S,F.id,N?.id].filter(Boolean).join("_"),isPlaceholder:ne,placeholderId:ne?`${w.filter(pe=>pe.column===F).length}`:void 0,depth:S,index:w.length});ee.subHeaders.push(N),w.push(ee)}T.headers.push(N),N.headerGroup=T}),p.push(T),S>0&&m(w,S-1)},y=u.map((R,S)=>_g(i,R,{depth:h,index:S}));m(y,h-1),p.reverse();const b=R=>R.filter(T=>T.column.getIsVisible()).map(T=>{let w=0,N=0,H=[0];T.subHeaders&&T.subHeaders.length?(H=[],b(T.subHeaders).forEach(F=>{let{colSpan:ne,rowSpan:ee}=F;w+=ne,H.push(ee)})):w=1;const j=Math.min(...H);return N=N+j,T.colSpan=w,T.rowSpan=N,{colSpan:w,rowSpan:N}});return b((c=(f=p[0])==null?void 0:f.headers)!=null?c:[]),p}const Fo=(l,u,i,s,c,f,h)=>{let g={id:u,index:s,original:i,depth:c,parentId:h,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(g._valuesCache.hasOwnProperty(p))return g._valuesCache[p];const m=l.getColumn(p);if(m!=null&&m.accessorFn)return g._valuesCache[p]=m.accessorFn(g.original,s),g._valuesCache[p]},getUniqueValues:p=>{if(g._uniqueValuesCache.hasOwnProperty(p))return g._uniqueValuesCache[p];const m=l.getColumn(p);if(m!=null&&m.accessorFn)return m.columnDef.getUniqueValues?(g._uniqueValuesCache[p]=m.columnDef.getUniqueValues(g.original,s),g._uniqueValuesCache[p]):(g._uniqueValuesCache[p]=[g.getValue(p)],g._uniqueValuesCache[p])},renderValue:p=>{var m;return(m=g.getValue(p))!=null?m:l.options.renderFallbackValue},subRows:[],getLeafRows:()=>OS(g.subRows,p=>p.subRows),getParentRow:()=>g.parentId?l.getRow(g.parentId,!0):void 0,getParentRows:()=>{let p=[],m=g;for(;;){const y=m.getParentRow();if(!y)break;p.push(y),m=y}return p.reverse()},getAllCells:k(()=>[l.getAllLeafColumns()],p=>p.map(m=>AS(l,g,m,m.id)),I(l.options,"debugRows")),_getAllCellsByColumnId:k(()=>[g.getAllCells()],p=>p.reduce((m,y)=>(m[y.column.id]=y,m),{}),I(l.options,"debugRows"))};for(let p=0;p<l._features.length;p++){const m=l._features[p];m==null||m.createRow==null||m.createRow(g,l)}return g},HS={createColumn:(l,u)=>{l._getFacetedRowModel=u.options.getFacetedRowModel&&u.options.getFacetedRowModel(u,l.id),l.getFacetedRowModel=()=>l._getFacetedRowModel?l._getFacetedRowModel():u.getPreFilteredRowModel(),l._getFacetedUniqueValues=u.options.getFacetedUniqueValues&&u.options.getFacetedUniqueValues(u,l.id),l.getFacetedUniqueValues=()=>l._getFacetedUniqueValues?l._getFacetedUniqueValues():new Map,l._getFacetedMinMaxValues=u.options.getFacetedMinMaxValues&&u.options.getFacetedMinMaxValues(u,l.id),l.getFacetedMinMaxValues=()=>{if(l._getFacetedMinMaxValues)return l._getFacetedMinMaxValues()}}},im=(l,u,i)=>{var s,c;const f=i==null||(s=i.toString())==null?void 0:s.toLowerCase();return!!(!((c=l.getValue(u))==null||(c=c.toString())==null||(c=c.toLowerCase())==null)&&c.includes(f))};im.autoRemove=l=>Vt(l);const um=(l,u,i)=>{var s;return!!(!((s=l.getValue(u))==null||(s=s.toString())==null)&&s.includes(i))};um.autoRemove=l=>Vt(l);const sm=(l,u,i)=>{var s;return((s=l.getValue(u))==null||(s=s.toString())==null?void 0:s.toLowerCase())===i?.toLowerCase()};sm.autoRemove=l=>Vt(l);const rm=(l,u,i)=>{var s;return(s=l.getValue(u))==null?void 0:s.includes(i)};rm.autoRemove=l=>Vt(l);const om=(l,u,i)=>!i.some(s=>{var c;return!((c=l.getValue(u))!=null&&c.includes(s))});om.autoRemove=l=>Vt(l)||!(l!=null&&l.length);const cm=(l,u,i)=>i.some(s=>{var c;return(c=l.getValue(u))==null?void 0:c.includes(s)});cm.autoRemove=l=>Vt(l)||!(l!=null&&l.length);const fm=(l,u,i)=>l.getValue(u)===i;fm.autoRemove=l=>Vt(l);const dm=(l,u,i)=>l.getValue(u)==i;dm.autoRemove=l=>Vt(l);const Qo=(l,u,i)=>{let[s,c]=i;const f=l.getValue(u);return f>=s&&f<=c};Qo.resolveFilterValue=l=>{let[u,i]=l,s=typeof u!="number"?parseFloat(u):u,c=typeof i!="number"?parseFloat(i):i,f=u===null||Number.isNaN(s)?-1/0:s,h=i===null||Number.isNaN(c)?1/0:c;if(f>h){const g=f;f=h,h=g}return[f,h]};Qo.autoRemove=l=>Vt(l)||Vt(l[0])&&Vt(l[1]);const fn={includesString:im,includesStringSensitive:um,equalsString:sm,arrIncludes:rm,arrIncludesAll:om,arrIncludesSome:cm,equals:fm,weakEquals:dm,inNumberRange:Qo};function Vt(l){return l==null||l===""}const US={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:l=>({columnFilters:[],...l}),getDefaultOptions:l=>({onColumnFiltersChange:Ct("columnFilters",l),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(l,u)=>{l.getAutoFilterFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(l.id);return typeof s=="string"?fn.includesString:typeof s=="number"?fn.inNumberRange:typeof s=="boolean"||s!==null&&typeof s=="object"?fn.equals:Array.isArray(s)?fn.arrIncludes:fn.weakEquals},l.getFilterFn=()=>{var i,s;return Hu(l.columnDef.filterFn)?l.columnDef.filterFn:l.columnDef.filterFn==="auto"?l.getAutoFilterFn():(i=(s=u.options.filterFns)==null?void 0:s[l.columnDef.filterFn])!=null?i:fn[l.columnDef.filterFn]},l.getCanFilter=()=>{var i,s,c;return((i=l.columnDef.enableColumnFilter)!=null?i:!0)&&((s=u.options.enableColumnFilters)!=null?s:!0)&&((c=u.options.enableFilters)!=null?c:!0)&&!!l.accessorFn},l.getIsFiltered=()=>l.getFilterIndex()>-1,l.getFilterValue=()=>{var i;return(i=u.getState().columnFilters)==null||(i=i.find(s=>s.id===l.id))==null?void 0:i.value},l.getFilterIndex=()=>{var i,s;return(i=(s=u.getState().columnFilters)==null?void 0:s.findIndex(c=>c.id===l.id))!=null?i:-1},l.setFilterValue=i=>{u.setColumnFilters(s=>{const c=l.getFilterFn(),f=s?.find(y=>y.id===l.id),h=Bn(i,f?f.value:void 0);if(Mg(c,h,l)){var g;return(g=s?.filter(y=>y.id!==l.id))!=null?g:[]}const p={id:l.id,value:h};if(f){var m;return(m=s?.map(y=>y.id===l.id?p:y))!=null?m:[]}return s!=null&&s.length?[...s,p]:[p]})}},createRow:(l,u)=>{l.columnFilters={},l.columnFiltersMeta={}},createTable:l=>{l.setColumnFilters=u=>{const i=l.getAllLeafColumns(),s=c=>{var f;return(f=Bn(u,c))==null?void 0:f.filter(h=>{const g=i.find(p=>p.id===h.id);if(g){const p=g.getFilterFn();if(Mg(p,h.value,g))return!1}return!0})};l.options.onColumnFiltersChange==null||l.options.onColumnFiltersChange(s)},l.resetColumnFilters=u=>{var i,s;l.setColumnFilters(u?[]:(i=(s=l.initialState)==null?void 0:s.columnFilters)!=null?i:[])},l.getPreFilteredRowModel=()=>l.getCoreRowModel(),l.getFilteredRowModel=()=>(!l._getFilteredRowModel&&l.options.getFilteredRowModel&&(l._getFilteredRowModel=l.options.getFilteredRowModel(l)),l.options.manualFiltering||!l._getFilteredRowModel?l.getPreFilteredRowModel():l._getFilteredRowModel())}};function Mg(l,u,i){return(l&&l.autoRemove?l.autoRemove(u,i):!1)||typeof u>"u"||typeof u=="string"&&!u}const jS=(l,u,i)=>i.reduce((s,c)=>{const f=c.getValue(l);return s+(typeof f=="number"?f:0)},0),VS=(l,u,i)=>{let s;return i.forEach(c=>{const f=c.getValue(l);f!=null&&(s>f||s===void 0&&f>=f)&&(s=f)}),s},LS=(l,u,i)=>{let s;return i.forEach(c=>{const f=c.getValue(l);f!=null&&(s<f||s===void 0&&f>=f)&&(s=f)}),s},BS=(l,u,i)=>{let s,c;return i.forEach(f=>{const h=f.getValue(l);h!=null&&(s===void 0?h>=h&&(s=c=h):(s>h&&(s=h),c<h&&(c=h)))}),[s,c]},qS=(l,u)=>{let i=0,s=0;if(u.forEach(c=>{let f=c.getValue(l);f!=null&&(f=+f)>=f&&(++i,s+=f)}),i)return s/i},GS=(l,u)=>{if(!u.length)return;const i=u.map(f=>f.getValue(l));if(!xS(i))return;if(i.length===1)return i[0];const s=Math.floor(i.length/2),c=i.sort((f,h)=>f-h);return i.length%2!==0?c[s]:(c[s-1]+c[s])/2},FS=(l,u)=>Array.from(new Set(u.map(i=>i.getValue(l))).values()),QS=(l,u)=>new Set(u.map(i=>i.getValue(l))).size,YS=(l,u)=>u.length,so={sum:jS,min:VS,max:LS,extent:BS,mean:qS,median:GS,unique:FS,uniqueCount:QS,count:YS},$S={getDefaultColumnDef:()=>({aggregatedCell:l=>{var u,i;return(u=(i=l.getValue())==null||i.toString==null?void 0:i.toString())!=null?u:null},aggregationFn:"auto"}),getInitialState:l=>({grouping:[],...l}),getDefaultOptions:l=>({onGroupingChange:Ct("grouping",l),groupedColumnMode:"reorder"}),createColumn:(l,u)=>{l.toggleGrouping=()=>{u.setGrouping(i=>i!=null&&i.includes(l.id)?i.filter(s=>s!==l.id):[...i??[],l.id])},l.getCanGroup=()=>{var i,s;return((i=l.columnDef.enableGrouping)!=null?i:!0)&&((s=u.options.enableGrouping)!=null?s:!0)&&(!!l.accessorFn||!!l.columnDef.getGroupingValue)},l.getIsGrouped=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.includes(l.id)},l.getGroupedIndex=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.indexOf(l.id)},l.getToggleGroupingHandler=()=>{const i=l.getCanGroup();return()=>{i&&l.toggleGrouping()}},l.getAutoAggregationFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(l.id);if(typeof s=="number")return so.sum;if(Object.prototype.toString.call(s)==="[object Date]")return so.extent},l.getAggregationFn=()=>{var i,s;if(!l)throw new Error;return Hu(l.columnDef.aggregationFn)?l.columnDef.aggregationFn:l.columnDef.aggregationFn==="auto"?l.getAutoAggregationFn():(i=(s=u.options.aggregationFns)==null?void 0:s[l.columnDef.aggregationFn])!=null?i:so[l.columnDef.aggregationFn]}},createTable:l=>{l.setGrouping=u=>l.options.onGroupingChange==null?void 0:l.options.onGroupingChange(u),l.resetGrouping=u=>{var i,s;l.setGrouping(u?[]:(i=(s=l.initialState)==null?void 0:s.grouping)!=null?i:[])},l.getPreGroupedRowModel=()=>l.getFilteredRowModel(),l.getGroupedRowModel=()=>(!l._getGroupedRowModel&&l.options.getGroupedRowModel&&(l._getGroupedRowModel=l.options.getGroupedRowModel(l)),l.options.manualGrouping||!l._getGroupedRowModel?l.getPreGroupedRowModel():l._getGroupedRowModel())},createRow:(l,u)=>{l.getIsGrouped=()=>!!l.groupingColumnId,l.getGroupingValue=i=>{if(l._groupingValuesCache.hasOwnProperty(i))return l._groupingValuesCache[i];const s=u.getColumn(i);return s!=null&&s.columnDef.getGroupingValue?(l._groupingValuesCache[i]=s.columnDef.getGroupingValue(l.original),l._groupingValuesCache[i]):l.getValue(i)},l._groupingValuesCache={}},createCell:(l,u,i,s)=>{l.getIsGrouped=()=>u.getIsGrouped()&&u.id===i.groupingColumnId,l.getIsPlaceholder=()=>!l.getIsGrouped()&&u.getIsGrouped(),l.getIsAggregated=()=>{var c;return!l.getIsGrouped()&&!l.getIsPlaceholder()&&!!((c=i.subRows)!=null&&c.length)}}};function XS(l,u,i){if(!(u!=null&&u.length)||!i)return l;const s=l.filter(f=>!u.includes(f.id));return i==="remove"?s:[...u.map(f=>l.find(h=>h.id===f)).filter(Boolean),...s]}const ZS={getInitialState:l=>({columnOrder:[],...l}),getDefaultOptions:l=>({onColumnOrderChange:Ct("columnOrder",l)}),createColumn:(l,u)=>{l.getIndex=k(i=>[ka(u,i)],i=>i.findIndex(s=>s.id===l.id),I(u.options,"debugColumns")),l.getIsFirstColumn=i=>{var s;return((s=ka(u,i)[0])==null?void 0:s.id)===l.id},l.getIsLastColumn=i=>{var s;const c=ka(u,i);return((s=c[c.length-1])==null?void 0:s.id)===l.id}},createTable:l=>{l.setColumnOrder=u=>l.options.onColumnOrderChange==null?void 0:l.options.onColumnOrderChange(u),l.resetColumnOrder=u=>{var i;l.setColumnOrder(u?[]:(i=l.initialState.columnOrder)!=null?i:[])},l._getOrderColumnsFn=k(()=>[l.getState().columnOrder,l.getState().grouping,l.options.groupedColumnMode],(u,i,s)=>c=>{let f=[];if(!(u!=null&&u.length))f=c;else{const h=[...u],g=[...c];for(;g.length&&h.length;){const p=h.shift(),m=g.findIndex(y=>y.id===p);m>-1&&f.push(g.splice(m,1)[0])}f=[...f,...g]}return XS(f,i,s)},I(l.options,"debugTable"))}},ro=()=>({left:[],right:[]}),KS={getInitialState:l=>({columnPinning:ro(),...l}),getDefaultOptions:l=>({onColumnPinningChange:Ct("columnPinning",l)}),createColumn:(l,u)=>{l.pin=i=>{const s=l.getLeafColumns().map(c=>c.id).filter(Boolean);u.setColumnPinning(c=>{var f,h;if(i==="right"){var g,p;return{left:((g=c?.left)!=null?g:[]).filter(b=>!(s!=null&&s.includes(b))),right:[...((p=c?.right)!=null?p:[]).filter(b=>!(s!=null&&s.includes(b))),...s]}}if(i==="left"){var m,y;return{left:[...((m=c?.left)!=null?m:[]).filter(b=>!(s!=null&&s.includes(b))),...s],right:((y=c?.right)!=null?y:[]).filter(b=>!(s!=null&&s.includes(b)))}}return{left:((f=c?.left)!=null?f:[]).filter(b=>!(s!=null&&s.includes(b))),right:((h=c?.right)!=null?h:[]).filter(b=>!(s!=null&&s.includes(b)))}})},l.getCanPin=()=>l.getLeafColumns().some(s=>{var c,f,h;return((c=s.columnDef.enablePinning)!=null?c:!0)&&((f=(h=u.options.enableColumnPinning)!=null?h:u.options.enablePinning)!=null?f:!0)}),l.getIsPinned=()=>{const i=l.getLeafColumns().map(g=>g.id),{left:s,right:c}=u.getState().columnPinning,f=i.some(g=>s?.includes(g)),h=i.some(g=>c?.includes(g));return f?"left":h?"right":!1},l.getPinnedIndex=()=>{var i,s;const c=l.getIsPinned();return c?(i=(s=u.getState().columnPinning)==null||(s=s[c])==null?void 0:s.indexOf(l.id))!=null?i:-1:0}},createRow:(l,u)=>{l.getCenterVisibleCells=k(()=>[l._getAllVisibleCells(),u.getState().columnPinning.left,u.getState().columnPinning.right],(i,s,c)=>{const f=[...s??[],...c??[]];return i.filter(h=>!f.includes(h.column.id))},I(u.options,"debugRows")),l.getLeftVisibleCells=k(()=>[l._getAllVisibleCells(),u.getState().columnPinning.left],(i,s)=>(s??[]).map(f=>i.find(h=>h.column.id===f)).filter(Boolean).map(f=>({...f,position:"left"})),I(u.options,"debugRows")),l.getRightVisibleCells=k(()=>[l._getAllVisibleCells(),u.getState().columnPinning.right],(i,s)=>(s??[]).map(f=>i.find(h=>h.column.id===f)).filter(Boolean).map(f=>({...f,position:"right"})),I(u.options,"debugRows"))},createTable:l=>{l.setColumnPinning=u=>l.options.onColumnPinningChange==null?void 0:l.options.onColumnPinningChange(u),l.resetColumnPinning=u=>{var i,s;return l.setColumnPinning(u?ro():(i=(s=l.initialState)==null?void 0:s.columnPinning)!=null?i:ro())},l.getIsSomeColumnsPinned=u=>{var i;const s=l.getState().columnPinning;if(!u){var c,f;return!!((c=s.left)!=null&&c.length||(f=s.right)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},l.getLeftLeafColumns=k(()=>[l.getAllLeafColumns(),l.getState().columnPinning.left],(u,i)=>(i??[]).map(s=>u.find(c=>c.id===s)).filter(Boolean),I(l.options,"debugColumns")),l.getRightLeafColumns=k(()=>[l.getAllLeafColumns(),l.getState().columnPinning.right],(u,i)=>(i??[]).map(s=>u.find(c=>c.id===s)).filter(Boolean),I(l.options,"debugColumns")),l.getCenterLeafColumns=k(()=>[l.getAllLeafColumns(),l.getState().columnPinning.left,l.getState().columnPinning.right],(u,i,s)=>{const c=[...i??[],...s??[]];return u.filter(f=>!c.includes(f.id))},I(l.options,"debugColumns"))}};function JS(l){return l||(typeof document<"u"?document:null)}const Mu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},oo=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),PS={getDefaultColumnDef:()=>Mu,getInitialState:l=>({columnSizing:{},columnSizingInfo:oo(),...l}),getDefaultOptions:l=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ct("columnSizing",l),onColumnSizingInfoChange:Ct("columnSizingInfo",l)}),createColumn:(l,u)=>{l.getSize=()=>{var i,s,c;const f=u.getState().columnSizing[l.id];return Math.min(Math.max((i=l.columnDef.minSize)!=null?i:Mu.minSize,(s=f??l.columnDef.size)!=null?s:Mu.size),(c=l.columnDef.maxSize)!=null?c:Mu.maxSize)},l.getStart=k(i=>[i,ka(u,i),u.getState().columnSizing],(i,s)=>s.slice(0,l.getIndex(i)).reduce((c,f)=>c+f.getSize(),0),I(u.options,"debugColumns")),l.getAfter=k(i=>[i,ka(u,i),u.getState().columnSizing],(i,s)=>s.slice(l.getIndex(i)+1).reduce((c,f)=>c+f.getSize(),0),I(u.options,"debugColumns")),l.resetSize=()=>{u.setColumnSizing(i=>{let{[l.id]:s,...c}=i;return c})},l.getCanResize=()=>{var i,s;return((i=l.columnDef.enableResizing)!=null?i:!0)&&((s=u.options.enableColumnResizing)!=null?s:!0)},l.getIsResizing=()=>u.getState().columnSizingInfo.isResizingColumn===l.id},createHeader:(l,u)=>{l.getSize=()=>{let i=0;const s=c=>{if(c.subHeaders.length)c.subHeaders.forEach(s);else{var f;i+=(f=c.column.getSize())!=null?f:0}};return s(l),i},l.getStart=()=>{if(l.index>0){const i=l.headerGroup.headers[l.index-1];return i.getStart()+i.getSize()}return 0},l.getResizeHandler=i=>{const s=u.getColumn(l.column.id),c=s?.getCanResize();return f=>{if(!s||!c||(f.persist==null||f.persist(),co(f)&&f.touches&&f.touches.length>1))return;const h=l.getSize(),g=l?l.getLeafHeaders().map(H=>[H.column.id,H.column.getSize()]):[[s.id,s.getSize()]],p=co(f)?Math.round(f.touches[0].clientX):f.clientX,m={},y=(H,j)=>{typeof j=="number"&&(u.setColumnSizingInfo(F=>{var ne,ee;const pe=u.options.columnResizeDirection==="rtl"?-1:1,K=(j-((ne=F?.startOffset)!=null?ne:0))*pe,fe=Math.max(K/((ee=F?.startSize)!=null?ee:0),-.999999);return F.columnSizingStart.forEach(ye=>{let[Ae,He]=ye;m[Ae]=Math.round(Math.max(He+He*fe,0)*100)/100}),{...F,deltaOffset:K,deltaPercentage:fe}}),(u.options.columnResizeMode==="onChange"||H==="end")&&u.setColumnSizing(F=>({...F,...m})))},b=H=>y("move",H),R=H=>{y("end",H),u.setColumnSizingInfo(j=>({...j,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},S=JS(i),T={moveHandler:H=>b(H.clientX),upHandler:H=>{S?.removeEventListener("mousemove",T.moveHandler),S?.removeEventListener("mouseup",T.upHandler),R(H.clientX)}},w={moveHandler:H=>(H.cancelable&&(H.preventDefault(),H.stopPropagation()),b(H.touches[0].clientX),!1),upHandler:H=>{var j;S?.removeEventListener("touchmove",w.moveHandler),S?.removeEventListener("touchend",w.upHandler),H.cancelable&&(H.preventDefault(),H.stopPropagation()),R((j=H.touches[0])==null?void 0:j.clientX)}},N=kS()?{passive:!1}:!1;co(f)?(S?.addEventListener("touchmove",w.moveHandler,N),S?.addEventListener("touchend",w.upHandler,N)):(S?.addEventListener("mousemove",T.moveHandler,N),S?.addEventListener("mouseup",T.upHandler,N)),u.setColumnSizingInfo(H=>({...H,startOffset:p,startSize:h,deltaOffset:0,deltaPercentage:0,columnSizingStart:g,isResizingColumn:s.id}))}}},createTable:l=>{l.setColumnSizing=u=>l.options.onColumnSizingChange==null?void 0:l.options.onColumnSizingChange(u),l.setColumnSizingInfo=u=>l.options.onColumnSizingInfoChange==null?void 0:l.options.onColumnSizingInfoChange(u),l.resetColumnSizing=u=>{var i;l.setColumnSizing(u?{}:(i=l.initialState.columnSizing)!=null?i:{})},l.resetHeaderSizeInfo=u=>{var i;l.setColumnSizingInfo(u?oo():(i=l.initialState.columnSizingInfo)!=null?i:oo())},l.getTotalSize=()=>{var u,i;return(u=(i=l.getHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0},l.getLeftTotalSize=()=>{var u,i;return(u=(i=l.getLeftHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0},l.getCenterTotalSize=()=>{var u,i;return(u=(i=l.getCenterHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0},l.getRightTotalSize=()=>{var u,i;return(u=(i=l.getRightHeaderGroups()[0])==null?void 0:i.headers.reduce((s,c)=>s+c.getSize(),0))!=null?u:0}}};let Tu=null;function kS(){if(typeof Tu=="boolean")return Tu;let l=!1;try{const u={get passive(){return l=!0,!1}},i=()=>{};window.addEventListener("test",i,u),window.removeEventListener("test",i)}catch{l=!1}return Tu=l,Tu}function co(l){return l.type==="touchstart"}const IS={getInitialState:l=>({columnVisibility:{},...l}),getDefaultOptions:l=>({onColumnVisibilityChange:Ct("columnVisibility",l)}),createColumn:(l,u)=>{l.toggleVisibility=i=>{l.getCanHide()&&u.setColumnVisibility(s=>({...s,[l.id]:i??!l.getIsVisible()}))},l.getIsVisible=()=>{var i,s;const c=l.columns;return(i=c.length?c.some(f=>f.getIsVisible()):(s=u.getState().columnVisibility)==null?void 0:s[l.id])!=null?i:!0},l.getCanHide=()=>{var i,s;return((i=l.columnDef.enableHiding)!=null?i:!0)&&((s=u.options.enableHiding)!=null?s:!0)},l.getToggleVisibilityHandler=()=>i=>{l.toggleVisibility==null||l.toggleVisibility(i.target.checked)}},createRow:(l,u)=>{l._getAllVisibleCells=k(()=>[l.getAllCells(),u.getState().columnVisibility],i=>i.filter(s=>s.column.getIsVisible()),I(u.options,"debugRows")),l.getVisibleCells=k(()=>[l.getLeftVisibleCells(),l.getCenterVisibleCells(),l.getRightVisibleCells()],(i,s,c)=>[...i,...s,...c],I(u.options,"debugRows"))},createTable:l=>{const u=(i,s)=>k(()=>[s(),s().filter(c=>c.getIsVisible()).map(c=>c.id).join("_")],c=>c.filter(f=>f.getIsVisible==null?void 0:f.getIsVisible()),I(l.options,"debugColumns"));l.getVisibleFlatColumns=u("getVisibleFlatColumns",()=>l.getAllFlatColumns()),l.getVisibleLeafColumns=u("getVisibleLeafColumns",()=>l.getAllLeafColumns()),l.getLeftVisibleLeafColumns=u("getLeftVisibleLeafColumns",()=>l.getLeftLeafColumns()),l.getRightVisibleLeafColumns=u("getRightVisibleLeafColumns",()=>l.getRightLeafColumns()),l.getCenterVisibleLeafColumns=u("getCenterVisibleLeafColumns",()=>l.getCenterLeafColumns()),l.setColumnVisibility=i=>l.options.onColumnVisibilityChange==null?void 0:l.options.onColumnVisibilityChange(i),l.resetColumnVisibility=i=>{var s;l.setColumnVisibility(i?{}:(s=l.initialState.columnVisibility)!=null?s:{})},l.toggleAllColumnsVisible=i=>{var s;i=(s=i)!=null?s:!l.getIsAllColumnsVisible(),l.setColumnVisibility(l.getAllLeafColumns().reduce((c,f)=>({...c,[f.id]:i||!(f.getCanHide!=null&&f.getCanHide())}),{}))},l.getIsAllColumnsVisible=()=>!l.getAllLeafColumns().some(i=>!(i.getIsVisible!=null&&i.getIsVisible())),l.getIsSomeColumnsVisible=()=>l.getAllLeafColumns().some(i=>i.getIsVisible==null?void 0:i.getIsVisible()),l.getToggleAllColumnsVisibilityHandler=()=>i=>{var s;l.toggleAllColumnsVisible((s=i.target)==null?void 0:s.checked)}}};function ka(l,u){return u?u==="center"?l.getCenterVisibleLeafColumns():u==="left"?l.getLeftVisibleLeafColumns():l.getRightVisibleLeafColumns():l.getVisibleLeafColumns()}const WS={createTable:l=>{l._getGlobalFacetedRowModel=l.options.getFacetedRowModel&&l.options.getFacetedRowModel(l,"__global__"),l.getGlobalFacetedRowModel=()=>l.options.manualFiltering||!l._getGlobalFacetedRowModel?l.getPreFilteredRowModel():l._getGlobalFacetedRowModel(),l._getGlobalFacetedUniqueValues=l.options.getFacetedUniqueValues&&l.options.getFacetedUniqueValues(l,"__global__"),l.getGlobalFacetedUniqueValues=()=>l._getGlobalFacetedUniqueValues?l._getGlobalFacetedUniqueValues():new Map,l._getGlobalFacetedMinMaxValues=l.options.getFacetedMinMaxValues&&l.options.getFacetedMinMaxValues(l,"__global__"),l.getGlobalFacetedMinMaxValues=()=>{if(l._getGlobalFacetedMinMaxValues)return l._getGlobalFacetedMinMaxValues()}}},e1={getInitialState:l=>({globalFilter:void 0,...l}),getDefaultOptions:l=>({onGlobalFilterChange:Ct("globalFilter",l),globalFilterFn:"auto",getColumnCanGlobalFilter:u=>{var i;const s=(i=l.getCoreRowModel().flatRows[0])==null||(i=i._getAllCellsByColumnId()[u.id])==null?void 0:i.getValue();return typeof s=="string"||typeof s=="number"}}),createColumn:(l,u)=>{l.getCanGlobalFilter=()=>{var i,s,c,f;return((i=l.columnDef.enableGlobalFilter)!=null?i:!0)&&((s=u.options.enableGlobalFilter)!=null?s:!0)&&((c=u.options.enableFilters)!=null?c:!0)&&((f=u.options.getColumnCanGlobalFilter==null?void 0:u.options.getColumnCanGlobalFilter(l))!=null?f:!0)&&!!l.accessorFn}},createTable:l=>{l.getGlobalAutoFilterFn=()=>fn.includesString,l.getGlobalFilterFn=()=>{var u,i;const{globalFilterFn:s}=l.options;return Hu(s)?s:s==="auto"?l.getGlobalAutoFilterFn():(u=(i=l.options.filterFns)==null?void 0:i[s])!=null?u:fn[s]},l.setGlobalFilter=u=>{l.options.onGlobalFilterChange==null||l.options.onGlobalFilterChange(u)},l.resetGlobalFilter=u=>{l.setGlobalFilter(u?void 0:l.initialState.globalFilter)}}},t1={getInitialState:l=>({expanded:{},...l}),getDefaultOptions:l=>({onExpandedChange:Ct("expanded",l),paginateExpandedRows:!0}),createTable:l=>{let u=!1,i=!1;l._autoResetExpanded=()=>{var s,c;if(!u){l._queue(()=>{u=!0});return}if((s=(c=l.options.autoResetAll)!=null?c:l.options.autoResetExpanded)!=null?s:!l.options.manualExpanding){if(i)return;i=!0,l._queue(()=>{l.resetExpanded(),i=!1})}},l.setExpanded=s=>l.options.onExpandedChange==null?void 0:l.options.onExpandedChange(s),l.toggleAllRowsExpanded=s=>{s??!l.getIsAllRowsExpanded()?l.setExpanded(!0):l.setExpanded({})},l.resetExpanded=s=>{var c,f;l.setExpanded(s?{}:(c=(f=l.initialState)==null?void 0:f.expanded)!=null?c:{})},l.getCanSomeRowsExpand=()=>l.getPrePaginationRowModel().flatRows.some(s=>s.getCanExpand()),l.getToggleAllRowsExpandedHandler=()=>s=>{s.persist==null||s.persist(),l.toggleAllRowsExpanded()},l.getIsSomeRowsExpanded=()=>{const s=l.getState().expanded;return s===!0||Object.values(s).some(Boolean)},l.getIsAllRowsExpanded=()=>{const s=l.getState().expanded;return typeof s=="boolean"?s===!0:!(!Object.keys(s).length||l.getRowModel().flatRows.some(c=>!c.getIsExpanded()))},l.getExpandedDepth=()=>{let s=0;return(l.getState().expanded===!0?Object.keys(l.getRowModel().rowsById):Object.keys(l.getState().expanded)).forEach(f=>{const h=f.split(".");s=Math.max(s,h.length)}),s},l.getPreExpandedRowModel=()=>l.getSortedRowModel(),l.getExpandedRowModel=()=>(!l._getExpandedRowModel&&l.options.getExpandedRowModel&&(l._getExpandedRowModel=l.options.getExpandedRowModel(l)),l.options.manualExpanding||!l._getExpandedRowModel?l.getPreExpandedRowModel():l._getExpandedRowModel())},createRow:(l,u)=>{l.toggleExpanded=i=>{u.setExpanded(s=>{var c;const f=s===!0?!0:!!(s!=null&&s[l.id]);let h={};if(s===!0?Object.keys(u.getRowModel().rowsById).forEach(g=>{h[g]=!0}):h=s,i=(c=i)!=null?c:!f,!f&&i)return{...h,[l.id]:!0};if(f&&!i){const{[l.id]:g,...p}=h;return p}return s})},l.getIsExpanded=()=>{var i;const s=u.getState().expanded;return!!((i=u.options.getIsRowExpanded==null?void 0:u.options.getIsRowExpanded(l))!=null?i:s===!0||s?.[l.id])},l.getCanExpand=()=>{var i,s,c;return(i=u.options.getRowCanExpand==null?void 0:u.options.getRowCanExpand(l))!=null?i:((s=u.options.enableExpanding)!=null?s:!0)&&!!((c=l.subRows)!=null&&c.length)},l.getIsAllParentsExpanded=()=>{let i=!0,s=l;for(;i&&s.parentId;)s=u.getRow(s.parentId,!0),i=s.getIsExpanded();return i},l.getToggleExpandedHandler=()=>{const i=l.getCanExpand();return()=>{i&&l.toggleExpanded()}}}},Mo=0,To=10,fo=()=>({pageIndex:Mo,pageSize:To}),n1={getInitialState:l=>({...l,pagination:{...fo(),...l?.pagination}}),getDefaultOptions:l=>({onPaginationChange:Ct("pagination",l)}),createTable:l=>{let u=!1,i=!1;l._autoResetPageIndex=()=>{var s,c;if(!u){l._queue(()=>{u=!0});return}if((s=(c=l.options.autoResetAll)!=null?c:l.options.autoResetPageIndex)!=null?s:!l.options.manualPagination){if(i)return;i=!0,l._queue(()=>{l.resetPageIndex(),i=!1})}},l.setPagination=s=>{const c=f=>Bn(s,f);return l.options.onPaginationChange==null?void 0:l.options.onPaginationChange(c)},l.resetPagination=s=>{var c;l.setPagination(s?fo():(c=l.initialState.pagination)!=null?c:fo())},l.setPageIndex=s=>{l.setPagination(c=>{let f=Bn(s,c.pageIndex);const h=typeof l.options.pageCount>"u"||l.options.pageCount===-1?Number.MAX_SAFE_INTEGER:l.options.pageCount-1;return f=Math.max(0,Math.min(f,h)),{...c,pageIndex:f}})},l.resetPageIndex=s=>{var c,f;l.setPageIndex(s?Mo:(c=(f=l.initialState)==null||(f=f.pagination)==null?void 0:f.pageIndex)!=null?c:Mo)},l.resetPageSize=s=>{var c,f;l.setPageSize(s?To:(c=(f=l.initialState)==null||(f=f.pagination)==null?void 0:f.pageSize)!=null?c:To)},l.setPageSize=s=>{l.setPagination(c=>{const f=Math.max(1,Bn(s,c.pageSize)),h=c.pageSize*c.pageIndex,g=Math.floor(h/f);return{...c,pageIndex:g,pageSize:f}})},l.setPageCount=s=>l.setPagination(c=>{var f;let h=Bn(s,(f=l.options.pageCount)!=null?f:-1);return typeof h=="number"&&(h=Math.max(-1,h)),{...c,pageCount:h}}),l.getPageOptions=k(()=>[l.getPageCount()],s=>{let c=[];return s&&s>0&&(c=[...new Array(s)].fill(null).map((f,h)=>h)),c},I(l.options,"debugTable")),l.getCanPreviousPage=()=>l.getState().pagination.pageIndex>0,l.getCanNextPage=()=>{const{pageIndex:s}=l.getState().pagination,c=l.getPageCount();return c===-1?!0:c===0?!1:s<c-1},l.previousPage=()=>l.setPageIndex(s=>s-1),l.nextPage=()=>l.setPageIndex(s=>s+1),l.firstPage=()=>l.setPageIndex(0),l.lastPage=()=>l.setPageIndex(l.getPageCount()-1),l.getPrePaginationRowModel=()=>l.getExpandedRowModel(),l.getPaginationRowModel=()=>(!l._getPaginationRowModel&&l.options.getPaginationRowModel&&(l._getPaginationRowModel=l.options.getPaginationRowModel(l)),l.options.manualPagination||!l._getPaginationRowModel?l.getPrePaginationRowModel():l._getPaginationRowModel()),l.getPageCount=()=>{var s;return(s=l.options.pageCount)!=null?s:Math.ceil(l.getRowCount()/l.getState().pagination.pageSize)},l.getRowCount=()=>{var s;return(s=l.options.rowCount)!=null?s:l.getPrePaginationRowModel().rows.length}}},ho=()=>({top:[],bottom:[]}),l1={getInitialState:l=>({rowPinning:ho(),...l}),getDefaultOptions:l=>({onRowPinningChange:Ct("rowPinning",l)}),createRow:(l,u)=>{l.pin=(i,s,c)=>{const f=s?l.getLeafRows().map(p=>{let{id:m}=p;return m}):[],h=c?l.getParentRows().map(p=>{let{id:m}=p;return m}):[],g=new Set([...h,l.id,...f]);u.setRowPinning(p=>{var m,y;if(i==="bottom"){var b,R;return{top:((b=p?.top)!=null?b:[]).filter(w=>!(g!=null&&g.has(w))),bottom:[...((R=p?.bottom)!=null?R:[]).filter(w=>!(g!=null&&g.has(w))),...Array.from(g)]}}if(i==="top"){var S,T;return{top:[...((S=p?.top)!=null?S:[]).filter(w=>!(g!=null&&g.has(w))),...Array.from(g)],bottom:((T=p?.bottom)!=null?T:[]).filter(w=>!(g!=null&&g.has(w)))}}return{top:((m=p?.top)!=null?m:[]).filter(w=>!(g!=null&&g.has(w))),bottom:((y=p?.bottom)!=null?y:[]).filter(w=>!(g!=null&&g.has(w)))}})},l.getCanPin=()=>{var i;const{enableRowPinning:s,enablePinning:c}=u.options;return typeof s=="function"?s(l):(i=s??c)!=null?i:!0},l.getIsPinned=()=>{const i=[l.id],{top:s,bottom:c}=u.getState().rowPinning,f=i.some(g=>s?.includes(g)),h=i.some(g=>c?.includes(g));return f?"top":h?"bottom":!1},l.getPinnedIndex=()=>{var i,s;const c=l.getIsPinned();if(!c)return-1;const f=(i=c==="top"?u.getTopRows():u.getBottomRows())==null?void 0:i.map(h=>{let{id:g}=h;return g});return(s=f?.indexOf(l.id))!=null?s:-1}},createTable:l=>{l.setRowPinning=u=>l.options.onRowPinningChange==null?void 0:l.options.onRowPinningChange(u),l.resetRowPinning=u=>{var i,s;return l.setRowPinning(u?ho():(i=(s=l.initialState)==null?void 0:s.rowPinning)!=null?i:ho())},l.getIsSomeRowsPinned=u=>{var i;const s=l.getState().rowPinning;if(!u){var c,f;return!!((c=s.top)!=null&&c.length||(f=s.bottom)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},l._getPinnedRows=(u,i,s)=>{var c;return((c=l.options.keepPinnedRows)==null||c?(i??[]).map(h=>{const g=l.getRow(h,!0);return g.getIsAllParentsExpanded()?g:null}):(i??[]).map(h=>u.find(g=>g.id===h))).filter(Boolean).map(h=>({...h,position:s}))},l.getTopRows=k(()=>[l.getRowModel().rows,l.getState().rowPinning.top],(u,i)=>l._getPinnedRows(u,i,"top"),I(l.options,"debugRows")),l.getBottomRows=k(()=>[l.getRowModel().rows,l.getState().rowPinning.bottom],(u,i)=>l._getPinnedRows(u,i,"bottom"),I(l.options,"debugRows")),l.getCenterRows=k(()=>[l.getRowModel().rows,l.getState().rowPinning.top,l.getState().rowPinning.bottom],(u,i,s)=>{const c=new Set([...i??[],...s??[]]);return u.filter(f=>!c.has(f.id))},I(l.options,"debugRows"))}},a1={getInitialState:l=>({rowSelection:{},...l}),getDefaultOptions:l=>({onRowSelectionChange:Ct("rowSelection",l),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:l=>{l.setRowSelection=u=>l.options.onRowSelectionChange==null?void 0:l.options.onRowSelectionChange(u),l.resetRowSelection=u=>{var i;return l.setRowSelection(u?{}:(i=l.initialState.rowSelection)!=null?i:{})},l.toggleAllRowsSelected=u=>{l.setRowSelection(i=>{u=typeof u<"u"?u:!l.getIsAllRowsSelected();const s={...i},c=l.getPreGroupedRowModel().flatRows;return u?c.forEach(f=>{f.getCanSelect()&&(s[f.id]=!0)}):c.forEach(f=>{delete s[f.id]}),s})},l.toggleAllPageRowsSelected=u=>l.setRowSelection(i=>{const s=typeof u<"u"?u:!l.getIsAllPageRowsSelected(),c={...i};return l.getRowModel().rows.forEach(f=>{wo(c,f.id,s,!0,l)}),c}),l.getPreSelectedRowModel=()=>l.getCoreRowModel(),l.getSelectedRowModel=k(()=>[l.getState().rowSelection,l.getCoreRowModel()],(u,i)=>Object.keys(u).length?go(l,i):{rows:[],flatRows:[],rowsById:{}},I(l.options,"debugTable")),l.getFilteredSelectedRowModel=k(()=>[l.getState().rowSelection,l.getFilteredRowModel()],(u,i)=>Object.keys(u).length?go(l,i):{rows:[],flatRows:[],rowsById:{}},I(l.options,"debugTable")),l.getGroupedSelectedRowModel=k(()=>[l.getState().rowSelection,l.getSortedRowModel()],(u,i)=>Object.keys(u).length?go(l,i):{rows:[],flatRows:[],rowsById:{}},I(l.options,"debugTable")),l.getIsAllRowsSelected=()=>{const u=l.getFilteredRowModel().flatRows,{rowSelection:i}=l.getState();let s=!!(u.length&&Object.keys(i).length);return s&&u.some(c=>c.getCanSelect()&&!i[c.id])&&(s=!1),s},l.getIsAllPageRowsSelected=()=>{const u=l.getPaginationRowModel().flatRows.filter(c=>c.getCanSelect()),{rowSelection:i}=l.getState();let s=!!u.length;return s&&u.some(c=>!i[c.id])&&(s=!1),s},l.getIsSomeRowsSelected=()=>{var u;const i=Object.keys((u=l.getState().rowSelection)!=null?u:{}).length;return i>0&&i<l.getFilteredRowModel().flatRows.length},l.getIsSomePageRowsSelected=()=>{const u=l.getPaginationRowModel().flatRows;return l.getIsAllPageRowsSelected()?!1:u.filter(i=>i.getCanSelect()).some(i=>i.getIsSelected()||i.getIsSomeSelected())},l.getToggleAllRowsSelectedHandler=()=>u=>{l.toggleAllRowsSelected(u.target.checked)},l.getToggleAllPageRowsSelectedHandler=()=>u=>{l.toggleAllPageRowsSelected(u.target.checked)}},createRow:(l,u)=>{l.toggleSelected=(i,s)=>{const c=l.getIsSelected();u.setRowSelection(f=>{var h;if(i=typeof i<"u"?i:!c,l.getCanSelect()&&c===i)return f;const g={...f};return wo(g,l.id,i,(h=s?.selectChildren)!=null?h:!0,u),g})},l.getIsSelected=()=>{const{rowSelection:i}=u.getState();return Yo(l,i)},l.getIsSomeSelected=()=>{const{rowSelection:i}=u.getState();return zo(l,i)==="some"},l.getIsAllSubRowsSelected=()=>{const{rowSelection:i}=u.getState();return zo(l,i)==="all"},l.getCanSelect=()=>{var i;return typeof u.options.enableRowSelection=="function"?u.options.enableRowSelection(l):(i=u.options.enableRowSelection)!=null?i:!0},l.getCanSelectSubRows=()=>{var i;return typeof u.options.enableSubRowSelection=="function"?u.options.enableSubRowSelection(l):(i=u.options.enableSubRowSelection)!=null?i:!0},l.getCanMultiSelect=()=>{var i;return typeof u.options.enableMultiRowSelection=="function"?u.options.enableMultiRowSelection(l):(i=u.options.enableMultiRowSelection)!=null?i:!0},l.getToggleSelectedHandler=()=>{const i=l.getCanSelect();return s=>{var c;i&&l.toggleSelected((c=s.target)==null?void 0:c.checked)}}}},wo=(l,u,i,s,c)=>{var f;const h=c.getRow(u,!0);i?(h.getCanMultiSelect()||Object.keys(l).forEach(g=>delete l[g]),h.getCanSelect()&&(l[u]=!0)):delete l[u],s&&(f=h.subRows)!=null&&f.length&&h.getCanSelectSubRows()&&h.subRows.forEach(g=>wo(l,g.id,i,s,c))};function go(l,u){const i=l.getState().rowSelection,s=[],c={},f=function(h,g){return h.map(p=>{var m;const y=Yo(p,i);if(y&&(s.push(p),c[p.id]=p),(m=p.subRows)!=null&&m.length&&(p={...p,subRows:f(p.subRows)}),y)return p}).filter(Boolean)};return{rows:f(u.rows),flatRows:s,rowsById:c}}function Yo(l,u){var i;return(i=u[l.id])!=null?i:!1}function zo(l,u,i){var s;if(!((s=l.subRows)!=null&&s.length))return!1;let c=!0,f=!1;return l.subRows.forEach(h=>{if(!(f&&!c)&&(h.getCanSelect()&&(Yo(h,u)?f=!0:c=!1),h.subRows&&h.subRows.length)){const g=zo(h,u);g==="all"?f=!0:(g==="some"&&(f=!0),c=!1)}}),c?"all":f?"some":!1}const xo=/([0-9]+)/gm,i1=(l,u,i)=>hm(Gn(l.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),u1=(l,u,i)=>hm(Gn(l.getValue(i)),Gn(u.getValue(i))),s1=(l,u,i)=>$o(Gn(l.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),r1=(l,u,i)=>$o(Gn(l.getValue(i)),Gn(u.getValue(i))),o1=(l,u,i)=>{const s=l.getValue(i),c=u.getValue(i);return s>c?1:s<c?-1:0},c1=(l,u,i)=>$o(l.getValue(i),u.getValue(i));function $o(l,u){return l===u?0:l>u?1:-1}function Gn(l){return typeof l=="number"?isNaN(l)||l===1/0||l===-1/0?"":String(l):typeof l=="string"?l:""}function hm(l,u){const i=l.split(xo).filter(Boolean),s=u.split(xo).filter(Boolean);for(;i.length&&s.length;){const c=i.shift(),f=s.shift(),h=parseInt(c,10),g=parseInt(f,10),p=[h,g].sort();if(isNaN(p[0])){if(c>f)return 1;if(f>c)return-1;continue}if(isNaN(p[1]))return isNaN(h)?-1:1;if(h>g)return 1;if(g>h)return-1}return i.length-s.length}const Pa={alphanumeric:i1,alphanumericCaseSensitive:u1,text:s1,textCaseSensitive:r1,datetime:o1,basic:c1},f1={getInitialState:l=>({sorting:[],...l}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:l=>({onSortingChange:Ct("sorting",l),isMultiSortEvent:u=>u.shiftKey}),createColumn:(l,u)=>{l.getAutoSortingFn=()=>{const i=u.getFilteredRowModel().flatRows.slice(10);let s=!1;for(const c of i){const f=c?.getValue(l.id);if(Object.prototype.toString.call(f)==="[object Date]")return Pa.datetime;if(typeof f=="string"&&(s=!0,f.split(xo).length>1))return Pa.alphanumeric}return s?Pa.text:Pa.basic},l.getAutoSortDir=()=>{const i=u.getFilteredRowModel().flatRows[0];return typeof i?.getValue(l.id)=="string"?"asc":"desc"},l.getSortingFn=()=>{var i,s;if(!l)throw new Error;return Hu(l.columnDef.sortingFn)?l.columnDef.sortingFn:l.columnDef.sortingFn==="auto"?l.getAutoSortingFn():(i=(s=u.options.sortingFns)==null?void 0:s[l.columnDef.sortingFn])!=null?i:Pa[l.columnDef.sortingFn]},l.toggleSorting=(i,s)=>{const c=l.getNextSortingOrder(),f=typeof i<"u"&&i!==null;u.setSorting(h=>{const g=h?.find(S=>S.id===l.id),p=h?.findIndex(S=>S.id===l.id);let m=[],y,b=f?i:c==="desc";if(h!=null&&h.length&&l.getCanMultiSort()&&s?g?y="toggle":y="add":h!=null&&h.length&&p!==h.length-1?y="replace":g?y="toggle":y="replace",y==="toggle"&&(f||c||(y="remove")),y==="add"){var R;m=[...h,{id:l.id,desc:b}],m.splice(0,m.length-((R=u.options.maxMultiSortColCount)!=null?R:Number.MAX_SAFE_INTEGER))}else y==="toggle"?m=h.map(S=>S.id===l.id?{...S,desc:b}:S):y==="remove"?m=h.filter(S=>S.id!==l.id):m=[{id:l.id,desc:b}];return m})},l.getFirstSortDir=()=>{var i,s;return((i=(s=l.columnDef.sortDescFirst)!=null?s:u.options.sortDescFirst)!=null?i:l.getAutoSortDir()==="desc")?"desc":"asc"},l.getNextSortingOrder=i=>{var s,c;const f=l.getFirstSortDir(),h=l.getIsSorted();return h?h!==f&&((s=u.options.enableSortingRemoval)==null||s)&&(!(i&&(c=u.options.enableMultiRemove)!=null)||c)?!1:h==="desc"?"asc":"desc":f},l.getCanSort=()=>{var i,s;return((i=l.columnDef.enableSorting)!=null?i:!0)&&((s=u.options.enableSorting)!=null?s:!0)&&!!l.accessorFn},l.getCanMultiSort=()=>{var i,s;return(i=(s=l.columnDef.enableMultiSort)!=null?s:u.options.enableMultiSort)!=null?i:!!l.accessorFn},l.getIsSorted=()=>{var i;const s=(i=u.getState().sorting)==null?void 0:i.find(c=>c.id===l.id);return s?s.desc?"desc":"asc":!1},l.getSortIndex=()=>{var i,s;return(i=(s=u.getState().sorting)==null?void 0:s.findIndex(c=>c.id===l.id))!=null?i:-1},l.clearSorting=()=>{u.setSorting(i=>i!=null&&i.length?i.filter(s=>s.id!==l.id):[])},l.getToggleSortingHandler=()=>{const i=l.getCanSort();return s=>{i&&(s.persist==null||s.persist(),l.toggleSorting==null||l.toggleSorting(void 0,l.getCanMultiSort()?u.options.isMultiSortEvent==null?void 0:u.options.isMultiSortEvent(s):!1))}}},createTable:l=>{l.setSorting=u=>l.options.onSortingChange==null?void 0:l.options.onSortingChange(u),l.resetSorting=u=>{var i,s;l.setSorting(u?[]:(i=(s=l.initialState)==null?void 0:s.sorting)!=null?i:[])},l.getPreSortedRowModel=()=>l.getGroupedRowModel(),l.getSortedRowModel=()=>(!l._getSortedRowModel&&l.options.getSortedRowModel&&(l._getSortedRowModel=l.options.getSortedRowModel(l)),l.options.manualSorting||!l._getSortedRowModel?l.getPreSortedRowModel():l._getSortedRowModel())}},d1=[NS,IS,ZS,KS,HS,US,WS,e1,f1,$S,t1,n1,l1,a1,PS];function h1(l){var u,i;const s=[...d1,...(u=l._features)!=null?u:[]];let c={_features:s};const f=c._features.reduce((R,S)=>Object.assign(R,S.getDefaultOptions==null?void 0:S.getDefaultOptions(c)),{}),h=R=>c.options.mergeOptions?c.options.mergeOptions(f,R):{...f,...R};let p={...{},...(i=l.initialState)!=null?i:{}};c._features.forEach(R=>{var S;p=(S=R.getInitialState==null?void 0:R.getInitialState(p))!=null?S:p});const m=[];let y=!1;const b={_features:s,options:{...f,...l},initialState:p,_queue:R=>{m.push(R),y||(y=!0,Promise.resolve().then(()=>{for(;m.length;)m.shift()();y=!1}).catch(S=>setTimeout(()=>{throw S})))},reset:()=>{c.setState(c.initialState)},setOptions:R=>{const S=Bn(R,c.options);c.options=h(S)},getState:()=>c.options.state,setState:R=>{c.options.onStateChange==null||c.options.onStateChange(R)},_getRowId:(R,S,T)=>{var w;return(w=c.options.getRowId==null?void 0:c.options.getRowId(R,S,T))!=null?w:`${T?[T.id,S].join("."):S}`},getCoreRowModel:()=>(c._getCoreRowModel||(c._getCoreRowModel=c.options.getCoreRowModel(c)),c._getCoreRowModel()),getRowModel:()=>c.getPaginationRowModel(),getRow:(R,S)=>{let T=(S?c.getPrePaginationRowModel():c.getRowModel()).rowsById[R];if(!T&&(T=c.getCoreRowModel().rowsById[R],!T))throw new Error;return T},_getDefaultColumnDef:k(()=>[c.options.defaultColumn],R=>{var S;return R=(S=R)!=null?S:{},{header:T=>{const w=T.header.column.columnDef;return w.accessorKey?w.accessorKey:w.accessorFn?w.id:null},cell:T=>{var w,N;return(w=(N=T.renderValue())==null||N.toString==null?void 0:N.toString())!=null?w:null},...c._features.reduce((T,w)=>Object.assign(T,w.getDefaultColumnDef==null?void 0:w.getDefaultColumnDef()),{}),...R}},I(l,"debugColumns")),_getColumnDefs:()=>c.options.columns,getAllColumns:k(()=>[c._getColumnDefs()],R=>{const S=function(T,w,N){return N===void 0&&(N=0),T.map(H=>{const j=DS(c,H,N,w),F=H;return j.columns=F.columns?S(F.columns,j,N+1):[],j})};return S(R)},I(l,"debugColumns")),getAllFlatColumns:k(()=>[c.getAllColumns()],R=>R.flatMap(S=>S.getFlatColumns()),I(l,"debugColumns")),_getAllFlatColumnsById:k(()=>[c.getAllFlatColumns()],R=>R.reduce((S,T)=>(S[T.id]=T,S),{}),I(l,"debugColumns")),getAllLeafColumns:k(()=>[c.getAllColumns(),c._getOrderColumnsFn()],(R,S)=>{let T=R.flatMap(w=>w.getLeafColumns());return S(T)},I(l,"debugColumns")),getColumn:R=>c._getAllFlatColumnsById()[R]};Object.assign(c,b);for(let R=0;R<c._features.length;R++){const S=c._features[R];S==null||S.createTable==null||S.createTable(c)}return c}function g1(){return l=>k(()=>[l.options.data],u=>{const i={rows:[],flatRows:[],rowsById:{}},s=function(c,f,h){f===void 0&&(f=0);const g=[];for(let m=0;m<c.length;m++){const y=Fo(l,l._getRowId(c[m],m,h),c[m],m,f,void 0,h?.id);if(i.flatRows.push(y),i.rowsById[y.id]=y,g.push(y),l.options.getSubRows){var p;y.originalSubRows=l.options.getSubRows(c[m],m),(p=y.originalSubRows)!=null&&p.length&&(y.subRows=s(y.originalSubRows,f+1,y))}}return g};return i.rows=s(u),i},I(l.options,"debugTable","getRowModel",()=>l._autoResetPageIndex()))}function m1(l,u,i){return i.options.filterFromLeafRows?p1(l,u,i):v1(l,u,i)}function p1(l,u,i){var s;const c=[],f={},h=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const y=[];for(let R=0;R<p.length;R++){var b;let S=p[R];const T=Fo(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);if(T.columnFilters=S.columnFilters,(b=S.subRows)!=null&&b.length&&m<h){if(T.subRows=g(S.subRows,m+1),S=T,u(S)&&!T.subRows.length){y.push(S),f[S.id]=S,c.push(S);continue}if(u(S)||T.subRows.length){y.push(S),f[S.id]=S,c.push(S);continue}}else S=T,u(S)&&(y.push(S),f[S.id]=S,c.push(S))}return y};return{rows:g(l),flatRows:c,rowsById:f}}function v1(l,u,i){var s;const c=[],f={},h=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const y=[];for(let R=0;R<p.length;R++){let S=p[R];if(u(S)){var b;if((b=S.subRows)!=null&&b.length&&m<h){const w=Fo(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);w.subRows=g(S.subRows,m+1),S=w}y.push(S),c.push(S),f[S.id]=S}}return y};return{rows:g(l),flatRows:c,rowsById:f}}function y1(){return l=>k(()=>[l.getPreFilteredRowModel(),l.getState().columnFilters,l.getState().globalFilter],(u,i,s)=>{if(!u.rows.length||!(i!=null&&i.length)&&!s){for(let R=0;R<u.flatRows.length;R++)u.flatRows[R].columnFilters={},u.flatRows[R].columnFiltersMeta={};return u}const c=[],f=[];(i??[]).forEach(R=>{var S;const T=l.getColumn(R.id);if(!T)return;const w=T.getFilterFn();w&&c.push({id:R.id,filterFn:w,resolvedValue:(S=w.resolveFilterValue==null?void 0:w.resolveFilterValue(R.value))!=null?S:R.value})});const h=(i??[]).map(R=>R.id),g=l.getGlobalFilterFn(),p=l.getAllLeafColumns().filter(R=>R.getCanGlobalFilter());s&&g&&p.length&&(h.push("__global__"),p.forEach(R=>{var S;f.push({id:R.id,filterFn:g,resolvedValue:(S=g.resolveFilterValue==null?void 0:g.resolveFilterValue(s))!=null?S:s})}));let m,y;for(let R=0;R<u.flatRows.length;R++){const S=u.flatRows[R];if(S.columnFilters={},c.length)for(let T=0;T<c.length;T++){m=c[T];const w=m.id;S.columnFilters[w]=m.filterFn(S,w,m.resolvedValue,N=>{S.columnFiltersMeta[w]=N})}if(f.length){for(let T=0;T<f.length;T++){y=f[T];const w=y.id;if(y.filterFn(S,w,y.resolvedValue,N=>{S.columnFiltersMeta[w]=N})){S.columnFilters.__global__=!0;break}}S.columnFilters.__global__!==!0&&(S.columnFilters.__global__=!1)}}const b=R=>{for(let S=0;S<h.length;S++)if(R.columnFilters[h[S]]===!1)return!1;return!0};return m1(u.rows,b,l)},I(l.options,"debugTable","getFilteredRowModel",()=>l._autoResetPageIndex()))}function S1(){return l=>k(()=>[l.getState().sorting,l.getPreSortedRowModel()],(u,i)=>{if(!i.rows.length||!(u!=null&&u.length))return i;const s=l.getState().sorting,c=[],f=s.filter(p=>{var m;return(m=l.getColumn(p.id))==null?void 0:m.getCanSort()}),h={};f.forEach(p=>{const m=l.getColumn(p.id);m&&(h[p.id]={sortUndefined:m.columnDef.sortUndefined,invertSorting:m.columnDef.invertSorting,sortingFn:m.getSortingFn()})});const g=p=>{const m=p.map(y=>({...y}));return m.sort((y,b)=>{for(let S=0;S<f.length;S+=1){var R;const T=f[S],w=h[T.id],N=w.sortUndefined,H=(R=T?.desc)!=null?R:!1;let j=0;if(N){const F=y.getValue(T.id),ne=b.getValue(T.id),ee=F===void 0,pe=ne===void 0;if(ee||pe){if(N==="first")return ee?-1:1;if(N==="last")return ee?1:-1;j=ee&&pe?0:ee?N:-N}}if(j===0&&(j=w.sortingFn(y,b,T.id)),j!==0)return H&&(j*=-1),w.invertSorting&&(j*=-1),j}return y.index-b.index}),m.forEach(y=>{var b;c.push(y),(b=y.subRows)!=null&&b.length&&(y.subRows=g(y.subRows))}),m};return{rows:g(i.rows),flatRows:c,rowsById:i.rowsById}},I(l.options,"debugTable","getSortedRowModel",()=>l._autoResetPageIndex()))}/**
* react-table
*
* Copyright (c) TanStack
*
* 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
*/function Tg(l,u){return l?R1(l)?z.createElement(l,u):l:null}function R1(l){return C1(l)||typeof l=="function"||b1(l)}function C1(l){return typeof l=="function"&&(()=>{const u=Object.getPrototypeOf(l);return u.prototype&&u.prototype.isReactComponent})()}function b1(l){return typeof l=="object"&&typeof l.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(l.$$typeof.description)}function E1(l){const u={state:{},onStateChange:()=>{},renderFallbackValue:null,...l},[i]=z.useState(()=>({current:h1(u)})),[s,c]=z.useState(()=>i.current.initialState);return i.current.setOptions(f=>({...f,...l,state:{...s,...l.state},onStateChange:h=>{c(h),l.onStateChange==null||l.onStateChange(h)}})),i.current}function _1(l){const u=l?.original?.metadata?.petriFailed;return typeof u=="number"&&u>0?"failed-row":"passed-row"}function gm({data:l,columns:u,sorting:i,onSortingChange:s,columnWidthMap:c,estimatedRowHeight:f=100,overscan:h=20,getRowClassName:g,onRowClick:p,scrollToIndex:m}){const y=E1({data:l,columns:u,state:{sorting:i},onSortingChange:s,getCoreRowModel:g1(),getSortedRowModel:S1(),getFilteredRowModel:y1(),enableSorting:!0,enableSortingRemoval:!1,debugTable:!1}),{rows:b}=y.getRowModel(),R=z.useRef(null),S=z.useRef(null),[T,w]=z.useState(25.5);z.useLayoutEffect(()=>{const H=S.current;H&&w(H.getBoundingClientRect().height)},[]);const N=zS({count:b.length,getScrollElement:()=>R.current,estimateSize:()=>f,overscan:h,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?H=>H?.getBoundingClientRect().height:void 0});return z.useEffect(()=>{N.calculateRange(),N.getVirtualItems().forEach(H=>{const j=document.querySelector(`[data-index="${H.index}"]`);j&&N.measureElement(j)})},[b.length,l,N,i]),z.useEffect(()=>{if(m!=null&&!(m<0||m>=b.length))try{N.scrollToIndex(m,{align:"center"})}catch{}},[m,N,b.length]),G.jsxs("div",{children:[G.jsx("div",{ref:S,className:"virtualized-table-header-container",children:G.jsx("table",{className:"virtualized-table",children:G.jsx("thead",{children:y.getHeaderGroups().map(H=>G.jsx("tr",{children:H.headers.map(j=>G.jsx("th",{className:j.column.getCanSort()?"sortable":"",onClick:j.column.getToggleSortingHandler(),style:{width:c[j.column.id]},children:G.jsxs("div",{className:"virtualized-table-header-content",children:[j.isPlaceholder?null:Tg(j.column.columnDef.header,j.getContext()),j.column.getCanSort()&&G.jsx("span",{className:"sort-indicator",children:{asc:"↑",desc:"↓"}[j.column.getIsSorted()]??"⇅"})]})},j.id))},H.id))})})}),G.jsx("div",{ref:R,className:"virtualized-table-body",style:{height:`calc(100vh - 4rem - ${T}px)`},children:G.jsx("div",{style:{height:`${N.getTotalSize()}px`},children:N.getVirtualItems().map(H=>{const j=b[H.index];return G.jsx("div",{"data-index":H.index,ref:N.measureElement,className:`virtualized-table-row ${g?g(j):_1(j)}`,style:{position:"absolute",width:"100%",transform:`translateY(${H.start}px)`},onClick:p?F=>p(j,F):void 0,children:G.jsx("table",{className:"virtualized-table",children:G.jsx("tbody",{children:G.jsx("tr",{children:j.getVisibleCells().map(F=>G.jsx("td",{style:{boxSizing:"border-box",width:c[F.column.id]},children:Tg(F.column.columnDef.cell,F.getContext())},F.id))})})})},j.id)})})})]})}function mm({value:l,onChange:u,inputRef:i,usePersistentSearching:s=!0}){const c=Yt(),f=Wl(),h=z.useRef(!0),g=z.useRef(null),p=i||g;return z.useEffect(()=>{if(!s){h.current=!1;return}const y=new URLSearchParams(c.search).get("search");y!==null&&y!==l&&u(y),h.current=!1},[]),z.useEffect(()=>{if(!s||h.current)return;const m=new URLSearchParams(c.search);l?m.set("search",l):m.delete("search");const y=m.toString(),b=y?`${c.pathname}?${y}`:c.pathname;c.pathname+c.search!==b&&f(b,{replace:!0})},[l,c.pathname,f,c.search,s]),z.useEffect(()=>{const m=y=>{const b=navigator.platform.toUpperCase().includes("MAC");(y.key==="f"||y.key==="F")&&(b&&y.metaKey||!b&&y.ctrlKey)&&document.activeElement!==p.current&&(y.preventDefault(),p.current?.focus(),p.current?.select()),y.key==="Escape"&&l&&u("")};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[l,u]),G.jsxs("div",{style:{display:"inline-block"},children:[G.jsx("input",{ref:p,value:l,onChange:m=>u(m.target.value),placeholder:"Filter ...",className:"common-search-input"}),l&&G.jsx("button",{onClick:()=>u(""),className:"common-search-clear-btn",title:"Clear filter",children:"×"})]})}const M1=[{id:"creationTime",desc:!0}],T1={name:105,creationTime:190,status:60,failed:50,total:60,ghRun:105},w1=l=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:u=>u.metadata.petriFailed===0?"passed":"failed",cell:u=>{const i=u.getValue();return G.jsx("div",{className:"common-status-cell",children:G.jsx("div",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"failed",accessorKey:"metadata.petriFailed",header:"Fail",enableSorting:!0,cell:u=>G.jsx("div",{className:"common-failed-count",children:u.getValue()})},{id:"total",header:"Total",enableSorting:!0,accessorFn:u=>u.metadata.petriPassed+u.metadata.petriFailed,cell:u=>G.jsx("div",{className:"common-total-count",children:u.getValue()})},{accessorKey:"name",header:"Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return G.jsx("a",{href:"#",onClick:s=>{s.preventDefault(),l(i)},className:"common-table-link",children:i})},sortingFn:(u,i,s)=>{const c=u.getValue(s),f=i.getValue(s);return c.localeCompare(f)}},{accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:u=>G.jsx("div",{className:"created-date",children:u.getValue().toLocaleString()}),sortingFn:(u,i,s)=>{const c=u.getValue(s),f=i.getValue(s);return c.getTime()-f.getTime()}},{accessorKey:"metadata.ghBranch",header:"Branch",enableSorting:!0,cell:u=>{const i=u.getValue()||"";return G.jsx("div",{className:"branch-name",title:i,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"1.25rem"},children:i})}},{accessorKey:"metadata.ghPr",header:"PR",enableSorting:!0,accessorFn:u=>{const i=u.metadata.ghPr,s=u.metadata.prTitle;return i?`${i} ${s||""}`.trim():""},cell:u=>{const i=u.row.original,s=i.metadata.ghPr,c=i.metadata.prTitle,f=s?`#${s}${c?` ${c}`:""}`:"";return s?G.jsx("div",{className:"pr-cell",children:G.jsx("a",{href:`https://github.com/microsoft/openvmm/pull/${s}`,target:"_blank",rel:"noopener noreferrer",className:"pr-link",title:c?`#${s} ${c}`:`PR #${s}`,children:f})}):G.jsx("div",{className:"no-pr",children:"-"})},sortingFn:(u,i)=>{const s=u.original.metadata.ghPr,c=i.original.metadata.ghPr;return!s&&!c?0:s?c?parseInt(s)-parseInt(c):-1:1}},{id:"ghRun",accessorKey:"name",header:"GH Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return G.jsx("a",{href:`https://github.com/microsoft/openvmm/actions/runs/${i}`,target:"_blank",rel:"noopener noreferrer",className:"common-table-link",children:i})},sortingFn:(u,i,s)=>{const c=u.getValue(s),f=i.getValue(s);return c.localeCompare(f)}}];function z1(){const l=Wl(),[u,i]=v0(),s=u.get("branchFilter")||"all",[c,f]=z.useState(s),[h,g]=z.useState("");z.useEffect(()=>{f(s)},[s]);const p=N=>{f(N);const H=new URLSearchParams(u);H.set("branchFilter",N),i(H,{replace:!0})},{data:m=[],isSuccess:y}=Wg({queryKey:["runs"],queryFn:N=>tm(N.client),staleTime:120*1e3,gcTime:1/0,refetchInterval:120*1e3}),b=y&&m.length===0,[R,S]=z.useState(M1),T=z.useMemo(()=>w1(N=>{l(`/runs/${N}`)}),[l]),w=z.useMemo(()=>O1(m,c,h),[m,c,h]);return G.jsxs("div",{className:"common-page-display",children:[G.jsx("div",{className:"common-page-header",children:G.jsx(x1,{branchFilter:c,setBranchFilter:p,searchFilter:h,setSearchFilter:g,resultCount:w.length,loadingSuccess:y})}),b?G.jsx("div",{className:"common-no-data",children:"Table contains no data."}):G.jsx(gm,{data:w,columns:T,sorting:R,onSortingChange:S,columnWidthMap:T1})]})}function x1({branchFilter:l,setBranchFilter:u,searchFilter:i,setSearchFilter:s,resultCount:c,loadingSuccess:f}){return G.jsxs(G.Fragment,{children:[G.jsxs("div",{className:"common-header-left",children:[G.jsxs("div",{className:"common-header-title",children:[G.jsx(lm,{}),G.jsx(Pl,{to:"/runs",className:"common-header-path",children:"Runs"})]}),G.jsxs("div",{className:"common-header-filter-buttons",children:[G.jsx("button",{className:`common-header-filter-btn ${l==="all"?"active":""}`,onClick:()=>u("all"),children:"all"}),G.jsx("button",{className:`common-header-filter-btn ${l==="main"?"active":""}`,onClick:()=>u("main"),children:"main"})]}),!f&&G.jsxs("div",{className:"header-loading-indicator",children:[G.jsx("div",{className:"header-loading-spinner"}),G.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]})]}),G.jsxs("div",{className:"common-header-right",children:[G.jsx(mm,{value:i,onChange:s}),G.jsxs("span",{className:"common-result-count",children:[c," runs"]})]})]})}function O1(l,u,i){let s=u==="all"?l:l.filter(f=>f.metadata.ghBranch===u);const c=i.trim().toLowerCase().split(/\s+/).filter(Boolean);return c.length===0?s:s.filter(f=>{const h=f.metadata.petriFailed===0?"passed":"failed",g=f.metadata.ghPr?`${f.metadata.ghPr} ${f.metadata.prTitle||""}`:"",p=`${f.name} ${h} ${f.metadata.ghBranch||""} ${g}`.toLowerCase();return c.every(m=>p.includes(m))})}const A1=[{id:"status",desc:!1}],D1={architecture:300,status:60},N1=l=>[{accessorKey:"status",header:"Status",enableSorting:!0,cell:u=>{const i=u.getValue();return G.jsx("div",{className:"common-status-cell",children:G.jsx("span",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"architecture",header:"Architecture",accessorFn:u=>{const i=u.name.split("/");return i.length>1?i[0]:"Other"},cell:u=>G.jsx("div",{className:"architecture-name",children:u.getValue()}),enableSorting:!0},{id:"testName",header:"Test Name",accessorFn:u=>{const i=u.name.split("/");return i.length>1?i.slice(1).join("/"):u.name},cell:u=>{const i=u.getValue(),s=u.row.original.name,[c,...f]=s.split("/");return encodeURIComponent(f.join("/")),G.jsx(Pl,{to:`/runs/${l}`,state:{testResult:u.row.original},className:"common-table-link",title:`${s}`,children:i})},enableSorting:!0}];function H1(){const[l,u]=z.useState(""),[i,s]=z.useState(A1);let{runId:c}=Ty();c=c?decodeURIComponent(c):"";const{data:f,isSuccess:h}=Wg({queryKey:["runDetails",c],queryFn:y=>nm(c,y.client),staleTime:1/0,gcTime:1/0}),g=z.useMemo(()=>N1(c),[c]),p=z.useMemo(()=>j1(f?.tests,l),[f?.tests,l]),m=f?.tests&&f.tests.length===0;return G.jsxs("div",{className:"common-page-display",children:[G.jsx("div",{className:"common-page-header",children:G.jsx(U1,{resultCount:p.length,runId:c,searchFilter:l,setSearchFilter:u,loadingSuccess:h})}),m?G.jsx("div",{className:"common-no-data",children:"Table contains no data."}):G.jsx(gm,{data:p,columns:g,sorting:i,onSortingChange:s,columnWidthMap:D1,estimatedRowHeight:44,getRowClassName:y=>y.original.status==="failed"?"failed-row":"passed-row"})]})}function U1({resultCount:l,runId:u,searchFilter:i,setSearchFilter:s,loadingSuccess:c}){return G.jsxs(G.Fragment,{children:[G.jsxs("div",{className:"common-header-left",children:[G.jsxs("div",{className:"common-header-title",children:[G.jsx(lm,{}),G.jsx(Pl,{to:"/runs",className:"common-header-path",children:"Runs"}),G.jsx("span",{children:"/"}),G.jsx(Pl,{to:`/runs/${u}`,className:"common-header-path",children:u})]}),!c&&G.jsxs("div",{className:"header-loading-indicator",children:[G.jsx("div",{className:"header-loading-spinner"}),G.jsx("div",{className:"header-loading-text",children:"Fetching run details ..."})]})]}),G.jsxs("div",{className:"common-header-right",children:[G.jsx(mm,{value:i,onChange:s}),G.jsxs("span",{className:"common-result-count",children:[l," tests"]})]})]})}function j1(l,u){if(!l)return[];const i=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length===0?l:l.filter(s=>{const c=`${s.name} ${s.status}`.toLowerCase();return i.every(f=>c.includes(f))})}const pm=new X0;hS(pm);Pv.createRoot(document.getElementById("root")).render(G.jsx(Qv.StrictMode,{children:G.jsx(d0,{children:G.jsx(K0,{client:pm,children:G.jsx(V1,{})})})}));function V1(){return G.jsxs(Fy,{children:[G.jsx(wu,{path:"/",element:G.jsx(qy,{to:"/runs",replace:!0})}),G.jsx(wu,{path:"runs",element:G.jsx(z1,{})}),G.jsx(wu,{path:"runs/:runId",element:G.jsx(H1,{})})]})}