// 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 o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const f of o)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(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function Hg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lo={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 ng;function Xv(){if(ng)return Za;ng=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(s,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:n,type:s,key:h,ref:o!==void 0?o:null,props:f}}return Za.Fragment=u,Za.jsx=i,Za.jsxs=i,Za}var lg;function Kv(){return lg||(lg=1,lo.exports=Xv()),lo.exports}var z=Kv(),ao={exports:{}},ne={};/**
 * @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 ag;function Zv(){if(ag)return ne;ag=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=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"),R=Symbol.for("react.activity"),C=Symbol.iterator;function S(M){return M===null||typeof M!="object"?null:(M=C&&M[C]||M["@@iterator"],typeof M=="function"?M:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,N={};function U(M,F,Y){this.props=M,this.context=F,this.refs=N,this.updater=Y||_}U.prototype.isReactComponent={},U.prototype.setState=function(M,F){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,F,"setState")},U.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function j(){}j.prototype=U.prototype;function G(M,F,Y){this.props=M,this.context=F,this.refs=N,this.updater=Y||_}var P=G.prototype=new j;P.constructor=G,T(P,U.prototype),P.isPureReactComponent=!0;var k=Array.isArray;function ge(){}var Z={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function ce(M,F,Y){var X=Y.ref;return{$$typeof:n,type:M,key:F,ref:X!==void 0?X:null,props:Y}}function Me(M,F){return ce(M.type,F,M.props)}function Ue(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function tt(M){var F={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Y){return F[Y]})}var Qn=/\/+/g;function Xt(M,F){return typeof M=="object"&&M!==null&&M.key!=null?tt(""+M.key):F.toString(36)}function Nt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(ge,ge):(M.status="pending",M.then(function(F){M.status==="pending"&&(M.status="fulfilled",M.value=F)},function(F){M.status==="pending"&&(M.status="rejected",M.reason=F)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function L(M,F,Y,X,le){var se=typeof M;(se==="undefined"||se==="boolean")&&(M=null);var ye=!1;if(M===null)ye=!0;else switch(se){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(M.$$typeof){case n:case u:ye=!0;break;case y:return ye=M._init,L(ye(M._payload),F,Y,X,le)}}if(ye)return le=le(M),ye=X===""?"."+Xt(M,0):X,k(le)?(Y="",ye!=null&&(Y=ye.replace(Qn,"$&/")+"/"),L(le,F,Y,"",function(ta){return ta})):le!=null&&(Ue(le)&&(le=Me(le,Y+(le.key==null||M&&M.key===le.key?"":(""+le.key).replace(Qn,"$&/")+"/")+ye)),F.push(le)),1;ye=0;var We=X===""?".":X+":";if(k(M))for(var He=0;He<M.length;He++)X=M[He],se=We+Xt(X,He),ye+=L(X,F,Y,se,le);else if(He=S(M),typeof He=="function")for(M=He.call(M),He=0;!(X=M.next()).done;)X=X.value,se=We+Xt(X,He++),ye+=L(X,F,Y,se,le);else if(se==="object"){if(typeof M.then=="function")return L(Nt(M),F,Y,X,le);throw F=String(M),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ye}function Q(M,F,Y){if(M==null)return M;var X=[],le=0;return L(M,X,"","",function(se){return F.call(Y,se,le++)}),X}function te(M){if(M._status===-1){var F=M._result;F=F(),F.then(function(Y){(M._status===0||M._status===-1)&&(M._status=1,M._result=Y)},function(Y){(M._status===0||M._status===-1)&&(M._status=2,M._result=Y)}),M._status===-1&&(M._status=0,M._result=F)}if(M._status===1)return M._result.default;throw M._result}var Re=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Te={map:Q,forEach:function(M,F,Y){Q(M,function(){F.apply(this,arguments)},Y)},count:function(M){var F=0;return Q(M,function(){F++}),F},toArray:function(M){return Q(M,function(F){return F})||[]},only:function(M){if(!Ue(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ne.Activity=R,ne.Children=Te,ne.Component=U,ne.Fragment=i,ne.Profiler=o,ne.PureComponent=G,ne.StrictMode=s,ne.Suspense=p,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ne.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Z.H.useMemoCache(M)}},ne.cache=function(M){return function(){return M.apply(null,arguments)}},ne.cacheSignal=function(){return null},ne.cloneElement=function(M,F,Y){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var X=T({},M.props),le=M.key;if(F!=null)for(se in F.key!==void 0&&(le=""+F.key),F)!ue.call(F,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&F.ref===void 0||(X[se]=F[se]);var se=arguments.length-2;if(se===1)X.children=Y;else if(1<se){for(var ye=Array(se),We=0;We<se;We++)ye[We]=arguments[We+2];X.children=ye}return ce(M.type,le,X)},ne.createContext=function(M){return M={$$typeof:h,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:f,_context:M},M},ne.createElement=function(M,F,Y){var X,le={},se=null;if(F!=null)for(X in F.key!==void 0&&(se=""+F.key),F)ue.call(F,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(le[X]=F[X]);var ye=arguments.length-2;if(ye===1)le.children=Y;else if(1<ye){for(var We=Array(ye),He=0;He<ye;He++)We[He]=arguments[He+2];le.children=We}if(M&&M.defaultProps)for(X in ye=M.defaultProps,ye)le[X]===void 0&&(le[X]=ye[X]);return ce(M,se,le)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(M){return{$$typeof:g,render:M}},ne.isValidElement=Ue,ne.lazy=function(M){return{$$typeof:y,_payload:{_status:-1,_result:M},_init:te}},ne.memo=function(M,F){return{$$typeof:m,type:M,compare:F===void 0?null:F}},ne.startTransition=function(M){var F=Z.T,Y={};Z.T=Y;try{var X=M(),le=Z.S;le!==null&&le(Y,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(ge,Re)}catch(se){Re(se)}finally{F!==null&&Y.types!==null&&(F.types=Y.types),Z.T=F}},ne.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ne.use=function(M){return Z.H.use(M)},ne.useActionState=function(M,F,Y){return Z.H.useActionState(M,F,Y)},ne.useCallback=function(M,F){return Z.H.useCallback(M,F)},ne.useContext=function(M){return Z.H.useContext(M)},ne.useDebugValue=function(){},ne.useDeferredValue=function(M,F){return Z.H.useDeferredValue(M,F)},ne.useEffect=function(M,F){return Z.H.useEffect(M,F)},ne.useEffectEvent=function(M){return Z.H.useEffectEvent(M)},ne.useId=function(){return Z.H.useId()},ne.useImperativeHandle=function(M,F,Y){return Z.H.useImperativeHandle(M,F,Y)},ne.useInsertionEffect=function(M,F){return Z.H.useInsertionEffect(M,F)},ne.useLayoutEffect=function(M,F){return Z.H.useLayoutEffect(M,F)},ne.useMemo=function(M,F){return Z.H.useMemo(M,F)},ne.useOptimistic=function(M,F){return Z.H.useOptimistic(M,F)},ne.useReducer=function(M,F,Y){return Z.H.useReducer(M,F,Y)},ne.useRef=function(M){return Z.H.useRef(M)},ne.useState=function(M){return Z.H.useState(M)},ne.useSyncExternalStore=function(M,F,Y){return Z.H.useSyncExternalStore(M,F,Y)},ne.useTransition=function(){return Z.H.useTransition()},ne.version="19.2.0",ne}var ig;function Uo(){return ig||(ig=1,ao.exports=Zv()),ao.exports}var x=Uo();const Jv=Hg(x);var io={exports:{}},Ja={},uo={exports:{}},so={};/**
 * @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 ug;function Pv(){return ug||(ug=1,(function(n){function u(L,Q){var te=L.length;L.push(Q);e:for(;0<te;){var Re=te-1>>>1,Te=L[Re];if(0<o(Te,Q))L[Re]=Q,L[te]=Te,te=Re;else break e}}function i(L){return L.length===0?null:L[0]}function s(L){if(L.length===0)return null;var Q=L[0],te=L.pop();if(te!==Q){L[0]=te;e:for(var Re=0,Te=L.length,M=Te>>>1;Re<M;){var F=2*(Re+1)-1,Y=L[F],X=F+1,le=L[X];if(0>o(Y,te))X<Te&&0>o(le,Y)?(L[Re]=le,L[X]=te,Re=X):(L[Re]=Y,L[F]=te,Re=F);else if(X<Te&&0>o(le,te))L[Re]=le,L[X]=te,Re=X;else break e}}return Q}function o(L,Q){var te=L.sortIndex-Q.sortIndex;return te!==0?te:L.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();n.unstable_now=function(){return h.now()-g}}var p=[],m=[],y=1,R=null,C=3,S=!1,_=!1,T=!1,N=!1,U=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function P(L){for(var Q=i(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=L)s(m),Q.sortIndex=Q.expirationTime,u(p,Q);else break;Q=i(m)}}function k(L){if(T=!1,P(L),!_)if(i(p)!==null)_=!0,ge||(ge=!0,tt());else{var Q=i(m);Q!==null&&Nt(k,Q.startTime-L)}}var ge=!1,Z=-1,ue=5,ce=-1;function Me(){return N?!0:!(n.unstable_now()-ce<ue)}function Ue(){if(N=!1,ge){var L=n.unstable_now();ce=L;var Q=!0;try{e:{_=!1,T&&(T=!1,j(Z),Z=-1),S=!0;var te=C;try{t:{for(P(L),R=i(p);R!==null&&!(R.expirationTime>L&&Me());){var Re=R.callback;if(typeof Re=="function"){R.callback=null,C=R.priorityLevel;var Te=Re(R.expirationTime<=L);if(L=n.unstable_now(),typeof Te=="function"){R.callback=Te,P(L),Q=!0;break t}R===i(p)&&s(p),P(L)}else s(p);R=i(p)}if(R!==null)Q=!0;else{var M=i(m);M!==null&&Nt(k,M.startTime-L),Q=!1}}break e}finally{R=null,C=te,S=!1}Q=void 0}}finally{Q?tt():ge=!1}}}var tt;if(typeof G=="function")tt=function(){G(Ue)};else if(typeof MessageChannel<"u"){var Qn=new MessageChannel,Xt=Qn.port2;Qn.port1.onmessage=Ue,tt=function(){Xt.postMessage(null)}}else tt=function(){U(Ue,0)};function Nt(L,Q){Z=U(function(){L(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(L){switch(C){case 1:case 2:case 3:var Q=3;break;default:Q=C}var te=C;C=Q;try{return L()}finally{C=te}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(L,Q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var te=C;C=L;try{return Q()}finally{C=te}},n.unstable_scheduleCallback=function(L,Q,te){var Re=n.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Re+te:Re):te=Re,L){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=te+Te,L={id:y++,callback:Q,priorityLevel:L,startTime:te,expirationTime:Te,sortIndex:-1},te>Re?(L.sortIndex=te,u(m,L),i(p)===null&&L===i(m)&&(T?(j(Z),Z=-1):T=!0,Nt(k,te-Re))):(L.sortIndex=Te,u(p,L),_||S||(_=!0,ge||(ge=!0,tt()))),L},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(L){var Q=C;return function(){var te=C;C=Q;try{return L.apply(this,arguments)}finally{C=te}}}})(so)),so}var sg;function kv(){return sg||(sg=1,uo.exports=Pv()),uo.exports}var ro={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 rg;function Iv(){if(rg)return ke;rg=1;var n=Uo();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},o=Symbol.for("react.portal");function f(p,m,y){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:R==null?null:""+R,children:p,containerInfo:m,implementation:y}}var h=n.__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,R=g(y,m.crossOrigin),C=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:R,integrity:C,fetchPriority:S}):y==="script"&&s.d.X(p,{crossOrigin:R,integrity:C,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,R=g(y,m.crossOrigin);s.d.L(p,y,{crossOrigin:R,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 og;function jg(){if(og)return ro.exports;og=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),ro.exports=Iv(),ro.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 cg;function Wv(){if(cg)return Ja;cg=1;var n=kv(),u=Uo(),i=jg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l: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 l=e,a=t;;){var r=l.return;if(r===null)break;var c=r.alternate;if(c===null){if(a=r.return,a!==null){l=a;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===l)return p(r),e;if(c===a)return p(r),t;c=c.sibling}throw Error(s(188))}if(l.return!==a.return)l=r,a=c;else{for(var d=!1,v=r.child;v;){if(v===l){d=!0,l=r,a=c;break}if(v===a){d=!0,a=r,l=c;break}v=v.sibling}if(!d){for(v=c.child;v;){if(v===l){d=!0,l=c,a=r;break}if(v===a){d=!0,a=c,l=r;break}v=v.sibling}if(!d)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?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 R=Object.assign,C=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),G=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),Ue=Symbol.iterator;function tt(e){return e===null||typeof e!="object"?null:(e=Ue&&e[Ue]||e["@@iterator"],typeof e=="function"?e:null)}var Qn=Symbol.for("react.client.reference");function Xt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Qn?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case U:return"Profiler";case N:return"StrictMode";case k:return"Suspense";case ge:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case G:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Xt(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return Xt(e(t))}catch{}}return null}var Nt=Array.isArray,L=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,te={pending:!1,data:null,method:null,action:null},Re=[],Te=-1;function M(e){return{current:e}}function F(e){0>Te||(e.current=Re[Te],Re[Te]=null,Te--)}function Y(e,t){Te++,Re[Te]=e.current,e.current=t}var X=M(null),le=M(null),se=M(null),ye=M(null);function We(e,t){switch(Y(se,t),Y(le,e),Y(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mh(t),e=Th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(X),Y(X,e)}function He(){F(X),F(le),F(se)}function ta(e){e.memoizedState!==null&&Y(ye,e);var t=X.current,l=Th(t,e.type);t!==l&&(Y(le,e),Y(X,l))}function ii(e){le.current===e&&(F(X),F(le)),ye.current===e&&(F(ye),Ya._currentValue=te)}var Bu,ec;function Yn(e){if(Bu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||"",ec=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Bu+e+ec}var qu=!1;function Fu(e,t){if(!e||qu)return"";qu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(H){var D=H}Reflect.construct(e,[],q)}else{try{q.call()}catch(H){D=H}e.call(q.prototype)}}else{try{throw Error()}catch(H){D=H}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(H){if(H&&D&&typeof H.stack=="string")return[H.stack,D.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 c=a.DetermineComponentFrameRoot(),d=c[0],v=c[1];if(d&&v){var b=d.split(`
`),A=v.split(`
`);for(r=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;if(a===b.length||r===A.length)for(a=b.length-1,r=A.length-1;1<=a&&0<=r&&b[a]!==A[r];)r--;for(;1<=a&&0<=r;a--,r--)if(b[a]!==A[r]){if(a!==1||r!==1)do if(a--,r--,0>r||b[a]!==A[r]){var V=`
`+b[a].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=a&&0<=r);break}}}finally{qu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Yn(l):""}function Em(e,t){switch(e.tag){case 26:case 27:case 5:return Yn(e.type);case 16:return Yn("Lazy");case 13:return e.child!==t&&t!==null?Yn("Suspense Fallback"):Yn("Suspense");case 19:return Yn("SuspenseList");case 0:case 15:return Fu(e.type,!1);case 11:return Fu(e.type.render,!1);case 1:return Fu(e.type,!0);case 31:return Yn("Activity");default:return""}}function tc(e){try{var t="",l=null;do t+=Em(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Gu=Object.prototype.hasOwnProperty,Qu=n.unstable_scheduleCallback,Yu=n.unstable_cancelCallback,_m=n.unstable_shouldYield,Mm=n.unstable_requestPaint,ct=n.unstable_now,Tm=n.unstable_getCurrentPriorityLevel,nc=n.unstable_ImmediatePriority,lc=n.unstable_UserBlockingPriority,ui=n.unstable_NormalPriority,xm=n.unstable_LowPriority,ac=n.unstable_IdlePriority,wm=n.log,zm=n.unstable_setDisableYieldValue,na=null,ft=null;function mn(e){if(typeof wm=="function"&&zm(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(na,e)}catch{}}var dt=Math.clz32?Math.clz32:Dm,Om=Math.log,Am=Math.LN2;function Dm(e){return e>>>=0,e===0?32:31-(Om(e)/Am|0)|0}var si=256,ri=262144,oi=4194304;function $n(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 ci(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var r=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?r=$n(a):(d&=v,d!==0?r=$n(d):l||(l=v&~e,l!==0&&(r=$n(l))))):(v=a&~c,v!==0?r=$n(v):d!==0?r=$n(d):l||(l=a&~e,l!==0&&(r=$n(l)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:r}function la(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Nm(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 ic(){var e=oi;return oi<<=1,(oi&62914560)===0&&(oi=4194304),e}function $u(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function aa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Um(e,t,l,a,r,c){var d=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var v=e.entanglements,b=e.expirationTimes,A=e.hiddenUpdates;for(l=d&~l;0<l;){var V=31-dt(l),q=1<<V;v[V]=0,b[V]=-1;var D=A[V];if(D!==null)for(A[V]=null,V=0;V<D.length;V++){var H=D[V];H!==null&&(H.lane&=-536870913)}l&=~q}a!==0&&uc(e,a,0),c!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function uc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function sc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),r=1<<a;r&t|e[a]&t&&(e[a]|=t),l&=~r}}function rc(e,t){var l=t&-t;return l=(l&42)!==0?1:Xu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Xu(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 Ku(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function oc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Jh(e.type))}function cc(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var pn=Math.random().toString(36).slice(2),$e="__reactFiber$"+pn,nt="__reactProps$"+pn,dl="__reactContainer$"+pn,Zu="__reactEvents$"+pn,Hm="__reactListeners$"+pn,jm="__reactHandles$"+pn,fc="__reactResources$"+pn,ia="__reactMarker$"+pn;function Ju(e){delete e[$e],delete e[nt],delete e[Zu],delete e[Hm],delete e[jm]}function hl(e){var t=e[$e];if(t)return t;for(var l=e.parentNode;l;){if(t=l[dl]||l[$e]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Nh(e);e!==null;){if(l=e[$e])return l;e=Nh(e)}return t}e=l,l=e.parentNode}return null}function gl(e){if(e=e[$e]||e[dl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ua(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ml(e){var t=e[fc];return t||(t=e[fc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[ia]=!0}var dc=new Set,hc={};function Xn(e,t){pl(e,t),pl(e+"Capture",t)}function pl(e,t){for(hc[e]=t,e=0;e<t.length;e++)dc.add(t[e])}var Vm=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]*$"),gc={},mc={};function Lm(e){return Gu.call(mc,e)?!0:Gu.call(gc,e)?!1:Vm.test(e)?mc[e]=!0:(gc[e]=!0,!1)}function fi(e,t,l){if(Lm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function di(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Kt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){l=""+d,c.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(d){l=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pu(e){if(!e._valueTracker){var t=pc(e)?"checked":"value";e._valueTracker=Bm(e,t,""+e[t])}}function vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=pc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function hi(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 qm=/[\n"\\]/g;function Et(e){return e.replace(qm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ku(e,t,l,a,r,c,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?Iu(e,d,bt(t)):l!=null?Iu(e,d,bt(l)):a!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),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 yc(e,t,l,a,r,c,d,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Pu(e);return}l=l!=null?""+bt(l):"",t=t!=null?""+bt(t):l,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),Pu(e)}function Iu(e,t,l){t==="number"&&hi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function vl(e,t,l,a){if(e=e.options,t){t={};for(var r=0;r<l.length;r++)t["$"+l[r]]=!0;for(l=0;l<e.length;l++)r=t.hasOwnProperty("$"+e[l].value),e[l].selected!==r&&(e[l].selected=r),r&&a&&(e[l].defaultSelected=!0)}else{for(l=""+bt(l),t=null,r=0;r<e.length;r++){if(e[r].value===l){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Sc(e,t,l){if(t!=null&&(t=""+bt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+bt(l):""}function Cc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(Nt(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=bt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Pu(e)}function yl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Fm=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 Rc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Fm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function bc(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&l[r]!==a&&Rc(e,r,a)}else for(var c in t)t.hasOwnProperty(c)&&Rc(e,c,t[c])}function Wu(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 Gm=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"]]),Qm=/^[\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 gi(e){return Qm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var es=null;function ts(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,Cl=null;function Ec(e){var t=gl(e);if(t&&(e=t.stateNode)){var l=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ku(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var r=a[nt]||null;if(!r)throw Error(s(90));ku(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&vc(a)}break e;case"textarea":Sc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&vl(e,!!l.multiple,t,!1)}}}var ns=!1;function _c(e,t,l){if(ns)return e(t,l);ns=!0;try{var a=e(t);return a}finally{if(ns=!1,(Sl!==null||Cl!==null)&&(tu(),Sl&&(t=Sl,e=Cl,Cl=Sl=null,Ec(t),e)))for(t=0;t<e.length;t++)Ec(e[t])}}function sa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[nt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ls=!1;if(Jt)try{var ra={};Object.defineProperty(ra,"passive",{get:function(){ls=!0}}),window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra)}catch{ls=!1}var vn=null,as=null,mi=null;function Mc(){if(mi)return mi;var e,t=as,l=t.length,a,r="value"in vn?vn.value:vn.textContent,c=r.length;for(e=0;e<l&&t[e]===r[e];e++);var d=l-e;for(a=1;a<=d&&t[l-a]===r[c-a];a++);return mi=r.slice(e,1<a?1-a:void 0)}function pi(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 vi(){return!0}function Tc(){return!1}function lt(e){function t(l,a,r,c,d){this._reactName=l,this._targetInst=r,this.type=a,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?vi:Tc,this.isPropagationStopped=Tc,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),t}var Kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yi=lt(Kn),oa=R({},Kn,{view:0,detail:0}),Ym=lt(oa),is,us,ca,Si=R({},oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rs,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!==ca&&(ca&&e.type==="mousemove"?(is=e.screenX-ca.screenX,us=e.screenY-ca.screenY):us=is=0,ca=e),is)},movementY:function(e){return"movementY"in e?e.movementY:us}}),xc=lt(Si),$m=R({},Si,{dataTransfer:0}),Xm=lt($m),Km=R({},oa,{relatedTarget:0}),ss=lt(Km),Zm=R({},Kn,{animationName:0,elapsedTime:0,pseudoElement:0}),Jm=lt(Zm),Pm=R({},Kn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),km=lt(Pm),Im=R({},Kn,{data:0}),wc=lt(Im),Wm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ep={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"},tp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function np(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tp[e])?!!t[e]:!1}function rs(){return np}var lp=R({},oa,{key:function(e){if(e.key){var t=Wm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ep[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rs,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ap=lt(lp),ip=R({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zc=lt(ip),up=R({},oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rs}),sp=lt(up),rp=R({},Kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),op=lt(rp),cp=R({},Si,{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}),fp=lt(cp),dp=R({},Kn,{newState:0,oldState:0}),hp=lt(dp),gp=[9,13,27,32],os=Jt&&"CompositionEvent"in window,fa=null;Jt&&"documentMode"in document&&(fa=document.documentMode);var mp=Jt&&"TextEvent"in window&&!fa,Oc=Jt&&(!os||fa&&8<fa&&11>=fa),Ac=" ",Dc=!1;function Nc(e,t){switch(e){case"keyup":return gp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rl=!1;function pp(e,t){switch(e){case"compositionend":return Uc(t);case"keypress":return t.which!==32?null:(Dc=!0,Ac);case"textInput":return e=t.data,e===Ac&&Dc?null:e;default:return null}}function vp(e,t){if(Rl)return e==="compositionend"||!os&&Nc(e,t)?(e=Mc(),mi=as=vn=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 Oc&&t.locale!=="ko"?null:t.data;default:return null}}var yp={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 Hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yp[e.type]:t==="textarea"}function jc(e,t,l,a){Sl?Cl?Cl.push(a):Cl=[a]:Sl=a,t=ru(t,"onChange"),0<t.length&&(l=new yi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var da=null,ha=null;function Sp(e){Sh(e,0)}function Ci(e){var t=ua(e);if(vc(t))return e}function Vc(e,t){if(e==="change")return t}var Lc=!1;if(Jt){var cs;if(Jt){var fs="oninput"in document;if(!fs){var Bc=document.createElement("div");Bc.setAttribute("oninput","return;"),fs=typeof Bc.oninput=="function"}cs=fs}else cs=!1;Lc=cs&&(!document.documentMode||9<document.documentMode)}function qc(){da&&(da.detachEvent("onpropertychange",Fc),ha=da=null)}function Fc(e){if(e.propertyName==="value"&&Ci(ha)){var t=[];jc(t,ha,e,ts(e)),_c(Sp,t)}}function Cp(e,t,l){e==="focusin"?(qc(),da=t,ha=l,da.attachEvent("onpropertychange",Fc)):e==="focusout"&&qc()}function Rp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(ha)}function bp(e,t){if(e==="click")return Ci(t)}function Ep(e,t){if(e==="input"||e==="change")return Ci(t)}function _p(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:_p;function ga(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var r=l[a];if(!Gu.call(t,r)||!ht(e[r],t[r]))return!1}return!0}function Gc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qc(e,t){var l=Gc(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Gc(l)}}function Yc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=hi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=hi(e.document)}return t}function ds(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 Mp=Jt&&"documentMode"in document&&11>=document.documentMode,bl=null,hs=null,ma=null,gs=!1;function Xc(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;gs||bl==null||bl!==hi(a)||(a=bl,"selectionStart"in a&&ds(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}),ma&&ga(ma,a)||(ma=a,a=ru(hs,"onSelect"),0<a.length&&(t=new yi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=bl)))}function Zn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var El={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")},ms={},Kc={};Jt&&(Kc=document.createElement("div").style,"AnimationEvent"in window||(delete El.animationend.animation,delete El.animationiteration.animation,delete El.animationstart.animation),"TransitionEvent"in window||delete El.transitionend.transition);function Jn(e){if(ms[e])return ms[e];if(!El[e])return e;var t=El[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Kc)return ms[e]=t[l];return e}var Zc=Jn("animationend"),Jc=Jn("animationiteration"),Pc=Jn("animationstart"),Tp=Jn("transitionrun"),xp=Jn("transitionstart"),wp=Jn("transitioncancel"),kc=Jn("transitionend"),Ic=new Map,ps="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(" ");ps.push("scrollEnd");function Ut(e,t){Ic.set(e,t),Xn(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=[],_l=0,vs=0;function bi(){for(var e=_l,t=vs=_l=0;t<e;){var l=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var r=_t[t];_t[t++]=null;var c=_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}c!==0&&Wc(l,r,c)}}function Ei(e,t,l,a){_t[_l++]=e,_t[_l++]=t,_t[_l++]=l,_t[_l++]=a,vs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ys(e,t,l,a){return Ei(e,t,l,a),_i(e)}function Pn(e,t){return Ei(e,null,null,t),_i(e)}function Wc(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var r=!1,c=e.return;c!==null;)c.childLanes|=l,a=c.alternate,a!==null&&(a.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(r=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,r&&t!==null&&(r=31-dt(l),e=c.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=l|536870912),c):null}function _i(e){if(50<Va)throw Va=0,xr=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ml={};function zp(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,l,a){return new zp(e,t,l,a)}function Ss(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pt(e,t){var l=e.alternate;return l===null?(l=gt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function ef(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Mi(e,t,l,a,r,c){var d=0;if(a=e,typeof e=="function")Ss(e)&&(d=1);else if(typeof e=="string")d=Uv(e,l,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=gt(31,l,t,r),e.elementType=ce,e.lanes=c,e;case T:return kn(l.children,r,c,t);case N:d=8,r|=24;break;case U:return e=gt(12,l,t,r|2),e.elementType=U,e.lanes=c,e;case k:return e=gt(13,l,t,r),e.elementType=k,e.lanes=c,e;case ge:return e=gt(19,l,t,r),e.elementType=ge,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:d=10;break e;case j:d=9;break e;case P:d=11;break e;case Z:d=14;break e;case ue:d=16,a=null;break e}d=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=gt(d,l,t,r),t.elementType=e,t.type=a,t.lanes=c,t}function kn(e,t,l,a){return e=gt(7,e,a,t),e.lanes=l,e}function Cs(e,t,l){return e=gt(6,e,null,t),e.lanes=l,e}function tf(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Rs(e,t,l){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nf=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var l=nf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:tc(t)},nf.set(e,t),t)}return{value:e,source:t,stack:tc(t)}}var Tl=[],xl=0,Ti=null,pa=0,Tt=[],xt=0,yn=null,Ft=1,Gt="";function kt(e,t){Tl[xl++]=pa,Tl[xl++]=Ti,Ti=e,pa=t}function lf(e,t,l){Tt[xt++]=Ft,Tt[xt++]=Gt,Tt[xt++]=yn,yn=e;var a=Ft;e=Gt;var r=32-dt(a)-1;a&=~(1<<r),l+=1;var c=32-dt(t)+r;if(30<c){var d=r-r%5;c=(a&(1<<d)-1).toString(32),a>>=d,r-=d,Ft=1<<32-dt(t)+r|l<<r|a,Gt=c+e}else Ft=1<<c|l<<r|a,Gt=e}function bs(e){e.return!==null&&(kt(e,1),lf(e,1,0))}function Es(e){for(;e===Ti;)Ti=Tl[--xl],Tl[xl]=null,pa=Tl[--xl],Tl[xl]=null;for(;e===yn;)yn=Tt[--xt],Tt[xt]=null,Gt=Tt[--xt],Tt[xt]=null,Ft=Tt[--xt],Tt[xt]=null}function af(e,t){Tt[xt++]=Ft,Tt[xt++]=Gt,Tt[xt++]=yn,Ft=t.id,Gt=t.overflow,yn=e}var Xe=null,we=null,he=!1,Sn=null,wt=!1,_s=Error(s(519));function Cn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw va(Mt(t,e)),_s}function uf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[$e]=e,t[nt]=a,l){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(l=0;l<Ba.length;l++)oe(Ba[l],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),yc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),Cc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Eh(t.textContent,l)?(a.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),a.onScroll!=null&&oe("scroll",t),a.onScrollEnd!=null&&oe("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||Cn(e,!0)}function sf(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:Xe=Xe.return}}function wl(e){if(e!==Xe)return!1;if(!he)return sf(e),he=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Gr(e.type,e.memoizedProps)),l=!l),l&&we&&Cn(e),sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));we=Dh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));we=Dh(e)}else t===27?(t=we,Un(e.type)?(e=Kr,Kr=null,we=e):we=t):we=Xe?Ot(e.stateNode.nextSibling):null;return!0}function In(){we=Xe=null,he=!1}function Ms(){var e=Sn;return e!==null&&(st===null?st=e:st.push.apply(st,e),Sn=null),e}function va(e){Sn===null?Sn=[e]:Sn.push(e)}var Ts=M(null),Wn=null,It=null;function Rn(e,t,l){Y(Ts,t._currentValue),t._currentValue=l}function Wt(e){e._currentValue=Ts.current,F(Ts)}function xs(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ws(e,t,l,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var c=r.dependencies;if(c!==null){var d=r.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=r;for(var b=0;b<t.length;b++)if(v.context===t[b]){c.lanes|=l,v=c.alternate,v!==null&&(v.lanes|=l),xs(c.return,l,e),a||(d=null);break e}c=v.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=l,c=d.alternate,c!==null&&(c.lanes|=l),xs(d,l,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,l,a){e=null;for(var r=t,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!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===ye.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ya):e=[Ya])}r=r.return}e!==null&&ws(t,e,l,a),t.flags|=262144}function xi(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function el(e){Wn=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ke(e){return rf(Wn,e)}function wi(e,t){return Wn===null&&el(e),rf(e,t)}function rf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},It===null){if(e===null)throw Error(s(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return l}var Op=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ap=n.unstable_scheduleCallback,Dp=n.unstable_NormalPriority,Le={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zs(){return{controller:new Op,data:new Map,refCount:0}}function ya(e){e.refCount--,e.refCount===0&&Ap(Dp,function(){e.controller.abort()})}var Sa=null,Os=0,Ol=0,Al=null;function Np(e,t){if(Sa===null){var l=Sa=[];Os=0,Ol=Nr(),Al={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Os++,t.then(of,of),t}function of(){if(--Os===0&&Sa!==null){Al!==null&&(Al.status="fulfilled");var e=Sa;Sa=null,Ol=0,Al=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Up(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(r){l.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<l.length;r++)(0,l[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<l.length;r++)(0,l[r])(void 0)}),a}var cf=L.S;L.S=function(e,t){Kd=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Np(e,t),cf!==null&&cf(e,t)};var tl=M(null);function As(){var e=tl.current;return e!==null?e:xe.pooledCache}function zi(e,t){t===null?Y(tl,tl.current):Y(tl,t.pool)}function ff(){var e=As();return e===null?null:{parent:Le._currentValue,pool:e}}var Dl=Error(s(460)),Ds=Error(s(474)),Oi=Error(s(542)),Ai={then:function(){}};function df(e){return e=e.status,e==="fulfilled"||e==="rejected"}function hf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=xe,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,mf(e),e}throw ll=t,Dl}}function nl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ll=l,Dl):l}}var ll=null;function gf(){if(ll===null)throw Error(s(459));var e=ll;return ll=null,e}function mf(e){if(e===Dl||e===Oi)throw Error(s(483))}var Nl=null,Ca=0;function Di(e){var t=Ca;return Ca+=1,Nl===null&&(Nl=[]),hf(Nl,e,t)}function Ra(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ni(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function pf(e){function t(w,E){if(e){var O=w.deletions;O===null?(w.deletions=[E],w.flags|=16):O.push(E)}}function l(w,E){if(!e)return null;for(;E!==null;)t(w,E),E=E.sibling;return null}function a(w){for(var E=new Map;w!==null;)w.key!==null?E.set(w.key,w):E.set(w.index,w),w=w.sibling;return E}function r(w,E){return w=Pt(w,E),w.index=0,w.sibling=null,w}function c(w,E,O){return w.index=O,e?(O=w.alternate,O!==null?(O=O.index,O<E?(w.flags|=67108866,E):O):(w.flags|=67108866,E)):(w.flags|=1048576,E)}function d(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function v(w,E,O,B){return E===null||E.tag!==6?(E=Cs(O,w.mode,B),E.return=w,E):(E=r(E,O),E.return=w,E)}function b(w,E,O,B){var J=O.type;return J===T?V(w,E,O.props.children,B,O.key):E!==null&&(E.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ue&&nl(J)===E.type)?(E=r(E,O.props),Ra(E,O),E.return=w,E):(E=Mi(O.type,O.key,O.props,null,w.mode,B),Ra(E,O),E.return=w,E)}function A(w,E,O,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=Rs(O,w.mode,B),E.return=w,E):(E=r(E,O.children||[]),E.return=w,E)}function V(w,E,O,B,J){return E===null||E.tag!==7?(E=kn(O,w.mode,B,J),E.return=w,E):(E=r(E,O),E.return=w,E)}function q(w,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Cs(""+E,w.mode,O),E.return=w,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case S:return O=Mi(E.type,E.key,E.props,null,w.mode,O),Ra(O,E),O.return=w,O;case _:return E=Rs(E,w.mode,O),E.return=w,E;case ue:return E=nl(E),q(w,E,O)}if(Nt(E)||tt(E))return E=kn(E,w.mode,O,null),E.return=w,E;if(typeof E.then=="function")return q(w,Di(E),O);if(E.$$typeof===G)return q(w,wi(w,E),O);Ni(w,E)}return null}function D(w,E,O,B){var J=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return J!==null?null:v(w,E,""+O,B);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return O.key===J?b(w,E,O,B):null;case _:return O.key===J?A(w,E,O,B):null;case ue:return O=nl(O),D(w,E,O,B)}if(Nt(O)||tt(O))return J!==null?null:V(w,E,O,B,null);if(typeof O.then=="function")return D(w,E,Di(O),B);if(O.$$typeof===G)return D(w,E,wi(w,O),B);Ni(w,O)}return null}function H(w,E,O,B,J){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(O)||null,v(E,w,""+B,J);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return w=w.get(B.key===null?O:B.key)||null,b(E,w,B,J);case _:return w=w.get(B.key===null?O:B.key)||null,A(E,w,B,J);case ue:return B=nl(B),H(w,E,O,B,J)}if(Nt(B)||tt(B))return w=w.get(O)||null,V(E,w,B,J,null);if(typeof B.then=="function")return H(w,E,O,Di(B),J);if(B.$$typeof===G)return H(w,E,O,wi(E,B),J);Ni(E,B)}return null}function $(w,E,O,B){for(var J=null,me=null,K=E,ie=E=0,de=null;K!==null&&ie<O.length;ie++){K.index>ie?(de=K,K=null):de=K.sibling;var pe=D(w,K,O[ie],B);if(pe===null){K===null&&(K=de);break}e&&K&&pe.alternate===null&&t(w,K),E=c(pe,E,ie),me===null?J=pe:me.sibling=pe,me=pe,K=de}if(ie===O.length)return l(w,K),he&&kt(w,ie),J;if(K===null){for(;ie<O.length;ie++)K=q(w,O[ie],B),K!==null&&(E=c(K,E,ie),me===null?J=K:me.sibling=K,me=K);return he&&kt(w,ie),J}for(K=a(K);ie<O.length;ie++)de=H(K,w,ie,O[ie],B),de!==null&&(e&&de.alternate!==null&&K.delete(de.key===null?ie:de.key),E=c(de,E,ie),me===null?J=de:me.sibling=de,me=de);return e&&K.forEach(function(Bn){return t(w,Bn)}),he&&kt(w,ie),J}function I(w,E,O,B){if(O==null)throw Error(s(151));for(var J=null,me=null,K=E,ie=E=0,de=null,pe=O.next();K!==null&&!pe.done;ie++,pe=O.next()){K.index>ie?(de=K,K=null):de=K.sibling;var Bn=D(w,K,pe.value,B);if(Bn===null){K===null&&(K=de);break}e&&K&&Bn.alternate===null&&t(w,K),E=c(Bn,E,ie),me===null?J=Bn:me.sibling=Bn,me=Bn,K=de}if(pe.done)return l(w,K),he&&kt(w,ie),J;if(K===null){for(;!pe.done;ie++,pe=O.next())pe=q(w,pe.value,B),pe!==null&&(E=c(pe,E,ie),me===null?J=pe:me.sibling=pe,me=pe);return he&&kt(w,ie),J}for(K=a(K);!pe.done;ie++,pe=O.next())pe=H(K,w,ie,pe.value,B),pe!==null&&(e&&pe.alternate!==null&&K.delete(pe.key===null?ie:pe.key),E=c(pe,E,ie),me===null?J=pe:me.sibling=pe,me=pe);return e&&K.forEach(function($v){return t(w,$v)}),he&&kt(w,ie),J}function _e(w,E,O,B){if(typeof O=="object"&&O!==null&&O.type===T&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case S:e:{for(var J=O.key;E!==null;){if(E.key===J){if(J=O.type,J===T){if(E.tag===7){l(w,E.sibling),B=r(E,O.props.children),B.return=w,w=B;break e}}else if(E.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ue&&nl(J)===E.type){l(w,E.sibling),B=r(E,O.props),Ra(B,O),B.return=w,w=B;break e}l(w,E);break}else t(w,E);E=E.sibling}O.type===T?(B=kn(O.props.children,w.mode,B,O.key),B.return=w,w=B):(B=Mi(O.type,O.key,O.props,null,w.mode,B),Ra(B,O),B.return=w,w=B)}return d(w);case _:e:{for(J=O.key;E!==null;){if(E.key===J)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){l(w,E.sibling),B=r(E,O.children||[]),B.return=w,w=B;break e}else{l(w,E);break}else t(w,E);E=E.sibling}B=Rs(O,w.mode,B),B.return=w,w=B}return d(w);case ue:return O=nl(O),_e(w,E,O,B)}if(Nt(O))return $(w,E,O,B);if(tt(O)){if(J=tt(O),typeof J!="function")throw Error(s(150));return O=J.call(O),I(w,E,O,B)}if(typeof O.then=="function")return _e(w,E,Di(O),B);if(O.$$typeof===G)return _e(w,E,wi(w,O),B);Ni(w,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(l(w,E.sibling),B=r(E,O),B.return=w,w=B):(l(w,E),B=Cs(O,w.mode,B),B.return=w,w=B),d(w)):l(w,E)}return function(w,E,O,B){try{Ca=0;var J=_e(w,E,O,B);return Nl=null,J}catch(K){if(K===Dl||K===Oi)throw K;var me=gt(29,K,null,w.mode);return me.lanes=B,me.return=w,me}finally{}}}var al=pf(!0),vf=pf(!1),bn=!1;function Ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Us(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 En(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _n(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ve&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=_i(e),Wc(e,null,l),t}return Ei(e,a,t,l),_i(e)}function ba(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,sc(e,l)}}function Hs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var r=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var d={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?r=c=d:c=c.next=d,l=l.next}while(l!==null);c===null?r=c=t:c=c.next=t}else r=c=t;l={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var js=!1;function Ea(){if(js){var e=Al;if(e!==null)throw e}}function _a(e,t,l,a){js=!1;var r=e.updateQueue;bn=!1;var c=r.firstBaseUpdate,d=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var b=v,A=b.next;b.next=null,d===null?c=A:d.next=A,d=b;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==d&&(v===null?V.firstBaseUpdate=A:v.next=A,V.lastBaseUpdate=b))}if(c!==null){var q=r.baseState;d=0,V=A=b=null,v=c;do{var D=v.lane&-536870913,H=D!==v.lane;if(H?(fe&D)===D:(a&D)===D){D!==0&&D===Ol&&(js=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var $=e,I=v;D=t;var _e=l;switch(I.tag){case 1:if($=I.payload,typeof $=="function"){q=$.call(_e,q,D);break e}q=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=I.payload,D=typeof $=="function"?$.call(_e,q,D):$,D==null)break e;q=R({},q,D);break e;case 2:bn=!0}}D=v.callback,D!==null&&(e.flags|=64,H&&(e.flags|=8192),H=r.callbacks,H===null?r.callbacks=[D]:H.push(D))}else H={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(A=V=H,b=q):V=V.next=H,d|=D;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;H=v,v=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);V===null&&(b=q),r.baseState=b,r.firstBaseUpdate=A,r.lastBaseUpdate=V,c===null&&(r.shared.lanes=0),zn|=d,e.lanes=d,e.memoizedState=q}}function yf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Sf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yf(l[e],t)}var Ul=M(null),Ui=M(0);function Cf(e,t){e=on,Y(Ui,e),Y(Ul,t),on=e|t.baseLanes}function Vs(){Y(Ui,on),Y(Ul,Ul.current)}function Ls(){on=Ui.current,F(Ul),F(Ui)}var mt=M(null),zt=null;function Mn(e){var t=e.alternate;Y(je,je.current&1),Y(mt,e),zt===null&&(t===null||Ul.current!==null||t.memoizedState!==null)&&(zt=e)}function Bs(e){Y(je,je.current),Y(mt,e),zt===null&&(zt=e)}function Rf(e){e.tag===22?(Y(je,je.current),Y(mt,e),zt===null&&(zt=e)):Tn()}function Tn(){Y(je,je.current),Y(mt,mt.current)}function pt(e){F(mt),zt===e&&(zt=null),F(je)}var je=M(0);function Hi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||$r(l)||Xr(l)))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 en=0,ae=null,be=null,Be=null,ji=!1,Hl=!1,il=!1,Vi=0,Ma=0,jl=null,Hp=0;function De(){throw Error(s(321))}function qs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ht(e[l],t[l]))return!1;return!0}function Fs(e,t,l,a,r,c){return en=c,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?ad:nr,il=!1,c=l(a,r),il=!1,Hl&&(c=Ef(t,l,a,r)),bf(e),c}function bf(e){L.H=wa;var t=be!==null&&be.next!==null;if(en=0,Be=be=ae=null,ji=!1,Ma=0,jl=null,t)throw Error(s(300));e===null||qe||(e=e.dependencies,e!==null&&xi(e)&&(qe=!0))}function Ef(e,t,l,a){ae=e;var r=0;do{if(Hl&&(jl=null),Ma=0,Hl=!1,25<=r)throw Error(s(301));if(r+=1,Be=be=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=id,c=t(l,a)}while(Hl);return c}function jp(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?Ta(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(ae.flags|=1024),t}function Gs(){var e=Vi!==0;return Vi=0,e}function Qs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ys(e){if(ji){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ji=!1}en=0,Be=be=ae=null,Hl=!1,Ma=Vi=0,jl=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 Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ta(e){var t=Ma;return Ma+=1,jl===null&&(jl=[]),e=hf(jl,e,t),t=ae,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?ad:nr),e}function Bi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ta(e);if(e.$$typeof===G)return Ke(e)}throw Error(s(438,String(e)))}function $s(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.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}),l===null&&(l=Li(),ae.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Me;return t.index++,l}function tn(e,t){return typeof t=="function"?t(e):t}function qi(e){var t=Ve();return Xs(t,be,e)}function Xs(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var r=e.baseQueue,c=a.pending;if(c!==null){if(r!==null){var d=r.next;r.next=c.next,c.next=d}t.baseQueue=r=c,a.pending=null}if(c=e.baseState,r===null)e.memoizedState=c;else{t=r.next;var v=d=null,b=null,A=t,V=!1;do{var q=A.lane&-536870913;if(q!==A.lane?(fe&q)===q:(en&q)===q){var D=A.revertLane;if(D===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),q===Ol&&(V=!0);else if((en&D)===D){A=A.next,D===Ol&&(V=!0);continue}else q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(v=b=q,d=c):b=b.next=q,ae.lanes|=D,zn|=D;q=A.action,il&&l(c,q),c=A.hasEagerState?A.eagerState:l(c,q)}else D={lane:q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(v=b=D,d=c):b=b.next=D,ae.lanes|=q,zn|=q;A=A.next}while(A!==null&&A!==t);if(b===null?d=c:b.next=v,!ht(c,e.memoizedState)&&(qe=!0,V&&(l=Al,l!==null)))throw l;e.memoizedState=c,e.baseState=d,e.baseQueue=b,a.lastRenderedState=c}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ks(e){var t=Ve(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,r=l.pending,c=t.memoizedState;if(r!==null){l.pending=null;var d=r=r.next;do c=e(c,d.action),d=d.next;while(d!==r);ht(c,t.memoizedState)||(qe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,a]}function _f(e,t,l){var a=ae,r=Ve(),c=he;if(c){if(l===void 0)throw Error(s(407));l=l()}else l=t();var d=!ht((be||r).memoizedState,l);if(d&&(r.memoizedState=l,qe=!0),r=r.queue,Ps(xf.bind(null,a,r,e),[e]),r.getSnapshot!==t||d||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,Vl(9,{destroy:void 0},Tf.bind(null,a,r,l,t),null),xe===null)throw Error(s(349));c||(en&127)!==0||Mf(a,t,l)}return l}function Mf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=Li(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Tf(e,t,l,a){t.value=l,t.getSnapshot=a,wf(t)&&zf(e)}function xf(e,t,l){return l(function(){wf(t)&&zf(e)})}function wf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function zf(e){var t=Pn(e,2);t!==null&&rt(t,e,2)}function Zs(e){var t=et();if(typeof e=="function"){var l=e;if(e=l(),il){mn(!0);try{l()}finally{mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:e},t}function Of(e,t,l,a){return e.baseState=l,Xs(e,be,typeof a=="function"?a:tn)}function Vp(e,t,l,a,r){if(Qi(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};L.T!==null?l(!0):c.isTransition=!1,a(c),l=t.pending,l===null?(c.next=t.pending=c,Af(t,c)):(c.next=l.next,t.pending=l.next=c)}}function Af(e,t){var l=t.action,a=t.payload,r=e.state;if(t.isTransition){var c=L.T,d={};L.T=d;try{var v=l(r,a),b=L.S;b!==null&&b(d,v),Df(e,t,v)}catch(A){Js(e,t,A)}finally{c!==null&&d.types!==null&&(c.types=d.types),L.T=c}}else try{c=l(r,a),Df(e,t,c)}catch(A){Js(e,t,A)}}function Df(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Nf(e,t,a)},function(a){return Js(e,t,a)}):Nf(e,t,l)}function Nf(e,t,l){t.status="fulfilled",t.value=l,Uf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Af(e,l)))}function Js(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Uf(t),t=t.next;while(t!==a)}e.action=null}function Uf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Hf(e,t){return t}function jf(e,t){if(he){var l=xe.formState;if(l!==null){e:{var a=ae;if(he){if(we){t:{for(var r=we,c=wt;r.nodeType!==8;){if(!c){r=null;break t}if(r=Ot(r.nextSibling),r===null){r=null;break t}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){we=Ot(r.nextSibling),a=r.data==="F!";break e}}Cn(a)}a=!1}a&&(t=l[0])}}return l=et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hf,lastRenderedState:t},l.queue=a,l=td.bind(null,ae,a),a.dispatch=l,a=Zs(!1),c=tr.bind(null,ae,!1,a.queue),a=et(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,l=Vp.bind(null,ae,r,c,l),r.dispatch=l,a.memoizedState=e,[t,l,!1]}function Vf(e){var t=Ve();return Lf(t,be,e)}function Lf(e,t,l){if(t=Xs(e,t,Hf)[0],e=qi(tn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ta(t)}catch(d){throw d===Dl?Oi:d}else a=t;t=Ve();var r=t.queue,c=r.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Vl(9,{destroy:void 0},Lp.bind(null,r,l),null)),[a,c,e]}function Lp(e,t){e.action=t}function Bf(e){var t=Ve(),l=be;if(l!==null)return Lf(t,l,e);Ve(),t=t.memoizedState,l=Ve();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Vl(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=Li(),ae.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function qf(){return Ve().memoizedState}function Fi(e,t,l,a){var r=et();ae.flags|=e,r.memoizedState=Vl(1|t,{destroy:void 0},l,a===void 0?null:a)}function Gi(e,t,l,a){var r=Ve();a=a===void 0?null:a;var c=r.memoizedState.inst;be!==null&&a!==null&&qs(a,be.memoizedState.deps)?r.memoizedState=Vl(t,c,l,a):(ae.flags|=e,r.memoizedState=Vl(1|t,c,l,a))}function Ff(e,t){Fi(8390656,8,e,t)}function Ps(e,t){Gi(2048,8,e,t)}function Bp(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=Li(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Gf(e){var t=Ve().memoizedState;return Bp({ref:t,nextImpl:e}),function(){if((ve&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Qf(e,t){return Gi(4,2,e,t)}function Yf(e,t){return Gi(4,4,e,t)}function $f(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xf(e,t,l){l=l!=null?l.concat([e]):null,Gi(4,4,$f.bind(null,t,e),l)}function ks(){}function Kf(e,t){var l=Ve();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&qs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Zf(e,t){var l=Ve();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&qs(t,a[1]))return a[0];if(a=e(),il){mn(!0);try{e()}finally{mn(!1)}}return l.memoizedState=[a,t],a}function Is(e,t,l){return l===void 0||(en&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jd(),ae.lanes|=e,zn|=e,l)}function Jf(e,t,l,a){return ht(l,t)?l:Ul.current!==null?(e=Is(e,l,a),ht(e,t)||(qe=!0),e):(en&42)===0||(en&1073741824)!==0&&(fe&261930)===0?(qe=!0,e.memoizedState=l):(e=Jd(),ae.lanes|=e,zn|=e,t)}function Pf(e,t,l,a,r){var c=Q.p;Q.p=c!==0&&8>c?c:8;var d=L.T,v={};L.T=v,tr(e,!1,t,l);try{var b=r(),A=L.S;if(A!==null&&A(v,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var V=Up(b,a);xa(e,t,V,St(e))}else xa(e,t,a,St(e))}catch(q){xa(e,t,{then:function(){},status:"rejected",reason:q},St())}finally{Q.p=c,d!==null&&v.types!==null&&(d.types=v.types),L.T=d}}function qp(){}function Ws(e,t,l,a){if(e.tag!==5)throw Error(s(476));var r=kf(e).queue;Pf(e,r,t,te,l===null?qp:function(){return If(e),l(a)})}function kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function If(e){var t=kf(e);t.next===null&&(t=e.alternate.memoizedState),xa(e,t.next.queue,{},St())}function er(){return Ke(Ya)}function Wf(){return Ve().memoizedState}function ed(){return Ve().memoizedState}function Fp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=St();e=En(l);var a=_n(t,e,l);a!==null&&(rt(a,t,l),ba(a,t,l)),t={cache:zs()},e.payload=t;return}t=t.return}}function Gp(e,t,l){var a=St();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qi(e)?nd(t,l):(l=ys(e,t,l,a),l!==null&&(rt(l,e,a),ld(l,t,a)))}function td(e,t,l){var a=St();xa(e,t,l,a)}function xa(e,t,l,a){var r={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Qi(e))nd(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,v=c(d,l);if(r.hasEagerState=!0,r.eagerState=v,ht(v,d))return Ei(e,t,r,0),xe===null&&bi(),!1}catch{}finally{}if(l=ys(e,t,r,a),l!==null)return rt(l,e,a),ld(l,t,a),!0}return!1}function tr(e,t,l,a){if(a={lane:2,revertLane:Nr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Qi(e)){if(t)throw Error(s(479))}else t=ys(e,l,a,2),t!==null&&rt(t,e,2)}function Qi(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function nd(e,t){Hl=ji=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function ld(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,sc(e,l)}}var wa={readContext:Ke,use:Bi,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 ad={readContext:Ke,use:Bi,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:Ff,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Fi(4194308,4,$f.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){Fi(4,2,e,t)},useMemo:function(e,t){var l=et();t=t===void 0?null:t;var a=e();if(il){mn(!0);try{e()}finally{mn(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=et();if(l!==void 0){var r=l(t);if(il){mn(!0);try{l(t)}finally{mn(!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=Gp.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=Zs(e);var t=e.queue,l=td.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ks,useDeferredValue:function(e,t){var l=et();return Is(l,e,t)},useTransition:function(){var e=Zs(!1);return e=Pf.bind(null,ae,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,r=et();if(he){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),xe===null)throw Error(s(349));(fe&127)!==0||Mf(a,t,l)}r.memoizedState=l;var c={value:l,getSnapshot:t};return r.queue=c,Ff(xf.bind(null,a,c,e),[e]),a.flags|=2048,Vl(9,{destroy:void 0},Tf.bind(null,a,c,l,t),null),l},useId:function(){var e=et(),t=xe.identifierPrefix;if(he){var l=Gt,a=Ft;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Vi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Hp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:er,useFormState:jf,useActionState:jf,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=tr.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:$s,useCacheRefresh:function(){return et().memoizedState=Fp.bind(null,ae)},useEffectEvent:function(e){var t=et(),l={impl:e};return t.memoizedState=l,function(){if((ve&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},nr={readContext:Ke,use:Bi,useCallback:Kf,useContext:Ke,useEffect:Ps,useImperativeHandle:Xf,useInsertionEffect:Qf,useLayoutEffect:Yf,useMemo:Zf,useReducer:qi,useRef:qf,useState:function(){return qi(tn)},useDebugValue:ks,useDeferredValue:function(e,t){var l=Ve();return Jf(l,be.memoizedState,e,t)},useTransition:function(){var e=qi(tn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ta(e),t]},useSyncExternalStore:_f,useId:Wf,useHostTransitionStatus:er,useFormState:Vf,useActionState:Vf,useOptimistic:function(e,t){var l=Ve();return Of(l,be,e,t)},useMemoCache:$s,useCacheRefresh:ed};nr.useEffectEvent=Gf;var id={readContext:Ke,use:Bi,useCallback:Kf,useContext:Ke,useEffect:Ps,useImperativeHandle:Xf,useInsertionEffect:Qf,useLayoutEffect:Yf,useMemo:Zf,useReducer:Ks,useRef:qf,useState:function(){return Ks(tn)},useDebugValue:ks,useDeferredValue:function(e,t){var l=Ve();return be===null?Is(l,e,t):Jf(l,be.memoizedState,e,t)},useTransition:function(){var e=Ks(tn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ta(e),t]},useSyncExternalStore:_f,useId:Wf,useHostTransitionStatus:er,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var l=Ve();return be!==null?Of(l,be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:$s,useCacheRefresh:ed};id.useEffectEvent=Gf;function lr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:R({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ar={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=St(),r=En(a);r.payload=t,l!=null&&(r.callback=l),t=_n(e,r,a),t!==null&&(rt(t,e,a),ba(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=St(),r=En(a);r.tag=1,r.payload=t,l!=null&&(r.callback=l),t=_n(e,r,a),t!==null&&(rt(t,e,a),ba(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=St(),a=En(l);a.tag=2,t!=null&&(a.callback=t),t=_n(e,a,l),t!==null&&(rt(t,e,l),ba(t,e,l))}};function ud(e,t,l,a,r,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,d):t.prototype&&t.prototype.isPureReactComponent?!ga(l,a)||!ga(r,c):!0}function sd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&ar.enqueueReplaceState(t,t.state,null)}function ul(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=R({},l));for(var r in e)l[r]===void 0&&(l[r]=e[r])}return l}function rd(e){Ri(e)}function od(e){console.error(e)}function cd(e){Ri(e)}function Yi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function fd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ir(e,t,l){return l=En(l),l.tag=3,l.payload={element:null},l.callback=function(){Yi(e,t)},l}function dd(e){return e=En(e),e.tag=3,e}function hd(e,t,l,a){var r=l.type.getDerivedStateFromError;if(typeof r=="function"){var c=a.value;e.payload=function(){return r(c)},e.callback=function(){fd(t,l,a)}}var d=l.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){fd(t,l,a),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Qp(e,t,l,a,r){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&zl(t,l,r,!0),l=mt.current,l!==null){switch(l.tag){case 31:case 13:return zt===null?nu():l.alternate===null&&Ne===0&&(Ne=3),l.flags&=-257,l.flags|=65536,l.lanes=r,a===Ai?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Or(e,a,r)),!1;case 22:return l.flags|=65536,a===Ai?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Or(e,a,r)),!1}throw Error(s(435,l.tag))}return Or(e,a,r),nu(),!1}if(he)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==_s&&(e=Error(s(422),{cause:a}),va(Mt(e,l)))):(a!==_s&&(t=Error(s(423),{cause:a}),va(Mt(t,l))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Mt(a,l),r=ir(e.stateNode,a,r),Hs(e,r),Ne!==4&&(Ne=2)),!1;var c=Error(s(520),{cause:a});if(c=Mt(c,l),ja===null?ja=[c]:ja.push(c),Ne!==4&&(Ne=2),t===null)return!0;a=Mt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=r&-r,l.lanes|=e,e=ir(l.stateNode,a,e),Hs(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(On===null||!On.has(c))))return l.flags|=65536,r&=-r,l.lanes|=r,r=dd(r),hd(r,e,l,a),Hs(l,r),!1}l=l.return}while(l!==null);return!1}var ur=Error(s(461)),qe=!1;function Ze(e,t,l,a){t.child=e===null?vf(t,null,l,a):al(t,e.child,l,a)}function gd(e,t,l,a,r){l=l.render;var c=t.ref;if("ref"in a){var d={};for(var v in a)v!=="ref"&&(d[v]=a[v])}else d=a;return el(t),a=Fs(e,t,l,d,c,r),v=Gs(),e!==null&&!qe?(Qs(e,t,r),nn(e,t,r)):(he&&v&&bs(t),t.flags|=1,Ze(e,t,a,r),t.child)}function md(e,t,l,a,r){if(e===null){var c=l.type;return typeof c=="function"&&!Ss(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,pd(e,t,c,a,r)):(e=Mi(l.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!gr(e,r)){var d=c.memoizedProps;if(l=l.compare,l=l!==null?l:ga,l(d,a)&&e.ref===t.ref)return nn(e,t,r)}return t.flags|=1,e=Pt(c,a),e.ref=t.ref,e.return=t,t.child=e}function pd(e,t,l,a,r){if(e!==null){var c=e.memoizedProps;if(ga(c,a)&&e.ref===t.ref)if(qe=!1,t.pendingProps=a=c,gr(e,r))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,nn(e,t,r)}return sr(e,t,l,a,r)}function vd(e,t,l,a){var r=a.children,c=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(c=c!==null?c.baseLanes|l:l,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~c}else a=0,t.child=null;return yd(e,t,c,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zi(t,c!==null?c.cachePool:null),c!==null?Cf(t,c):Vs(),Rf(t);else return a=t.lanes=536870912,yd(e,t,c!==null?c.baseLanes|l:l,l,a)}else c!==null?(zi(t,c.cachePool),Cf(t,c),Tn(),t.memoizedState=null):(e!==null&&zi(t,null),Vs(),Tn());return Ze(e,t,r,l),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 yd(e,t,l,a,r){var c=As();return c=c===null?null:{parent:Le._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&zi(t,null),Vs(),Rf(t),e!==null&&zl(e,t,a,!0),t.childLanes=r,null}function $i(e,t){return t=Ki({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Sd(e,t,l){return al(t,e.child,null,l),e=$i(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function Yp(e,t,l){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(he){if(a.mode==="hidden")return e=$i(t,a),t.lanes=536870912,za(null,e);if(Bs(t),(e=we)?(e=Ah(e,wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yn!==null?{id:Ft,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=tf(e),l.return=t,t.child=l,Xe=t,we=null)):e=null,e===null)throw Cn(t);return t.lanes=536870912,null}return $i(t,a)}var c=e.memoizedState;if(c!==null){var d=c.dehydrated;if(Bs(t),r)if(t.flags&256)t.flags&=-257,t=Sd(e,t,l);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,l,!1),r=(l&e.childLanes)!==0,qe||r){if(a=xe,a!==null&&(d=rc(a,l),d!==0&&d!==c.retryLane))throw c.retryLane=d,Pn(e,d),rt(a,e,d),ur;nu(),t=Sd(e,t,l)}else e=c.treeContext,we=Ot(d.nextSibling),Xe=t,he=!0,Sn=null,wt=!1,e!==null&&af(t,e),t=$i(t,a),t.flags|=4096;return t}return e=Pt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Xi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function sr(e,t,l,a,r){return el(t),l=Fs(e,t,l,a,void 0,r),a=Gs(),e!==null&&!qe?(Qs(e,t,r),nn(e,t,r)):(he&&a&&bs(t),t.flags|=1,Ze(e,t,l,r),t.child)}function Cd(e,t,l,a,r,c){return el(t),t.updateQueue=null,l=Ef(t,a,l,r),bf(e),a=Gs(),e!==null&&!qe?(Qs(e,t,c),nn(e,t,c)):(he&&a&&bs(t),t.flags|=1,Ze(e,t,l,c),t.child)}function Rd(e,t,l,a,r){if(el(t),t.stateNode===null){var c=Ml,d=l.contextType;typeof d=="object"&&d!==null&&(c=Ke(d)),c=new l(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ar,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Ns(t),d=l.contextType,c.context=typeof d=="object"&&d!==null?Ke(d):Ml,c.state=t.memoizedState,d=l.getDerivedStateFromProps,typeof d=="function"&&(lr(t,l,d,a),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&ar.enqueueReplaceState(c,c.state,null),_a(t,a,c,r),Ea(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,b=ul(l,v);c.props=b;var A=c.context,V=l.contextType;d=Ml,typeof V=="object"&&V!==null&&(d=Ke(V));var q=l.getDerivedStateFromProps;V=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||A!==d)&&sd(t,c,a,d),bn=!1;var D=t.memoizedState;c.state=D,_a(t,a,c,r),Ea(),A=t.memoizedState,v||D!==A||bn?(typeof q=="function"&&(lr(t,l,q,a),A=t.memoizedState),(b=bn||ud(t,l,b,a,D,A,d))?(V||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),c.props=a,c.state=A,c.context=d,a=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Us(e,t),d=t.memoizedProps,V=ul(l,d),c.props=V,q=t.pendingProps,D=c.context,A=l.contextType,b=Ml,typeof A=="object"&&A!==null&&(b=Ke(A)),v=l.getDerivedStateFromProps,(A=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==q||D!==b)&&sd(t,c,a,b),bn=!1,D=t.memoizedState,c.state=D,_a(t,a,c,r),Ea();var H=t.memoizedState;d!==q||D!==H||bn||e!==null&&e.dependencies!==null&&xi(e.dependencies)?(typeof v=="function"&&(lr(t,l,v,a),H=t.memoizedState),(V=bn||ud(t,l,V,a,D,H,b)||e!==null&&e.dependencies!==null&&xi(e.dependencies))?(A||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,H,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,H,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=H),c.props=a,c.state=H,c.context=b,a=V):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Xi(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=al(t,e.child,null,r),t.child=al(t,null,l,r)):Ze(e,t,l,r),t.memoizedState=c.state,e=t.child):e=nn(e,t,r),e}function bd(e,t,l,a){return In(),t.flags|=256,Ze(e,t,l,a),t.child}var rr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function or(e){return{baseLanes:e,cachePool:ff()}}function cr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=yt),e}function Ed(e,t,l){var a=t.pendingProps,r=!1,c=(t.flags&128)!==0,d;if((d=c)||(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(he){if(r?Mn(t):Tn(),(e=we)?(e=Ah(e,wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yn!==null?{id:Ft,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=tf(e),l.return=t,t.child=l,Xe=t,we=null)):e=null,e===null)throw Cn(t);return Xr(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,r?(Tn(),r=t.mode,v=Ki({mode:"hidden",children:v},r),a=kn(a,r,l,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=or(l),a.childLanes=cr(e,d,l),t.memoizedState=rr,za(null,a)):(Mn(t),fr(t,v))}var b=e.memoizedState;if(b!==null&&(v=b.dehydrated,v!==null)){if(c)t.flags&256?(Mn(t),t.flags&=-257,t=dr(e,t,l)):t.memoizedState!==null?(Tn(),t.child=e.child,t.flags|=128,t=null):(Tn(),v=a.fallback,r=t.mode,a=Ki({mode:"visible",children:a.children},r),v=kn(v,r,l,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,al(t,e.child,null,l),a=t.child,a.memoizedState=or(l),a.childLanes=cr(e,d,l),t.memoizedState=rr,t=za(null,a));else if(Mn(t),Xr(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var A=d.dgst;d=A,a=Error(s(419)),a.stack="",a.digest=d,va({value:a,source:null,stack:null}),t=dr(e,t,l)}else if(qe||zl(e,t,l,!1),d=(l&e.childLanes)!==0,qe||d){if(d=xe,d!==null&&(a=rc(d,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Pn(e,a),rt(d,e,a),ur;$r(v)||nu(),t=dr(e,t,l)}else $r(v)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,we=Ot(v.nextSibling),Xe=t,he=!0,Sn=null,wt=!1,e!==null&&af(t,e),t=fr(t,a.children),t.flags|=4096);return t}return r?(Tn(),v=a.fallback,r=t.mode,b=e.child,A=b.sibling,a=Pt(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,A!==null?v=Pt(A,v):(v=kn(v,r,l,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=or(l):(r=v.cachePool,r!==null?(b=Le._currentValue,r=r.parent!==b?{parent:b,pool:b}:r):r=ff(),v={baseLanes:v.baseLanes|l,cachePool:r}),a.memoizedState=v,a.childLanes=cr(e,d,l),t.memoizedState=rr,za(e.child,a)):(Mn(t),l=e.child,e=l.sibling,l=Pt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=l,t.memoizedState=null,l)}function fr(e,t){return t=Ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ki(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function dr(e,t,l){return al(t,e.child,null,l),e=fr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _d(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),xs(e.return,t,l)}function hr(e,t,l,a,r,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:r,treeForkCount:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=l,d.tailMode=r,d.treeForkCount=c)}function Md(e,t,l){var a=t.pendingProps,r=a.revealOrder,c=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),Ze(e,t,a,l),a=he?pa:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_d(e,l,t);else if(e.tag===19)_d(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(l=t.child,r=null;l!==null;)e=l.alternate,e!==null&&Hi(e)===null&&(r=l),l=l.sibling;l=r,l===null?(r=t.child,t.child=null):(r=l.sibling,l.sibling=null),hr(t,!1,r,l,c,a);break;case"backwards":case"unstable_legacy-backwards":for(l=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=l,l=r,r=e}hr(t,!0,l,null,c,a);break;case"together":hr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function nn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(zl(e,t,l,!1),(l&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,l=Pt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Pt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function gr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xi(e)))}function $p(e,t,l){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),Rn(t,Le,e.memoizedState.cache),In();break;case 27:case 5:ta(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,Bs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Mn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Ed(e,t,l):(Mn(t),e=nn(e,t,l),e!==null?e.sibling:null);Mn(t);break;case 19:var r=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(zl(e,t,l,!1),a=(l&t.childLanes)!==0),r){if(a)return Md(e,t,l);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,vd(e,t,l,t.pendingProps);case 24:Rn(t,Le,e.memoizedState.cache)}return nn(e,t,l)}function Td(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!gr(e,l)&&(t.flags&128)===0)return qe=!1,$p(e,t,l);qe=(e.flags&131072)!==0}else qe=!1,he&&(t.flags&1048576)!==0&&lf(t,pa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=nl(t.elementType),t.type=e,typeof e=="function")Ss(e)?(a=ul(e,a),t.tag=1,t=Rd(null,t,e,a,l)):(t.tag=0,t=sr(null,t,e,a,l));else{if(e!=null){var r=e.$$typeof;if(r===P){t.tag=11,t=gd(null,t,e,a,l);break e}else if(r===Z){t.tag=14,t=md(null,t,e,a,l);break e}}throw t=Xt(e)||e,Error(s(306,t,""))}}return t;case 0:return sr(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,r=ul(a,t.pendingProps),Rd(e,t,a,r,l);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;r=c.element,Us(e,t),_a(t,a,null,l);var d=t.memoizedState;if(a=d.cache,Rn(t,Le,a),a!==c.cache&&ws(t,[Le],l,!0),Ea(),a=d.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=bd(e,t,a,l);break e}else if(a!==r){r=Mt(Error(s(424)),t),va(r),t=bd(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(we=Ot(e.firstChild),Xe=t,he=!0,Sn=null,wt=!0,l=vf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(In(),a===r){t=nn(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Xi(e,t),e===null?(l=Vh(t.type,null,t.pendingProps,null))?t.memoizedState=l:he||(l=t.type,e=t.pendingProps,a=ou(se.current).createElement(l),a[$e]=t,a[nt]=e,Je(a,l,e),Qe(a),t.stateNode=a):t.memoizedState=Vh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ta(t),e===null&&he&&(a=t.stateNode=Uh(t.type,t.pendingProps,se.current),Xe=t,wt=!0,r=we,Un(t.type)?(Kr=r,we=Ot(a.firstChild)):we=r),Ze(e,t,t.pendingProps.children,l),Xi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&he&&((r=a=we)&&(a=Rv(a,t.type,t.pendingProps,wt),a!==null?(t.stateNode=a,Xe=t,we=Ot(a.firstChild),wt=!1,r=!0):r=!1),r||Cn(t)),ta(t),r=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,a=c.children,Gr(r,c)?a=null:d!==null&&Gr(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Fs(e,t,jp,null,null,l),Ya._currentValue=r),Xi(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&he&&((e=l=we)&&(l=bv(l,t.pendingProps,wt),l!==null?(t.stateNode=l,Xe=t,we=null,e=!0):e=!1),e||Cn(t)),null;case 13:return Ed(e,t,l);case 4:return We(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=al(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return gd(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Rn(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,el(t),r=Ke(r),a=a(r),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return md(e,t,t.type,t.pendingProps,l);case 15:return pd(e,t,t.type,t.pendingProps,l);case 19:return Md(e,t,l);case 31:return Yp(e,t,l);case 22:return vd(e,t,l,t.pendingProps);case 24:return el(t),a=Ke(Le),e===null?(r=As(),r===null&&(r=xe,c=zs(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=l),r=c),t.memoizedState={parent:a,cache:r},Ns(t),Rn(t,Le,r)):((e.lanes&l)!==0&&(Us(e,t),_a(t,null,null,l),Ea()),r=e.memoizedState,c=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=c.cache,Rn(t,Le,a),a!==r.cache&&ws(t,[Le],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ln(e){e.flags|=4}function mr(e,t,l,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(Wd())e.flags|=8192;else throw ll=Ai,Ds}else e.flags&=-16777217}function xd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gh(t))if(Wd())e.flags|=8192;else throw ll=Ai,Ds}function Zi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ic():536870912,e.lanes|=t,Fl|=t)}function Oa(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var r=e.child;r!==null;)l|=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;)l|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Xp(e,t,l){var a=t.pendingProps;switch(Es(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 l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(Le),He(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(wl(t)?ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ms())),ze(t),null;case 26:var r=t.type,c=t.memoizedState;return e===null?(ln(t),c!==null?(ze(t),xd(t,c)):(ze(t),mr(t,r,null,a,l))):c?c!==e.memoizedState?(ln(t),ze(t),xd(t,c)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ln(t),ze(t),mr(t,r,e,a,l)),null;case 27:if(ii(t),l=se.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}e=X.current,wl(t)?uf(t):(e=Uh(r,a,l),t.stateNode=e,ln(t))}return ze(t),null;case 5:if(ii(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}if(c=X.current,wl(t))uf(t);else{var d=ou(se.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}c[$e]=t,c[nt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.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=c;e:switch(Je(c,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&&ln(t)}}return ze(t),mr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=se.current,wl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,r=Xe,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[$e]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Eh(e.nodeValue,l)),e||Cn(t,!0)}else e=ou(e).createTextNode(a),e[$e]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=wl(t),l!==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 In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=Ms(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),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 In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),r=!1}else r=Ms(),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=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==r&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Zi(t,t.updateQueue),ze(t),null);case 4:return He(),e===null&&Vr(t.stateNode.containerInfo),ze(t),null;case 10:return Wt(t.type),ze(t),null;case 19:if(F(je),a=t.memoizedState,a===null)return ze(t),null;if(r=(t.flags&128)!==0,c=a.rendering,c===null)if(r)Oa(a,!1);else{if(Ne!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Hi(e),c!==null){for(t.flags|=128,Oa(a,!1),e=c.updateQueue,t.updateQueue=e,Zi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)ef(l,e),l=l.sibling;return Y(je,je.current&1|2),he&&kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ct()>Wi&&(t.flags|=128,r=!0,Oa(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hi(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Zi(t,e),Oa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!he)return ze(t),null}else 2*ct()-a.renderingStartTime>Wi&&l!==536870912&&(t.flags|=128,r=!0,Oa(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ct(),e.sibling=null,l=je.current,Y(je,r?l&1|2:l&1),he&&kt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return pt(t),Ls(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&Zi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&F(tl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(Le),ze(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Kp(e,t){switch(Es(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(Le),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ii(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(s(340));In()}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));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(je),null;case 4:return He(),null;case 10:return Wt(t.type),null;case 22:case 23:return pt(t),Ls(),e!==null&&F(tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(Le),null;case 25:return null;default:return null}}function wd(e,t){switch(Es(t),t.tag){case 3:Wt(Le),He();break;case 26:case 27:case 5:ii(t);break;case 4:He();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:F(je);break;case 10:Wt(t.type);break;case 22:case 23:pt(t),Ls(),e!==null&&F(tl);break;case 24:Wt(Le)}}function Aa(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var r=a.next;l=r;do{if((l.tag&e)===e){a=void 0;var c=l.create,d=l.inst;a=c(),d.destroy=a}l=l.next}while(l!==r)}}catch(v){Ce(t,t.return,v)}}function xn(e,t,l){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var c=r.next;a=c;do{if((a.tag&e)===e){var d=a.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,r=t;var b=l,A=v;try{A()}catch(V){Ce(r,b,V)}}}a=a.next}while(a!==c)}}catch(V){Ce(t,t.return,V)}}function zd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Sf(t,l)}catch(a){Ce(e,e.return,a)}}}function Od(e,t,l){l.props=ul(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ce(e,t,a)}}function Da(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(r){Ce(e,t,r)}}function Qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(r){Ce(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(r){Ce(e,t,r)}else l.current=null}function Ad(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(r){Ce(e,e.return,r)}}function pr(e,t,l){try{var a=e.stateNode;mv(a,e.type,l,t),a[nt]=t}catch(r){Ce(e,e.return,r)}}function Dd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Un(e.type)||e.tag===4}function vr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dd(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&&Un(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 yr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Zt));else if(a!==4&&(a===27&&Un(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(yr(e,t,l),e=e.sibling;e!==null;)yr(e,t,l),e=e.sibling}function Ji(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Un(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ji(e,t,l),e=e.sibling;e!==null;)Ji(e,t,l),e=e.sibling}function Nd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Je(t,a,l),t[$e]=e,t[nt]=l}catch(c){Ce(e,e.return,c)}}var an=!1,Fe=!1,Sr=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Zp(e,t){if(e=e.containerInfo,qr=pu,e=$c(e),ds(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var r=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var d=0,v=-1,b=-1,A=0,V=0,q=e,D=null;t:for(;;){for(var H;q!==l||r!==0&&q.nodeType!==3||(v=d+r),q!==c||a!==0&&q.nodeType!==3||(b=d+a),q.nodeType===3&&(d+=q.nodeValue.length),(H=q.firstChild)!==null;)D=q,q=H;for(;;){if(q===e)break t;if(D===l&&++A===r&&(v=d),D===c&&++V===a&&(b=d),(H=q.nextSibling)!==null)break;q=D,D=q.parentNode}q=H}l=v===-1||b===-1?null:{start:v,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Fr={focusedElem:e,selectionRange:l},pu=!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,c=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(l=0;l<e.length;l++)r=e[l],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,r=c.memoizedProps,c=c.memoizedState,a=l.stateNode;try{var $=ul(l.type,r);e=a.getSnapshotBeforeUpdate($,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(I){Ce(l,l.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Yr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yr(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 Hd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:sn(e,l),a&4&&Aa(5,l);break;case 1:if(sn(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(d){Ce(l,l.return,d)}else{var r=ul(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ce(l,l.return,d)}}a&64&&zd(l),a&512&&Da(l,l.return);break;case 3:if(sn(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Sf(e,t)}catch(d){Ce(l,l.return,d)}}break;case 27:t===null&&a&4&&Nd(l);case 26:case 5:sn(e,l),t===null&&a&4&&Ad(l),a&512&&Da(l,l.return);break;case 12:sn(e,l);break;case 31:sn(e,l),a&4&&Ld(e,l);break;case 13:sn(e,l),a&4&&Bd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=lv.bind(null,l),Ev(e,l))));break;case 22:if(a=l.memoizedState!==null||an,!a){t=t!==null&&t.memoizedState!==null||Fe,r=an;var c=Fe;an=a,(Fe=t)&&!c?rn(e,l,(l.subtreeFlags&8772)!==0):sn(e,l),an=r,Fe=c}break;case 30:break;default:sn(e,l)}}function jd(e){var t=e.alternate;t!==null&&(e.alternate=null,jd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ju(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 Oe=null,at=!1;function un(e,t,l){for(l=l.child;l!==null;)Vd(e,t,l),l=l.sibling}function Vd(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(na,l)}catch{}switch(l.tag){case 26:Fe||Qt(l,t),un(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Fe||Qt(l,t);var a=Oe,r=at;Un(l.type)&&(Oe=l.stateNode,at=!1),un(e,t,l),Fa(l.stateNode),Oe=a,at=r;break;case 5:Fe||Qt(l,t);case 6:if(a=Oe,r=at,Oe=null,un(e,t,l),Oe=a,at=r,Oe!==null)if(at)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(l.stateNode)}catch(c){Ce(l,t,c)}else try{Oe.removeChild(l.stateNode)}catch(c){Ce(l,t,c)}break;case 18:Oe!==null&&(at?(e=Oe,zh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Jl(e)):zh(Oe,l.stateNode));break;case 4:a=Oe,r=at,Oe=l.stateNode.containerInfo,at=!0,un(e,t,l),Oe=a,at=r;break;case 0:case 11:case 14:case 15:xn(2,l,t),Fe||xn(4,l,t),un(e,t,l);break;case 1:Fe||(Qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Od(l,t,a)),un(e,t,l);break;case 21:un(e,t,l);break;case 22:Fe=(a=Fe)||l.memoizedState!==null,un(e,t,l),Fe=a;break;default:un(e,t,l)}}function Ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jl(e)}catch(l){Ce(t,t.return,l)}}}function Bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jl(e)}catch(l){Ce(t,t.return,l)}}function Jp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ud),t;default:throw Error(s(435,e.tag))}}function Pi(e,t){var l=Jp(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var r=av.bind(null,e,a);a.then(r,r)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var r=l[a],c=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Un(v.type)){Oe=v.stateNode,at=!1;break e}break;case 5:Oe=v.stateNode,at=!1;break e;case 3:case 4:Oe=v.stateNode.containerInfo,at=!0;break e}v=v.return}if(Oe===null)throw Error(s(160));Vd(c,d,r),Oe=null,at=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}var Ht=null;function qd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ut(e),a&4&&(xn(3,e,e.return),Aa(3,e),xn(5,e,e.return));break;case 1:it(t,e),ut(e),a&512&&(Fe||l===null||Qt(l,l.return)),a&64&&an&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var r=Ht;if(it(t,e),ut(e),a&512&&(Fe||l===null||Qt(l,l.return)),a&4){var c=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":c=r.getElementsByTagName("title")[0],(!c||c[ia]||c[$e]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(a),r.head.insertBefore(c,r.querySelector("head > title"))),Je(c,a,l),c[$e]=e,Qe(c),a=c;break e;case"link":var d=qh("link","href",r).get(a+(l.href||""));if(d){for(var v=0;v<d.length;v++)if(c=d[v],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){d.splice(v,1);break t}}c=r.createElement(a),Je(c,a,l),r.head.appendChild(c);break;case"meta":if(d=qh("meta","content",r).get(a+(l.content||""))){for(v=0;v<d.length;v++)if(c=d[v],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){d.splice(v,1);break t}}c=r.createElement(a),Je(c,a,l),r.head.appendChild(c);break;default:throw Error(s(468,a))}c[$e]=e,Qe(c),a=c}e.stateNode=a}else Fh(r,e.type,e.stateNode);else e.stateNode=Bh(r,a,e.memoizedProps);else c!==a?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,a===null?Fh(r,e.type,e.stateNode):Bh(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&pr(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ut(e),a&512&&(Fe||l===null||Qt(l,l.return)),l!==null&&a&4&&pr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ut(e),a&512&&(Fe||l===null||Qt(l,l.return)),e.flags&32){r=e.stateNode;try{yl(r,"")}catch($){Ce(e,e.return,$)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,pr(e,r,l!==null?l.memoizedProps:r)),a&1024&&(Sr=!0);break;case 6:if(it(t,e),ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch($){Ce(e,e.return,$)}}break;case 3:if(du=null,r=Ht,Ht=cu(t.containerInfo),it(t,e),Ht=r,ut(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Jl(t.containerInfo)}catch($){Ce(e,e.return,$)}Sr&&(Sr=!1,Fd(e));break;case 4:a=Ht,Ht=cu(e.stateNode.containerInfo),it(t,e),ut(e),Ht=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,Pi(e,a)));break;case 13:it(t,e),ut(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ii=ct()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Pi(e,a)));break;case 22:r=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,A=an,V=Fe;if(an=A||r,Fe=V||b,it(t,e),Fe=V,an=A,ut(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(l===null||b||an||Fe||sl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(c=b.stateNode,r)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=b.stateNode;var q=b.memoizedProps.style,D=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch($){Ce(b,b.return,$)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=r?"":b.memoizedProps}catch($){Ce(b,b.return,$)}}}else if(t.tag===18){if(l===null){b=t;try{var H=b.stateNode;r?Oh(H,!0):Oh(b.stateNode,!1)}catch($){Ce(b,b.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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Pi(e,l))));break;case 19:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Pi(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 l,a=e.return;a!==null;){if(Dd(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var r=l.stateNode,c=vr(e);Ji(e,c,r);break;case 5:var d=l.stateNode;l.flags&32&&(yl(d,""),l.flags&=-33);var v=vr(e);Ji(e,v,d);break;case 3:case 4:var b=l.stateNode.containerInfo,A=vr(e);yr(e,A,b);break;default:throw Error(s(161))}}catch(V){Ce(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hd(e,t.alternate,t),t=t.sibling}function sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xn(4,t,t.return),sl(t);break;case 1:Qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Od(t,t.return,l),sl(t);break;case 27:Fa(t.stateNode);case 26:case 5:Qt(t,t.return),sl(t);break;case 22:t.memoizedState===null&&sl(t);break;case 30:sl(t);break;default:sl(t)}e=e.sibling}}function rn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,c=t,d=c.flags;switch(c.tag){case 0:case 11:case 15:rn(r,c,l),Aa(4,c);break;case 1:if(rn(r,c,l),a=c,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(A){Ce(a,a.return,A)}if(a=c,r=a.updateQueue,r!==null){var v=a.stateNode;try{var b=r.shared.hiddenCallbacks;if(b!==null)for(r.shared.hiddenCallbacks=null,r=0;r<b.length;r++)yf(b[r],v)}catch(A){Ce(a,a.return,A)}}l&&d&64&&zd(c),Da(c,c.return);break;case 27:Nd(c);case 26:case 5:rn(r,c,l),l&&a===null&&d&4&&Ad(c),Da(c,c.return);break;case 12:rn(r,c,l);break;case 31:rn(r,c,l),l&&d&4&&Ld(r,c);break;case 13:rn(r,c,l),l&&d&4&&Bd(r,c);break;case 22:c.memoizedState===null&&rn(r,c,l),Da(c,c.return);break;case 30:break;default:rn(r,c,l)}t=t.sibling}}function Cr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ya(l))}function Rr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e))}function jt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gd(e,t,l,a),t=t.sibling}function Gd(e,t,l,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:jt(e,t,l,a),r&2048&&Aa(9,t);break;case 1:jt(e,t,l,a);break;case 3:jt(e,t,l,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e)));break;case 12:if(r&2048){jt(e,t,l,a),e=t.stateNode;try{var c=t.memoizedProps,d=c.id,v=c.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ce(t,t.return,b)}}else jt(e,t,l,a);break;case 31:jt(e,t,l,a);break;case 13:jt(e,t,l,a);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?c._visibility&2?jt(e,t,l,a):Na(e,t):c._visibility&2?jt(e,t,l,a):(c._visibility|=2,Ll(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Cr(d,t);break;case 24:jt(e,t,l,a),r&2048&&Rr(t.alternate,t);break;default:jt(e,t,l,a)}}function Ll(e,t,l,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,d=t,v=l,b=a,A=d.flags;switch(d.tag){case 0:case 11:case 15:Ll(c,d,v,b,r),Aa(8,d);break;case 23:break;case 22:var V=d.stateNode;d.memoizedState!==null?V._visibility&2?Ll(c,d,v,b,r):Na(c,d):(V._visibility|=2,Ll(c,d,v,b,r)),r&&A&2048&&Cr(d.alternate,d);break;case 24:Ll(c,d,v,b,r),r&&A&2048&&Rr(d.alternate,d);break;default:Ll(c,d,v,b,r)}t=t.sibling}}function Na(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,r=a.flags;switch(a.tag){case 22:Na(l,a),r&2048&&Cr(a.alternate,a);break;case 24:Na(l,a),r&2048&&Rr(a.alternate,a);break;default:Na(l,a)}t=t.sibling}}var Ua=8192;function Bl(e,t,l){if(e.subtreeFlags&Ua)for(e=e.child;e!==null;)Qd(e,t,l),e=e.sibling}function Qd(e,t,l){switch(e.tag){case 26:Bl(e,t,l),e.flags&Ua&&e.memoizedState!==null&&Hv(l,Ht,e.memoizedState,e.memoizedProps);break;case 5:Bl(e,t,l);break;case 3:case 4:var a=Ht;Ht=cu(e.stateNode.containerInfo),Bl(e,t,l),Ht=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ua,Ua=16777216,Bl(e,t,l),Ua=a):Bl(e,t,l));break;default:Bl(e,t,l)}}function Yd(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 l=0;l<t.length;l++){var a=t[l];Ye=a,Xd(a,e)}Yd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$d(e),e=e.sibling}function $d(e){switch(e.tag){case 0:case 11:case 15:Ha(e),e.flags&2048&&xn(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,ki(e)):Ha(e);break;default:Ha(e)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ye=a,Xd(a,e)}Yd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xn(8,t,t.return),ki(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ki(t));break;default:ki(t)}e=e.sibling}}function Xd(e,t){for(;Ye!==null;){var l=Ye;switch(l.tag){case 0:case 11:case 15:xn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ya(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ye=a;else e:for(l=e;Ye!==null;){a=Ye;var r=a.sibling,c=a.return;if(jd(a),a===l){Ye=null;break e}if(r!==null){r.return=c,Ye=r;break e}Ye=c}}}var Pp={getCacheForType:function(e){var t=Ke(Le),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ke(Le).controller.signal}},kp=typeof WeakMap=="function"?WeakMap:Map,ve=0,xe=null,re=null,fe=0,Se=0,vt=null,wn=!1,ql=!1,br=!1,on=0,Ne=0,zn=0,rl=0,Er=0,yt=0,Fl=0,ja=null,st=null,_r=!1,Ii=0,Kd=0,Wi=1/0,eu=null,On=null,Ge=0,An=null,Gl=null,cn=0,Mr=0,Tr=null,Zd=null,Va=0,xr=null;function St(){return(ve&2)!==0&&fe!==0?fe&-fe:L.T!==null?Nr():oc()}function Jd(){if(yt===0)if((fe&536870912)===0||he){var e=ri;ri<<=1,(ri&3932160)===0&&(ri=262144),yt=e}else yt=536870912;return e=mt.current,e!==null&&(e.flags|=32),yt}function rt(e,t,l){(e===xe&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(Ql(e,0),Dn(e,fe,yt,!1)),aa(e,l),((ve&2)===0||e!==xe)&&(e===xe&&((ve&2)===0&&(rl|=l),Ne===4&&Dn(e,fe,yt,!1)),Yt(e))}function Pd(e,t,l){if((ve&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||la(e,t),r=a?ev(e,t):zr(e,t,!0),c=a;do{if(r===0){ql&&!a&&Dn(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!Ip(l)){r=zr(e,t,!1),c=!1;continue}if(r===2){if(c=t,e.errorRecoveryDisabledLanes&c)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=ja;var b=v.current.memoizedState.isDehydrated;if(b&&(Ql(v,d).flags|=256),d=zr(v,d,!1),d!==2){if(br&&!b){v.errorRecoveryDisabledLanes|=c,rl|=c,r=4;break e}c=st,st=r,c!==null&&(st===null?st=c:st.push.apply(st,c))}r=d}if(c=!1,r!==2)continue}}if(r===1){Ql(e,0),Dn(e,t,0,!0);break}e:{switch(a=e,c=r,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Dn(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=Ii+300-ct(),10<r)){if(Dn(a,t,yt,!wn),ci(a,0,!0)!==0)break e;cn=t,a.timeoutHandle=xh(kd.bind(null,a,l,st,eu,_r,t,yt,rl,Fl,wn,c,"Throttled",-0,0),r);break e}kd(a,l,st,eu,_r,t,yt,rl,Fl,wn,c,null,-0,0)}}break}while(!0);Yt(e)}function kd(e,t,l,a,r,c,d,v,b,A,V,q,D,H){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},Qd(t,c,q);var $=(c&62914560)===c?Ii-ct():(c&4194048)===c?Kd-ct():0;if($=jv(q,$),$!==null){cn=c,e.cancelPendingCommit=$(ih.bind(null,e,t,c,l,a,r,d,v,b,V,q,null,D,H)),Dn(e,c,d,!A);return}}ih(e,t,c,l,a,r,d,v,b)}function Ip(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var r=l[a],c=r.getSnapshot;r=r.value;try{if(!ht(c(),r))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Dn(e,t,l,a){t&=~Er,t&=~rl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var c=31-dt(r),d=1<<c;a[c]=-1,r&=~d}l!==0&&uc(e,l,t)}function tu(){return(ve&6)===0?(La(0),!1):!0}function wr(){if(re!==null){if(Se===0)var e=re.return;else e=re,It=Wn=null,Ys(e),Nl=null,Ca=0,e=re;for(;e!==null;)wd(e.alternate,e),e=e.return;re=null}}function Ql(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,yv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cn=0,wr(),xe=e,re=l=Pt(e.current,null),fe=t,Se=0,vt=null,wn=!1,ql=la(e,t),br=!1,Fl=yt=Er=rl=zn=Ne=0,st=ja=null,_r=!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),c=1<<r;t|=e[r],a&=~c}return on=t,bi(),l}function Id(e,t){ae=null,L.H=wa,t===Dl||t===Oi?(t=gf(),Se=3):t===Ds?(t=gf(),Se=4):Se=t===ur?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,re===null&&(Ne=1,Yi(e,Mt(t,e.current)))}function Wd(){var e=mt.current;return e===null?!0:(fe&4194048)===fe?zt===null:(fe&62914560)===fe||(fe&536870912)!==0?e===zt:!1}function eh(){var e=L.H;return L.H=wa,e===null?wa:e}function th(){var e=L.A;return L.A=Pp,e}function nu(){Ne=4,wn||(fe&4194048)!==fe&&mt.current!==null||(ql=!0),(zn&134217727)===0&&(rl&134217727)===0||xe===null||Dn(xe,fe,yt,!1)}function zr(e,t,l){var a=ve;ve|=2;var r=eh(),c=th();(xe!==e||fe!==t)&&(eu=null,Ql(e,t)),t=!1;var d=Ne;e:do try{if(Se!==0&&re!==null){var v=re,b=vt;switch(Se){case 8:wr(),d=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var A=Se;if(Se=0,vt=null,Yl(e,v,b,A),l&&ql){d=0;break e}break;default:A=Se,Se=0,vt=null,Yl(e,v,b,A)}}Wp(),d=Ne;break}catch(V){Id(e,V)}while(!0);return t&&e.shellSuspendCounter++,It=Wn=null,ve=a,L.H=r,L.A=c,re===null&&(xe=null,fe=0,bi()),d}function Wp(){for(;re!==null;)nh(re)}function ev(e,t){var l=ve;ve|=2;var a=eh(),r=th();xe!==e||fe!==t?(eu=null,Wi=ct()+500,Ql(e,t)):ql=la(e,t);e:do try{if(Se!==0&&re!==null){t=re;var c=vt;t:switch(Se){case 1:Se=0,vt=null,Yl(e,t,c,1);break;case 2:case 9:if(df(c)){Se=0,vt=null,lh(t);break}t=function(){Se!==2&&Se!==9||xe!==e||(Se=7),Yt(e)},c.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:df(c)?(Se=0,vt=null,lh(t)):(Se=0,vt=null,Yl(e,t,c,7));break;case 5:var d=null;switch(re.tag){case 26:d=re.memoizedState;case 5:case 27:var v=re;if(d?Gh(d):v.stateNode.complete){Se=0,vt=null;var b=v.sibling;if(b!==null)re=b;else{var A=v.return;A!==null?(re=A,lu(A)):re=null}break t}}Se=0,vt=null,Yl(e,t,c,5);break;case 6:Se=0,vt=null,Yl(e,t,c,6);break;case 8:wr(),Ne=6;break e;default:throw Error(s(462))}}tv();break}catch(V){Id(e,V)}while(!0);return It=Wn=null,L.H=a,L.A=r,ve=l,re!==null?0:(xe=null,fe=0,bi(),Ne)}function tv(){for(;re!==null&&!_m();)nh(re)}function nh(e){var t=Td(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?lu(e):re=t}function lh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Cd(l,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=Cd(l,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:Ys(t);default:wd(l,t),t=re=ef(t,on),t=Td(l,t,on)}e.memoizedProps=e.pendingProps,t===null?lu(e):re=t}function Yl(e,t,l,a){It=Wn=null,Ys(t),Nl=null,Ca=0;var r=t.return;try{if(Qp(e,r,t,l,fe)){Ne=1,Yi(e,Mt(l,e.current)),re=null;return}}catch(c){if(r!==null)throw re=r,c;Ne=1,Yi(e,Mt(l,e.current)),re=null;return}t.flags&32768?(he||a===1?e=!0:ql||(fe&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))),ah(t,e)):lu(t)}function lu(e){var t=e;do{if((t.flags&32768)!==0){ah(t,wn);return}e=t.return;var l=Xp(t.alternate,t,on);if(l!==null){re=l;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);Ne===0&&(Ne=5)}function ah(e,t){do{var l=Kp(e.alternate,e);if(l!==null){l.flags&=32767,re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){re=e;return}re=e=l}while(e!==null);Ne=6,re=null}function ih(e,t,l,a,r,c,d,v,b){e.cancelPendingCommit=null;do au();while(Ge!==0);if((ve&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=vs,Um(e,l,c,d,v,b),e===xe&&(re=xe=null,fe=0),Gl=t,An=e,cn=l,Mr=c,Tr=r,Zd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,iv(ui,function(){return ch(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,r=Q.p,Q.p=2,d=ve,ve|=4;try{Zp(e,t,l)}finally{ve=d,Q.p=r,L.T=a}}Ge=1,uh(),sh(),rh()}}function uh(){if(Ge===1){Ge=0;var e=An,t=Gl,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var a=Q.p;Q.p=2;var r=ve;ve|=4;try{qd(t,e);var c=Fr,d=$c(e.containerInfo),v=c.focusedElem,b=c.selectionRange;if(d!==v&&v&&v.ownerDocument&&Yc(v.ownerDocument.documentElement,v)){if(b!==null&&ds(v)){var A=b.start,V=b.end;if(V===void 0&&(V=A),"selectionStart"in v)v.selectionStart=A,v.selectionEnd=Math.min(V,v.value.length);else{var q=v.ownerDocument||document,D=q&&q.defaultView||window;if(D.getSelection){var H=D.getSelection(),$=v.textContent.length,I=Math.min(b.start,$),_e=b.end===void 0?I:Math.min(b.end,$);!H.extend&&I>_e&&(d=_e,_e=I,I=d);var w=Qc(v,I),E=Qc(v,_e);if(w&&E&&(H.rangeCount!==1||H.anchorNode!==w.node||H.anchorOffset!==w.offset||H.focusNode!==E.node||H.focusOffset!==E.offset)){var O=q.createRange();O.setStart(w.node,w.offset),H.removeAllRanges(),I>_e?(H.addRange(O),H.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),H.addRange(O))}}}}for(q=[],H=v;H=H.parentNode;)H.nodeType===1&&q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var B=q[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}pu=!!qr,Fr=qr=null}finally{ve=r,Q.p=a,L.T=l}}e.current=t,Ge=2}}function sh(){if(Ge===2){Ge=0;var e=An,t=Gl,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var a=Q.p;Q.p=2;var r=ve;ve|=4;try{Hd(e,t.alternate,t)}finally{ve=r,Q.p=a,L.T=l}}Ge=3}}function rh(){if(Ge===4||Ge===3){Ge=0,Mm();var e=An,t=Gl,l=cn,a=Zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,Gl=An=null,oh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(On=null),Ku(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(na,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=L.T,r=Q.p,Q.p=2,L.T=null;try{for(var c=e.onRecoverableError,d=0;d<a.length;d++){var v=a[d];c(v.value,{componentStack:v.stack})}}finally{L.T=t,Q.p=r}}(cn&3)!==0&&au(),Yt(e),r=e.pendingLanes,(l&261930)!==0&&(r&42)!==0?e===xr?Va++:(Va=0,xr=e):Va=0,La(0)}}function oh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ya(t)))}function au(){return uh(),sh(),rh(),ch()}function ch(){if(Ge!==5)return!1;var e=An,t=Mr;Mr=0;var l=Ku(cn),a=L.T,r=Q.p;try{Q.p=32>l?32:l,L.T=null,l=Tr,Tr=null;var c=An,d=cn;if(Ge=0,Gl=An=null,cn=0,(ve&6)!==0)throw Error(s(331));var v=ve;if(ve|=4,$d(c.current),Gd(c,c.current,d,l),ve=v,La(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(na,c)}catch{}return!0}finally{Q.p=r,L.T=a,oh(e,t)}}function fh(e,t,l){t=Mt(l,t),t=ir(e.stateNode,t,2),e=_n(e,t,2),e!==null&&(aa(e,2),Yt(e))}function Ce(e,t,l){if(e.tag===3)fh(e,e,l);else for(;t!==null;){if(t.tag===3){fh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(On===null||!On.has(a))){e=Mt(l,e),l=dd(2),a=_n(t,l,2),a!==null&&(hd(l,a,t,e),aa(a,2),Yt(a));break}}t=t.return}}function Or(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new kp;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(l)||(br=!0,r.add(l),e=nv.bind(null,e,t,l),t.then(e,e))}function nv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,xe===e&&(fe&l)===l&&(Ne===4||Ne===3&&(fe&62914560)===fe&&300>ct()-Ii?(ve&2)===0&&Ql(e,0):Er|=l,Fl===fe&&(Fl=0)),Yt(e)}function dh(e,t){t===0&&(t=ic()),e=Pn(e,t),e!==null&&(aa(e,t),Yt(e))}function lv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),dh(e,l)}function av(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(l=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),dh(e,l)}function iv(e,t){return Qu(e,t)}var iu=null,$l=null,Ar=!1,uu=!1,Dr=!1,Nn=0;function Yt(e){e!==$l&&e.next===null&&($l===null?iu=$l=e:$l=$l.next=e),uu=!0,Ar||(Ar=!0,sv())}function La(e,t){if(!Dr&&uu){Dr=!0;do for(var l=!1,a=iu;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var c=0;else{var d=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-dt(42|e)+1)-1,c&=r&~(d&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,ph(a,c))}else c=fe,c=ci(a,a===xe?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||la(a,c)||(l=!0,ph(a,c));a=a.next}while(l);Dr=!1}}function uv(){hh()}function hh(){uu=Ar=!1;var e=0;Nn!==0&&vv()&&(e=Nn);for(var t=ct(),l=null,a=iu;a!==null;){var r=a.next,c=gh(a,t);c===0?(a.next=null,l===null?iu=r:l.next=r,r===null&&($l=l)):(l=a,(e!==0||(c&3)!==0)&&(uu=!0)),a=r}Ge!==0&&Ge!==5||La(e),Nn!==0&&(Nn=0)}function gh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-dt(c),v=1<<d,b=r[d];b===-1?((v&l)===0||(v&a)!==0)&&(r[d]=Nm(v,t)):b<=t&&(e.expiredLanes|=v),c&=~v}if(t=xe,l=fe,l=ci(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Yu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||la(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Yu(a),Ku(l)){case 2:case 8:l=lc;break;case 32:l=ui;break;case 268435456:l=ac;break;default:l=ui}return a=mh.bind(null,e),l=Qu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Yu(a),e.callbackPriority=2,e.callbackNode=null,2}function mh(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(au()&&e.callbackNode!==l)return null;var a=fe;return a=ci(e,e===xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Pd(e,a,t),gh(e,ct()),e.callbackNode!=null&&e.callbackNode===l?mh.bind(null,e):null)}function ph(e,t){if(au())return null;Pd(e,t,!0)}function sv(){Sv(function(){(ve&6)!==0?Qu(nc,uv):hh()})}function Nr(){if(Nn===0){var e=Ol;e===0&&(e=si,si<<=1,(si&261888)===0&&(si=256)),Nn=e}return Nn}function vh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gi(""+e)}function yh(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function rv(e,t,l,a,r){if(t==="submit"&&l&&l.stateNode===r){var c=vh((r[nt]||null).action),d=a.submitter;d&&(t=(t=d[nt]||null)?vh(t.formAction):d.getAttribute("formAction"),t!==null&&(c=t,d=null));var v=new yi("action","action",null,a,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nn!==0){var b=d?yh(r,d):new FormData(r);Ws(l,{pending:!0,data:b,method:r.method,action:c},null,b)}}else typeof c=="function"&&(v.preventDefault(),b=d?yh(r,d):new FormData(r),Ws(l,{pending:!0,data:b,method:r.method,action:c},c,b))},currentTarget:r}]})}}for(var Ur=0;Ur<ps.length;Ur++){var Hr=ps[Ur],ov=Hr.toLowerCase(),cv=Hr[0].toUpperCase()+Hr.slice(1);Ut(ov,"on"+cv)}Ut(Zc,"onAnimationEnd"),Ut(Jc,"onAnimationIteration"),Ut(Pc,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(Tp,"onTransitionRun"),Ut(xp,"onTransitionStart"),Ut(wp,"onTransitionCancel"),Ut(kc,"onTransitionEnd"),pl("onMouseEnter",["mouseout","mouseover"]),pl("onMouseLeave",["mouseout","mouseover"]),pl("onPointerEnter",["pointerout","pointerover"]),pl("onPointerLeave",["pointerout","pointerover"]),Xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ba="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(" "),fv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ba));function Sh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],r=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var d=a.length-1;0<=d;d--){var v=a[d],b=v.instance,A=v.currentTarget;if(v=v.listener,b!==c&&r.isPropagationStopped())break e;c=v,r.currentTarget=A;try{c(r)}catch(V){Ri(V)}r.currentTarget=null,c=b}else for(d=0;d<a.length;d++){if(v=a[d],b=v.instance,A=v.currentTarget,v=v.listener,b!==c&&r.isPropagationStopped())break e;c=v,r.currentTarget=A;try{c(r)}catch(V){Ri(V)}r.currentTarget=null,c=b}}}}function oe(e,t){var l=t[Zu];l===void 0&&(l=t[Zu]=new Set);var a=e+"__bubble";l.has(a)||(Ch(t,e,2,!1),l.add(a))}function jr(e,t,l){var a=0;t&&(a|=4),Ch(l,e,a,t)}var su="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[su]){e[su]=!0,dc.forEach(function(l){l!=="selectionchange"&&(fv.has(l)||jr(l,!1,e),jr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[su]||(t[su]=!0,jr("selectionchange",!1,t))}}function Ch(e,t,l,a){switch(Jh(t)){case 2:var r=Bv;break;case 8:r=qv;break;default:r=Ir}l=r.bind(null,t,l,e),r=void 0,!ls||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,l,{capture:!0,passive:r}):e.addEventListener(t,l,!0):r!==void 0?e.addEventListener(t,l,{passive:r}):e.addEventListener(t,l,!1)}function Lr(e,t,l,a,r){var c=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 b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;v!==null;){if(d=hl(v),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){a=c=d;continue e}v=v.parentNode}}a=a.return}_c(function(){var A=c,V=ts(l),q=[];e:{var D=Ic.get(e);if(D!==void 0){var H=yi,$=e;switch(e){case"keypress":if(pi(l)===0)break e;case"keydown":case"keyup":H=ap;break;case"focusin":$="focus",H=ss;break;case"focusout":$="blur",H=ss;break;case"beforeblur":case"afterblur":H=ss;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=xc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Xm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=sp;break;case Zc:case Jc:case Pc:H=Jm;break;case kc:H=op;break;case"scroll":case"scrollend":H=Ym;break;case"wheel":H=fp;break;case"copy":case"cut":case"paste":H=km;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=zc;break;case"toggle":case"beforetoggle":H=hp}var I=(t&4)!==0,_e=!I&&(e==="scroll"||e==="scrollend"),w=I?D!==null?D+"Capture":null:D;I=[];for(var E=A,O;E!==null;){var B=E;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||w===null||(B=sa(E,w),B!=null&&I.push(qa(E,B,O))),_e)break;E=E.return}0<I.length&&(D=new H(D,$,null,l,V),q.push({event:D,listeners:I}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",D&&l!==es&&($=l.relatedTarget||l.fromElement)&&(hl($)||$[dl]))break e;if((H||D)&&(D=V.window===V?V:(D=V.ownerDocument)?D.defaultView||D.parentWindow:window,H?($=l.relatedTarget||l.toElement,H=A,$=$?hl($):null,$!==null&&(_e=f($),I=$.tag,$!==_e||I!==5&&I!==27&&I!==6)&&($=null)):(H=null,$=A),H!==$)){if(I=xc,B="onMouseLeave",w="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(I=zc,B="onPointerLeave",w="onPointerEnter",E="pointer"),_e=H==null?D:ua(H),O=$==null?D:ua($),D=new I(B,E+"leave",H,l,V),D.target=_e,D.relatedTarget=O,B=null,hl(V)===A&&(I=new I(w,E+"enter",$,l,V),I.target=O,I.relatedTarget=_e,B=I),_e=B,H&&$)t:{for(I=dv,w=H,E=$,O=0,B=w;B;B=I(B))O++;B=0;for(var J=E;J;J=I(J))B++;for(;0<O-B;)w=I(w),O--;for(;0<B-O;)E=I(E),B--;for(;O--;){if(w===E||E!==null&&w===E.alternate){I=w;break t}w=I(w),E=I(E)}I=null}else I=null;H!==null&&Rh(q,D,H,I,!1),$!==null&&_e!==null&&Rh(q,_e,$,I,!0)}}e:{if(D=A?ua(A):window,H=D.nodeName&&D.nodeName.toLowerCase(),H==="select"||H==="input"&&D.type==="file")var me=Vc;else if(Hc(D))if(Lc)me=Ep;else{me=Rp;var K=Cp}else H=D.nodeName,!H||H.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?A&&Wu(A.elementType)&&(me=Vc):me=bp;if(me&&(me=me(e,A))){jc(q,me,l,V);break e}K&&K(e,D,A),e==="focusout"&&A&&D.type==="number"&&A.memoizedProps.value!=null&&Iu(D,"number",D.value)}switch(K=A?ua(A):window,e){case"focusin":(Hc(K)||K.contentEditable==="true")&&(bl=K,hs=A,ma=null);break;case"focusout":ma=hs=bl=null;break;case"mousedown":gs=!0;break;case"contextmenu":case"mouseup":case"dragend":gs=!1,Xc(q,l,V);break;case"selectionchange":if(Mp)break;case"keydown":case"keyup":Xc(q,l,V)}var ie;if(os)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Rl?Nc(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(Oc&&l.locale!=="ko"&&(Rl||de!=="onCompositionStart"?de==="onCompositionEnd"&&Rl&&(ie=Mc()):(vn=V,as="value"in vn?vn.value:vn.textContent,Rl=!0)),K=ru(A,de),0<K.length&&(de=new wc(de,e,null,l,V),q.push({event:de,listeners:K}),ie?de.data=ie:(ie=Uc(l),ie!==null&&(de.data=ie)))),(ie=mp?pp(e,l):vp(e,l))&&(de=ru(A,"onBeforeInput"),0<de.length&&(K=new wc("onBeforeInput","beforeinput",null,l,V),q.push({event:K,listeners:de}),K.data=ie)),rv(q,e,A,l,V)}Sh(q,t)})}function qa(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ru(e,t){for(var l=t+"Capture",a=[];e!==null;){var r=e,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=sa(e,l),r!=null&&a.unshift(qa(e,r,c)),r=sa(e,t),r!=null&&a.push(qa(e,r,c))),e.tag===3)return a;e=e.return}return[]}function dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rh(e,t,l,a,r){for(var c=t._reactName,d=[];l!==null&&l!==a;){var v=l,b=v.alternate,A=v.stateNode;if(v=v.tag,b!==null&&b===a)break;v!==5&&v!==26&&v!==27||A===null||(b=A,r?(A=sa(l,c),A!=null&&d.unshift(qa(l,A,b))):r||(A=sa(l,c),A!=null&&d.push(qa(l,A,b)))),l=l.return}d.length!==0&&e.push({event:t,listeners:d})}var hv=/\r\n?/g,gv=/\u0000|\uFFFD/g;function bh(e){return(typeof e=="string"?e:""+e).replace(hv,`
`).replace(gv,"")}function Eh(e,t){return t=bh(t),bh(e)===t}function Ee(e,t,l,a,r,c){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||yl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&yl(e,""+a);break;case"className":di(e,"class",a);break;case"tabIndex":di(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":di(e,l,a);break;case"style":bc(e,a,c);break;case"data":if(t!=="object"){di(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=gi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="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(l);break}a=gi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&oe("scroll",e);break;case"onScrollEnd":a!=null&&oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=gi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":oe("beforetoggle",e),oe("toggle",e),fi(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":fi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Gm.get(l)||l,fi(e,l,a))}}function Br(e,t,l,a,r,c){switch(l){case"style":bc(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof a=="string"?yl(e,a):(typeof a=="number"||typeof a=="bigint")&&yl(e,""+a);break;case"onScroll":a!=null&&oe("scroll",e);break;case"onScrollEnd":a!=null&&oe("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(!hc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(r=l.endsWith("Capture"),t=l.slice(2,r?l.length-7:void 0),c=e[nt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,r),typeof a=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,r);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):fi(e,l,a)}}}function Je(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var a=!1,r=!1,c;for(c in l)if(l.hasOwnProperty(c)){var d=l[c];if(d!=null)switch(c){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,c,d,l,null)}}r&&Ee(e,t,"srcSet",l.srcSet,l,null),a&&Ee(e,t,"src",l.src,l,null);return;case"input":oe("invalid",e);var v=c=d=r=null,b=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var V=l[a];if(V!=null)switch(a){case"name":r=V;break;case"type":d=V;break;case"checked":b=V;break;case"defaultChecked":A=V;break;case"value":c=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:Ee(e,t,a,V,l,null)}}yc(e,c,v,b,A,d,r,!1);return;case"select":oe("invalid",e),a=d=c=null;for(r in l)if(l.hasOwnProperty(r)&&(v=l[r],v!=null))switch(r){case"value":c=v;break;case"defaultValue":d=v;break;case"multiple":a=v;default:Ee(e,t,r,v,l,null)}t=c,l=d,e.multiple=!!a,t!=null?vl(e,!!a,t,!1):l!=null&&vl(e,!!a,l,!0);return;case"textarea":oe("invalid",e),c=r=a=null;for(d in l)if(l.hasOwnProperty(d)&&(v=l[d],v!=null))switch(d){case"value":a=v;break;case"defaultValue":r=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ee(e,t,d,v,l,null)}Cc(e,a,r,c);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ee(e,t,b,a,l,null)}return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(a=0;a<Ba.length;a++)oe(Ba[a],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("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(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ee(e,t,A,a,l,null)}return;default:if(Wu(t)){for(V in l)l.hasOwnProperty(V)&&(a=l[V],a!==void 0&&Br(e,t,V,a,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(a=l[v],a!=null&&Ee(e,t,v,a,l,null))}function mv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,d=null,v=null,b=null,A=null,V=null;for(H in l){var q=l[H];if(l.hasOwnProperty(H)&&q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":b=q;default:a.hasOwnProperty(H)||Ee(e,t,H,null,a,q)}}for(var D in a){var H=a[D];if(q=l[D],a.hasOwnProperty(D)&&(H!=null||q!=null))switch(D){case"type":c=H;break;case"name":r=H;break;case"checked":A=H;break;case"defaultChecked":V=H;break;case"value":d=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:H!==q&&Ee(e,t,D,H,a,q)}}ku(e,d,v,b,A,V,c,r);return;case"select":H=d=v=D=null;for(c in l)if(b=l[c],l.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":H=b;default:a.hasOwnProperty(c)||Ee(e,t,c,null,a,b)}for(r in a)if(c=a[r],b=l[r],a.hasOwnProperty(r)&&(c!=null||b!=null))switch(r){case"value":D=c;break;case"defaultValue":v=c;break;case"multiple":d=c;default:c!==b&&Ee(e,t,r,c,a,b)}t=v,l=d,a=H,D!=null?vl(e,!!l,D,!1):!!a!=!!l&&(t!=null?vl(e,!!l,t,!0):vl(e,!!l,l?[]:"",!1));return;case"textarea":H=D=null;for(v in l)if(r=l[v],l.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],c=l[d],a.hasOwnProperty(d)&&(r!=null||c!=null))switch(d){case"value":D=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==c&&Ee(e,t,d,r,a,c)}Sc(e,D,H);return;case"option":for(var $ in l)if(D=l[$],l.hasOwnProperty($)&&D!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Ee(e,t,$,null,a,D)}for(b in a)if(D=a[b],H=l[b],a.hasOwnProperty(b)&&D!==H&&(D!=null||H!=null))switch(b){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Ee(e,t,b,D,a,H)}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 I in l)D=l[I],l.hasOwnProperty(I)&&D!=null&&!a.hasOwnProperty(I)&&Ee(e,t,I,null,a,D);for(A in a)if(D=a[A],H=l[A],a.hasOwnProperty(A)&&D!==H&&(D!=null||H!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Ee(e,t,A,D,a,H)}return;default:if(Wu(t)){for(var _e in l)D=l[_e],l.hasOwnProperty(_e)&&D!==void 0&&!a.hasOwnProperty(_e)&&Br(e,t,_e,void 0,a,D);for(V in a)D=a[V],H=l[V],!a.hasOwnProperty(V)||D===H||D===void 0&&H===void 0||Br(e,t,V,D,a,H);return}}for(var w in l)D=l[w],l.hasOwnProperty(w)&&D!=null&&!a.hasOwnProperty(w)&&Ee(e,t,w,null,a,D);for(q in a)D=a[q],H=l[q],!a.hasOwnProperty(q)||D===H||D==null&&H==null||Ee(e,t,q,D,a,H)}function _h(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var r=l[a],c=r.transferSize,d=r.initiatorType,v=r.duration;if(c&&v&&_h(d)){for(d=0,v=r.responseEnd,a+=1;a<l.length;a++){var b=l[a],A=b.startTime;if(A>v)break;var V=b.transferSize,q=b.initiatorType;V&&_h(q)&&(b=b.responseEnd,d+=V*(b<v?1:(v-A)/(b-A)))}if(--a,t+=8*(c+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 qr=null,Fr=null;function ou(e){return e.nodeType===9?e:e.ownerDocument}function Mh(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 Th(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 Gr(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 Qr=null;function vv(){var e=window.event;return e&&e.type==="popstate"?e===Qr?!1:(Qr=e,!0):(Qr=null,!1)}var xh=typeof setTimeout=="function"?setTimeout:void 0,yv=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,Sv=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(Cv)}:xh;function Cv(e){setTimeout(function(){throw e})}function Un(e){return e==="head"}function zh(e,t){var l=t,a=0;do{var r=l.nextSibling;if(e.removeChild(l),r&&r.nodeType===8)if(l=r.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(r),Jl(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Fa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Fa(l);for(var c=l.firstChild;c;){var d=c.nextSibling,v=c.nodeName;c[ia]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=d}}else l==="body"&&Fa(e.ownerDocument.body);l=r}while(l);Jl(t)}function Oh(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Yr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Yr(l),Ju(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Rv(e,t,l,a){for(;e.nodeType===1;){var r=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==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(c=e.getAttribute("src"),(c!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Ot(e.nextSibling),e===null)break}return null}function bv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ot(e.nextSibling),e===null))return null;return e}function Ah(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 $r(e){return e.data==="$?"||e.data==="$~"}function Xr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ev(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function 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 Kr=null;function Dh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Ot(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Nh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Uh(e,t,l){switch(t=ou(l),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 Fa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ju(e)}var At=new Map,Hh=new Set;function cu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fn=Q.d;Q.d={f:_v,r:Mv,D:Tv,C:xv,L:wv,m:zv,X:Av,S:Ov,M:Dv};function _v(){var e=fn.f(),t=tu();return e||t}function Mv(e){var t=gl(e);t!==null&&t.tag===5&&t.type==="form"?If(t):fn.r(e)}var Xl=typeof document>"u"?null:document;function jh(e,t,l){var a=Xl;if(a&&typeof t=="string"&&t){var r=Et(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof l=="string"&&(r+='[crossorigin="'+l+'"]'),Hh.has(r)||(Hh.add(r),e={rel:e,crossOrigin:l,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Je(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Tv(e){fn.D(e),jh("dns-prefetch",e,null)}function xv(e,t){fn.C(e,t),jh("preconnect",e,t)}function wv(e,t,l){fn.L(e,t,l);var a=Xl;if(a&&e&&t){var r='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&l&&l.imageSrcSet?(r+='[imagesrcset="'+Et(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(r+='[imagesizes="'+Et(l.imageSizes)+'"]')):r+='[href="'+Et(e)+'"]';var c=r;switch(t){case"style":c=Kl(e);break;case"script":c=Zl(e)}At.has(c)||(e=R({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),At.set(c,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Ga(c))||t==="script"&&a.querySelector(Qa(c))||(t=a.createElement("link"),Je(t,"link",e),Qe(t),a.head.appendChild(t)))}}function zv(e,t){fn.m(e,t);var l=Xl;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',c=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Zl(e)}if(!At.has(c)&&(e=R({rel:"modulepreload",href:e},t),At.set(c,e),l.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Qa(c)))return}a=l.createElement("link"),Je(a,"link",e),Qe(a),l.head.appendChild(a)}}}function Ov(e,t,l){fn.S(e,t,l);var a=Xl;if(a&&e){var r=ml(a).hoistableStyles,c=Kl(e);t=t||"default";var d=r.get(c);if(!d){var v={loading:0,preload:null};if(d=a.querySelector(Ga(c)))v.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},l),(l=At.get(c))&&Zr(e,l);var b=d=a.createElement("link");Qe(b),Je(b,"link",e),b._p=new Promise(function(A,V){b.onload=A,b.onerror=V}),b.addEventListener("load",function(){v.loading|=1}),b.addEventListener("error",function(){v.loading|=2}),v.loading|=4,fu(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:v},r.set(c,d)}}}function Av(e,t){fn.X(e,t);var l=Xl;if(l&&e){var a=ml(l).hoistableScripts,r=Zl(e),c=a.get(r);c||(c=l.querySelector(Qa(r)),c||(e=R({src:e,async:!0},t),(t=At.get(r))&&Jr(e,t),c=l.createElement("script"),Qe(c),Je(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function Dv(e,t){fn.M(e,t);var l=Xl;if(l&&e){var a=ml(l).hoistableScripts,r=Zl(e),c=a.get(r);c||(c=l.querySelector(Qa(r)),c||(e=R({src:e,async:!0,type:"module"},t),(t=At.get(r))&&Jr(e,t),c=l.createElement("script"),Qe(c),Je(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function Vh(e,t,l,a){var r=(r=se.current)?cu(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Kl(l.href),l=ml(r).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Kl(l.href);var c=ml(r).hoistableStyles,d=c.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=r.querySelector(Ga(e)))&&!c._p&&(d.instance=c,d.state.loading=5),At.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},At.set(e,l),c||Nv(r,e,l,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=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zl(l),l=ml(r).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Kl(e){return'href="'+Et(e)+'"'}function Ga(e){return'link[rel="stylesheet"]['+e+"]"}function Lh(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function Nv(e,t,l,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",l),Qe(t),e.head.appendChild(t))}function Zl(e){return'[src="'+Et(e)+'"]'}function Qa(e){return"script[async]"+e}function Bh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(l.href)+'"]');if(a)return t.instance=a,Qe(a),a;var r=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),Je(a,"style",r),fu(a,l.precedence,e),t.instance=a;case"stylesheet":r=Kl(l.href);var c=e.querySelector(Ga(r));if(c)return t.state.loading|=4,t.instance=c,Qe(c),c;a=Lh(l),(r=At.get(r))&&Zr(a,r),c=(e.ownerDocument||e).createElement("link"),Qe(c);var d=c;return d._p=new Promise(function(v,b){d.onload=v,d.onerror=b}),Je(c,"link",a),t.state.loading|=4,fu(c,l.precedence,e),t.instance=c;case"script":return c=Zl(l.src),(r=e.querySelector(Qa(c)))?(t.instance=r,Qe(r),r):(a=l,(r=At.get(c))&&(a=R({},l),Jr(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,fu(a,l.precedence,e));return t.instance}function fu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,c=r,d=0;d<a.length;d++){var v=a[d];if(v.dataset.precedence===t)c=v;else if(c!==r)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Zr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Jr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var du=null;function qh(e,t,l){if(du===null){var a=new Map,r=du=new Map;r.set(l,a)}else r=du,a=r.get(l),a||(a=new Map,r.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),r=0;r<l.length;r++){var c=l[r];if(!(c[ia]||c[$e]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(t)||"";d=e+d;var v=a.get(d);v?v.push(c):a.set(d,[c])}}return a}function Fh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Uv(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Hv(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var r=Kl(a.href),c=t.querySelector(Ga(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,Qe(c);return}c=t.ownerDocument||t,a=Lh(a),(r=At.get(r))&&Zr(a,r),c=c.createElement("link"),Qe(c);var d=c;d._p=new Promise(function(v,b){d.onload=v,d.onerror=b}),Je(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=hu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Pr=0;function jv(e,t){return e.stylesheets&&e.count===0&&mu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&mu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Pr===0&&(Pr=62500*pv());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Pr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gu=null;function mu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gu=new Map,t.forEach(Vv,e),gu=null,hu.call(e))}function Vv(e,t){if(!(t.state.loading&4)){var l=gu.get(e);if(l)var a=l.get(null);else{l=new Map,gu.set(e,l);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var d=r[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(l.set(d.dataset.precedence,d),a=d)}a&&l.set(null,a)}r=t.instance,d=r.getAttribute("data-precedence"),c=l.get(d)||a,c===a&&l.set(null,r),l.set(d,r),this.count++,a=hu.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),c?c.parentNode.insertBefore(r,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ya={$$typeof:G,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Lv(e,t,l,a,r,c,d,v,b){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=$u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.hiddenUpdates=$u(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Qh(e,t,l,a,r,c,d,v,b,A,V,q){return e=new Lv(e,t,l,d,b,A,V,q,v),t=1,c===!0&&(t|=24),c=gt(3,null,null,t),e.current=c,c.stateNode=e,t=zs(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:l,cache:t},Ns(c),e}function Yh(e){return e?(e=Ml,e):Ml}function $h(e,t,l,a,r,c){r=Yh(r),a.context===null?a.context=r:a.pendingContext=r,a=En(t),a.payload={element:l},c=c===void 0?null:c,c!==null&&(a.callback=c),l=_n(e,a,t),l!==null&&(rt(l,e,t),ba(l,e,t))}function Xh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function kr(e,t){Xh(e,t),(e=e.alternate)&&Xh(e,t)}function Kh(e){if(e.tag===13||e.tag===31){var t=Pn(e,67108864);t!==null&&rt(t,e,67108864),kr(e,67108864)}}function Zh(e){if(e.tag===13||e.tag===31){var t=St();t=Xu(t);var l=Pn(e,t);l!==null&&rt(l,e,t),kr(e,t)}}var pu=!0;function Bv(e,t,l,a){var r=L.T;L.T=null;var c=Q.p;try{Q.p=2,Ir(e,t,l,a)}finally{Q.p=c,L.T=r}}function qv(e,t,l,a){var r=L.T;L.T=null;var c=Q.p;try{Q.p=8,Ir(e,t,l,a)}finally{Q.p=c,L.T=r}}function Ir(e,t,l,a){if(pu){var r=Wr(a);if(r===null)Lr(e,t,a,vu,l),Ph(e,a);else if(Gv(r,e,t,l,a))a.stopPropagation();else if(Ph(e,a),t&4&&-1<Fv.indexOf(e)){for(;r!==null;){var c=gl(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=$n(c.pendingLanes);if(d!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var b=1<<31-dt(d);v.entanglements[1]|=b,d&=~b}Yt(c),(ve&6)===0&&(Wi=ct()+500,La(0))}}break;case 31:case 13:v=Pn(c,2),v!==null&&rt(v,c,2),tu(),kr(c,2)}if(c=Wr(a),c===null&&Lr(e,t,a,vu,l),c===r)break;r=c}r!==null&&a.stopPropagation()}else Lr(e,t,a,null,l)}}function Wr(e){return e=ts(e),eo(e)}var vu=null;function eo(e){if(vu=null,e=hl(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vu=e,null}function Jh(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(Tm()){case nc:return 2;case lc:return 8;case ui:case xm:return 32;case ac:return 268435456;default:return 32}default:return 32}}var to=!1,Hn=null,jn=null,Vn=null,$a=new Map,Xa=new Map,Ln=[],Fv="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 Ph(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":$a.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xa.delete(t.pointerId)}}function Ka(e,t,l,a,r,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:c,targetContainers:[r]},t!==null&&(t=gl(t),t!==null&&Kh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Gv(e,t,l,a,r){switch(t){case"focusin":return Hn=Ka(Hn,e,t,l,a,r),!0;case"dragenter":return jn=Ka(jn,e,t,l,a,r),!0;case"mouseover":return Vn=Ka(Vn,e,t,l,a,r),!0;case"pointerover":var c=r.pointerId;return $a.set(c,Ka($a.get(c)||null,e,t,l,a,r)),!0;case"gotpointercapture":return c=r.pointerId,Xa.set(c,Ka(Xa.get(c)||null,e,t,l,a,r)),!0}return!1}function kh(e){var t=hl(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,cc(e.priority,function(){Zh(l)});return}}else if(t===31){if(t=g(l),t!==null){e.blockedOn=t,cc(e.priority,function(){Zh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Wr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);es=a,l.target.dispatchEvent(a),es=null}else return t=gl(l),t!==null&&Kh(t),e.blockedOn=l,!1;t.shift()}return!0}function Ih(e,t,l){yu(e)&&l.delete(t)}function Qv(){to=!1,Hn!==null&&yu(Hn)&&(Hn=null),jn!==null&&yu(jn)&&(jn=null),Vn!==null&&yu(Vn)&&(Vn=null),$a.forEach(Ih),Xa.forEach(Ih)}function Su(e,t){e.blockedOn===t&&(e.blockedOn=null,to||(to=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Qv)))}var Cu=null;function Wh(e){Cu!==e&&(Cu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Cu===e&&(Cu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(eo(a||l)===null)continue;break}var c=gl(l);c!==null&&(e.splice(t,3),t-=3,Ws(c,{pending:!0,data:r,method:l.method,action:a},a,r))}}))}function Jl(e){function t(b){return Su(b,e)}Hn!==null&&Su(Hn,e),jn!==null&&Su(jn,e),Vn!==null&&Su(Vn,e),$a.forEach(t),Xa.forEach(t);for(var l=0;l<Ln.length;l++){var a=Ln[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ln.length&&(l=Ln[0],l.blockedOn===null);)kh(l),l.blockedOn===null&&Ln.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var r=l[a],c=l[a+1],d=r[nt]||null;if(typeof c=="function")d||Wh(l);else if(d){var v=null;if(c&&c.hasAttribute("formAction")){if(r=c,d=c[nt]||null)v=d.formAction;else if(eo(r)!==null)continue}else v=d.action;typeof v=="function"?l[a+1]=v:(l.splice(a,3),a-=3),Wh(l)}}}function eg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.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(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function no(e){this._internalRoot=e}Ru.prototype.render=no.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=St();$h(l,a,e,t,null,null)},Ru.prototype.unmount=no.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$h(e.current,2,null,e,null,null),tu(),t[dl]=null}};function Ru(e){this._internalRoot=e}Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=oc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ln.length&&t!==0&&t<Ln[l].priority;l++);Ln.splice(l,0,e),l===0&&kh(e)}};var tg=u.version;if(tg!=="19.2.0")throw Error(s(527,tg,"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 Yv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bu.isDisabled&&bu.supportsFiber)try{na=bu.inject(Yv),ft=bu}catch{}}return Ja.createRoot=function(e,t){if(!o(e))throw Error(s(299));var l=!1,a="",r=rd,c=od,d=cd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Qh(e,1,!1,null,null,l,a,null,r,c,d,eg),e[dl]=t.current,Vr(e),new no(t)},Ja.hydrateRoot=function(e,t,l){if(!o(e))throw Error(s(299));var a=!1,r="",c=rd,d=od,v=cd,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(r=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(d=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=Qh(e,1,!0,t,l??null,a,r,b,c,d,v,eg),t.context=Yh(null),l=t.current,a=St(),a=Xu(a),r=En(a),r.callback=null,_n(l,r,a),l=a,t.current.lanes=l,aa(t,l),Yt(t),e[dl]=t.current,Vr(e),new Ru(t)},Ja.version="19.2.0",Ja}var fg;function ey(){if(fg)return io.exports;fg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),io.exports=Wv(),io.exports}var ty=ey();const ny=Hg(ty);/**
 * 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 dg="popstate";function ly(n={}){function u(o,f){let{pathname:h="/",search:g="",hash:p=""}=fl(o.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),So("",{pathname:h,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(o,f){let h=o.document.querySelector("base"),g="";if(h&&h.getAttribute("href")){let p=o.location.href,m=p.indexOf("#");g=m===-1?p:p.slice(0,m)}return g+"#"+(typeof f=="string"?f:Wa(f))}function s(o,f){Ct(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return iy(u,i,s,n)}function Ae(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function Ct(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function ay(){return Math.random().toString(36).substring(2,10)}function hg(n,u){return{usr:n.state,key:n.key,idx:u}}function So(n,u,i=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?fl(u):u,state:i,key:u&&u.key||s||ay()}}function Wa({pathname:n="/",search:u="",hash:i=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function fl(n){let u={};if(n){let i=n.indexOf("#");i>=0&&(u.hash=n.substring(i),n=n.substring(0,i));let s=n.indexOf("?");s>=0&&(u.search=n.substring(s),n=n.substring(0,s)),n&&(u.pathname=n)}return u}function iy(n,u,i,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,h=o.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 R(){g="POP";let N=y(),U=N==null?null:N-m;m=N,p&&p({action:g,location:T.location,delta:U})}function C(N,U){g="PUSH";let j=So(T.location,N,U);i&&i(j,N),m=y()+1;let G=hg(j,m),P=T.createHref(j);try{h.pushState(G,"",P)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(P)}f&&p&&p({action:g,location:T.location,delta:1})}function S(N,U){g="REPLACE";let j=So(T.location,N,U);i&&i(j,N),m=y();let G=hg(j,m),P=T.createHref(j);h.replaceState(G,"",P),f&&p&&p({action:g,location:T.location,delta:0})}function _(N){return uy(N)}let T={get action(){return g},get location(){return n(o,h)},listen(N){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(dg,R),p=N,()=>{o.removeEventListener(dg,R),p=null}},createHref(N){return u(o,N)},createURL:_,encodeLocation(N){let U=_(N);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:C,replace:S,go(N){return h.go(N)}};return T}function uy(n,u=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(i,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:Wa(n);return s=s.replace(/ $/,"%20"),!u&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Vg(n,u,i="/"){return sy(n,u,i,!1)}function sy(n,u,i,s){let o=typeof u=="string"?fl(u):u,f=gn(o.pathname||"/",i);if(f==null)return null;let h=Lg(n);ry(h);let g=null;for(let p=0;g==null&&p<h.length;++p){let m=Sy(f);g=vy(h[p],m,s)}return g}function Lg(n,u=[],i=[],s="",o=!1){let f=(h,g,p=o,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;Ae(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 R=hn([s,y.relativePath]),C=i.concat(y);h.children&&h.children.length>0&&(Ae(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${R}".`),Lg(h.children,u,C,R,p)),!(h.path==null&&!h.index)&&u.push({path:R,score:my(R,h.index),routesMeta:C})};return n.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))f(h,g);else for(let p of Bg(h.path))f(h,g,!0,p)}),u}function Bg(n){let u=n.split("/");if(u.length===0)return[];let[i,...s]=u,o=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let h=Bg(s.join("/")),g=[];return g.push(...h.map(p=>p===""?f:[f,p].join("/"))),o&&g.push(...h),g.map(p=>n.startsWith("/")&&p===""?"/":p)}function ry(n){n.sort((u,i)=>u.score!==i.score?i.score-u.score:py(u.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var oy=/^:[\w-]+$/,cy=3,fy=2,dy=1,hy=10,gy=-2,gg=n=>n==="*";function my(n,u){let i=n.split("/"),s=i.length;return i.some(gg)&&(s+=gy),u&&(s+=fy),i.filter(o=>!gg(o)).reduce((o,f)=>o+(oy.test(f)?cy:f===""?dy:hy),s)}function py(n,u){return n.length===u.length&&n.slice(0,-1).every((s,o)=>s===u[o])?n[n.length-1]-u[u.length-1]:0}function vy(n,u,i=!1){let{routesMeta:s}=n,o={},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)||"/",R=Ou({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},y),C=p.route;if(!R&&m&&i&&!s[s.length-1].route.index&&(R=Ou({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!R)return null;Object.assign(o,R.params),h.push({params:o,pathname:hn([f,R.pathname]),pathnameBase:Ey(hn([f,R.pathnameBase])),route:C}),R.pathnameBase!=="/"&&(f=hn([f,R.pathnameBase]))}return h}function Ou(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,s]=yy(n.path,n.caseSensitive,n.end),o=u.match(i);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),g=o.slice(1);return{params:s.reduce((m,{paramName:y,isOptional:R},C)=>{if(y==="*"){let _=g[C]||"";h=f.slice(0,f.length-_.length).replace(/(.)\/+$/,"$1")}const S=g[C];return R&&!S?m[y]=void 0:m[y]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:n}}function yy(n,u=!1,i=!0){Ct(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,p)=>(s.push({paramName:g,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,u?void 0:"i"),s]}function Sy(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Ct(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),n}}function gn(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let i=u.endsWith("/")?u.length-1:u.length,s=n.charAt(i);return s&&s!=="/"?null:n.slice(i)||"/"}function Cy(n,u="/"){let{pathname:i,search:s="",hash:o=""}=typeof n=="string"?fl(n):n;return{pathname:i?i.startsWith("/")?i:Ry(i,u):u,search:_y(s),hash:My(o)}}function Ry(n,u){let i=u.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function oo(n,u,i,s){return`Cannot include a '${n}' 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 by(n){return n.filter((u,i)=>i===0||u.route.path&&u.route.path.length>0)}function Ho(n){let u=by(n);return u.map((i,s)=>s===u.length-1?i.pathname:i.pathnameBase)}function jo(n,u,i,s=!1){let o;typeof n=="string"?o=fl(n):(o={...n},Ae(!o.pathname||!o.pathname.includes("?"),oo("?","pathname","search",o)),Ae(!o.pathname||!o.pathname.includes("#"),oo("#","pathname","hash",o)),Ae(!o.search||!o.search.includes("#"),oo("#","search","hash",o)));let f=n===""||o.pathname==="",h=f?"/":o.pathname,g;if(h==null)g=i;else{let R=u.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),R-=1;o.pathname=C.join("/")}g=R>=0?u[R]:"/"}let p=Cy(o,g),m=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}var hn=n=>n.join("/").replace(/\/\/+/g,"/"),Ey=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),_y=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,My=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Ty(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var qg=["POST","PUT","PATCH","DELETE"];new Set(qg);var xy=["GET",...qg];new Set(xy);var Il=x.createContext(null);Il.displayName="DataRouter";var Nu=x.createContext(null);Nu.displayName="DataRouterState";x.createContext(!1);var Fg=x.createContext({isTransitioning:!1});Fg.displayName="ViewTransition";var wy=x.createContext(new Map);wy.displayName="Fetchers";var zy=x.createContext(null);zy.displayName="Await";var Bt=x.createContext(null);Bt.displayName="Navigation";var ni=x.createContext(null);ni.displayName="Location";var qt=x.createContext({outlet:null,matches:[],isDataRoute:!1});qt.displayName="Route";var Vo=x.createContext(null);Vo.displayName="RouteError";function Oy(n,{relative:u}={}){Ae(Wl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=x.useContext(Bt),{hash:o,pathname:f,search:h}=li(n,{relative:u}),g=f;return i!=="/"&&(g=f==="/"?i:hn([i,f])),s.createHref({pathname:g,search:h,hash:o})}function Wl(){return x.useContext(ni)!=null}function $t(){return Ae(Wl(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(ni).location}var Gg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qg(n){x.useContext(Bt).static||x.useLayoutEffect(n)}function ea(){let{isDataRoute:n}=x.useContext(qt);return n?Qy():Ay()}function Ay(){Ae(Wl(),"useNavigate() may be used only in the context of a <Router> component.");let n=x.useContext(Il),{basename:u,navigator:i}=x.useContext(Bt),{matches:s}=x.useContext(qt),{pathname:o}=$t(),f=JSON.stringify(Ho(s)),h=x.useRef(!1);return Qg(()=>{h.current=!0}),x.useCallback((p,m={})=>{if(Ct(h.current,Gg),!h.current)return;if(typeof p=="number"){i.go(p);return}let y=jo(p,JSON.parse(f),o,m.relative==="path");n==null&&u!=="/"&&(y.pathname=y.pathname==="/"?u:hn([u,y.pathname])),(m.replace?i.replace:i.push)(y,m.state,m)},[u,i,f,o,n])}x.createContext(null);function Yg(){let{matches:n}=x.useContext(qt),u=n[n.length-1];return u?u.params:{}}function li(n,{relative:u}={}){let{matches:i}=x.useContext(qt),{pathname:s}=$t(),o=JSON.stringify(Ho(i));return x.useMemo(()=>jo(n,JSON.parse(o),s,u==="path"),[n,o,s,u])}function Dy(n,u){return $g(n,u)}function $g(n,u,i,s,o){Ae(Wl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=x.useContext(Bt),{matches:h}=x.useContext(qt),g=h[h.length-1],p=g?g.params:{},m=g?g.pathname:"/",y=g?g.pathnameBase:"/",R=g&&g.route;{let j=R&&R.path||"";Xg(m,!R||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 C=$t(),S;if(u){let j=typeof u=="string"?fl(u):u;Ae(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=C;let _=S.pathname||"/",T=_;if(y!=="/"){let j=y.replace(/^\//,"").split("/");T="/"+_.replace(/^\//,"").split("/").slice(j.length).join("/")}let N=Vg(n,{pathname:T});Ct(R||N!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Ct(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 U=Vy(N&&N.map(j=>Object.assign({},j,{params:Object.assign({},p,j.params),pathname:hn([y,f.encodeLocation?f.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?y:hn([y,f.encodeLocation?f.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),h,i,s,o);return u&&U?x.createElement(ni.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},U):U}function Ny(){let n=Gy(),u=Ty(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:f},"ErrorBoundary")," or"," ",x.createElement("code",{style:f},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},u),i?x.createElement("pre",{style:o},i):null,h)}var Uy=x.createElement(Ny,null),Hy=class extends x.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.unstable_onError?this.props.unstable_onError(n,u):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?x.createElement(qt.Provider,{value:this.props.routeContext},x.createElement(Vo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function jy({routeContext:n,match:u,children:i}){let s=x.useContext(Il);return s&&s.static&&s.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=u.route.id),x.createElement(qt.Provider,{value:n},i)}function Vy(n,u=[],i=null,s=null,o=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(u.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let f=n,h=i?.errors;if(h!=null){let m=f.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);Ae(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:R,errors:C}=i,S=y.route.loader&&!R.hasOwnProperty(y.route.id)&&(!C||C[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,R)=>{let C,S=!1,_=null,T=null;i&&(C=h&&y.route.id?h[y.route.id]:void 0,_=y.route.errorElement||Uy,g&&(p<0&&R===0?(Xg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,T=null):p===R&&(S=!0,T=y.route.hydrateFallbackElement||null)));let N=u.concat(f.slice(0,R+1)),U=()=>{let j;return C?j=_:S?j=T:y.route.Component?j=x.createElement(y.route.Component,null):y.route.element?j=y.route.element:j=m,x.createElement(jy,{match:y,routeContext:{outlet:m,matches:N,isDataRoute:i!=null},children:j})};return i&&(y.route.ErrorBoundary||y.route.errorElement||R===0)?x.createElement(Hy,{location:i.location,revalidation:i.revalidation,component:_,error:C,children:U(),routeContext:{outlet:null,matches:N,isDataRoute:!0},unstable_onError:s}):U()},null)}function Lo(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ly(n){let u=x.useContext(Il);return Ae(u,Lo(n)),u}function By(n){let u=x.useContext(Nu);return Ae(u,Lo(n)),u}function qy(n){let u=x.useContext(qt);return Ae(u,Lo(n)),u}function Bo(n){let u=qy(n),i=u.matches[u.matches.length-1];return Ae(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function Fy(){return Bo("useRouteId")}function Gy(){let n=x.useContext(Vo),u=By("useRouteError"),i=Bo("useRouteError");return n!==void 0?n:u.errors?.[i]}function Qy(){let{router:n}=Ly("useNavigate"),u=Bo("useNavigate"),i=x.useRef(!1);return Qg(()=>{i.current=!0}),x.useCallback(async(o,f={})=>{Ct(i.current,Gg),i.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:u,...f}))},[n,u])}var mg={};function Xg(n,u,i){!u&&!mg[n]&&(mg[n]=!0,Ct(!1,i))}x.memo(Yy);function Yy({routes:n,future:u,state:i,unstable_onError:s}){return $g(n,void 0,i,s,u)}function $y({to:n,replace:u,state:i,relative:s}){Ae(Wl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=x.useContext(Bt);Ct(!o,"<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}=x.useContext(qt),{pathname:h}=$t(),g=ea(),p=jo(n,Ho(f),h,s==="path"),m=JSON.stringify(p);return x.useEffect(()=>{g(JSON.parse(m),{replace:u,state:i,relative:s})},[g,m,s,u,i]),null}function kl(n){Ae(!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 Xy({basename:n="/",children:u=null,location:i,navigationType:s="POP",navigator:o,static:f=!1}){Ae(!Wl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),g=x.useMemo(()=>({basename:h,navigator:o,static:f,future:{}}),[h,o,f]);typeof i=="string"&&(i=fl(i));let{pathname:p="/",search:m="",hash:y="",state:R=null,key:C="default"}=i,S=x.useMemo(()=>{let _=gn(p,h);return _==null?null:{location:{pathname:_,search:m,hash:y,state:R,key:C},navigationType:s}},[h,p,m,y,R,C,s]);return Ct(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:x.createElement(Bt.Provider,{value:g},x.createElement(ni.Provider,{children:u,value:S}))}function Ky({children:n,location:u}){return Dy(Co(n),u)}function Co(n,u=[]){let i=[];return x.Children.forEach(n,(s,o)=>{if(!x.isValidElement(s))return;let f=[...u,o];if(s.type===x.Fragment){i.push.apply(i,Co(s.props.children,f));return}Ae(s.type===kl,`[${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>`),Ae(!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=Co(s.props.children,f)),i.push(h)}),i}var wu="get",zu="application/x-www-form-urlencoded";function Uu(n){return n!=null&&typeof n.tagName=="string"}function Zy(n){return Uu(n)&&n.tagName.toLowerCase()==="button"}function Jy(n){return Uu(n)&&n.tagName.toLowerCase()==="form"}function Py(n){return Uu(n)&&n.tagName.toLowerCase()==="input"}function ky(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Iy(n,u){return n.button===0&&(!u||u==="_self")&&!ky(n)}function Ro(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((u,i)=>{let s=n[i];return u.concat(Array.isArray(s)?s.map(o=>[i,o]):[[i,s]])},[]))}function Wy(n,u){let i=Ro(n);return u&&u.forEach((s,o)=>{i.has(o)||u.getAll(o).forEach(f=>{i.append(o,f)})}),i}var Eu=null;function e0(){if(Eu===null)try{new FormData(document.createElement("form"),0),Eu=!1}catch{Eu=!0}return Eu}var t0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function co(n){return n!=null&&!t0.has(n)?(Ct(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):n}function n0(n,u){let i,s,o,f,h;if(Jy(n)){let g=n.getAttribute("action");s=g?gn(g,u):null,i=n.getAttribute("method")||wu,o=co(n.getAttribute("enctype"))||zu,f=new FormData(n)}else if(Zy(n)||Py(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||g.getAttribute("action");if(s=p?gn(p,u):null,i=n.getAttribute("formmethod")||g.getAttribute("method")||wu,o=co(n.getAttribute("formenctype"))||co(g.getAttribute("enctype"))||zu,f=new FormData(g,n),!e0()){let{name:m,type:y,value:R}=n;if(y==="image"){let C=m?`${m}.`:"";f.append(`${C}x`,"0"),f.append(`${C}y`,"0")}else m&&f.append(m,R)}}else{if(Uu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=wu,s=null,o=zu,h=n}return f&&o==="text/plain"&&(h=f,f=void 0),{action:s,method:i.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qo(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function l0(n,u,i){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s.pathname==="/"?s.pathname=`_root.${i}`:u&&gn(s.pathname,u)==="/"?s.pathname=`${u.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function a0(n,u){if(n.id in u)return u[n.id];try{let i=await import(n.module);return u[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function i0(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function u0(n,u,i){let s=await Promise.all(n.map(async o=>{let f=u.routes[o.route.id];if(f){let h=await a0(f,i);return h.links?h.links():[]}return[]}));return c0(s.flat(1).filter(i0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function pg(n,u,i,s,o,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 R=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof R=="boolean")return R}return!0}):[]}function s0(n,u,{includeHydrateFallback:i}={}){return r0(n.map(s=>{let o=u.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function r0(n){return[...new Set(n)]}function o0(n){let u={},i=Object.keys(n).sort();for(let s of i)u[s]=n[s];return u}function c0(n,u){let i=new Set;return new Set(u),n.reduce((s,o)=>{let f=JSON.stringify(o0(o));return i.has(f)||(i.add(f),s.push({key:f,link:o})),s},[])}function Kg(){let n=x.useContext(Il);return qo(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function f0(){let n=x.useContext(Nu);return qo(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Fo=x.createContext(void 0);Fo.displayName="FrameworkContext";function Zg(){let n=x.useContext(Fo);return qo(n,"You must render this element inside a <HydratedRouter> element"),n}function d0(n,u){let i=x.useContext(Fo),[s,o]=x.useState(!1),[f,h]=x.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:m,onMouseLeave:y,onTouchStart:R}=u,C=x.useRef(null);x.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let T=U=>{U.forEach(j=>{h(j.isIntersecting)})},N=new IntersectionObserver(T,{threshold:.5});return C.current&&N.observe(C.current),()=>{N.disconnect()}}},[n]),x.useEffect(()=>{if(s){let T=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(T)}}},[s]);let S=()=>{o(!0)},_=()=>{o(!1),h(!1)};return i?n!=="intent"?[f,C,{}]:[f,C,{onFocus:Pa(g,S),onBlur:Pa(p,_),onMouseEnter:Pa(m,S),onMouseLeave:Pa(y,_),onTouchStart:Pa(R,S)}]:[!1,C,{}]}function Pa(n,u){return i=>{n&&n(i),i.defaultPrevented||u(i)}}function h0({page:n,...u}){let{router:i}=Kg(),s=x.useMemo(()=>Vg(i.routes,n,i.basename),[i.routes,n,i.basename]);return s?x.createElement(m0,{page:n,matches:s,...u}):null}function g0(n){let{manifest:u,routeModules:i}=Zg(),[s,o]=x.useState([]);return x.useEffect(()=>{let f=!1;return u0(n,u,i).then(h=>{f||o(h)}),()=>{f=!0}},[n,u,i]),s}function m0({page:n,matches:u,...i}){let s=$t(),{manifest:o,routeModules:f}=Zg(),{basename:h}=Kg(),{loaderData:g,matches:p}=f0(),m=x.useMemo(()=>pg(n,u,p,o,s,"data"),[n,u,p,o,s]),y=x.useMemo(()=>pg(n,u,p,o,s,"assets"),[n,u,p,o,s]),R=x.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let _=new Set,T=!1;if(u.forEach(U=>{let j=o.routes[U.route.id];!j||!j.hasLoader||(!m.some(G=>G.route.id===U.route.id)&&U.route.id in g&&f[U.route.id]?.shouldRevalidate||j.hasClientLoader?T=!0:_.add(U.route.id))}),_.size===0)return[];let N=l0(n,h,"data");return T&&_.size>0&&N.searchParams.set("_routes",u.filter(U=>_.has(U.route.id)).map(U=>U.route.id).join(",")),[N.pathname+N.search]},[h,g,s,o,m,u,n,f]),C=x.useMemo(()=>s0(y,o),[y,o]),S=g0(y);return x.createElement(x.Fragment,null,R.map(_=>x.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...i})),C.map(_=>x.createElement("link",{key:_,rel:"modulepreload",href:_,...i})),S.map(({key:_,link:T})=>x.createElement("link",{key:_,nonce:i.nonce,...T})))}function p0(...n){return u=>{n.forEach(i=>{typeof i=="function"?i(u):i!=null&&(i.current=u)})}}var Jg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Jg&&(window.__reactRouterVersion="7.9.4")}catch{}function v0({basename:n,children:u,window:i}){let s=x.useRef();s.current==null&&(s.current=ly({window:i,v5Compat:!0}));let o=s.current,[f,h]=x.useState({action:o.action,location:o.location}),g=x.useCallback(p=>{x.startTransition(()=>h(p))},[h]);return x.useLayoutEffect(()=>o.listen(g),[o,g]),x.createElement(Xy,{basename:n,children:u,location:f.location,navigationType:f.action,navigator:o})}var Pg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Lt=x.forwardRef(function({onClick:u,discover:i="render",prefetch:s="none",relative:o,reloadDocument:f,replace:h,state:g,target:p,to:m,preventScrollReset:y,viewTransition:R,...C},S){let{basename:_}=x.useContext(Bt),T=typeof m=="string"&&Pg.test(m),N,U=!1;if(typeof m=="string"&&T&&(N=m,Jg))try{let ce=new URL(window.location.href),Me=m.startsWith("//")?new URL(ce.protocol+m):new URL(m),Ue=gn(Me.pathname,_);Me.origin===ce.origin&&Ue!=null?m=Ue+Me.search+Me.hash:U=!0}catch{Ct(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=Oy(m,{relative:o}),[G,P,k]=d0(s,C),ge=R0(m,{replace:h,state:g,target:p,preventScrollReset:y,relative:o,viewTransition:R});function Z(ce){u&&u(ce),ce.defaultPrevented||ge(ce)}let ue=x.createElement("a",{...C,...k,href:N||j,onClick:U||f?u:Z,ref:p0(S,P),target:p,"data-discover":!T&&i==="render"?"true":void 0});return G&&!T?x.createElement(x.Fragment,null,ue,x.createElement(h0,{page:j})):ue});Lt.displayName="Link";var y0=x.forwardRef(function({"aria-current":u="page",caseSensitive:i=!1,className:s="",end:o=!1,style:f,to:h,viewTransition:g,children:p,...m},y){let R=li(h,{relative:m.relative}),C=$t(),S=x.useContext(Nu),{navigator:_,basename:T}=x.useContext(Bt),N=S!=null&&T0(R)&&g===!0,U=_.encodeLocation?_.encodeLocation(R).pathname:R.pathname,j=C.pathname,G=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(j=j.toLowerCase(),G=G?G.toLowerCase():null,U=U.toLowerCase()),G&&T&&(G=gn(G,T)||G);const P=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let k=j===U||!o&&j.startsWith(U)&&j.charAt(P)==="/",ge=G!=null&&(G===U||!o&&G.startsWith(U)&&G.charAt(U.length)==="/"),Z={isActive:k,isPending:ge,isTransitioning:N},ue=k?u:void 0,ce;typeof s=="function"?ce=s(Z):ce=[s,k?"active":null,ge?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let Me=typeof f=="function"?f(Z):f;return x.createElement(Lt,{...m,"aria-current":ue,className:ce,ref:y,style:Me,to:h,viewTransition:g},typeof p=="function"?p(Z):p)});y0.displayName="NavLink";var S0=x.forwardRef(({discover:n="render",fetcherKey:u,navigate:i,reloadDocument:s,replace:o,state:f,method:h=wu,action:g,onSubmit:p,relative:m,preventScrollReset:y,viewTransition:R,...C},S)=>{let _=_0(),T=M0(g,{relative:m}),N=h.toLowerCase()==="get"?"get":"post",U=typeof g=="string"&&Pg.test(g),j=G=>{if(p&&p(G),G.defaultPrevented)return;G.preventDefault();let P=G.nativeEvent.submitter,k=P?.getAttribute("formmethod")||h;_(P||G.currentTarget,{fetcherKey:u,method:k,navigate:i,replace:o,state:f,relative:m,preventScrollReset:y,viewTransition:R})};return x.createElement("form",{ref:S,method:N,action:T,onSubmit:s?p:j,...C,"data-discover":!U&&n==="render"?"true":void 0})});S0.displayName="Form";function C0(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function kg(n){let u=x.useContext(Il);return Ae(u,C0(n)),u}function R0(n,{target:u,replace:i,state:s,preventScrollReset:o,relative:f,viewTransition:h}={}){let g=ea(),p=$t(),m=li(n,{relative:f});return x.useCallback(y=>{if(Iy(y,u)){y.preventDefault();let R=i!==void 0?i:Wa(p)===Wa(m);g(n,{replace:R,state:s,preventScrollReset:o,relative:f,viewTransition:h})}},[p,g,m,i,s,u,n,o,f,h])}function Go(n){Ct(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=x.useRef(Ro(n)),i=x.useRef(!1),s=$t(),o=x.useMemo(()=>Wy(s.search,i.current?null:u.current),[s.search]),f=ea(),h=x.useCallback((g,p)=>{const m=Ro(typeof g=="function"?g(new URLSearchParams(o)):g);i.current=!0,f("?"+m,p)},[f,o]);return[o,h]}var b0=0,E0=()=>`__${String(++b0)}__`;function _0(){let{router:n}=kg("useSubmit"),{basename:u}=x.useContext(Bt),i=Fy();return x.useCallback(async(s,o={})=>{let{action:f,method:h,encType:g,formData:p,body:m}=n0(s,u);if(o.navigate===!1){let y=o.fetcherKey||E0();await n.fetch(y,i,o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:m,formMethod:o.method||h,formEncType:o.encType||g,flushSync:o.flushSync})}else await n.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:m,formMethod:o.method||h,formEncType:o.encType||g,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,u,i])}function M0(n,{relative:u}={}){let{basename:i}=x.useContext(Bt),s=x.useContext(qt);Ae(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...li(n||".",{relative:u})},h=$t();if(n==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(R=>R).forEach(R=>g.append("index",R));let y=g.toString();f.search=y?`?${y}`:""}}return(!n||n===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:hn([i,f.pathname])),Wa(f)}function T0(n,{relative:u}={}){let i=x.useContext(Fg);Ae(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=kg("useViewTransitionState"),o=li(n,{relative:u});if(!i.isTransitioning)return!1;let f=gn(i.currentLocation.pathname,s)||i.currentLocation.pathname,h=gn(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Ou(o.pathname,h)!=null||Ou(o.pathname,f)!=null}var Ig=jg(),ai=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},x0={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},w0=class{#e=x0;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,u){return this.#e.setTimeout(n,u)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,u){return this.#e.setInterval(n,u)}clearInterval(n){this.#e.clearInterval(n)}},ol=new w0;function z0(n){setTimeout(n,0)}var cl=typeof window>"u"||"Deno"in globalThis;function ot(){}function O0(n,u){return typeof n=="function"?n(u):n}function bo(n){return typeof n=="number"&&n>=0&&n!==1/0}function Wg(n,u){return Math.max(n+(u||0)-Date.now(),0)}function Fn(n,u){return typeof n=="function"?n(u):n}function Dt(n,u){return typeof n=="function"?n(u):n}function vg(n,u){const{type:i="all",exact:s,fetchStatus:o,predicate:f,queryKey:h,stale:g}=n;if(h){if(s){if(u.queryHash!==Qo(h,u.options))return!1}else if(!ti(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||o&&o!==u.state.fetchStatus||f&&!f(u))}function yg(n,u){const{exact:i,status:s,predicate:o,mutationKey:f}=n;if(f){if(!u.options.mutationKey)return!1;if(i){if(ei(u.options.mutationKey)!==ei(f))return!1}else if(!ti(u.options.mutationKey,f))return!1}return!(s&&u.state.status!==s||o&&!o(u))}function Qo(n,u){return(u?.queryKeyHashFn||ei)(n)}function ei(n){return JSON.stringify(n,(u,i)=>_o(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function ti(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(i=>ti(n[i],u[i])):!1}var A0=Object.prototype.hasOwnProperty;function em(n,u){if(n===u)return n;const i=Sg(n)&&Sg(u);if(!i&&!(_o(n)&&_o(u)))return u;const o=(i?n:Object.keys(n)).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],R=n[y],C=u[y];if(R===C){g[y]=R,(i?m<o:A0.call(n,y))&&p++;continue}if(R===null||C===null||typeof R!="object"||typeof C!="object"){g[y]=C;continue}const S=em(R,C);g[y]=S,S===R&&p++}return o===h&&p===o?n:g}function Eo(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const i in n)if(n[i]!==u[i])return!1;return!0}function Sg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function _o(n){if(!Cg(n))return!1;const u=n.constructor;if(u===void 0)return!0;const i=u.prototype;return!(!Cg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Cg(n){return Object.prototype.toString.call(n)==="[object Object]"}function D0(n){return new Promise(u=>{ol.setTimeout(u,n)})}function Mo(n,u,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,u):i.structuralSharing!==!1?em(n,u):u}function N0(n,u,i=0){const s=[...n,u];return i&&s.length>i?s.slice(1):s}function U0(n,u,i=0){const s=[u,...n];return i&&s.length>i?s.slice(0,-1):s}var Yo=Symbol();function tm(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Yo?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function H0(n,u){return typeof n=="function"?n(...u):!!n}var j0=class extends ai{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!cl&&window.addEventListener){const u=()=>n();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(n){this.#n=n,this.#t?.(),this.#t=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},$o=new j0;function To(){let n,u;const i=new Promise((o,f)=>{n=o,u=f});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),u(o)},i}var V0=z0;function L0(){let n=[],u=0,i=g=>{g()},s=g=>{g()},o=V0;const f=g=>{u?n.push(g):o(()=>{i(g)})},h=()=>{const g=n;n=[],g.length&&o(()=>{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=>{o=g}}}var Pe=L0(),B0=class extends ai{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!cl&&window.addEventListener){const u=()=>n(!0),i=()=>n(!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(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#e}},Au=new B0;function q0(n){return Math.min(1e3*2**n,3e4)}function nm(n){return(n??"online")==="online"?Au.isOnline():!0}var xo=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function lm(n){let u=!1,i=0,s;const o=To(),f=()=>o.status!=="pending",h=T=>{if(!f()){const N=new xo(T);C(N),n.onCancel?.(N)}},g=()=>{u=!0},p=()=>{u=!1},m=()=>$o.isFocused()&&(n.networkMode==="always"||Au.isOnline())&&n.canRun(),y=()=>nm(n.networkMode)&&n.canRun(),R=T=>{f()||(s?.(),o.resolve(T))},C=T=>{f()||(s?.(),o.reject(T))},S=()=>new Promise(T=>{s=N=>{(f()||m())&&T(N)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),_=()=>{if(f())return;let T;const N=i===0?n.initialPromise:void 0;try{T=N??n.fn()}catch(U){T=Promise.reject(U)}Promise.resolve(T).then(R).catch(U=>{if(f())return;const j=n.retry??(cl?0:3),G=n.retryDelay??q0,P=typeof G=="function"?G(i,U):G,k=j===!0||typeof j=="number"&&i<j||typeof j=="function"&&j(i,U);if(u||!k){C(U);return}i++,n.onFail?.(i,U),D0(P).then(()=>m()?void 0:S()).then(()=>{u?C(U):_()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(s?.(),o),cancelRetry:g,continueRetry:p,canStart:y,start:()=>(y()?_():S().then(_),o)}}var am=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bo(this.gcTime)&&(this.#e=ol.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(cl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ol.clearTimeout(this.#e),this.#e=void 0)}},F0=class extends am{#e;#t;#n;#a;#l;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Rg(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=Rg(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(n,u){const i=Mo(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),i}setState(n,u){this.#i({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#l?.promise;return this.#l?.cancel(n),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(n=>Dt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Fn(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Wg(this.state.dataUpdatedAt,n)}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(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),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:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,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(n&&this.setOptions(n),!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)})},o=()=>{const g=tm(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:o};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=lm({initialPromise:u?.initialPromise,fn:h.fetchFn,onCancel:g=>{g instanceof xo&&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 xo){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(n){const u=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...im(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=u(this.state),Pe.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function im(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nm(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Rg(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,i=u!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.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 G0=class extends ai{constructor(n,u){super(),this.options=u,this.#e=n,this.#i=null,this.#u=To(),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),bg(this.#t,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wo(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wo(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#C(),this.#R(),this.#t.removeObserver(this)}setOptions(n){const u=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(n),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&&!Eo(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Eg(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)||Fn(this.options.staleTime,this.#t)!==Fn(u.staleTime,this.#t))&&this.#p();const o=this.#v();s&&(this.#t!==i||Dt(this.options.enabled,this.#t)!==Dt(u.enabled,this.#t)||o!==this.#r)&&this.#y(o)}getOptimisticResult(n){const u=this.#e.getQueryCache().build(this.#e,n),i=this.createResult(u,n);return Y0(this,i)&&(this.#a=i,this.#s=this.options,this.#l=this.#t.state),i}getCurrentResult(){return this.#a}trackResult(n,u){return new Proxy(n,{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(n){this.#g.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#e.defaultQueryOptions(n),i=this.#e.getQueryCache().build(this.#e,u);return i.fetch().then(()=>this.createResult(i,u))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#b();let u=this.#t.fetch(this.options,n);return n?.throwOnError||(u=u.catch(ot)),u}#p(){this.#C();const n=Fn(this.options.staleTime,this.#t);if(cl||this.#a.isStale||!bo(n))return;const i=Wg(this.#a.dataUpdatedAt,n)+1;this.#o=ol.setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#R(),this.#r=n,!(cl||Dt(this.options.enabled,this.#t)===!1||!bo(this.#r)||this.#r===0)&&(this.#c=ol.setInterval(()=>{(this.options.refetchIntervalInBackground||$o.isFocused())&&this.#f()},this.#r))}#S(){this.#p(),this.#y(this.#v())}#C(){this.#o&&(ol.clearTimeout(this.#o),this.#o=void 0)}#R(){this.#c&&(ol.clearInterval(this.#c),this.#c=void 0)}createResult(n,u){const i=this.#t,s=this.options,o=this.#a,f=this.#l,h=this.#s,p=n!==i?n.state:this.#n,{state:m}=n;let y={...m},R=!1,C;if(u._optimisticResults){const ue=this.hasListeners(),ce=!ue&&bg(n,u),Me=ue&&Eg(n,i,u,s);(ce||Me)&&(y={...y,...im(m.data,n.options)}),u._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:_,status:T}=y;C=y.data;let N=!1;if(u.placeholderData!==void 0&&C===void 0&&T==="pending"){let ue;o?.isPlaceholderData&&u.placeholderData===h?.placeholderData?(ue=o.data,N=!0):ue=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,ue!==void 0&&(T="success",C=Mo(o?.data,ue,u),R=!0)}if(u.select&&C!==void 0&&!N)if(o&&C===f?.data&&u.select===this.#m)C=this.#d;else try{this.#m=u.select,C=u.select(C),C=Mo(o?.data,C,u),this.#d=C,this.#i=null}catch(ue){this.#i=ue}this.#i&&(S=this.#i,C=this.#d,_=Date.now(),T="error");const U=y.fetchStatus==="fetching",j=T==="pending",G=T==="error",P=j&&U,k=C!==void 0,Z={status:T,fetchStatus:y.fetchStatus,isPending:j,isSuccess:T==="success",isError:G,isInitialLoading:P,isLoading:P,data:C,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:_,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:U,isRefetching:U&&!j,isLoadingError:G&&!k,isPaused:y.fetchStatus==="paused",isPlaceholderData:R,isRefetchError:G&&k,isStale:Xo(n,u),refetch:this.refetch,promise:this.#u,isEnabled:Dt(u.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ue=Ue=>{Z.status==="error"?Ue.reject(Z.error):Z.data!==void 0&&Ue.resolve(Z.data)},ce=()=>{const Ue=this.#u=Z.promise=To();ue(Ue)},Me=this.#u;switch(Me.status){case"pending":n.queryHash===i.queryHash&&ue(Me);break;case"fulfilled":(Z.status==="error"||Z.data!==Me.value)&&ce();break;case"rejected":(Z.status!=="error"||Z.error!==Me.reason)&&ce();break}}return Z}updateResult(){const n=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),Eo(u,n))return;this.#a=u;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#g.size)return!0;const f=new Set(o??this.#g);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(h=>{const g=h;return this.#a[g]!==n[g]&&f.has(g)})};this.#E({listeners:i()})}#b(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const u=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(n){Pe.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Q0(n,u){return Dt(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function bg(n,u){return Q0(n,u)||n.state.data!==void 0&&wo(n,u,u.refetchOnMount)}function wo(n,u,i){if(Dt(u.enabled,n)!==!1&&Fn(u.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&Xo(n,u)}return!1}function Eg(n,u,i,s){return(n!==u||Dt(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&Xo(n,i)}function Xo(n,u){return Dt(u.enabled,n)!==!1&&n.isStaleByTime(Fn(u.staleTime,n))}function Y0(n,u){return!Eo(n.getCurrentResult(),u)}function _g(n){return{onFetch:(u,i)=>{const s=u.options,o=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 R=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(u.signal.aborted?y=!0:u.signal.addEventListener("abort",()=>{y=!0}),u.signal)})},C=tm(u.options,u.fetchOptions),S=async(_,T,N)=>{if(y)return Promise.reject();if(T==null&&_.pages.length)return Promise.resolve(_);const j=(()=>{const ge={client:u.client,queryKey:u.queryKey,pageParam:T,direction:N?"backward":"forward",meta:u.options.meta};return R(ge),ge})(),G=await C(j),{maxPages:P}=u.options,k=N?U0:N0;return{pages:k(_.pages,G,P),pageParams:k(_.pageParams,T,P)}};if(o&&f.length){const _=o==="backward",T=_?$0:Mg,N={pages:f,pageParams:h},U=T(s,N);g=await S(N,U,_)}else{const _=n??f.length;do{const T=p===0?h[0]??s.initialPageParam:Mg(s,g);if(p>0&&T==null)break;g=await S(g,T),p++}while(p<_)}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 Mg(n,{pages:u,pageParams:i}){const s=u.length-1;return u.length>0?n.getNextPageParam(u[s],u,i[s],i):void 0}function $0(n,{pages:u,pageParams:i}){return u.length>0?n.getPreviousPageParam?.(u[0],u,i[0],i):void 0}var X0=class extends am{#e;#t;#n;#a;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||K0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}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(n){const u=()=>{this.#l({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=lm({fn:()=>this.options.mutationFn?this.options.mutationFn(n,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",o=!this.#a.canStart();try{if(s)u();else{this.#l({type:"pending",variables:n,isPaused:o}),await this.#n.config.onMutate?.(n,this,i);const h=await this.options.onMutate?.(n,i);h!==this.state.context&&this.#l({type:"pending",context:h,variables:n,isPaused:o})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,i),await this.options.onSuccess?.(f,n,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,n,this.state.context,i),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,n,this.state.context,this,i),await this.options.onError?.(f,n,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,n,this.state.context,i),f}finally{this.#l({type:"error",error:f})}}finally{this.#n.runNext(this)}}#l(n){const u=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Pe.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function K0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Z0=class extends ai{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,u,i){const s=new X0({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(u),state:i});return this.add(s),s}add(n){this.#e.add(n);const u=_u(n);if(typeof u=="string"){const i=this.#t.get(u);i?i.push(n):this.#t.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const u=_u(n);if(typeof u=="string"){const i=this.#t.get(u);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#t.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=_u(n);if(typeof u=="string"){const s=this.#t.get(u)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const u=_u(n);return typeof u=="string"?this.#t.get(u)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Pe.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const u={exact:!0,...n};return this.getAll().find(i=>yg(u,i))}findAll(n={}){return this.getAll().filter(u=>yg(n,u))}notify(n){Pe.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Pe.batch(()=>Promise.all(n.map(u=>u.continue().catch(ot))))}};function _u(n){return n.options.scope?.id}var J0=class extends ai{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,u,i){const s=u.queryKey,o=u.queryHash??Qo(s,u);let f=this.get(o);return f||(f=new F0({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(u),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#e.get(n.queryHash);u&&(n.destroy(),u===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Pe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(i=>vg(u,i))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(i=>vg(n,i)):u}notify(n){Pe.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Pe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Pe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},P0=class{#e;#t;#n;#a;#l;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new J0,this.#t=n.mutationCache||new Z0,this.#n=n.defaultOptions||{},this.#a=new Map,this.#l=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=$o.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Au.subscribe(async n=>{n&&(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(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),i=this.#e.build(this,u),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(Fn(u.staleTime,i))&&this.prefetchQuery(u),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:u,state:i})=>{const s=i.data;return[u,s]})}setQueryData(n,u,i){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,h=O0(u,f);if(h!==void 0)return this.#e.build(this,s).setData(h,{...i,manual:!0})}setQueriesData(n,u,i){return Pe.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,u,i)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state}removeQueries(n){const u=this.#e;Pe.batch(()=>{u.findAll(n).forEach(i=>{u.remove(i)})})}resetQueries(n,u){const i=this.#e;return Pe.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const i={revert:!0,...u},s=Pe.batch(()=>this.#e.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(ot).catch(ot)}invalidateQueries(n,u={}){return Pe.batch(()=>(this.#e.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const i={...u,cancelRefetch:u.cancelRefetch??!0},s=Pe.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,i);return i.throwOnError||(f=f.catch(ot)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(ot)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const i=this.#e.build(this,u);return i.isStaleByTime(Fn(u.staleTime,i))?i.fetch(u):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ot).catch(ot)}fetchInfiniteQuery(n){return n.behavior=_g(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ot).catch(ot)}ensureInfiniteQueryData(n){return n.behavior=_g(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Au.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,u){this.#a.set(ei(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#a.values()],i={};return u.forEach(s=>{ti(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,u){this.#l.set(ei(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#l.values()],i={};return u.forEach(s=>{ti(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Qo(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===Yo&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},um=x.createContext(void 0),Ko=n=>{const u=x.useContext(um);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},k0=({client:n,children:u})=>(x.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),z.jsx(um.Provider,{value:n,children:u})),sm=x.createContext(!1),I0=()=>x.useContext(sm);sm.Provider;function W0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var eS=x.createContext(W0()),tS=()=>x.useContext(eS),nS=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},lS=n=>{x.useEffect(()=>{n.clearReset()},[n])},aS=({result:n,errorResetBoundary:u,throwOnError:i,query:s,suspense:o})=>n.isError&&!u.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||H0(i,[n.error,s])),iS=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>i(s(...o)):i(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},uS=(n,u)=>n.isLoading&&n.isFetching&&!u,sS=(n,u)=>n?.suspense&&u.isPending,Tg=(n,u,i)=>u.fetchOptimistic(n).catch(()=>{i.clearReset()});function rS(n,u,i){const s=I0(),o=tS(),f=Ko(),h=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=s?"isRestoring":"optimistic",iS(h),nS(h,o),lS(o);const g=!f.getQueryCache().get(h.queryHash),[p]=x.useState(()=>new u(f,h)),m=p.getOptimisticResult(h),y=!s&&n.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(R=>{const C=y?p.subscribe(Pe.batchCalls(R)):ot;return p.updateResult(),C},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x.useEffect(()=>{p.setOptions(h)},[h,p]),sS(h,m))throw Tg(h,p,o);if(aS({result:m,errorResetBoundary:o,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&&!cl&&uS(m,s)&&(g?Tg(h,p,o):f.getQueryCache().get(h.queryHash)?.promise)?.catch(ot).finally(()=>{p.updateResult()}),h.notifyOnChangeProps?m:p.trackResult(m)}function rm(n,u){return rS(n,G0)}const oS="https://api.github.com/repos/microsoft/openvmm/pulls/",cS="https://api.github.com/repos/microsoft/openvmm/pulls?state=all&sort=updated&direction=desc",fS=50;async function om(){try{const n=[1,2,3,4].map(s=>dS(s,fS).catch(()=>({}))),u=await Promise.all(n),i={};for(const s of u)for(const o in s)Object.prototype.hasOwnProperty.call(i,o)||(i[o]=s[o]);return i}catch(n){return console.warn("[getGithubPullRequests] Failed to aggregate pages",n),{}}}async function dS(n,u){const i=`${cS}&per_page=${u}&page=${n}`;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 o=await s.json();if(!Array.isArray(o))return{};const f={};for(const h of o)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 hS(n,u){console.warn("[fetchMissingPRTitles] Fetching missing PR titles individually:",n);const i=Array.from(new Set(n)),s=await Promise.all(i.map(async o=>{const f=await u.ensureQueryData({queryKey:["prTitle",o],queryFn:()=>gS(o),staleTime:1/0,gcTime:1/0});return[o,f]}));return new Map(s)}async function gS(n){try{const u=await fetch(`${oS}${n}`);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 mS="https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&include=metadata&prefix=runs/";function pS(n){n.prefetchQuery({queryKey:["runs"],queryFn:()=>Zo(n),staleTime:180*1e3,gcTime:1/0}),n.prefetchQuery({queryKey:["prs"],queryFn:()=>om(),staleTime:1/0,gcTime:1/0}),setInterval(()=>{n.refetchQueries({queryKey:["runs"],type:"all"})},120*1e3)}async function Zo(n){try{const i=await(await fetch(mS)).text(),s=vS(i,n);if(s.map(f=>f.metadata.ghPr).filter(f=>f!==void 0).length>0){const f=await n.ensureQueryData({queryKey:["prs"],queryFn:()=>om(),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 hS(h,n);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 vS(n,u){const o=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("Blob"),f=[];for(const h of o){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||"",R=parseInt(h.getElementsByTagName("Content-Length")[0]?.textContent||"0"),C=h.getElementsByTagName("Metadata")[0],S={petriFailed:parseInt(C?.getElementsByTagName("petrifailed")[0]?.textContent||"0"),petriPassed:parseInt(C?.getElementsByTagName("petripassed")[0]?.textContent||"0"),ghBranch:C?.getElementsByTagName("ghbranch")[0]?.textContent||"",ghPr:C?.getElementsByTagName("ghpr")[0]?.textContent||void 0};f.push({name:g,creationTime:p,lastModified:m,etag:y,contentLength:R,metadata:S})}return yS(f,u),f}function yS(n,u){try{const i=[...n].sort((o,f)=>f.creationTime.getTime()-o.creationTime.getTime()),s=o=>o.replace(/^runs\//,"").split("/")[0];(async()=>{const o=new Set,f=[],g=i.filter(C=>C.metadata.petriFailed>0).slice(0,7);for(const C of g){const S=s(C.name);S&&(f.push(S),o.add(S))}const p=i.slice(0,10);for(const C of p){const S=s(C.name);S&&!o.has(S)&&(f.push(S),o.add(S))}const m=i.filter(C=>C.metadata.ghBranch==="main").slice(0,7);for(const C of m){const S=s(C.name);S&&!o.has(S)&&(f.push(S),o.add(S))}const y=5,R=async C=>{const S=["runDetails",C];if(!u.getQueryData(S))try{await u.prefetchQuery({queryKey:S,queryFn:()=>Jo(C,u),staleTime:1/0,gcTime:1/0})}catch(_){console.warn(`[opportunisticPrefetching] Prefetch failed for run ${C}`,_)}};for(let C=0;C<f.length;C+=y){const S=f.slice(C,C+y);await Promise.allSettled(S.map(_=>R(_)))}})()}catch(i){console.warn("[opportunisticPrefetching] Failed to schedule runDetails prefetch",i)}}function SS(n,u,i){const s=new Map;let o=null;try{const p=n.match(/<Creation-Time>([^<]+)<\/Creation-Time>/);if(p){const m=new Date(p[1]);isNaN(m.getTime())||(o=m)}}catch{}const f=/<Name>([^<]+)<\/Name>/g;let h;for(;(h=f.exec(n))!==null;){const m=h[1].split("/"),y=m[m.length-1];if(y!=="petri.jsonl"&&y!=="petri.passed")continue;const R=m.slice(0,-1).join("/");s.has(R)||s.set(R,{hasJsonl:!1,hasPassed:!1});const C=s.get(R);y==="petri.jsonl"?C.hasJsonl=!0:y==="petri.passed"&&(C.hasPassed=!0)}const g=[];for(const[p,m]of s){if(!m.hasJsonl)continue;const y=p.split("/");if(y.length>=2){const R=y.slice(1);if(R.length>=2){const C=R[0],S=R.slice(1).join("/"),_=m.hasPassed?"passed":"failed",T=`${C}/${S}`;g.push({name:T,status:_,path:p})}}}return g.sort((p,m)=>p.name.localeCompare(m.name)),{creationTime:o??void 0,runNumber:u,tests:g}}async function Jo(n,u){try{let i="",s=null;do{let o=`https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&prefix=${encodeURIComponent(n)}`;s&&(o+=`&marker=${encodeURIComponent(s)}`);const f=await fetch(o);if(!f.ok)throw new Error(`Failed to fetch run details: ${f.status} ${f.statusText}`);const h=await f.text();i+=h;const g=h.match(/<NextMarker>([^<]+)<\/NextMarker>/);s=g?g[1]:null}while(s);return SS(i,n,u)}catch(i){throw console.error("Error fetching run details",i),i}}async function cm(n,u,i,s){const f=(await u.ensureQueryData({queryKey:["runs"],queryFn:()=>Zo(u),staleTime:12e4,gcTime:1/0})).filter(_=>_.metadata.ghBranch===n),h=f.length;let g=0;const p=async _=>{const T=_.name.split("/")[1],N=["runDetails",T];if(u.getQueryData(N))return g++,i&&i(g,h),T;try{return await u.prefetchQuery({queryKey:N,queryFn:()=>Jo(T,u),staleTime:1/0,gcTime:1/0}),g++,i&&i(g,h),T}catch(U){return console.warn(`[fetchTestAnalysis] Prefetch failed for run ${T}`,U),g++,i&&i(g,h),T}};let m=0;const y=new Set,R=[];for(;m<f.length||y.size>0;){const _=s?s():5;for(;m<f.length&&y.size<_;){const T=p(f[m]);y.add(T),m++,T.then(N=>{y.delete(T),N&&R.push(N)},()=>{y.delete(T)})}y.size>0&&await Promise.race(y)}const C=new Map;R.forEach(_=>{const T=u.getQueryData(["runDetails",_]);T&&C.set(_,T)});const S=new Map;return C.forEach(_=>{_.tests.forEach(T=>{const N=T.name,U={runNumber:_.runNumber,status:T.status,creationTime:_.creationTime};S.has(N)||S.set(N,[]),S.get(N).push(U)})}),S}function CS(n){const u=[];return n.forEach((i,s)=>{const o=i.filter(m=>m.status==="failed").length,f=s.split("/"),h=f[0],g=f.length>1?f[1]:"-",p=i.length;u.push({architecture:h,name:g,failedCount:o,totalCount:p})}),u}function RS(n,u){return n.get(u)||[]}function Hu(){const[n,u]=x.useState(!1),i=ea(),s=x.useCallback(()=>u(f=>!f),[]);x.useEffect(()=>{if(n){const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=f}}},[n]);function o(f){i(f),s()}return z.jsxs(z.Fragment,{children:[z.jsx("button",{type:"button","aria-label":n?"Close navigation menu":"Open navigation menu",className:"menu-trigger",onClick:s,children:z.jsxs("span",{className:"menu-lines","aria-hidden":"true",children:[z.jsx("span",{}),z.jsx("span",{}),z.jsx("span",{})]})}),n&&Ig.createPortal(z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"menu-overlay",onClick:s,role:"presentation"}),z.jsxs("nav",{className:n?"menu-drawer open":"menu-drawer","aria-hidden":!n,"aria-label":"Primary",children:[z.jsx("div",{className:"menu-drawer-header",children:"Petri Test Viewer"}),z.jsxs("ul",{className:"menu-nav-list",role:"list",children:[z.jsx("li",{children:z.jsx("button",{className:"drawer-link",onClick:()=>o("/runs"),children:"Runs"})}),z.jsx("li",{children:z.jsx("button",{className:"drawer-link",onClick:()=>o("/tests"),children:"Tests"})}),z.jsx("li",{className:"drawer-separator","aria-hidden":"true"}),z.jsx("li",{children:z.jsx("a",{className:"drawer-link external",href:"https://github.com/microsoft/openvmm",target:"_blank",rel:"noopener noreferrer",children:"Repo"})}),z.jsx("li",{children:z.jsx("a",{className:"drawer-link external",href:"http://openvmm.dev/",target:"_blank",rel:"noopener noreferrer",children:"Guide"})})]})]})]}),document.body)]})}function Pl(n,u,i){let s=i.initialDeps??[],o;function f(){var h,g,p,m;let y;i.key&&((h=i.debug)!=null&&h.call(i))&&(y=Date.now());const R=n();if(!(R.length!==s.length||R.some((_,T)=>s[T]!==_)))return o;s=R;let S;if(i.key&&((g=i.debug)!=null&&g.call(i))&&(S=Date.now()),o=u(...R),i.key&&((p=i.debug)!=null&&p.call(i))){const _=Math.round((Date.now()-y)*100)/100,T=Math.round((Date.now()-S)*100)/100,N=T/16,U=(j,G)=>{for(j=String(j);j.length<G;)j=" "+j;return j};console.info(`%c⏱ ${U(T,5)} /${U(_,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,o),o}return f.updateDeps=h=>{s=h},f}function xg(n,u){if(n===void 0)throw new Error("Unexpected undefined");return n}const bS=(n,u)=>Math.abs(n-u)<1.01,ES=(n,u,i)=>{let s;return function(...o){n.clearTimeout(s),s=n.setTimeout(()=>u.apply(this,o),i)}},wg=n=>{const{offsetWidth:u,offsetHeight:i}=n;return{width:u,height:i}},_S=n=>n,MS=n=>{const u=Math.max(n.startIndex-n.overscan,0),i=Math.min(n.endIndex+n.overscan,n.count-1),s=[];for(let o=u;o<=i;o++)s.push(o);return s},TS=(n,u)=>{const i=n.scrollElement;if(!i)return;const s=n.targetWindow;if(!s)return;const o=h=>{const{width:g,height:p}=h;u({width:Math.round(g),height:Math.round(p)})};if(o(wg(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){o({width:m.inlineSize,height:m.blockSize});return}}o(wg(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(g):g()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},zg={passive:!0},Og=typeof window>"u"?!0:"onscrollend"in window,xS=(n,u)=>{const i=n.scrollElement;if(!i)return;const s=n.targetWindow;if(!s)return;let o=0;const f=n.options.useScrollendEvent&&Og?()=>{}:ES(s,()=>{u(o,!1)},n.options.isScrollingResetDelay),h=y=>()=>{const{horizontal:R,isRtl:C}=n.options;o=R?i.scrollLeft*(C&&-1||1):i.scrollTop,f(),u(o,y)},g=h(!0),p=h(!1);p(),i.addEventListener("scroll",g,zg);const m=n.options.useScrollendEvent&&Og;return m&&i.addEventListener("scrollend",p,zg),()=>{i.removeEventListener("scroll",g),m&&i.removeEventListener("scrollend",p)}},wS=(n,u,i)=>{if(u?.borderBoxSize){const s=u.borderBoxSize[0];if(s)return Math.round(s[i.options.horizontal?"inlineSize":"blockSize"])}return n[i.options.horizontal?"offsetWidth":"offsetHeight"]},zS=(n,{adjustments:u=0,behavior:i},s)=>{var o,f;const h=n+u;(f=(o=s.scrollElement)==null?void 0:o.scrollTo)==null||f.call(o,{[s.options.horizontal?"left":"top"]:h,behavior:i})};class OS{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(o=>{o.forEach(f=>{const h=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()})}));return{disconnect:()=>{var o;(o=s())==null||o.disconnect(),i=null},observe:o=>{var f;return(f=s())==null?void 0:f.observe(o,{box:"border-box"})},unobserve:o=>{var f;return(f=s())==null?void 0:f.unobserve(o)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([s,o])=>{typeof o>"u"&&delete i[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_S,rangeExtractor:MS,onChange:()=>{},measureElement:wS,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,o;(o=(s=this.options).onChange)==null||o.call(s,this,i)},this.maybeNotify=Pl(()=>(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(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,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 o=new Map,f=new Map;for(let h=s-1;h>=0;h--){const g=i[h];if(o.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&&o.set(g.lane,!0),o.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=Pl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,s,o,f,h)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:s,scrollMargin:o,getItemKey:f,enabled:h}),{key:!1}),this.getMeasurements=Pl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:s,scrollMargin:o,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 R=f(y),C=this.options.lanes===1?m[y-1]:this.getFurthestMeasurement(m,y),S=C?C.end+this.options.gap:s+o,_=g.get(R),T=typeof _=="number"?_:this.options.estimateSize(y),N=S+T,U=C?C.lane:y%this.options.lanes;m[y]={index:y,start:S,size:T,end:N,key:R,lane:U}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Pl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,s,o,f)=>this.range=i.length>0&&s>0?AS({measurements:i,outerSize:s,scrollOffset:o,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Pl(()=>{let i=null,s=null;const o=this.calculateRange();return o&&(i=o.startIndex,s=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,s]},(i,s,o,f,h)=>f===null||h===null?[]:i({startIndex:f,endIndex:h,overscan:s,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const s=this.options.indexAttribute,o=i.getAttribute(s);return o?parseInt(o,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(i,s)=>{const o=this.indexFromElement(i),f=this.measurementsCache[o];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(o,this.options.measureElement(i,s,this))},this.resizeItem=(i,s)=>{const o=this.measurementsCache[i];if(!o)return;const f=this.itemSizeCache.get(o.key)??o.size,h=s-f;h!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,h,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=h,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,s)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,o)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(o))});return}this._measureElement(i,void 0)},this.getVirtualItems=Pl(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,s)=>{const o=[];for(let f=0,h=i.length;f<h;f++){const g=i[f],p=s[g];o.push(p)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const s=this.getMeasurements();if(s.length!==0)return xg(s[fm(0,s.length-1,o=>xg(s[o]).start,i)])},this.getOffsetForAlignment=(i,s,o=0)=>{const f=this.getSize(),h=this.getScrollOffset();s==="auto"&&(s=i>=h+f?"end":"start"),s==="center"?i+=(o-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 o=this.measurementsCache[i];if(!o)return;const f=this.getSize(),h=this.getScrollOffset();if(s==="auto")if(o.end>=h+f-this.options.scrollPaddingEnd)s="end";else if(o.start<=h+this.options.scrollPaddingStart)s="start";else return[h,s];const g=s==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(g,s,o.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:s="start",behavior:o}={})=>{o==="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:o})},this.scrollToIndex=(i,{align:s="auto",behavior:o}={})=>{o==="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[R,C]=y;this._scrollToOffset(R,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{const S=this.getScrollOffset(),_=this.getOffsetForIndex(i,C);if(!_){console.warn("Failed to get offset for index:",i);return}bS(_[0],S)||p(C)})},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 o;if(s.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((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--}o=Math.max(...f.filter(g=>g!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:s,behavior:o})=>{this.options.scrollToFn(i,{behavior:o,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(u)}}const fm=(n,u,i,s)=>{for(;n<=u;){const o=(n+u)/2|0,f=i(o);if(f<s)n=o+1;else if(f>s)u=o-1;else return o}return n>0?n-1:0};function AS({measurements:n,outerSize:u,scrollOffset:i,lanes:s}){const o=n.length-1,f=p=>n[p].start;if(n.length<=s)return{startIndex:0,endIndex:o};let h=fm(0,o,f,i),g=h;if(s===1)for(;g<o&&n[g].end<i+u;)g++;else if(s>1){const p=Array(s).fill(0);for(;g<o&&p.some(y=>y<i+u);){const y=n[g];p[y.lane]=y.end,g++}const m=Array(s).fill(i+u);for(;h>=0&&m.some(y=>y>=i);){const y=n[h];m[y.lane]=y.start,h--}h=Math.max(0,h-h%s),g=Math.min(o,g+(s-1-g%s))}return{startIndex:h,endIndex:g}}const Ag=typeof document<"u"?x.useLayoutEffect:x.useEffect;function DS(n){const u=x.useReducer(()=>({}),{})[1],i={...n,onChange:(o,f)=>{var h;f?Ig.flushSync(u):u(),(h=n.onChange)==null||h.call(n,o,f)}},[s]=x.useState(()=>new OS(i));return s.setOptions(i),Ag(()=>s._didMount(),[]),Ag(()=>s._willUpdate()),s}function NS(n){return DS({observeElementRect:TS,observeElementOffset:xS,scrollToFn:zS,...n})}/**
   * 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 qn(n,u){return typeof n=="function"?n(u):n}function Rt(n,u){return i=>{u.setState(s=>({...s,[n]:qn(i,s[n])}))}}function ju(n){return n instanceof Function}function US(n){return Array.isArray(n)&&n.every(u=>typeof u=="number")}function HS(n,u){const i=[],s=o=>{o.forEach(f=>{i.push(f);const h=u(f);h!=null&&h.length&&s(h)})};return s(n),i}function W(n,u,i){let s=[],o;return f=>{let h;i.key&&i.debug&&(h=Date.now());const g=n(f);if(!(g.length!==s.length||g.some((y,R)=>s[R]!==y)))return o;s=g;let m;if(i.key&&i.debug&&(m=Date.now()),o=u(...g),i==null||i.onChange==null||i.onChange(o),i.key&&i.debug&&i!=null&&i.debug()){const y=Math.round((Date.now()-h)*100)/100,R=Math.round((Date.now()-m)*100)/100,C=R/16,S=(_,T)=>{for(_=String(_);_.length<T;)_=" "+_;return _};console.info(`%c⏱ ${S(R,5)} /${S(y,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*C,120))}deg 100% 31%);`,i?.key)}return o}}function ee(n,u,i,s){return{debug:()=>{var o;return(o=n?.debugAll)!=null?o:n[u]},key:!1,onChange:s}}function jS(n,u,i,s){const o=()=>{var h;return(h=f.getValue())!=null?h:n.options.renderFallbackValue},f={id:`${u.id}_${i.id}`,row:u,column:i,getValue:()=>u.getValue(s),renderValue:o,getContext:W(()=>[n,i,u,f],(h,g,p,m)=>({table:h,column:g,row:p,cell:m,getValue:m.getValue,renderValue:m.renderValue}),ee(n.options,"debugCells"))};return n._features.forEach(h=>{h.createCell==null||h.createCell(f,i,u,n)},{}),f}function VS(n,u,i,s){var o,f;const g={...n._getDefaultColumnDef(),...u},p=g.accessorKey;let m=(o=(f=g.id)!=null?f:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?o:typeof g.header=="string"?g.header:void 0,y;if(g.accessorFn?y=g.accessorFn:p&&(p.includes(".")?y=C=>{let S=C;for(const T of p.split(".")){var _;S=(_=S)==null?void 0:_[T]}return S}:y=C=>C[g.accessorKey]),!m)throw new Error;let R={id:`${String(m)}`,accessorFn:y,parent:s,depth:i,columnDef:g,columns:[],getFlatColumns:W(()=>[!0],()=>{var C;return[R,...(C=R.columns)==null?void 0:C.flatMap(S=>S.getFlatColumns())]},ee(n.options,"debugColumns")),getLeafColumns:W(()=>[n._getOrderColumnsFn()],C=>{var S;if((S=R.columns)!=null&&S.length){let _=R.columns.flatMap(T=>T.getLeafColumns());return C(_)}return[R]},ee(n.options,"debugColumns"))};for(const C of n._features)C.createColumn==null||C.createColumn(R,n);return R}const Ie="debugHeaders";function Dg(n,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:n,header:f,column:u})};return n._features.forEach(h=>{h.createHeader==null||h.createHeader(f,n)}),f}const LS={createTable:n=>{n.getHeaderGroups=W(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(u,i,s,o)=>{var f,h;const g=(f=s?.map(R=>i.find(C=>C.id===R)).filter(Boolean))!=null?f:[],p=(h=o?.map(R=>i.find(C=>C.id===R)).filter(Boolean))!=null?h:[],m=i.filter(R=>!(s!=null&&s.includes(R.id))&&!(o!=null&&o.includes(R.id)));return Mu(u,[...g,...m,...p],n)},ee(n.options,Ie)),n.getCenterHeaderGroups=W(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(u,i,s,o)=>(i=i.filter(f=>!(s!=null&&s.includes(f.id))&&!(o!=null&&o.includes(f.id))),Mu(u,i,n,"center")),ee(n.options,Ie)),n.getLeftHeaderGroups=W(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left],(u,i,s)=>{var o;const f=(o=s?.map(h=>i.find(g=>g.id===h)).filter(Boolean))!=null?o:[];return Mu(u,f,n,"left")},ee(n.options,Ie)),n.getRightHeaderGroups=W(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.right],(u,i,s)=>{var o;const f=(o=s?.map(h=>i.find(g=>g.id===h)).filter(Boolean))!=null?o:[];return Mu(u,f,n,"right")},ee(n.options,Ie)),n.getFooterGroups=W(()=>[n.getHeaderGroups()],u=>[...u].reverse(),ee(n.options,Ie)),n.getLeftFooterGroups=W(()=>[n.getLeftHeaderGroups()],u=>[...u].reverse(),ee(n.options,Ie)),n.getCenterFooterGroups=W(()=>[n.getCenterHeaderGroups()],u=>[...u].reverse(),ee(n.options,Ie)),n.getRightFooterGroups=W(()=>[n.getRightHeaderGroups()],u=>[...u].reverse(),ee(n.options,Ie)),n.getFlatHeaders=W(()=>[n.getHeaderGroups()],u=>u.map(i=>i.headers).flat(),ee(n.options,Ie)),n.getLeftFlatHeaders=W(()=>[n.getLeftHeaderGroups()],u=>u.map(i=>i.headers).flat(),ee(n.options,Ie)),n.getCenterFlatHeaders=W(()=>[n.getCenterHeaderGroups()],u=>u.map(i=>i.headers).flat(),ee(n.options,Ie)),n.getRightFlatHeaders=W(()=>[n.getRightHeaderGroups()],u=>u.map(i=>i.headers).flat(),ee(n.options,Ie)),n.getCenterLeafHeaders=W(()=>[n.getCenterFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),ee(n.options,Ie)),n.getLeftLeafHeaders=W(()=>[n.getLeftFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),ee(n.options,Ie)),n.getRightLeafHeaders=W(()=>[n.getRightFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),ee(n.options,Ie)),n.getLeafHeaders=W(()=>[n.getLeftHeaderGroups(),n.getCenterHeaderGroups(),n.getRightHeaderGroups()],(u,i,s)=>{var o,f,h,g,p,m;return[...(o=(f=u[0])==null?void 0:f.headers)!=null?o:[],...(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()},ee(n.options,Ie))}};function Mu(n,u,i,s){var o,f;let h=0;const g=function(C,S){S===void 0&&(S=1),h=Math.max(h,S),C.filter(_=>_.getIsVisible()).forEach(_=>{var T;(T=_.columns)!=null&&T.length&&g(_.columns,S+1)},0)};g(n);let p=[];const m=(C,S)=>{const _={depth:S,id:[s,`${S}`].filter(Boolean).join("_"),headers:[]},T=[];C.forEach(N=>{const U=[...T].reverse()[0],j=N.column.depth===_.depth;let G,P=!1;if(j&&N.column.parent?G=N.column.parent:(G=N.column,P=!0),U&&U?.column===G)U.subHeaders.push(N);else{const k=Dg(i,G,{id:[s,S,G.id,N?.id].filter(Boolean).join("_"),isPlaceholder:P,placeholderId:P?`${T.filter(ge=>ge.column===G).length}`:void 0,depth:S,index:T.length});k.subHeaders.push(N),T.push(k)}_.headers.push(N),N.headerGroup=_}),p.push(_),S>0&&m(T,S-1)},y=u.map((C,S)=>Dg(i,C,{depth:h,index:S}));m(y,h-1),p.reverse();const R=C=>C.filter(_=>_.column.getIsVisible()).map(_=>{let T=0,N=0,U=[0];_.subHeaders&&_.subHeaders.length?(U=[],R(_.subHeaders).forEach(G=>{let{colSpan:P,rowSpan:k}=G;T+=P,U.push(k)})):T=1;const j=Math.min(...U);return N=N+j,_.colSpan=T,_.rowSpan=N,{colSpan:T,rowSpan:N}});return R((o=(f=p[0])==null?void 0:f.headers)!=null?o:[]),p}const Po=(n,u,i,s,o,f,h)=>{let g={id:u,index:s,original:i,depth:o,parentId:h,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(g._valuesCache.hasOwnProperty(p))return g._valuesCache[p];const m=n.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=n.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:n.options.renderFallbackValue},subRows:[],getLeafRows:()=>HS(g.subRows,p=>p.subRows),getParentRow:()=>g.parentId?n.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:W(()=>[n.getAllLeafColumns()],p=>p.map(m=>jS(n,g,m,m.id)),ee(n.options,"debugRows")),_getAllCellsByColumnId:W(()=>[g.getAllCells()],p=>p.reduce((m,y)=>(m[y.column.id]=y,m),{}),ee(n.options,"debugRows"))};for(let p=0;p<n._features.length;p++){const m=n._features[p];m==null||m.createRow==null||m.createRow(g,n)}return g},BS={createColumn:(n,u)=>{n._getFacetedRowModel=u.options.getFacetedRowModel&&u.options.getFacetedRowModel(u,n.id),n.getFacetedRowModel=()=>n._getFacetedRowModel?n._getFacetedRowModel():u.getPreFilteredRowModel(),n._getFacetedUniqueValues=u.options.getFacetedUniqueValues&&u.options.getFacetedUniqueValues(u,n.id),n.getFacetedUniqueValues=()=>n._getFacetedUniqueValues?n._getFacetedUniqueValues():new Map,n._getFacetedMinMaxValues=u.options.getFacetedMinMaxValues&&u.options.getFacetedMinMaxValues(u,n.id),n.getFacetedMinMaxValues=()=>{if(n._getFacetedMinMaxValues)return n._getFacetedMinMaxValues()}}},dm=(n,u,i)=>{var s,o;const f=i==null||(s=i.toString())==null?void 0:s.toLowerCase();return!!(!((o=n.getValue(u))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(f))};dm.autoRemove=n=>Vt(n);const hm=(n,u,i)=>{var s;return!!(!((s=n.getValue(u))==null||(s=s.toString())==null)&&s.includes(i))};hm.autoRemove=n=>Vt(n);const gm=(n,u,i)=>{var s;return((s=n.getValue(u))==null||(s=s.toString())==null?void 0:s.toLowerCase())===i?.toLowerCase()};gm.autoRemove=n=>Vt(n);const mm=(n,u,i)=>{var s;return(s=n.getValue(u))==null?void 0:s.includes(i)};mm.autoRemove=n=>Vt(n);const pm=(n,u,i)=>!i.some(s=>{var o;return!((o=n.getValue(u))!=null&&o.includes(s))});pm.autoRemove=n=>Vt(n)||!(n!=null&&n.length);const vm=(n,u,i)=>i.some(s=>{var o;return(o=n.getValue(u))==null?void 0:o.includes(s)});vm.autoRemove=n=>Vt(n)||!(n!=null&&n.length);const ym=(n,u,i)=>n.getValue(u)===i;ym.autoRemove=n=>Vt(n);const Sm=(n,u,i)=>n.getValue(u)==i;Sm.autoRemove=n=>Vt(n);const ko=(n,u,i)=>{let[s,o]=i;const f=n.getValue(u);return f>=s&&f<=o};ko.resolveFilterValue=n=>{let[u,i]=n,s=typeof u!="number"?parseFloat(u):u,o=typeof i!="number"?parseFloat(i):i,f=u===null||Number.isNaN(s)?-1/0:s,h=i===null||Number.isNaN(o)?1/0:o;if(f>h){const g=f;f=h,h=g}return[f,h]};ko.autoRemove=n=>Vt(n)||Vt(n[0])&&Vt(n[1]);const dn={includesString:dm,includesStringSensitive:hm,equalsString:gm,arrIncludes:mm,arrIncludesAll:pm,arrIncludesSome:vm,equals:ym,weakEquals:Sm,inNumberRange:ko};function Vt(n){return n==null||n===""}const qS={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:n=>({columnFilters:[],...n}),getDefaultOptions:n=>({onColumnFiltersChange:Rt("columnFilters",n),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(n,u)=>{n.getAutoFilterFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(n.id);return typeof s=="string"?dn.includesString:typeof s=="number"?dn.inNumberRange:typeof s=="boolean"||s!==null&&typeof s=="object"?dn.equals:Array.isArray(s)?dn.arrIncludes:dn.weakEquals},n.getFilterFn=()=>{var i,s;return ju(n.columnDef.filterFn)?n.columnDef.filterFn:n.columnDef.filterFn==="auto"?n.getAutoFilterFn():(i=(s=u.options.filterFns)==null?void 0:s[n.columnDef.filterFn])!=null?i:dn[n.columnDef.filterFn]},n.getCanFilter=()=>{var i,s,o;return((i=n.columnDef.enableColumnFilter)!=null?i:!0)&&((s=u.options.enableColumnFilters)!=null?s:!0)&&((o=u.options.enableFilters)!=null?o:!0)&&!!n.accessorFn},n.getIsFiltered=()=>n.getFilterIndex()>-1,n.getFilterValue=()=>{var i;return(i=u.getState().columnFilters)==null||(i=i.find(s=>s.id===n.id))==null?void 0:i.value},n.getFilterIndex=()=>{var i,s;return(i=(s=u.getState().columnFilters)==null?void 0:s.findIndex(o=>o.id===n.id))!=null?i:-1},n.setFilterValue=i=>{u.setColumnFilters(s=>{const o=n.getFilterFn(),f=s?.find(y=>y.id===n.id),h=qn(i,f?f.value:void 0);if(Ng(o,h,n)){var g;return(g=s?.filter(y=>y.id!==n.id))!=null?g:[]}const p={id:n.id,value:h};if(f){var m;return(m=s?.map(y=>y.id===n.id?p:y))!=null?m:[]}return s!=null&&s.length?[...s,p]:[p]})}},createRow:(n,u)=>{n.columnFilters={},n.columnFiltersMeta={}},createTable:n=>{n.setColumnFilters=u=>{const i=n.getAllLeafColumns(),s=o=>{var f;return(f=qn(u,o))==null?void 0:f.filter(h=>{const g=i.find(p=>p.id===h.id);if(g){const p=g.getFilterFn();if(Ng(p,h.value,g))return!1}return!0})};n.options.onColumnFiltersChange==null||n.options.onColumnFiltersChange(s)},n.resetColumnFilters=u=>{var i,s;n.setColumnFilters(u?[]:(i=(s=n.initialState)==null?void 0:s.columnFilters)!=null?i:[])},n.getPreFilteredRowModel=()=>n.getCoreRowModel(),n.getFilteredRowModel=()=>(!n._getFilteredRowModel&&n.options.getFilteredRowModel&&(n._getFilteredRowModel=n.options.getFilteredRowModel(n)),n.options.manualFiltering||!n._getFilteredRowModel?n.getPreFilteredRowModel():n._getFilteredRowModel())}};function Ng(n,u,i){return(n&&n.autoRemove?n.autoRemove(u,i):!1)||typeof u>"u"||typeof u=="string"&&!u}const FS=(n,u,i)=>i.reduce((s,o)=>{const f=o.getValue(n);return s+(typeof f=="number"?f:0)},0),GS=(n,u,i)=>{let s;return i.forEach(o=>{const f=o.getValue(n);f!=null&&(s>f||s===void 0&&f>=f)&&(s=f)}),s},QS=(n,u,i)=>{let s;return i.forEach(o=>{const f=o.getValue(n);f!=null&&(s<f||s===void 0&&f>=f)&&(s=f)}),s},YS=(n,u,i)=>{let s,o;return i.forEach(f=>{const h=f.getValue(n);h!=null&&(s===void 0?h>=h&&(s=o=h):(s>h&&(s=h),o<h&&(o=h)))}),[s,o]},$S=(n,u)=>{let i=0,s=0;if(u.forEach(o=>{let f=o.getValue(n);f!=null&&(f=+f)>=f&&(++i,s+=f)}),i)return s/i},XS=(n,u)=>{if(!u.length)return;const i=u.map(f=>f.getValue(n));if(!US(i))return;if(i.length===1)return i[0];const s=Math.floor(i.length/2),o=i.sort((f,h)=>f-h);return i.length%2!==0?o[s]:(o[s-1]+o[s])/2},KS=(n,u)=>Array.from(new Set(u.map(i=>i.getValue(n))).values()),ZS=(n,u)=>new Set(u.map(i=>i.getValue(n))).size,JS=(n,u)=>u.length,fo={sum:FS,min:GS,max:QS,extent:YS,mean:$S,median:XS,unique:KS,uniqueCount:ZS,count:JS},PS={getDefaultColumnDef:()=>({aggregatedCell:n=>{var u,i;return(u=(i=n.getValue())==null||i.toString==null?void 0:i.toString())!=null?u:null},aggregationFn:"auto"}),getInitialState:n=>({grouping:[],...n}),getDefaultOptions:n=>({onGroupingChange:Rt("grouping",n),groupedColumnMode:"reorder"}),createColumn:(n,u)=>{n.toggleGrouping=()=>{u.setGrouping(i=>i!=null&&i.includes(n.id)?i.filter(s=>s!==n.id):[...i??[],n.id])},n.getCanGroup=()=>{var i,s;return((i=n.columnDef.enableGrouping)!=null?i:!0)&&((s=u.options.enableGrouping)!=null?s:!0)&&(!!n.accessorFn||!!n.columnDef.getGroupingValue)},n.getIsGrouped=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.includes(n.id)},n.getGroupedIndex=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.indexOf(n.id)},n.getToggleGroupingHandler=()=>{const i=n.getCanGroup();return()=>{i&&n.toggleGrouping()}},n.getAutoAggregationFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(n.id);if(typeof s=="number")return fo.sum;if(Object.prototype.toString.call(s)==="[object Date]")return fo.extent},n.getAggregationFn=()=>{var i,s;if(!n)throw new Error;return ju(n.columnDef.aggregationFn)?n.columnDef.aggregationFn:n.columnDef.aggregationFn==="auto"?n.getAutoAggregationFn():(i=(s=u.options.aggregationFns)==null?void 0:s[n.columnDef.aggregationFn])!=null?i:fo[n.columnDef.aggregationFn]}},createTable:n=>{n.setGrouping=u=>n.options.onGroupingChange==null?void 0:n.options.onGroupingChange(u),n.resetGrouping=u=>{var i,s;n.setGrouping(u?[]:(i=(s=n.initialState)==null?void 0:s.grouping)!=null?i:[])},n.getPreGroupedRowModel=()=>n.getFilteredRowModel(),n.getGroupedRowModel=()=>(!n._getGroupedRowModel&&n.options.getGroupedRowModel&&(n._getGroupedRowModel=n.options.getGroupedRowModel(n)),n.options.manualGrouping||!n._getGroupedRowModel?n.getPreGroupedRowModel():n._getGroupedRowModel())},createRow:(n,u)=>{n.getIsGrouped=()=>!!n.groupingColumnId,n.getGroupingValue=i=>{if(n._groupingValuesCache.hasOwnProperty(i))return n._groupingValuesCache[i];const s=u.getColumn(i);return s!=null&&s.columnDef.getGroupingValue?(n._groupingValuesCache[i]=s.columnDef.getGroupingValue(n.original),n._groupingValuesCache[i]):n.getValue(i)},n._groupingValuesCache={}},createCell:(n,u,i,s)=>{n.getIsGrouped=()=>u.getIsGrouped()&&u.id===i.groupingColumnId,n.getIsPlaceholder=()=>!n.getIsGrouped()&&u.getIsGrouped(),n.getIsAggregated=()=>{var o;return!n.getIsGrouped()&&!n.getIsPlaceholder()&&!!((o=i.subRows)!=null&&o.length)}}};function kS(n,u,i){if(!(u!=null&&u.length)||!i)return n;const s=n.filter(f=>!u.includes(f.id));return i==="remove"?s:[...u.map(f=>n.find(h=>h.id===f)).filter(Boolean),...s]}const IS={getInitialState:n=>({columnOrder:[],...n}),getDefaultOptions:n=>({onColumnOrderChange:Rt("columnOrder",n)}),createColumn:(n,u)=>{n.getIndex=W(i=>[Ia(u,i)],i=>i.findIndex(s=>s.id===n.id),ee(u.options,"debugColumns")),n.getIsFirstColumn=i=>{var s;return((s=Ia(u,i)[0])==null?void 0:s.id)===n.id},n.getIsLastColumn=i=>{var s;const o=Ia(u,i);return((s=o[o.length-1])==null?void 0:s.id)===n.id}},createTable:n=>{n.setColumnOrder=u=>n.options.onColumnOrderChange==null?void 0:n.options.onColumnOrderChange(u),n.resetColumnOrder=u=>{var i;n.setColumnOrder(u?[]:(i=n.initialState.columnOrder)!=null?i:[])},n._getOrderColumnsFn=W(()=>[n.getState().columnOrder,n.getState().grouping,n.options.groupedColumnMode],(u,i,s)=>o=>{let f=[];if(!(u!=null&&u.length))f=o;else{const h=[...u],g=[...o];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 kS(f,i,s)},ee(n.options,"debugTable"))}},ho=()=>({left:[],right:[]}),WS={getInitialState:n=>({columnPinning:ho(),...n}),getDefaultOptions:n=>({onColumnPinningChange:Rt("columnPinning",n)}),createColumn:(n,u)=>{n.pin=i=>{const s=n.getLeafColumns().map(o=>o.id).filter(Boolean);u.setColumnPinning(o=>{var f,h;if(i==="right"){var g,p;return{left:((g=o?.left)!=null?g:[]).filter(R=>!(s!=null&&s.includes(R))),right:[...((p=o?.right)!=null?p:[]).filter(R=>!(s!=null&&s.includes(R))),...s]}}if(i==="left"){var m,y;return{left:[...((m=o?.left)!=null?m:[]).filter(R=>!(s!=null&&s.includes(R))),...s],right:((y=o?.right)!=null?y:[]).filter(R=>!(s!=null&&s.includes(R)))}}return{left:((f=o?.left)!=null?f:[]).filter(R=>!(s!=null&&s.includes(R))),right:((h=o?.right)!=null?h:[]).filter(R=>!(s!=null&&s.includes(R)))}})},n.getCanPin=()=>n.getLeafColumns().some(s=>{var o,f,h;return((o=s.columnDef.enablePinning)!=null?o:!0)&&((f=(h=u.options.enableColumnPinning)!=null?h:u.options.enablePinning)!=null?f:!0)}),n.getIsPinned=()=>{const i=n.getLeafColumns().map(g=>g.id),{left:s,right:o}=u.getState().columnPinning,f=i.some(g=>s?.includes(g)),h=i.some(g=>o?.includes(g));return f?"left":h?"right":!1},n.getPinnedIndex=()=>{var i,s;const o=n.getIsPinned();return o?(i=(s=u.getState().columnPinning)==null||(s=s[o])==null?void 0:s.indexOf(n.id))!=null?i:-1:0}},createRow:(n,u)=>{n.getCenterVisibleCells=W(()=>[n._getAllVisibleCells(),u.getState().columnPinning.left,u.getState().columnPinning.right],(i,s,o)=>{const f=[...s??[],...o??[]];return i.filter(h=>!f.includes(h.column.id))},ee(u.options,"debugRows")),n.getLeftVisibleCells=W(()=>[n._getAllVisibleCells(),u.getState().columnPinning.left],(i,s)=>(s??[]).map(f=>i.find(h=>h.column.id===f)).filter(Boolean).map(f=>({...f,position:"left"})),ee(u.options,"debugRows")),n.getRightVisibleCells=W(()=>[n._getAllVisibleCells(),u.getState().columnPinning.right],(i,s)=>(s??[]).map(f=>i.find(h=>h.column.id===f)).filter(Boolean).map(f=>({...f,position:"right"})),ee(u.options,"debugRows"))},createTable:n=>{n.setColumnPinning=u=>n.options.onColumnPinningChange==null?void 0:n.options.onColumnPinningChange(u),n.resetColumnPinning=u=>{var i,s;return n.setColumnPinning(u?ho():(i=(s=n.initialState)==null?void 0:s.columnPinning)!=null?i:ho())},n.getIsSomeColumnsPinned=u=>{var i;const s=n.getState().columnPinning;if(!u){var o,f;return!!((o=s.left)!=null&&o.length||(f=s.right)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},n.getLeftLeafColumns=W(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left],(u,i)=>(i??[]).map(s=>u.find(o=>o.id===s)).filter(Boolean),ee(n.options,"debugColumns")),n.getRightLeafColumns=W(()=>[n.getAllLeafColumns(),n.getState().columnPinning.right],(u,i)=>(i??[]).map(s=>u.find(o=>o.id===s)).filter(Boolean),ee(n.options,"debugColumns")),n.getCenterLeafColumns=W(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(u,i,s)=>{const o=[...i??[],...s??[]];return u.filter(f=>!o.includes(f.id))},ee(n.options,"debugColumns"))}};function e1(n){return n||(typeof document<"u"?document:null)}const Tu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},go=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),t1={getDefaultColumnDef:()=>Tu,getInitialState:n=>({columnSizing:{},columnSizingInfo:go(),...n}),getDefaultOptions:n=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Rt("columnSizing",n),onColumnSizingInfoChange:Rt("columnSizingInfo",n)}),createColumn:(n,u)=>{n.getSize=()=>{var i,s,o;const f=u.getState().columnSizing[n.id];return Math.min(Math.max((i=n.columnDef.minSize)!=null?i:Tu.minSize,(s=f??n.columnDef.size)!=null?s:Tu.size),(o=n.columnDef.maxSize)!=null?o:Tu.maxSize)},n.getStart=W(i=>[i,Ia(u,i),u.getState().columnSizing],(i,s)=>s.slice(0,n.getIndex(i)).reduce((o,f)=>o+f.getSize(),0),ee(u.options,"debugColumns")),n.getAfter=W(i=>[i,Ia(u,i),u.getState().columnSizing],(i,s)=>s.slice(n.getIndex(i)+1).reduce((o,f)=>o+f.getSize(),0),ee(u.options,"debugColumns")),n.resetSize=()=>{u.setColumnSizing(i=>{let{[n.id]:s,...o}=i;return o})},n.getCanResize=()=>{var i,s;return((i=n.columnDef.enableResizing)!=null?i:!0)&&((s=u.options.enableColumnResizing)!=null?s:!0)},n.getIsResizing=()=>u.getState().columnSizingInfo.isResizingColumn===n.id},createHeader:(n,u)=>{n.getSize=()=>{let i=0;const s=o=>{if(o.subHeaders.length)o.subHeaders.forEach(s);else{var f;i+=(f=o.column.getSize())!=null?f:0}};return s(n),i},n.getStart=()=>{if(n.index>0){const i=n.headerGroup.headers[n.index-1];return i.getStart()+i.getSize()}return 0},n.getResizeHandler=i=>{const s=u.getColumn(n.column.id),o=s?.getCanResize();return f=>{if(!s||!o||(f.persist==null||f.persist(),mo(f)&&f.touches&&f.touches.length>1))return;const h=n.getSize(),g=n?n.getLeafHeaders().map(U=>[U.column.id,U.column.getSize()]):[[s.id,s.getSize()]],p=mo(f)?Math.round(f.touches[0].clientX):f.clientX,m={},y=(U,j)=>{typeof j=="number"&&(u.setColumnSizingInfo(G=>{var P,k;const ge=u.options.columnResizeDirection==="rtl"?-1:1,Z=(j-((P=G?.startOffset)!=null?P:0))*ge,ue=Math.max(Z/((k=G?.startSize)!=null?k:0),-.999999);return G.columnSizingStart.forEach(ce=>{let[Me,Ue]=ce;m[Me]=Math.round(Math.max(Ue+Ue*ue,0)*100)/100}),{...G,deltaOffset:Z,deltaPercentage:ue}}),(u.options.columnResizeMode==="onChange"||U==="end")&&u.setColumnSizing(G=>({...G,...m})))},R=U=>y("move",U),C=U=>{y("end",U),u.setColumnSizingInfo(j=>({...j,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},S=e1(i),_={moveHandler:U=>R(U.clientX),upHandler:U=>{S?.removeEventListener("mousemove",_.moveHandler),S?.removeEventListener("mouseup",_.upHandler),C(U.clientX)}},T={moveHandler:U=>(U.cancelable&&(U.preventDefault(),U.stopPropagation()),R(U.touches[0].clientX),!1),upHandler:U=>{var j;S?.removeEventListener("touchmove",T.moveHandler),S?.removeEventListener("touchend",T.upHandler),U.cancelable&&(U.preventDefault(),U.stopPropagation()),C((j=U.touches[0])==null?void 0:j.clientX)}},N=n1()?{passive:!1}:!1;mo(f)?(S?.addEventListener("touchmove",T.moveHandler,N),S?.addEventListener("touchend",T.upHandler,N)):(S?.addEventListener("mousemove",_.moveHandler,N),S?.addEventListener("mouseup",_.upHandler,N)),u.setColumnSizingInfo(U=>({...U,startOffset:p,startSize:h,deltaOffset:0,deltaPercentage:0,columnSizingStart:g,isResizingColumn:s.id}))}}},createTable:n=>{n.setColumnSizing=u=>n.options.onColumnSizingChange==null?void 0:n.options.onColumnSizingChange(u),n.setColumnSizingInfo=u=>n.options.onColumnSizingInfoChange==null?void 0:n.options.onColumnSizingInfoChange(u),n.resetColumnSizing=u=>{var i;n.setColumnSizing(u?{}:(i=n.initialState.columnSizing)!=null?i:{})},n.resetHeaderSizeInfo=u=>{var i;n.setColumnSizingInfo(u?go():(i=n.initialState.columnSizingInfo)!=null?i:go())},n.getTotalSize=()=>{var u,i;return(u=(i=n.getHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0},n.getLeftTotalSize=()=>{var u,i;return(u=(i=n.getLeftHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0},n.getCenterTotalSize=()=>{var u,i;return(u=(i=n.getCenterHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0},n.getRightTotalSize=()=>{var u,i;return(u=(i=n.getRightHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0}}};let xu=null;function n1(){if(typeof xu=="boolean")return xu;let n=!1;try{const u={get passive(){return n=!0,!1}},i=()=>{};window.addEventListener("test",i,u),window.removeEventListener("test",i)}catch{n=!1}return xu=n,xu}function mo(n){return n.type==="touchstart"}const l1={getInitialState:n=>({columnVisibility:{},...n}),getDefaultOptions:n=>({onColumnVisibilityChange:Rt("columnVisibility",n)}),createColumn:(n,u)=>{n.toggleVisibility=i=>{n.getCanHide()&&u.setColumnVisibility(s=>({...s,[n.id]:i??!n.getIsVisible()}))},n.getIsVisible=()=>{var i,s;const o=n.columns;return(i=o.length?o.some(f=>f.getIsVisible()):(s=u.getState().columnVisibility)==null?void 0:s[n.id])!=null?i:!0},n.getCanHide=()=>{var i,s;return((i=n.columnDef.enableHiding)!=null?i:!0)&&((s=u.options.enableHiding)!=null?s:!0)},n.getToggleVisibilityHandler=()=>i=>{n.toggleVisibility==null||n.toggleVisibility(i.target.checked)}},createRow:(n,u)=>{n._getAllVisibleCells=W(()=>[n.getAllCells(),u.getState().columnVisibility],i=>i.filter(s=>s.column.getIsVisible()),ee(u.options,"debugRows")),n.getVisibleCells=W(()=>[n.getLeftVisibleCells(),n.getCenterVisibleCells(),n.getRightVisibleCells()],(i,s,o)=>[...i,...s,...o],ee(u.options,"debugRows"))},createTable:n=>{const u=(i,s)=>W(()=>[s(),s().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(f=>f.getIsVisible==null?void 0:f.getIsVisible()),ee(n.options,"debugColumns"));n.getVisibleFlatColumns=u("getVisibleFlatColumns",()=>n.getAllFlatColumns()),n.getVisibleLeafColumns=u("getVisibleLeafColumns",()=>n.getAllLeafColumns()),n.getLeftVisibleLeafColumns=u("getLeftVisibleLeafColumns",()=>n.getLeftLeafColumns()),n.getRightVisibleLeafColumns=u("getRightVisibleLeafColumns",()=>n.getRightLeafColumns()),n.getCenterVisibleLeafColumns=u("getCenterVisibleLeafColumns",()=>n.getCenterLeafColumns()),n.setColumnVisibility=i=>n.options.onColumnVisibilityChange==null?void 0:n.options.onColumnVisibilityChange(i),n.resetColumnVisibility=i=>{var s;n.setColumnVisibility(i?{}:(s=n.initialState.columnVisibility)!=null?s:{})},n.toggleAllColumnsVisible=i=>{var s;i=(s=i)!=null?s:!n.getIsAllColumnsVisible(),n.setColumnVisibility(n.getAllLeafColumns().reduce((o,f)=>({...o,[f.id]:i||!(f.getCanHide!=null&&f.getCanHide())}),{}))},n.getIsAllColumnsVisible=()=>!n.getAllLeafColumns().some(i=>!(i.getIsVisible!=null&&i.getIsVisible())),n.getIsSomeColumnsVisible=()=>n.getAllLeafColumns().some(i=>i.getIsVisible==null?void 0:i.getIsVisible()),n.getToggleAllColumnsVisibilityHandler=()=>i=>{var s;n.toggleAllColumnsVisible((s=i.target)==null?void 0:s.checked)}}};function Ia(n,u){return u?u==="center"?n.getCenterVisibleLeafColumns():u==="left"?n.getLeftVisibleLeafColumns():n.getRightVisibleLeafColumns():n.getVisibleLeafColumns()}const a1={createTable:n=>{n._getGlobalFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,"__global__"),n.getGlobalFacetedRowModel=()=>n.options.manualFiltering||!n._getGlobalFacetedRowModel?n.getPreFilteredRowModel():n._getGlobalFacetedRowModel(),n._getGlobalFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,"__global__"),n.getGlobalFacetedUniqueValues=()=>n._getGlobalFacetedUniqueValues?n._getGlobalFacetedUniqueValues():new Map,n._getGlobalFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,"__global__"),n.getGlobalFacetedMinMaxValues=()=>{if(n._getGlobalFacetedMinMaxValues)return n._getGlobalFacetedMinMaxValues()}}},i1={getInitialState:n=>({globalFilter:void 0,...n}),getDefaultOptions:n=>({onGlobalFilterChange:Rt("globalFilter",n),globalFilterFn:"auto",getColumnCanGlobalFilter:u=>{var i;const s=(i=n.getCoreRowModel().flatRows[0])==null||(i=i._getAllCellsByColumnId()[u.id])==null?void 0:i.getValue();return typeof s=="string"||typeof s=="number"}}),createColumn:(n,u)=>{n.getCanGlobalFilter=()=>{var i,s,o,f;return((i=n.columnDef.enableGlobalFilter)!=null?i:!0)&&((s=u.options.enableGlobalFilter)!=null?s:!0)&&((o=u.options.enableFilters)!=null?o:!0)&&((f=u.options.getColumnCanGlobalFilter==null?void 0:u.options.getColumnCanGlobalFilter(n))!=null?f:!0)&&!!n.accessorFn}},createTable:n=>{n.getGlobalAutoFilterFn=()=>dn.includesString,n.getGlobalFilterFn=()=>{var u,i;const{globalFilterFn:s}=n.options;return ju(s)?s:s==="auto"?n.getGlobalAutoFilterFn():(u=(i=n.options.filterFns)==null?void 0:i[s])!=null?u:dn[s]},n.setGlobalFilter=u=>{n.options.onGlobalFilterChange==null||n.options.onGlobalFilterChange(u)},n.resetGlobalFilter=u=>{n.setGlobalFilter(u?void 0:n.initialState.globalFilter)}}},u1={getInitialState:n=>({expanded:{},...n}),getDefaultOptions:n=>({onExpandedChange:Rt("expanded",n),paginateExpandedRows:!0}),createTable:n=>{let u=!1,i=!1;n._autoResetExpanded=()=>{var s,o;if(!u){n._queue(()=>{u=!0});return}if((s=(o=n.options.autoResetAll)!=null?o:n.options.autoResetExpanded)!=null?s:!n.options.manualExpanding){if(i)return;i=!0,n._queue(()=>{n.resetExpanded(),i=!1})}},n.setExpanded=s=>n.options.onExpandedChange==null?void 0:n.options.onExpandedChange(s),n.toggleAllRowsExpanded=s=>{s??!n.getIsAllRowsExpanded()?n.setExpanded(!0):n.setExpanded({})},n.resetExpanded=s=>{var o,f;n.setExpanded(s?{}:(o=(f=n.initialState)==null?void 0:f.expanded)!=null?o:{})},n.getCanSomeRowsExpand=()=>n.getPrePaginationRowModel().flatRows.some(s=>s.getCanExpand()),n.getToggleAllRowsExpandedHandler=()=>s=>{s.persist==null||s.persist(),n.toggleAllRowsExpanded()},n.getIsSomeRowsExpanded=()=>{const s=n.getState().expanded;return s===!0||Object.values(s).some(Boolean)},n.getIsAllRowsExpanded=()=>{const s=n.getState().expanded;return typeof s=="boolean"?s===!0:!(!Object.keys(s).length||n.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},n.getExpandedDepth=()=>{let s=0;return(n.getState().expanded===!0?Object.keys(n.getRowModel().rowsById):Object.keys(n.getState().expanded)).forEach(f=>{const h=f.split(".");s=Math.max(s,h.length)}),s},n.getPreExpandedRowModel=()=>n.getSortedRowModel(),n.getExpandedRowModel=()=>(!n._getExpandedRowModel&&n.options.getExpandedRowModel&&(n._getExpandedRowModel=n.options.getExpandedRowModel(n)),n.options.manualExpanding||!n._getExpandedRowModel?n.getPreExpandedRowModel():n._getExpandedRowModel())},createRow:(n,u)=>{n.toggleExpanded=i=>{u.setExpanded(s=>{var o;const f=s===!0?!0:!!(s!=null&&s[n.id]);let h={};if(s===!0?Object.keys(u.getRowModel().rowsById).forEach(g=>{h[g]=!0}):h=s,i=(o=i)!=null?o:!f,!f&&i)return{...h,[n.id]:!0};if(f&&!i){const{[n.id]:g,...p}=h;return p}return s})},n.getIsExpanded=()=>{var i;const s=u.getState().expanded;return!!((i=u.options.getIsRowExpanded==null?void 0:u.options.getIsRowExpanded(n))!=null?i:s===!0||s?.[n.id])},n.getCanExpand=()=>{var i,s,o;return(i=u.options.getRowCanExpand==null?void 0:u.options.getRowCanExpand(n))!=null?i:((s=u.options.enableExpanding)!=null?s:!0)&&!!((o=n.subRows)!=null&&o.length)},n.getIsAllParentsExpanded=()=>{let i=!0,s=n;for(;i&&s.parentId;)s=u.getRow(s.parentId,!0),i=s.getIsExpanded();return i},n.getToggleExpandedHandler=()=>{const i=n.getCanExpand();return()=>{i&&n.toggleExpanded()}}}},zo=0,Oo=10,po=()=>({pageIndex:zo,pageSize:Oo}),s1={getInitialState:n=>({...n,pagination:{...po(),...n?.pagination}}),getDefaultOptions:n=>({onPaginationChange:Rt("pagination",n)}),createTable:n=>{let u=!1,i=!1;n._autoResetPageIndex=()=>{var s,o;if(!u){n._queue(()=>{u=!0});return}if((s=(o=n.options.autoResetAll)!=null?o:n.options.autoResetPageIndex)!=null?s:!n.options.manualPagination){if(i)return;i=!0,n._queue(()=>{n.resetPageIndex(),i=!1})}},n.setPagination=s=>{const o=f=>qn(s,f);return n.options.onPaginationChange==null?void 0:n.options.onPaginationChange(o)},n.resetPagination=s=>{var o;n.setPagination(s?po():(o=n.initialState.pagination)!=null?o:po())},n.setPageIndex=s=>{n.setPagination(o=>{let f=qn(s,o.pageIndex);const h=typeof n.options.pageCount>"u"||n.options.pageCount===-1?Number.MAX_SAFE_INTEGER:n.options.pageCount-1;return f=Math.max(0,Math.min(f,h)),{...o,pageIndex:f}})},n.resetPageIndex=s=>{var o,f;n.setPageIndex(s?zo:(o=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageIndex)!=null?o:zo)},n.resetPageSize=s=>{var o,f;n.setPageSize(s?Oo:(o=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageSize)!=null?o:Oo)},n.setPageSize=s=>{n.setPagination(o=>{const f=Math.max(1,qn(s,o.pageSize)),h=o.pageSize*o.pageIndex,g=Math.floor(h/f);return{...o,pageIndex:g,pageSize:f}})},n.setPageCount=s=>n.setPagination(o=>{var f;let h=qn(s,(f=n.options.pageCount)!=null?f:-1);return typeof h=="number"&&(h=Math.max(-1,h)),{...o,pageCount:h}}),n.getPageOptions=W(()=>[n.getPageCount()],s=>{let o=[];return s&&s>0&&(o=[...new Array(s)].fill(null).map((f,h)=>h)),o},ee(n.options,"debugTable")),n.getCanPreviousPage=()=>n.getState().pagination.pageIndex>0,n.getCanNextPage=()=>{const{pageIndex:s}=n.getState().pagination,o=n.getPageCount();return o===-1?!0:o===0?!1:s<o-1},n.previousPage=()=>n.setPageIndex(s=>s-1),n.nextPage=()=>n.setPageIndex(s=>s+1),n.firstPage=()=>n.setPageIndex(0),n.lastPage=()=>n.setPageIndex(n.getPageCount()-1),n.getPrePaginationRowModel=()=>n.getExpandedRowModel(),n.getPaginationRowModel=()=>(!n._getPaginationRowModel&&n.options.getPaginationRowModel&&(n._getPaginationRowModel=n.options.getPaginationRowModel(n)),n.options.manualPagination||!n._getPaginationRowModel?n.getPrePaginationRowModel():n._getPaginationRowModel()),n.getPageCount=()=>{var s;return(s=n.options.pageCount)!=null?s:Math.ceil(n.getRowCount()/n.getState().pagination.pageSize)},n.getRowCount=()=>{var s;return(s=n.options.rowCount)!=null?s:n.getPrePaginationRowModel().rows.length}}},vo=()=>({top:[],bottom:[]}),r1={getInitialState:n=>({rowPinning:vo(),...n}),getDefaultOptions:n=>({onRowPinningChange:Rt("rowPinning",n)}),createRow:(n,u)=>{n.pin=(i,s,o)=>{const f=s?n.getLeafRows().map(p=>{let{id:m}=p;return m}):[],h=o?n.getParentRows().map(p=>{let{id:m}=p;return m}):[],g=new Set([...h,n.id,...f]);u.setRowPinning(p=>{var m,y;if(i==="bottom"){var R,C;return{top:((R=p?.top)!=null?R:[]).filter(T=>!(g!=null&&g.has(T))),bottom:[...((C=p?.bottom)!=null?C:[]).filter(T=>!(g!=null&&g.has(T))),...Array.from(g)]}}if(i==="top"){var S,_;return{top:[...((S=p?.top)!=null?S:[]).filter(T=>!(g!=null&&g.has(T))),...Array.from(g)],bottom:((_=p?.bottom)!=null?_:[]).filter(T=>!(g!=null&&g.has(T)))}}return{top:((m=p?.top)!=null?m:[]).filter(T=>!(g!=null&&g.has(T))),bottom:((y=p?.bottom)!=null?y:[]).filter(T=>!(g!=null&&g.has(T)))}})},n.getCanPin=()=>{var i;const{enableRowPinning:s,enablePinning:o}=u.options;return typeof s=="function"?s(n):(i=s??o)!=null?i:!0},n.getIsPinned=()=>{const i=[n.id],{top:s,bottom:o}=u.getState().rowPinning,f=i.some(g=>s?.includes(g)),h=i.some(g=>o?.includes(g));return f?"top":h?"bottom":!1},n.getPinnedIndex=()=>{var i,s;const o=n.getIsPinned();if(!o)return-1;const f=(i=o==="top"?u.getTopRows():u.getBottomRows())==null?void 0:i.map(h=>{let{id:g}=h;return g});return(s=f?.indexOf(n.id))!=null?s:-1}},createTable:n=>{n.setRowPinning=u=>n.options.onRowPinningChange==null?void 0:n.options.onRowPinningChange(u),n.resetRowPinning=u=>{var i,s;return n.setRowPinning(u?vo():(i=(s=n.initialState)==null?void 0:s.rowPinning)!=null?i:vo())},n.getIsSomeRowsPinned=u=>{var i;const s=n.getState().rowPinning;if(!u){var o,f;return!!((o=s.top)!=null&&o.length||(f=s.bottom)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},n._getPinnedRows=(u,i,s)=>{var o;return((o=n.options.keepPinnedRows)==null||o?(i??[]).map(h=>{const g=n.getRow(h,!0);return g.getIsAllParentsExpanded()?g:null}):(i??[]).map(h=>u.find(g=>g.id===h))).filter(Boolean).map(h=>({...h,position:s}))},n.getTopRows=W(()=>[n.getRowModel().rows,n.getState().rowPinning.top],(u,i)=>n._getPinnedRows(u,i,"top"),ee(n.options,"debugRows")),n.getBottomRows=W(()=>[n.getRowModel().rows,n.getState().rowPinning.bottom],(u,i)=>n._getPinnedRows(u,i,"bottom"),ee(n.options,"debugRows")),n.getCenterRows=W(()=>[n.getRowModel().rows,n.getState().rowPinning.top,n.getState().rowPinning.bottom],(u,i,s)=>{const o=new Set([...i??[],...s??[]]);return u.filter(f=>!o.has(f.id))},ee(n.options,"debugRows"))}},o1={getInitialState:n=>({rowSelection:{},...n}),getDefaultOptions:n=>({onRowSelectionChange:Rt("rowSelection",n),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:n=>{n.setRowSelection=u=>n.options.onRowSelectionChange==null?void 0:n.options.onRowSelectionChange(u),n.resetRowSelection=u=>{var i;return n.setRowSelection(u?{}:(i=n.initialState.rowSelection)!=null?i:{})},n.toggleAllRowsSelected=u=>{n.setRowSelection(i=>{u=typeof u<"u"?u:!n.getIsAllRowsSelected();const s={...i},o=n.getPreGroupedRowModel().flatRows;return u?o.forEach(f=>{f.getCanSelect()&&(s[f.id]=!0)}):o.forEach(f=>{delete s[f.id]}),s})},n.toggleAllPageRowsSelected=u=>n.setRowSelection(i=>{const s=typeof u<"u"?u:!n.getIsAllPageRowsSelected(),o={...i};return n.getRowModel().rows.forEach(f=>{Ao(o,f.id,s,!0,n)}),o}),n.getPreSelectedRowModel=()=>n.getCoreRowModel(),n.getSelectedRowModel=W(()=>[n.getState().rowSelection,n.getCoreRowModel()],(u,i)=>Object.keys(u).length?yo(n,i):{rows:[],flatRows:[],rowsById:{}},ee(n.options,"debugTable")),n.getFilteredSelectedRowModel=W(()=>[n.getState().rowSelection,n.getFilteredRowModel()],(u,i)=>Object.keys(u).length?yo(n,i):{rows:[],flatRows:[],rowsById:{}},ee(n.options,"debugTable")),n.getGroupedSelectedRowModel=W(()=>[n.getState().rowSelection,n.getSortedRowModel()],(u,i)=>Object.keys(u).length?yo(n,i):{rows:[],flatRows:[],rowsById:{}},ee(n.options,"debugTable")),n.getIsAllRowsSelected=()=>{const u=n.getFilteredRowModel().flatRows,{rowSelection:i}=n.getState();let s=!!(u.length&&Object.keys(i).length);return s&&u.some(o=>o.getCanSelect()&&!i[o.id])&&(s=!1),s},n.getIsAllPageRowsSelected=()=>{const u=n.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:i}=n.getState();let s=!!u.length;return s&&u.some(o=>!i[o.id])&&(s=!1),s},n.getIsSomeRowsSelected=()=>{var u;const i=Object.keys((u=n.getState().rowSelection)!=null?u:{}).length;return i>0&&i<n.getFilteredRowModel().flatRows.length},n.getIsSomePageRowsSelected=()=>{const u=n.getPaginationRowModel().flatRows;return n.getIsAllPageRowsSelected()?!1:u.filter(i=>i.getCanSelect()).some(i=>i.getIsSelected()||i.getIsSomeSelected())},n.getToggleAllRowsSelectedHandler=()=>u=>{n.toggleAllRowsSelected(u.target.checked)},n.getToggleAllPageRowsSelectedHandler=()=>u=>{n.toggleAllPageRowsSelected(u.target.checked)}},createRow:(n,u)=>{n.toggleSelected=(i,s)=>{const o=n.getIsSelected();u.setRowSelection(f=>{var h;if(i=typeof i<"u"?i:!o,n.getCanSelect()&&o===i)return f;const g={...f};return Ao(g,n.id,i,(h=s?.selectChildren)!=null?h:!0,u),g})},n.getIsSelected=()=>{const{rowSelection:i}=u.getState();return Io(n,i)},n.getIsSomeSelected=()=>{const{rowSelection:i}=u.getState();return Do(n,i)==="some"},n.getIsAllSubRowsSelected=()=>{const{rowSelection:i}=u.getState();return Do(n,i)==="all"},n.getCanSelect=()=>{var i;return typeof u.options.enableRowSelection=="function"?u.options.enableRowSelection(n):(i=u.options.enableRowSelection)!=null?i:!0},n.getCanSelectSubRows=()=>{var i;return typeof u.options.enableSubRowSelection=="function"?u.options.enableSubRowSelection(n):(i=u.options.enableSubRowSelection)!=null?i:!0},n.getCanMultiSelect=()=>{var i;return typeof u.options.enableMultiRowSelection=="function"?u.options.enableMultiRowSelection(n):(i=u.options.enableMultiRowSelection)!=null?i:!0},n.getToggleSelectedHandler=()=>{const i=n.getCanSelect();return s=>{var o;i&&n.toggleSelected((o=s.target)==null?void 0:o.checked)}}}},Ao=(n,u,i,s,o)=>{var f;const h=o.getRow(u,!0);i?(h.getCanMultiSelect()||Object.keys(n).forEach(g=>delete n[g]),h.getCanSelect()&&(n[u]=!0)):delete n[u],s&&(f=h.subRows)!=null&&f.length&&h.getCanSelectSubRows()&&h.subRows.forEach(g=>Ao(n,g.id,i,s,o))};function yo(n,u){const i=n.getState().rowSelection,s=[],o={},f=function(h,g){return h.map(p=>{var m;const y=Io(p,i);if(y&&(s.push(p),o[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:o}}function Io(n,u){var i;return(i=u[n.id])!=null?i:!1}function Do(n,u,i){var s;if(!((s=n.subRows)!=null&&s.length))return!1;let o=!0,f=!1;return n.subRows.forEach(h=>{if(!(f&&!o)&&(h.getCanSelect()&&(Io(h,u)?f=!0:o=!1),h.subRows&&h.subRows.length)){const g=Do(h,u);g==="all"?f=!0:(g==="some"&&(f=!0),o=!1)}}),o?"all":f?"some":!1}const No=/([0-9]+)/gm,c1=(n,u,i)=>Cm(Gn(n.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),f1=(n,u,i)=>Cm(Gn(n.getValue(i)),Gn(u.getValue(i))),d1=(n,u,i)=>Wo(Gn(n.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),h1=(n,u,i)=>Wo(Gn(n.getValue(i)),Gn(u.getValue(i))),g1=(n,u,i)=>{const s=n.getValue(i),o=u.getValue(i);return s>o?1:s<o?-1:0},m1=(n,u,i)=>Wo(n.getValue(i),u.getValue(i));function Wo(n,u){return n===u?0:n>u?1:-1}function Gn(n){return typeof n=="number"?isNaN(n)||n===1/0||n===-1/0?"":String(n):typeof n=="string"?n:""}function Cm(n,u){const i=n.split(No).filter(Boolean),s=u.split(No).filter(Boolean);for(;i.length&&s.length;){const o=i.shift(),f=s.shift(),h=parseInt(o,10),g=parseInt(f,10),p=[h,g].sort();if(isNaN(p[0])){if(o>f)return 1;if(f>o)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 ka={alphanumeric:c1,alphanumericCaseSensitive:f1,text:d1,textCaseSensitive:h1,datetime:g1,basic:m1},p1={getInitialState:n=>({sorting:[],...n}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:n=>({onSortingChange:Rt("sorting",n),isMultiSortEvent:u=>u.shiftKey}),createColumn:(n,u)=>{n.getAutoSortingFn=()=>{const i=u.getFilteredRowModel().flatRows.slice(10);let s=!1;for(const o of i){const f=o?.getValue(n.id);if(Object.prototype.toString.call(f)==="[object Date]")return ka.datetime;if(typeof f=="string"&&(s=!0,f.split(No).length>1))return ka.alphanumeric}return s?ka.text:ka.basic},n.getAutoSortDir=()=>{const i=u.getFilteredRowModel().flatRows[0];return typeof i?.getValue(n.id)=="string"?"asc":"desc"},n.getSortingFn=()=>{var i,s;if(!n)throw new Error;return ju(n.columnDef.sortingFn)?n.columnDef.sortingFn:n.columnDef.sortingFn==="auto"?n.getAutoSortingFn():(i=(s=u.options.sortingFns)==null?void 0:s[n.columnDef.sortingFn])!=null?i:ka[n.columnDef.sortingFn]},n.toggleSorting=(i,s)=>{const o=n.getNextSortingOrder(),f=typeof i<"u"&&i!==null;u.setSorting(h=>{const g=h?.find(S=>S.id===n.id),p=h?.findIndex(S=>S.id===n.id);let m=[],y,R=f?i:o==="desc";if(h!=null&&h.length&&n.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||o||(y="remove")),y==="add"){var C;m=[...h,{id:n.id,desc:R}],m.splice(0,m.length-((C=u.options.maxMultiSortColCount)!=null?C:Number.MAX_SAFE_INTEGER))}else y==="toggle"?m=h.map(S=>S.id===n.id?{...S,desc:R}:S):y==="remove"?m=h.filter(S=>S.id!==n.id):m=[{id:n.id,desc:R}];return m})},n.getFirstSortDir=()=>{var i,s;return((i=(s=n.columnDef.sortDescFirst)!=null?s:u.options.sortDescFirst)!=null?i:n.getAutoSortDir()==="desc")?"desc":"asc"},n.getNextSortingOrder=i=>{var s,o;const f=n.getFirstSortDir(),h=n.getIsSorted();return h?h!==f&&((s=u.options.enableSortingRemoval)==null||s)&&(!(i&&(o=u.options.enableMultiRemove)!=null)||o)?!1:h==="desc"?"asc":"desc":f},n.getCanSort=()=>{var i,s;return((i=n.columnDef.enableSorting)!=null?i:!0)&&((s=u.options.enableSorting)!=null?s:!0)&&!!n.accessorFn},n.getCanMultiSort=()=>{var i,s;return(i=(s=n.columnDef.enableMultiSort)!=null?s:u.options.enableMultiSort)!=null?i:!!n.accessorFn},n.getIsSorted=()=>{var i;const s=(i=u.getState().sorting)==null?void 0:i.find(o=>o.id===n.id);return s?s.desc?"desc":"asc":!1},n.getSortIndex=()=>{var i,s;return(i=(s=u.getState().sorting)==null?void 0:s.findIndex(o=>o.id===n.id))!=null?i:-1},n.clearSorting=()=>{u.setSorting(i=>i!=null&&i.length?i.filter(s=>s.id!==n.id):[])},n.getToggleSortingHandler=()=>{const i=n.getCanSort();return s=>{i&&(s.persist==null||s.persist(),n.toggleSorting==null||n.toggleSorting(void 0,n.getCanMultiSort()?u.options.isMultiSortEvent==null?void 0:u.options.isMultiSortEvent(s):!1))}}},createTable:n=>{n.setSorting=u=>n.options.onSortingChange==null?void 0:n.options.onSortingChange(u),n.resetSorting=u=>{var i,s;n.setSorting(u?[]:(i=(s=n.initialState)==null?void 0:s.sorting)!=null?i:[])},n.getPreSortedRowModel=()=>n.getGroupedRowModel(),n.getSortedRowModel=()=>(!n._getSortedRowModel&&n.options.getSortedRowModel&&(n._getSortedRowModel=n.options.getSortedRowModel(n)),n.options.manualSorting||!n._getSortedRowModel?n.getPreSortedRowModel():n._getSortedRowModel())}},v1=[LS,l1,IS,WS,BS,qS,a1,i1,p1,PS,u1,s1,r1,o1,t1];function y1(n){var u,i;const s=[...v1,...(u=n._features)!=null?u:[]];let o={_features:s};const f=o._features.reduce((C,S)=>Object.assign(C,S.getDefaultOptions==null?void 0:S.getDefaultOptions(o)),{}),h=C=>o.options.mergeOptions?o.options.mergeOptions(f,C):{...f,...C};let p={...{},...(i=n.initialState)!=null?i:{}};o._features.forEach(C=>{var S;p=(S=C.getInitialState==null?void 0:C.getInitialState(p))!=null?S:p});const m=[];let y=!1;const R={_features:s,options:{...f,...n},initialState:p,_queue:C=>{m.push(C),y||(y=!0,Promise.resolve().then(()=>{for(;m.length;)m.shift()();y=!1}).catch(S=>setTimeout(()=>{throw S})))},reset:()=>{o.setState(o.initialState)},setOptions:C=>{const S=qn(C,o.options);o.options=h(S)},getState:()=>o.options.state,setState:C=>{o.options.onStateChange==null||o.options.onStateChange(C)},_getRowId:(C,S,_)=>{var T;return(T=o.options.getRowId==null?void 0:o.options.getRowId(C,S,_))!=null?T:`${_?[_.id,S].join("."):S}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(C,S)=>{let _=(S?o.getPrePaginationRowModel():o.getRowModel()).rowsById[C];if(!_&&(_=o.getCoreRowModel().rowsById[C],!_))throw new Error;return _},_getDefaultColumnDef:W(()=>[o.options.defaultColumn],C=>{var S;return C=(S=C)!=null?S:{},{header:_=>{const T=_.header.column.columnDef;return T.accessorKey?T.accessorKey:T.accessorFn?T.id:null},cell:_=>{var T,N;return(T=(N=_.renderValue())==null||N.toString==null?void 0:N.toString())!=null?T:null},...o._features.reduce((_,T)=>Object.assign(_,T.getDefaultColumnDef==null?void 0:T.getDefaultColumnDef()),{}),...C}},ee(n,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:W(()=>[o._getColumnDefs()],C=>{const S=function(_,T,N){return N===void 0&&(N=0),_.map(U=>{const j=VS(o,U,N,T),G=U;return j.columns=G.columns?S(G.columns,j,N+1):[],j})};return S(C)},ee(n,"debugColumns")),getAllFlatColumns:W(()=>[o.getAllColumns()],C=>C.flatMap(S=>S.getFlatColumns()),ee(n,"debugColumns")),_getAllFlatColumnsById:W(()=>[o.getAllFlatColumns()],C=>C.reduce((S,_)=>(S[_.id]=_,S),{}),ee(n,"debugColumns")),getAllLeafColumns:W(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(C,S)=>{let _=C.flatMap(T=>T.getLeafColumns());return S(_)},ee(n,"debugColumns")),getColumn:C=>o._getAllFlatColumnsById()[C]};Object.assign(o,R);for(let C=0;C<o._features.length;C++){const S=o._features[C];S==null||S.createTable==null||S.createTable(o)}return o}function S1(){return n=>W(()=>[n.options.data],u=>{const i={rows:[],flatRows:[],rowsById:{}},s=function(o,f,h){f===void 0&&(f=0);const g=[];for(let m=0;m<o.length;m++){const y=Po(n,n._getRowId(o[m],m,h),o[m],m,f,void 0,h?.id);if(i.flatRows.push(y),i.rowsById[y.id]=y,g.push(y),n.options.getSubRows){var p;y.originalSubRows=n.options.getSubRows(o[m],m),(p=y.originalSubRows)!=null&&p.length&&(y.subRows=s(y.originalSubRows,f+1,y))}}return g};return i.rows=s(u),i},ee(n.options,"debugTable","getRowModel",()=>n._autoResetPageIndex()))}function C1(n,u,i){return i.options.filterFromLeafRows?R1(n,u,i):b1(n,u,i)}function R1(n,u,i){var s;const o=[],f={},h=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const y=[];for(let C=0;C<p.length;C++){var R;let S=p[C];const _=Po(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);if(_.columnFilters=S.columnFilters,(R=S.subRows)!=null&&R.length&&m<h){if(_.subRows=g(S.subRows,m+1),S=_,u(S)&&!_.subRows.length){y.push(S),f[S.id]=S,o.push(S);continue}if(u(S)||_.subRows.length){y.push(S),f[S.id]=S,o.push(S);continue}}else S=_,u(S)&&(y.push(S),f[S.id]=S,o.push(S))}return y};return{rows:g(n),flatRows:o,rowsById:f}}function b1(n,u,i){var s;const o=[],f={},h=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const y=[];for(let C=0;C<p.length;C++){let S=p[C];if(u(S)){var R;if((R=S.subRows)!=null&&R.length&&m<h){const T=Po(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);T.subRows=g(S.subRows,m+1),S=T}y.push(S),o.push(S),f[S.id]=S}}return y};return{rows:g(n),flatRows:o,rowsById:f}}function E1(){return n=>W(()=>[n.getPreFilteredRowModel(),n.getState().columnFilters,n.getState().globalFilter],(u,i,s)=>{if(!u.rows.length||!(i!=null&&i.length)&&!s){for(let C=0;C<u.flatRows.length;C++)u.flatRows[C].columnFilters={},u.flatRows[C].columnFiltersMeta={};return u}const o=[],f=[];(i??[]).forEach(C=>{var S;const _=n.getColumn(C.id);if(!_)return;const T=_.getFilterFn();T&&o.push({id:C.id,filterFn:T,resolvedValue:(S=T.resolveFilterValue==null?void 0:T.resolveFilterValue(C.value))!=null?S:C.value})});const h=(i??[]).map(C=>C.id),g=n.getGlobalFilterFn(),p=n.getAllLeafColumns().filter(C=>C.getCanGlobalFilter());s&&g&&p.length&&(h.push("__global__"),p.forEach(C=>{var S;f.push({id:C.id,filterFn:g,resolvedValue:(S=g.resolveFilterValue==null?void 0:g.resolveFilterValue(s))!=null?S:s})}));let m,y;for(let C=0;C<u.flatRows.length;C++){const S=u.flatRows[C];if(S.columnFilters={},o.length)for(let _=0;_<o.length;_++){m=o[_];const T=m.id;S.columnFilters[T]=m.filterFn(S,T,m.resolvedValue,N=>{S.columnFiltersMeta[T]=N})}if(f.length){for(let _=0;_<f.length;_++){y=f[_];const T=y.id;if(y.filterFn(S,T,y.resolvedValue,N=>{S.columnFiltersMeta[T]=N})){S.columnFilters.__global__=!0;break}}S.columnFilters.__global__!==!0&&(S.columnFilters.__global__=!1)}}const R=C=>{for(let S=0;S<h.length;S++)if(C.columnFilters[h[S]]===!1)return!1;return!0};return C1(u.rows,R,n)},ee(n.options,"debugTable","getFilteredRowModel",()=>n._autoResetPageIndex()))}function _1(){return n=>W(()=>[n.getState().sorting,n.getPreSortedRowModel()],(u,i)=>{if(!i.rows.length||!(u!=null&&u.length))return i;const s=n.getState().sorting,o=[],f=s.filter(p=>{var m;return(m=n.getColumn(p.id))==null?void 0:m.getCanSort()}),h={};f.forEach(p=>{const m=n.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,R)=>{for(let S=0;S<f.length;S+=1){var C;const _=f[S],T=h[_.id],N=T.sortUndefined,U=(C=_?.desc)!=null?C:!1;let j=0;if(N){const G=y.getValue(_.id),P=R.getValue(_.id),k=G===void 0,ge=P===void 0;if(k||ge){if(N==="first")return k?-1:1;if(N==="last")return k?1:-1;j=k&&ge?0:k?N:-N}}if(j===0&&(j=T.sortingFn(y,R,_.id)),j!==0)return U&&(j*=-1),T.invertSorting&&(j*=-1),j}return y.index-R.index}),m.forEach(y=>{var R;o.push(y),(R=y.subRows)!=null&&R.length&&(y.subRows=g(y.subRows))}),m};return{rows:g(i.rows),flatRows:o,rowsById:i.rowsById}},ee(n.options,"debugTable","getSortedRowModel",()=>n._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 Ug(n,u){return n?M1(n)?x.createElement(n,u):n:null}function M1(n){return T1(n)||typeof n=="function"||x1(n)}function T1(n){return typeof n=="function"&&(()=>{const u=Object.getPrototypeOf(n);return u.prototype&&u.prototype.isReactComponent})()}function x1(n){return typeof n=="object"&&typeof n.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(n.$$typeof.description)}function w1(n){const u={state:{},onStateChange:()=>{},renderFallbackValue:null,...n},[i]=x.useState(()=>({current:y1(u)})),[s,o]=x.useState(()=>i.current.initialState);return i.current.setOptions(f=>({...f,...n,state:{...s,...n.state},onStateChange:h=>{o(h),n.onStateChange==null||n.onStateChange(h)}})),i.current}function z1(n){const u=n?.original?.metadata?.petriFailed;return typeof u=="number"&&u>0?"failed-row":"passed-row"}function Vu({data:n,columns:u,sorting:i,onSortingChange:s,columnWidthMap:o,estimatedRowHeight:f=100,overscan:h=20,getRowClassName:g,onRowClick:p,scrollToIndex:m}){const y=w1({data:n,columns:u,state:{sorting:i},onSortingChange:s,getCoreRowModel:S1(),getSortedRowModel:_1(),getFilteredRowModel:E1(),enableSorting:!0,enableSortingRemoval:!1,debugTable:!1}),{rows:R}=y.getRowModel(),C=x.useRef(null),S=x.useRef(null),[_,T]=x.useState(25.5);x.useLayoutEffect(()=>{const U=S.current;U&&T(U.getBoundingClientRect().height)},[]);const N=NS({count:R.length,getScrollElement:()=>C.current,estimateSize:()=>f,overscan:h,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?U=>U?.getBoundingClientRect().height:void 0});return x.useEffect(()=>{N.calculateRange(),N.getVirtualItems().forEach(U=>{const j=document.querySelector(`[data-index="${U.index}"]`);j&&N.measureElement(j)})},[R.length,n,N,i]),x.useEffect(()=>{if(m!=null&&!(m<0||m>=R.length))try{N.scrollToIndex(m,{align:"center"})}catch{}},[m,N,R.length]),z.jsxs("div",{children:[z.jsx("div",{ref:S,className:"virtualized-table-header-container",children:z.jsx("table",{className:"virtualized-table",children:z.jsx("thead",{children:y.getHeaderGroups().map(U=>z.jsx("tr",{children:U.headers.map(j=>z.jsx("th",{className:j.column.getCanSort()?"sortable":"",onClick:j.column.getToggleSortingHandler(),style:{width:o[j.column.id]},children:z.jsxs("div",{className:"virtualized-table-header-content",children:[j.isPlaceholder?null:Ug(j.column.columnDef.header,j.getContext()),j.column.getCanSort()&&z.jsx("span",{className:"sort-indicator",children:{asc:"↑",desc:"↓"}[j.column.getIsSorted()]??"⇅"})]})},j.id))},U.id))})})}),z.jsx("div",{ref:C,className:"virtualized-table-body",style:{height:`calc(100vh - 4rem - ${_}px)`},children:z.jsx("div",{style:{height:`${N.getTotalSize()}px`},children:N.getVirtualItems().map(U=>{const j=R[U.index];return z.jsx("div",{"data-index":U.index,ref:N.measureElement,className:`virtualized-table-row ${g?g(j):z1(j)}`,style:{position:"absolute",width:"100%",transform:`translateY(${U.start}px)`},onClick:p?G=>p(j,G):void 0,children:z.jsx("table",{className:"virtualized-table",children:z.jsx("tbody",{children:z.jsx("tr",{children:j.getVisibleCells().map(G=>z.jsx("td",{style:{boxSizing:"border-box",width:o[G.column.id]},children:Ug(G.column.columnDef.cell,G.getContext())},G.id))})})})},j.id)})})})]})}function Lu({value:n,onChange:u,inputRef:i,usePersistentSearching:s=!0}){const o=$t(),f=ea(),h=x.useRef(!0),g=x.useRef(null),p=i||g;return x.useEffect(()=>{if(!s){h.current=!1;return}const y=new URLSearchParams(o.search).get("search");y!==null&&y!==n&&u(y),h.current=!1},[]),x.useEffect(()=>{if(!s||h.current)return;const m=new URLSearchParams(o.search);n?m.set("search",n):m.delete("search");const y=m.toString(),R=y?`${o.pathname}?${y}`:o.pathname;o.pathname+o.search!==R&&f(R,{replace:!0})},[n,o.pathname,f,o.search,s]),x.useEffect(()=>{const m=y=>{const R=navigator.platform.toUpperCase().includes("MAC");(y.key==="f"||y.key==="F")&&(R&&y.metaKey||!R&&y.ctrlKey)&&document.activeElement!==p.current&&(y.preventDefault(),p.current?.focus(),p.current?.select()),y.key==="Escape"&&n&&u("")};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[n,u]),z.jsxs("div",{style:{display:"inline-block"},children:[z.jsx("input",{ref:p,value:n,onChange:m=>u(m.target.value),placeholder:"Filter ...",className:"common-search-input"}),n&&z.jsx("button",{onClick:()=>u(""),className:"common-search-clear-btn",title:"Clear filter",children:"×"})]})}const O1=[{id:"creationTime",desc:!0}],A1={name:105,creationTime:190,status:60,failed:50,total:60,ghRun:105},D1=n=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:u=>u.metadata.petriFailed===0?"passed":"failed",cell:u=>{const i=u.getValue();return z.jsx("div",{className:"common-status-cell",children:z.jsx("div",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"failed",accessorKey:"metadata.petriFailed",header:"Fail",enableSorting:!0,cell:u=>z.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=>z.jsx("div",{className:"common-total-count",children:u.getValue()})},{accessorKey:"name",header:"Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return z.jsx("a",{href:"#",onClick:s=>{s.preventDefault(),n(i)},className:"common-table-link",children:i})},sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return o.localeCompare(f)}},{accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:u=>z.jsx("div",{className:"created-date",children:u.getValue().toLocaleString()}),sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return o.getTime()-f.getTime()}},{accessorKey:"metadata.ghBranch",header:"Branch",enableSorting:!0,cell:u=>{const i=u.getValue()||"";return z.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,o=i.metadata.prTitle,f=s?`#${s}${o?` ${o}`:""}`:"";return s?z.jsx("div",{className:"pr-cell",children:z.jsx("a",{href:`https://github.com/microsoft/openvmm/pull/${s}`,target:"_blank",rel:"noopener noreferrer",className:"pr-link",title:o?`#${s} ${o}`:`PR #${s}`,children:f})}):z.jsx("div",{className:"no-pr",children:"-"})},sortingFn:(u,i)=>{const s=u.original.metadata.ghPr,o=i.original.metadata.ghPr;return!s&&!o?0:s?o?parseInt(s)-parseInt(o):-1:1}},{id:"ghRun",accessorKey:"name",header:"GH Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return z.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 o=u.getValue(s),f=i.getValue(s);return o.localeCompare(f)}}];function N1(){const n=ea(),[u,i]=Go(),s=u.get("branchFilter")||"all",[o,f]=x.useState(s),[h,g]=x.useState("");x.useEffect(()=>{f(s)},[s]);const p=N=>{f(N);const U=new URLSearchParams(u);U.set("branchFilter",N),i(U,{replace:!0})},{data:m=[],isSuccess:y}=rm({queryKey:["runs"],queryFn:N=>Zo(N.client),staleTime:120*1e3,gcTime:1/0,refetchInterval:120*1e3}),R=y&&m.length===0,[C,S]=x.useState(O1),_=x.useMemo(()=>D1(N=>{n(`/runs/${N}`)}),[n]),T=x.useMemo(()=>H1(m,o,h),[m,o,h]);return z.jsxs("div",{className:"common-page-display",children:[z.jsx("div",{className:"common-page-header",children:z.jsx(U1,{branchFilter:o,setBranchFilter:p,searchFilter:h,setSearchFilter:g,resultCount:T.length,loadingSuccess:y})}),R?z.jsx("div",{className:"common-no-data",children:"Table contains no data."}):z.jsx(Vu,{data:T,columns:_,sorting:C,onSortingChange:S,columnWidthMap:A1})]})}function U1({branchFilter:n,setBranchFilter:u,searchFilter:i,setSearchFilter:s,resultCount:o,loadingSuccess:f}){return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"common-header-left",children:[z.jsxs("div",{className:"common-header-title",children:[z.jsx(Hu,{}),z.jsx(Lt,{to:"/runs",className:"common-header-path",children:"Runs"})]}),z.jsxs("div",{className:"common-header-filter-buttons",children:[z.jsx("button",{className:`common-header-filter-btn ${n==="all"?"active":""}`,onClick:()=>u("all"),children:"all"}),z.jsx("button",{className:`common-header-filter-btn ${n==="main"?"active":""}`,onClick:()=>u("main"),children:"main"})]}),!f&&z.jsxs("div",{className:"header-loading-indicator",children:[z.jsx("div",{className:"header-loading-spinner"}),z.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]})]}),z.jsxs("div",{className:"common-header-right",children:[z.jsx(Lu,{value:i,onChange:s}),z.jsxs("span",{className:"common-result-count",children:[o," runs"]})]})]})}function H1(n,u,i){let s=u==="all"?n:n.filter(f=>f.metadata.ghBranch===u);const o=i.trim().toLowerCase().split(/\s+/).filter(Boolean);return o.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 o.every(m=>p.includes(m))})}const j1=[{id:"status",desc:!1}],V1={architecture:300,status:60},L1=n=>[{accessorKey:"status",header:"Status",enableSorting:!0,cell:u=>{const i=u.getValue();return z.jsx("div",{className:"common-status-cell",children:z.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=>z.jsx("div",{className:"common-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,[o,...f]=s.split("/");return encodeURIComponent(f.join("/")),z.jsx(Lt,{to:`/runs/${n}`,state:{testResult:u.row.original},className:"common-table-link",title:`${s}`,children:i})},enableSorting:!0}];function B1(){const[n,u]=x.useState(""),[i,s]=x.useState(j1);let{runId:o}=Yg();o=o?decodeURIComponent(o):"";const{data:f,isSuccess:h}=rm({queryKey:["runDetails",o],queryFn:y=>Jo(o,y.client),staleTime:1/0,gcTime:1/0}),g=x.useMemo(()=>L1(o),[o]),p=x.useMemo(()=>F1(f?.tests,n),[f?.tests,n]),m=f?.tests&&f.tests.length===0;return z.jsxs("div",{className:"common-page-display",children:[z.jsx("div",{className:"common-page-header",children:z.jsx(q1,{resultCount:p.length,runId:o,searchFilter:n,setSearchFilter:u,loadingSuccess:h})}),m?z.jsx("div",{className:"common-no-data",children:"Table contains no data."}):z.jsx(Vu,{data:p,columns:g,sorting:i,onSortingChange:s,columnWidthMap:V1,estimatedRowHeight:44,getRowClassName:y=>y.original.status==="failed"?"failed-row":"passed-row"})]})}function q1({resultCount:n,runId:u,searchFilter:i,setSearchFilter:s,loadingSuccess:o}){return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"common-header-left",children:[z.jsxs("div",{className:"common-header-title",children:[z.jsx(Hu,{}),z.jsx(Lt,{to:"/runs",className:"common-header-path",children:"Runs"}),z.jsx("span",{children:"/"}),z.jsx(Lt,{to:`/runs/${u}`,className:"common-header-path",children:u})]}),!o&&z.jsxs("div",{className:"header-loading-indicator",children:[z.jsx("div",{className:"header-loading-spinner"}),z.jsx("div",{className:"header-loading-text",children:"Fetching run details ..."})]})]}),z.jsxs("div",{className:"common-header-right",children:[z.jsx(Lu,{value:i,onChange:s}),z.jsxs("span",{className:"common-result-count",children:[n," tests"]})]})]})}function F1(n,u){if(!n)return[];const i=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length===0?n:n.filter(s=>{const o=`${s.name} ${s.status}`.toLowerCase();return i.every(f=>o.includes(f))})}const Du=15,Rm=5,G1=[{id:"failedCount",desc:!0}],Q1={architecture:300,failedCount:80,totalCount:80,status:60},Y1=()=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:n=>n.failedCount===0?"passed":"failed",cell:n=>{const u=n.getValue();return z.jsx("div",{className:"common-status-cell",children:z.jsx("div",{className:u==="passed"?"common-status-pass":"common-status-fail"})})}},{accessorKey:"failedCount",header:"Failed",enableSorting:!0,cell:n=>z.jsx("div",{className:"common-failed-count",children:n.getValue()})},{accessorKey:"totalCount",header:"Total",enableSorting:!0,cell:n=>z.jsx("div",{className:"common-total-count",children:n.getValue()})},{id:"architecture",accessorKey:"architecture",header:"Architecture",enableSorting:!0,cell:n=>z.jsx("div",{className:"common-architecture-name",title:n.getValue(),children:n.getValue()}),sortingFn:(n,u,i)=>{const s=n.getValue(i),o=u.getValue(i);return s.localeCompare(o)}},{accessorKey:"name",header:"Test Name",enableSorting:!0,cell:n=>{const u=n.getValue(),i=n.row.original.architecture,s=encodeURIComponent(i),o=encodeURIComponent(u);return z.jsx(Lt,{to:`/tests/${s}/${o}`,state:{testData:n.row.original},className:"common-table-link",title:u,children:u})},sortingFn:(n,u,i)=>{const s=n.getValue(i),o=u.getValue(i);return s.localeCompare(o)}}];function $1(){const[n,u]=Go(),i=n.get("branchFilter")||"main",[s,o]=x.useState(i),[f,h]=x.useState(""),[g,p]=x.useState([]),[m,y]=x.useState(0),[R,C]=x.useState(null),S=Ko(),_=x.useRef(Du);x.useEffect(()=>(_.current=Du,()=>{_.current=Rm}),[]),x.useEffect(()=>{o(i)},[i]);const T=P=>{o(P);const k=new URLSearchParams(n);k.set("branchFilter",P),u(k,{replace:!0})};x.useEffect(()=>{y(0),cm(s,S,(P,k)=>{y(P),C(k)},()=>_.current).then(P=>{p(CS(P))}).catch(P=>{console.error("Error fetching test analysis:",P)})},[s,S]);const[N,U]=x.useState(G1),j=x.useMemo(()=>Y1(),[]),G=x.useMemo(()=>K1(g,f),[g,f]);return z.jsxs("div",{className:"common-page-display",children:[z.jsx("div",{className:"common-page-header",children:z.jsx(X1,{branchFilter:s,setBranchFilter:T,searchFilter:f,setSearchFilter:h,resultCount:G.length,fetchedCount:m,totalToFetch:R})}),z.jsx(Vu,{data:G,columns:j,sorting:N,columnWidthMap:Q1,onSortingChange:U})]})}function X1({branchFilter:n,setBranchFilter:u,searchFilter:i,setSearchFilter:s,resultCount:o,fetchedCount:f,totalToFetch:h}){return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"common-header-left",children:[z.jsxs("div",{className:"common-header-title",children:[z.jsx(Hu,{}),z.jsx(Lt,{to:"/tests",className:"common-header-path",children:"Tests"})]}),z.jsx("div",{className:"common-header-filter-buttons",children:z.jsx("button",{className:`common-header-filter-btn ${n==="main"?"active":""}`,onClick:()=>u("main"),children:"main"})}),h===null&&z.jsxs("div",{className:"header-loading-indicator",children:[z.jsx("div",{className:"header-loading-spinner"}),z.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]}),f!==h&&h!==null&&z.jsxs("div",{className:"header-loading-indicator",children:[z.jsx("div",{className:"header-loading-spinner"}),z.jsxs("div",{className:"header-loading-text",children:["Analyzed ",f,"/",h]})]})]}),z.jsxs("div",{className:"common-header-right",children:[z.jsx(Lu,{value:i,onChange:s}),z.jsxs("span",{className:"common-result-count",children:[o," tests"]})]})]})}function K1(n,u){const i=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length===0?n:n.filter(s=>{const f=`${s.failedCount===0?"passed":"failed"} ${s.architecture} ${s.name}`.toLowerCase();return i.every(h=>f.includes(h))})}const Z1=[{id:"creationTime",desc:!0}],J1={creationTime:210,status:60},P1=n=>[{id:"status",header:"Status",accessorKey:"status",enableSorting:!0,cell:u=>{const i=u.getValue();return z.jsx("div",{className:"common-status-cell",children:z.jsx("div",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"creationTime",accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:u=>{const i=u.getValue();return z.jsx("div",{className:"created-date",title:i?.toLocaleString(),children:i?.toLocaleString()})},sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return!o&&!f?0:o?f?o.getTime()-f.getTime():-1:1}},{id:"runNumber",accessorKey:"runNumber",header:"Run Number",enableSorting:!0,cell:u=>{const i=u.getValue(),s=n?`?search=${encodeURIComponent(n)}`:"";return z.jsx(Lt,{to:`/runs/${i}${s}`,className:"common-table-link",title:i,children:i})},sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return o.localeCompare(f)}}];function k1(){const[n,u]=Go(),i=n.get("branchFilter")||"main",[s,o]=x.useState(i),[f,h]=x.useState(""),[g,p]=x.useState([]),[m,y]=x.useState(0),[R,C]=x.useState(null),S=Ko(),{architecture:_,testName:T}=Yg(),N=_?decodeURIComponent(_):"",U=T?decodeURIComponent(T):"",j=N+"/"+U,G=x.useRef(Du);x.useEffect(()=>(G.current=Du,()=>{G.current=Rm}),[]),x.useEffect(()=>{o(i)},[i]);const P=ce=>{o(ce);const Me=new URLSearchParams(n);Me.set("branchFilter",ce),u(Me,{replace:!0})};x.useEffect(()=>{y(0),cm(s,S,(ce,Me)=>{y(ce),C(Me)},()=>G.current).then(ce=>{p(RS(ce,j))})},[j,s,S]);const[k,ge]=x.useState(Z1),Z=x.useMemo(()=>P1(j),[j]),ue=x.useMemo(()=>W1(g,f),[g,f]);return z.jsxs("div",{className:"common-page-display",children:[z.jsx("div",{className:"common-page-header",children:z.jsx(I1,{architecture:N,testNameRemainder:U,fullTestName:j,branchFilter:s,setBranchFilter:P,searchFilter:f,setSearchFilter:h,resultCount:ue.length,fetchedCount:m,totalToFetch:R})}),z.jsx(Vu,{data:ue,columns:Z,sorting:k,columnWidthMap:J1,onSortingChange:ge})]})}function I1({architecture:n,testNameRemainder:u,fullTestName:i,branchFilter:s,setBranchFilter:o,searchFilter:f,setSearchFilter:h,resultCount:g,fetchedCount:p,totalToFetch:m}){const y=encodeURIComponent(n),R=encodeURIComponent(u);return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"common-header-left",style:{minWidth:0,flex:1,display:"flex"},children:[z.jsxs("div",{className:"common-header-title",style:{minWidth:0},children:[z.jsx(Hu,{}),z.jsx(Lt,{to:"/tests",className:"common-header-path",children:"Tests"}),z.jsx("span",{children:"/"}),z.jsx(Lt,{to:`/tests/${y}/${R}`,className:"common-header-path-long",title:i,children:u}),n&&z.jsx("div",{className:"common-sub-header",children:n})]}),z.jsx("div",{className:"common-header-filter-buttons",children:z.jsx("button",{className:`common-header-filter-btn ${s==="main"?"active":""}`,onClick:()=>o("main"),children:"main"})}),m===null&&z.jsxs("div",{className:"header-loading-indicator",children:[z.jsx("div",{className:"header-loading-spinner"}),z.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]}),p!==m&&m!==null&&z.jsxs("div",{className:"header-loading-indicator",children:[z.jsx("div",{className:"header-loading-spinner"}),z.jsxs("div",{className:"header-loading-text",children:["Analysed ",p,"/",m]})]})]}),z.jsxs("div",{className:"common-header-right",children:[z.jsx(Lu,{value:f,onChange:h}),z.jsxs("span",{className:"common-result-count",children:[g," tests"]})]})]})}function W1(n,u){const i=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length===0?n:n.filter(s=>{const o=`${s.runNumber} ${s.status}`.toLowerCase();return i.every(f=>o.includes(f))})}const bm=new P0;pS(bm);ny.createRoot(document.getElementById("root")).render(z.jsx(Jv.StrictMode,{children:z.jsx(v0,{children:z.jsx(k0,{client:bm,children:z.jsx(eC,{})})})}));function eC(){return z.jsxs(Ky,{children:[z.jsx(kl,{path:"/",element:z.jsx($y,{to:"/runs",replace:!0})}),z.jsx(kl,{path:"runs",element:z.jsx(N1,{})}),z.jsx(kl,{path:"runs/:runId",element:z.jsx(B1,{})}),z.jsx(kl,{path:"tests",element:z.jsx($1,{})}),z.jsx(kl,{path:"tests/:architecture/:testName",element:z.jsx(k1,{})})]})}
